================================ WARNING: inconsistent lock state 6.9.0-rc6-syzkaller-00053-g0106679839f7 #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.1/24756 [HC0[0]:SC1[3]:HE0:SE0] takes: ffff8880b9538a80 (lock#10){+.?.}-{2:2}, at: local_lock_acquire include/linux/local_lock_internal.h:29 [inline] ffff8880b9538a80 (lock#10){+.?.}-{2:2}, at: __mmap_lock_do_trace_acquire_returned+0x7f/0x790 mm/mmap_lock.c:237 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] __mmap_lock_do_trace_acquire_returned+0x97/0x790 mm/mmap_lock.c:237 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_lock_killable include/linux/mmap_lock.h:156 [inline] __get_user_pages_locked mm/gup.c:1500 [inline] __gup_longterm_locked+0xd18/0x28f0 mm/gup.c:2223 internal_get_user_pages_fast+0x1cec/0x2cd0 mm/gup.c:3227 get_user_pages_fast+0xa8/0x100 mm/gup.c:3305 __iov_iter_get_pages_alloc+0x8cb/0x1ab0 lib/iov_iter.c:1009 iov_iter_get_pages2+0xa4/0x100 lib/iov_iter.c:1049 fuse_copy_fill+0x670/0x880 fs/fuse/dev.c:735 fuse_copy_one fs/fuse/dev.c:1003 [inline] fuse_dev_do_read+0x14f8/0x2320 fs/fuse/dev.c:1298 fuse_dev_read+0x15c/0x1f0 fs/fuse/dev.c:1367 call_read_iter include/linux/fs.h:2104 [inline] new_sync_read fs/read_write.c:395 [inline] vfs_read+0x6c0/0xb80 fs/read_write.c:476 ksys_read+0x12f/0x260 fs/read_write.c:619 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 1759 hardirqs last enabled at (1758): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (1758): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:194 hardirqs last disabled at (1759): [] queue_work_on+0xb3/0x120 kernel/workqueue.c:2445 softirqs last enabled at (1084): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (1084): [] __do_softirq+0x5da/0x922 kernel/softirq.c:583 softirqs last disabled at (1699): [] invoke_softirq kernel/softirq.c:428 [inline] softirqs last disabled at (1699): [] __irq_exit_rcu kernel/softirq.c:633 [inline] softirqs last disabled at (1699): [] irq_exit_rcu+0xb9/0x120 kernel/softirq.c:645 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(lock#10); lock(lock#10); *** DEADLOCK *** 6 locks held by syz-executor.1/24756: #0: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: ieee80211_rx_napi+0xa6/0x400 net/mac80211/rx.c:5480 #1: ffff8880536816d0 (&local->rx_path_lock){+.-.}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] #1: ffff8880536816d0 (&local->rx_path_lock){+.-.}-{2:2}, at: ieee80211_rx_handlers+0xdd/0x95c0 net/mac80211/rx.c:4170 #2: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #2: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #2: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: __queue_work+0xf2/0x1020 kernel/workqueue.c:2337 #3: ffff8880150a0018 (&pool->lock){-.-.}-{2:2}, at: __queue_work+0x39e/0x1020 kernel/workqueue.c:2373 #4: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #4: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #4: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2380 [inline] #4: ffffffff8d7b0e20 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run3+0xf8/0x440 kernel/trace/bpf_trace.c:2421 #5: ffff8880501da7a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #5: ffff8880501da7a0 (&mm->mmap_lock){++++}-{3:3}, at: stack_map_get_build_id_offset+0x1e8/0x7d0 kernel/bpf/stackmap.c:141 stack backtrace: CPU: 1 PID: 24756 Comm: syz-executor.1 Not tainted 6.9.0-rc6-syzkaller-00053-g0106679839f7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_usage_bug kernel/locking/lockdep.c:3971 [inline] valid_state kernel/locking/lockdep.c:4013 [inline] mark_lock_irq kernel/locking/lockdep.c:4216 [inline] mark_lock+0x923/0xc60 kernel/locking/lockdep.c:4678 mark_usage kernel/locking/lockdep.c:4567 [inline] __lock_acquire+0x13d4/0x3b30 kernel/locking/lockdep.c:5091 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] __mmap_lock_do_trace_acquire_returned+0x97/0x790 mm/mmap_lock.c:237 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_trylock include/linux/mmap_lock.h:166 [inline] stack_map_get_build_id_offset+0x5df/0x7d0 kernel/bpf/stackmap.c:141 __bpf_get_stack+0x6bf/0x700 kernel/bpf/stackmap.c:449 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1985 [inline] bpf_get_stack_raw_tp+0x124/0x160 kernel/trace/bpf_trace.c:1975 ___bpf_prog_run+0x3e51/0xabd0 kernel/bpf/core.c:1997 __bpf_prog_run32+0xc1/0x100 kernel/bpf/core.c:2236 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] __bpf_prog_run include/linux/filter.h:657 [inline] bpf_prog_run include/linux/filter.h:664 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline] bpf_trace_run3+0x167/0x440 kernel/trace/bpf_trace.c:2421 __bpf_trace_workqueue_queue_work+0x101/0x140 include/trace/events/workqueue.h:23 trace_workqueue_queue_work include/trace/events/workqueue.h:23 [inline] __queue_work+0x627/0x1020 kernel/workqueue.c:2395 queue_work_on+0xf4/0x120 kernel/workqueue.c:2448 __ieee80211_queue_skb_to_iface net/mac80211/rx.c:233 [inline] ieee80211_queue_skb_to_iface net/mac80211/rx.c:244 [inline] ieee80211_rx_h_mgmt net/mac80211/rx.c:4046 [inline] ieee80211_rx_handlers+0x6546/0x95c0 net/mac80211/rx.c:4204 ieee80211_invoke_rx_handlers net/mac80211/rx.c:4234 [inline] ieee80211_prepare_and_rx_handle+0x2b6a/0x6ec0 net/mac80211/rx.c:5082 ieee80211_rx_for_interface+0x10a/0x1f0 net/mac80211/rx.c:5167 __ieee80211_rx_handle_packet net/mac80211/rx.c:5323 [inline] ieee80211_rx_list+0x10e2/0x2e90 net/mac80211/rx.c:5458 ieee80211_rx_napi+0xdd/0x400 net/mac80211/rx.c:5481 ieee80211_rx include/net/mac80211.h:5086 [inline] ieee80211_tasklet_handler+0xd6/0x130 net/mac80211/main.c:438 tasklet_action_common.constprop.0+0x24c/0x3e0 kernel/softirq.c:781 __do_softirq+0x218/0x922 kernel/softirq.c:554 invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:633 [inline] irq_exit_rcu+0xb9/0x120 kernel/softirq.c:645 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:arch_dup_task_struct+0x0/0xa0 arch/x86/kernel/process.c:94 Code: 94 e8 34 e3 5a 00 e8 ff b9 cd ff 5b e9 29 e3 5a 00 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <66> 0f 1f 00 55 48 89 f5 53 48 89 fb e8 ff e2 5a 00 48 c7 c0 e0 48 RSP: 0018:ffffc900034afa08 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 0000000000000cc0 RDX: ffff888022f6da00 RSI: ffff888022f6da00 RDI: ffff8880671c3c00 RBP: ffffc900034afc50 R08: 00000000ffffffff R09: 0000000000000001 R10: ffffffff8f9f4917 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888022f6da00 R14: ffff8880671c3c00 R15: 0000000000010000 dup_task_struct kernel/fork.c:1111 [inline] copy_process+0x4da/0x9090 kernel/fork.c:2220 kernel_clone+0xfd/0x980 kernel/fork.c:2797 __do_sys_clone3+0x1f5/0x270 kernel/fork.c:3098 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbbf54a9c99 Code: ff ff eb d2 e8 f8 62 fd ff 0f 1f 84 00 00 00 00 00 b8 ea ff ff ff 48 85 ff 74 2c 48 85 d2 74 27 49 89 c8 b8 b3 01 00 00 0f 05 <48> 85 c0 7c 18 74 01 c3 31 ed 48 83 e4 f0 4c 89 c7 ff d2 48 89 c7 RSP: 002b:00007fff46d3d718 EFLAGS: 00000202 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007fbbf5452380 RCX: 00007fbbf54a9c99 RDX: 00007fbbf5452380 RSI: 0000000000000058 RDI: 00007fff46d3d760 RBP: 00007fbbf616f6c0 R08: 00007fbbf616f6c0 R09: 00007fff46d3d847 R10: 0000000000000008 R11: 0000000000000202 R12: ffffffffffffffb0 R13: 000000000000000b R14: 00007fff46d3d760 R15: 00007fff46d3d848 ---------------- Code disassembly (best guess): 0: 94 xchg %eax,%esp 1: e8 34 e3 5a 00 call 0x5ae33a 6: e8 ff b9 cd ff call 0xffcdba0a b: 5b pop %rbx c: e9 29 e3 5a 00 jmp 0x5ae33a 11: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) 18: 00 00 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 27: 90 nop 28: 90 nop 29: 90 nop * 2a: 66 0f 1f 00 nopw (%rax) <-- trapping instruction 2e: 55 push %rbp 2f: 48 89 f5 mov %rsi,%rbp 32: 53 push %rbx 33: 48 89 fb mov %rdi,%rbx 36: e8 ff e2 5a 00 call 0x5ae33a 3b: 48 rex.W 3c: c7 .byte 0xc7 3d: c0 e0 48 shl $0x48,%al