============================= [ BUG: Invalid wait context ] 6.12.0-rc5-next-20241101-syzkaller #0 Not tainted ----------------------------- syz.6.550/8353 is trying to lock: ffff8880b8642880 (&c->lock){-.-.}-{3:3}, at: local_lock_acquire include/linux/local_lock_internal.h:29 [inline] ffff8880b8642880 (&c->lock){-.-.}-{3:3}, at: ___slab_alloc+0x265/0x14b0 mm/slub.c:3692 other info that might help us debug this: context-{2:2} 2 locks held by syz.6.550/8353: #0: ffffffff8fd37910 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffff88805e9c0768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: wiphy_lock include/net/cfg80211.h:6019 [inline] #1: ffff88805e9c0768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: nl80211_pre_doit+0x59f/0x8b0 net/wireless/nl80211.c:16677 stack backtrace: CPU: 0 UID: 0 PID: 8353 Comm: syz.6.550 Not tainted 6.12.0-rc5-next-20241101-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline] check_wait_context kernel/locking/lockdep.c:4898 [inline] __lock_acquire+0x15a8/0x2100 kernel/locking/lockdep.c:5176 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] ___slab_alloc+0x27e/0x14b0 mm/slub.c:3692 __slab_alloc+0x58/0xa0 mm/slub.c:3905 __slab_alloc_node mm/slub.c:3980 [inline] slab_alloc_node mm/slub.c:4141 [inline] __kmalloc_cache_noprof+0x27b/0x390 mm/slub.c:4309 kmalloc_noprof include/linux/slab.h:901 [inline] add_stack_record_to_list mm/page_owner.c:172 [inline] inc_stack_record_count mm/page_owner.c:214 [inline] __set_page_owner+0x55f/0x800 mm/page_owner.c:329 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1541 prep_new_page mm/page_alloc.c:1549 [inline] get_page_from_freelist+0x3725/0x3870 mm/page_alloc.c:3495 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4771 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 stack_depot_save_flags+0x666/0x830 lib/stackdepot.c:627 kasan_save_stack+0x4f/0x60 mm/kasan/common.c:48 __kasan_record_aux_stack+0xac/0xc0 mm/kasan/generic.c:544 task_work_add+0xd9/0x490 kernel/task_work.c:77 __run_posix_cpu_timers kernel/time/posix-cpu-timers.c:1219 [inline] run_posix_cpu_timers+0x6ac/0x810 kernel/time/posix-cpu-timers.c:1418 tick_sched_handle kernel/time/tick-sched.c:276 [inline] tick_nohz_handler+0x37c/0x500 kernel/time/tick-sched.c:297 __run_hrtimer kernel/time/hrtimer.c:1691 [inline] __hrtimer_run_queues+0x551/0xd50 kernel/time/hrtimer.c:1755 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1817 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:queue_work_on+0x269/0x380 kernel/workqueue.c:2395 Code: 75 19 e8 3a 02 38 00 eb 18 e8 33 02 38 00 e8 2e e2 66 0a 48 83 7c 24 10 00 74 e7 e8 21 02 38 00 fb 48 c7 44 24 20 0e 36 e0 45 <4b> c7 04 37 00 00 00 00 43 c7 44 37 09 00 00 00 00 66 43 c7 44 37 RSP: 0018:ffffc90019e37020 EFLAGS: 00000287 RAX: ffffffff815dbbdf RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc900037d1000 RSI: 00000000000009ab RDI: 00000000000009ac RBP: ffffc90019e37110 R08: ffffffff815dbbaf R09: 1ffffffff285a317 R10: dffffc0000000000 R11: fffffbfff285a318 R12: 0000000002000001 R13: 0000000000000046 R14: 1ffff920033c6e08 R15: dffffc0000000000 ieee80211_start_sw_scan net/mac80211/scan.c:569 [inline] __ieee80211_start_scan+0x1a9c/0x1de0 net/mac80211/scan.c:851 rdev_scan+0x155/0x300 net/wireless/rdev-ops.h:467 nl80211_trigger_scan+0x1955/0x1e20 net/wireless/nl80211.c:9558 genl_family_rcv_msg_doit net/netlink/genetlink.c:1115 [inline] genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0xb14/0xec0 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2551 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:744 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2609 ___sys_sendmsg net/socket.c:2663 [inline] __sys_sendmsg+0x292/0x380 net/socket.c:2692 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f39aa77e719 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f39ab5eb038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f39aa935f80 RCX: 00007f39aa77e719 RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000004 RBP: 00007f39aa7f132e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f39aa935f80 R15: 00007ffdb177d8a8 ---------------- Code disassembly (best guess): 0: 75 19 jne 0x1b 2: e8 3a 02 38 00 call 0x380241 7: eb 18 jmp 0x21 9: e8 33 02 38 00 call 0x380241 e: e8 2e e2 66 0a call 0xa66e241 13: 48 83 7c 24 10 00 cmpq $0x0,0x10(%rsp) 19: 74 e7 je 0x2 1b: e8 21 02 38 00 call 0x380241 20: fb sti 21: 48 c7 44 24 20 0e 36 movq $0x45e0360e,0x20(%rsp) 28: e0 45 * 2a: 4b c7 04 37 00 00 00 movq $0x0,(%r15,%r14,1) <-- trapping instruction 31: 00 32: 43 c7 44 37 09 00 00 movl $0x0,0x9(%r15,%r14,1) 39: 00 00 3b: 66 data16 3c: 43 rex.XB 3d: c7 .byte 0xc7 3e: 44 37 rex.R (bad)