------------[ cut here ]------------ !oldest WARNING: net/wireless/scan.c:513 at cfg80211_bss_expire_oldest net/wireless/scan.c:513 [inline], CPU#3: syz.0.20/5989 WARNING: net/wireless/scan.c:513 at __cfg80211_bss_update+0x19d8/0x2450 net/wireless/scan.c:2115, CPU#3: syz.0.20/5989 Modules linked in: CPU: 3 UID: 0 PID: 5989 Comm: syz.0.20 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:cfg80211_bss_expire_oldest net/wireless/scan.c:513 [inline] RIP: 0010:__cfg80211_bss_update+0x19d8/0x2450 net/wireless/scan.c:2115 Code: 00 31 ff 41 89 c5 89 c6 e8 f5 a4 eb f6 45 85 ed 0f 85 65 f9 ff ff e8 77 aa eb f6 90 0f 0b 90 e9 57 f9 ff ff e8 69 aa eb f6 90 <0f> 0b 90 e9 fc fa ff ff e8 5b aa eb f6 48 8b 44 24 08 48 8d 88 ac RSP: 0018:ffffc900005f8348 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffffff9245c9e4 RCX: 0000000000000301 RDX: ffff888024fbcb00 RSI: ffffffff8b1ff927 RDI: ffff888024fbcb00 RBP: ffff8880227a2088 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880227a2000 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88806a160190 FS: 0000000000000000(0000) GS:ffff888095a4a000(0000) knlGS:0000000000000000 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f71f8e50 CR3: 000000006ae4b000 CR4: 0000000000352ef0 Call Trace: cfg80211_inform_single_bss_data+0x770/0x1dc0 net/wireless/scan.c:2442 cfg80211_inform_bss_data+0x230/0x3c20 net/wireless/scan.c:3302 cfg80211_inform_bss_frame_data+0x245/0x7c0 net/wireless/scan.c:3394 ieee80211_bss_info_update+0x310/0xab0 net/mac80211/scan.c:230 ieee80211_scan_rx+0x4e6/0xb60 net/mac80211/scan.c:364 __ieee80211_rx_handle_packet+0xbab/0xfc0 net/mac80211/rx.c:5433 ieee80211_rx_list+0xf19/0x2160 net/mac80211/rx.c:5726 ieee80211_rx_napi+0xdc/0x400 net/mac80211/rx.c:5749 ieee80211_rx include/net/mac80211.h:5449 [inline] ieee80211_handle_queued_frames+0xc8/0x120 net/mac80211/main.c:452 tasklet_action_common+0x2de/0x3d0 kernel/softirq.c:961 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x16a/0x210 kernel/softirq.c:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:lock_acquire+0x5e/0x380 kernel/locking/lockdep.c:5947 Code: 05 0f 75 a6 13 83 f8 07 0f 87 da 00 00 00 48 0f a3 05 1e ad 5e 10 0f 82 c9 02 00 00 8b 35 9e de 5e 10 85 f6 0f 85 c7 00 00 00 <48> 8b 44 24 30 65 48 2b 05 ad 74 a6 13 0f 85 09 03 00 00 48 83 c4 RSP: 0018:ffffc90003d5f258 EFLAGS: 00000206 RAX: 0000000000000046 RBX: 0000000000000000 RCX: 0000000000000200 RDX: 0000000000000000 RSI: ffffffff8e3baf7c RDI: ffffffff8c625c80 RBP: ffffffff8fdec3e0 R08: 0000000067be5eb9 R09: 0000000000000007 R10: 0000000000000200 R11: 0000000000000001 R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:309 [inline] rcu_read_lock include/linux/rcupdate.h:849 [inline] class_rcu_constructor include/linux/rcupdate.h:1216 [inline] unwind_next_frame+0xd1/0x2090 arch/x86/kernel/unwind_orc.c:495 arch_stack_walk+0x94/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6509 [inline] kmem_cache_free+0x127/0x6c0 mm/slub.c:6636 anon_vma_chain_free mm/rmap.c:147 [inline] unlink_anon_vmas+0x4b2/0x8d0 mm/rmap.c:543 free_pgtables+0x2e7/0xd80 mm/memory.c:414 exit_mmap+0x44c/0xa00 mm/mmap.c:1327 __mmput+0x12a/0x410 kernel/fork.c:1193 mmput+0x67/0x80 kernel/fork.c:1216 exit_mm kernel/exit.c:592 [inline] do_exit+0x83b/0x2a60 kernel/exit.c:974 do_group_exit+0xd5/0x2a0 kernel/exit.c:1129 get_signal+0x1ec7/0x21e0 kernel/signal.c:3112 arch_do_signal_or_restart+0x91/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x139/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] __do_fast_syscall_32+0x59f/0x8b0 arch/x86/entry/syscall_32.c:294 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:316 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f83fec Code: Unable to access opcode bytes at 0xf7f83fc2. RSP: 002b:00000000f683e5bc EFLAGS: 00000292 ORIG_RAX: 00000000000000f0 RAX: fffffffffffffe00 RBX: 00000000f7444f88 RCX: 0000000000000080 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000f7444f8c RBP: 0000000000000081 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 05 0f 75 a6 13 add $0x13a6750f,%eax 5: 83 f8 07 cmp $0x7,%eax 8: 0f 87 da 00 00 00 ja 0xe8 e: 48 0f a3 05 1e ad 5e bt %rax,0x105ead1e(%rip) # 0x105ead34 15: 10 16: 0f 82 c9 02 00 00 jb 0x2e5 1c: 8b 35 9e de 5e 10 mov 0x105ede9e(%rip),%esi # 0x105edec0 22: 85 f6 test %esi,%esi 24: 0f 85 c7 00 00 00 jne 0xf1 * 2a: 48 8b 44 24 30 mov 0x30(%rsp),%rax <-- trapping instruction 2f: 65 48 2b 05 ad 74 a6 sub %gs:0x13a674ad(%rip),%rax # 0x13a674e4 36: 13 37: 0f 85 09 03 00 00 jne 0x346 3d: 48 rex.W 3e: 83 .byte 0x83 3f: c4 .byte 0xc4