Kernel bug: general protection fault in ieee80211_put_srates_elem
Subsystem: wireless
Status: open

Crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 UID: 0 PID: 3108 Comm: kworker/u4:16 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: events_unbound cfg80211_wiphy_work
RIP: 0010:ieee80211_put_srates_elem+0x42/0x640 net/mac80211/util.c:3272
Code: 18 89 54 24 28 48 89 f3 49 89 fe 49 bc 00 00 00 00 00 fc ff df e8 ae 3f e3 f6 48 89 5c 24 38 4c 8d 6b 18 4d 89 ef 49 c1 ef 03 <43> 0f b6 04 27 84 c0 0f 85 19 05 00 00 41 8b 5d 00 31 ff 89 de e8
RSP: 0018:ffffc900029b77b8 EFLAGS: 00010206
RAX: ffffffff8addc7b2 RBX: 0000000000000000 RCX: ffff88803a764980
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801b3c3b40
RBP: 0000000000000001 R08: 0000000000000001 R09: ffffffff8df41aa0
R10: dffffc0000000000 R11: ffffed10082300db R12: dffffc0000000000
R13: 0000000000000018 R14: ffff88801b3c3b40 R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9afd2e4e9c CR3: 00000000548c5000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 ieee80211_mesh_build_beacon+0xa83/0x1b50 net/mac80211/mesh.c:1093
 ieee80211_mesh_rebuild_beacon+0xc7/0x170 net/mac80211/mesh.c:1147
 ieee80211_mesh_finish_csa+0x131/0x210 net/mac80211/mesh.c:1542
 ieee80211_set_after_csa_beacon net/mac80211/cfg.c:4085 [inline]
 __ieee80211_csa_finalize net/mac80211/cfg.c:4133 [inline]
 ieee80211_csa_finalize+0x633/0x1150 net/mac80211/cfg.c:4155
 cfg80211_wiphy_work+0x2ab/0x450 net/wireless/core.c:438
 process_one_work kernel/workqueue.c:3257 [inline]
 process_scheduled_works+0xad1/0x1770 kernel/workqueue.c:3340
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3421
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ieee80211_put_srates_elem+0x42/0x640 net/mac80211/util.c:3272
Code: 18 89 54 24 28 48 89 f3 49 89 fe 49 bc 00 00 00 00 00 fc ff df e8 ae 3f e3 f6 48 89 5c 24 38 4c 8d 6b 18 4d 89 ef 49 c1 ef 03 <43> 0f b6 04 27 84 c0 0f 85 19 05 00 00 41 8b 5d 00 31 ff 89 de e8
RSP: 0018:ffffc900029b77b8 EFLAGS: 00010206
RAX: ffffffff8addc7b2 RBX: 0000000000000000 RCX: ffff88803a764980
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801b3c3b40
RBP: 0000000000000001 R08: 0000000000000001 R09: ffffffff8df41aa0
R10: dffffc0000000000 R11: ffffed10082300db R12: dffffc0000000000
R13: 0000000000000018 R14: ffff88801b3c3b40 R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fec6a208e9c CR3: 000000004224e000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
   0:	18 89 54 24 28 48    	sbb    %cl,0x48282454(%rcx)
   6:	89 f3                	mov    %esi,%ebx
   8:	49 89 fe             	mov    %rdi,%r14
   b:	49 bc 00 00 00 00 00 	movabs $0xdffffc0000000000,%r12
  12:	fc ff df
  15:	e8 ae 3f e3 f6       	call   0xf6e33fc8
  1a:	48 89 5c 24 38       	mov    %rbx,0x38(%rsp)
  1f:	4c 8d 6b 18          	lea    0x18(%rbx),%r13
  23:	4d 89 ef             	mov    %r13,%r15
  26:	49 c1 ef 03          	shr    $0x3,%r15
* 2a:	43 0f b6 04 27       	movzbl (%r15,%r12,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 19 05 00 00    	jne    0x550
  37:	41 8b 5d 00          	mov    0x0(%r13),%ebx
  3b:	31 ff                	xor    %edi,%edi
  3d:	89 de                	mov    %ebx,%esi
  3f:	e8                   	.byte 0xe8