================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. fido_id/30593 [HC0[0]:SC1[1]:HE0:SE0] takes: ffffffff89ac9220 (fs_reclaim){+.?.}-{0:0}, at: might_alloc include/linux/sched/mm.h:316 [inline] ffffffff89ac9220 (fs_reclaim){+.?.}-{0:0}, at: slab_pre_alloc_hook mm/slub.c:4673 [inline] ffffffff89ac9220 (fs_reclaim){+.?.}-{0:0}, at: slab_alloc_node mm/slub.c:5011 [inline] ffffffff89ac9220 (fs_reclaim){+.?.}-{0:0}, at: __do_kmalloc_node mm/slub.c:5530 [inline] ffffffff89ac9220 (fs_reclaim){+.?.}-{0:0}, at: __kmalloc_node_track_caller_noprof+0xcc/0x810 mm/slub.c:5662 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5942 [inline] lock_acquire+0x1d1/0x380 kernel/locking/lockdep.c:5899 __fs_reclaim_acquire mm/page_alloc.c:4360 [inline] fs_reclaim_acquire+0xc4/0x100 mm/page_alloc.c:4374 might_alloc include/linux/sched/mm.h:316 [inline] xa_alloc include/linux/xarray.h:876 [inline] mem_cgroup_alloc mm/memcontrol.c:4269 [inline] mem_cgroup_css_alloc+0x7e/0x1d70 mm/memcontrol.c:4335 cgroup_init_subsys+0x223/0x6e0 kernel/cgroup/cgroup.c:6470 cgroup_init+0x569/0xe50 kernel/cgroup/cgroup.c:6597 start_kernel+0x470/0x490 init/main.c:1238 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x12b/0x130 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x158 irq event stamp: 1775 hardirqs last enabled at (1774): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (1774): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:221 hardirqs last disabled at (1775): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:153 [inline] hardirqs last disabled at (1775): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:181 softirqs last enabled at (1754): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (1754): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (1754): [] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 softirqs last disabled at (1771): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (1771): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (1771): [] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(fs_reclaim); lock(fs_reclaim); *** DEADLOCK *** locks held by fido_id/30593: 2, last CPU#1: #0: ffff888135218340 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock include/linux/mmap_lock.h:532 [inline] #0: ffff888135218340 (&mm->mmap_lock){++++}-{4:4}, at: exit_mmap+0x22c/0xa40 mm/mmap.c:1323 #1: ffffffff898e7720 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffffff898e7720 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff898e7720 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1216 [inline] #1: ffffffff898e7720 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0xbd/0x2090 arch/x86/kernel/unwind_orc.c:495 stack backtrace: CPU: 1 UID: 0 PID: 30593 Comm: fido_id Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_usage_bug.part.0+0x258/0x340 kernel/locking/lockdep.c:4086 print_usage_bug kernel/locking/lockdep.c:4054 [inline] valid_state kernel/locking/lockdep.c:4100 [inline] mark_lock_irq kernel/locking/lockdep.c:4311 [inline] mark_lock+0x956/0x1020 kernel/locking/lockdep.c:4797 mark_usage kernel/locking/lockdep.c:4686 [inline] __lock_acquire+0x7f1/0x1f40 kernel/locking/lockdep.c:5242 lock_acquire kernel/locking/lockdep.c:5942 [inline] lock_acquire+0x1d1/0x380 kernel/locking/lockdep.c:5899 __fs_reclaim_acquire mm/page_alloc.c:4360 [inline] fs_reclaim_acquire+0xc4/0x100 mm/page_alloc.c:4374 might_alloc include/linux/sched/mm.h:316 [inline] slab_pre_alloc_hook mm/slub.c:4673 [inline] slab_alloc_node mm/slub.c:5011 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_node_track_caller_noprof+0xcc/0x810 mm/slub.c:5662 alloc_dr drivers/base/devres.c:141 [inline] devm_kmalloc+0xa5/0x2b0 drivers/base/devres.c:951 devm_kzalloc include/linux/device/devres.h:50 [inline] mt_allocate_report_data+0x59/0xcc0 drivers/hid/hid-multitouch.c:714 mt_find_report_data drivers/hid/hid-multitouch.c:764 [inline] mt_event+0x1bf/0x270 drivers/hid/hid-multitouch.c:1589 hid_process_event+0x37d/0x5a0 drivers/hid/hid-core.c:1572 hid_process_report drivers/hid/hid-core.c:1730 [inline] hid_report_raw_event+0xb14/0x14c0 drivers/hid/hid-core.c:2109 __hid_input_report.constprop.0+0x349/0x470 drivers/hid/hid-core.c:2180 hid_ctrl+0x4a4/0x560 drivers/hid/usbhid/hid-core.c:486 __usb_hcd_giveback_urb+0x38e/0x610 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741 dummy_timer+0xdb5/0x3840 drivers/usb/gadget/udc/dummy_hcd.c:2051 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x448/0x9a0 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2153 handle_softirqs+0x209/0xa00 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__read_once_word_nocheck+0x3/0x10 include/asm-generic/rwonce.h:68 Code: ff ff 48 c7 c7 18 b4 a6 87 e8 49 d5 b6 00 e9 1e fa ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 8b 07 cc cc cc cc 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc90006f7f298 EFLAGS: 00000202 RAX: ffffffff821722ff RBX: 0000000000000001 RCX: ffffffff8b8b4756 RDX: ffffc90006f7f701 RSI: ffffc90006f7f770 RDI: ffffc90006f7f770 RBP: ffffc90006f7f358 R08: ffffffff8b8b475a R09: 0000000000000007 R10: 0000000000000200 R11: 0000000000011e6b R12: ffffc90006f7f360 R13: ffffc90006f7f310 R14: ffffc90006f7f778 R15: ffffc90006f7f344 deref_stack_reg arch/x86/kernel/unwind_orc.c:422 [inline] unwind_next_frame+0xd07/0x2090 arch/x86/kernel/unwind_orc.c:614 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_record_aux_stack+0x8c/0xa0 mm/kasan/generic.c:556 __call_rcu_common.constprop.0+0x7b/0x2b0 kernel/rcu/tree.c:3287 slab_free_hook mm/slub.c:2744 [inline] slab_free mm/slub.c:6630 [inline] kmem_cache_free+0x41c/0x650 mm/slub.c:6757 anon_vma_free mm/rmap.c:137 [inline] __put_anon_vma+0x10f/0x3a0 mm/rmap.c:2960 put_anon_vma mm/internal.h:300 [inline] unlink_anon_vmas+0x5e4/0x8d0 mm/rmap.c:538 free_pgtables+0x2e7/0xd80 mm/memory.c:414 exit_mmap+0x44c/0xa40 mm/mmap.c:1327 __mmput kernel/fork.c:1192 [inline] mmput+0xdb/0x430 kernel/fork.c:1215 setup_new_exec+0x1d9/0x2a0 fs/exec.c:1395 load_elf_binary+0x593/0x50e0 fs/binfmt_elf.c:1024 search_binary_handler fs/exec.c:1777 [inline] exec_binprm fs/exec.c:1809 [inline] bprm_execve fs/exec.c:1865 [inline] bprm_execve+0x8cb/0x17e0 fs/exec.c:1841 do_execveat_common.isra.0+0x49d/0x580 fs/exec.c:1963 __do_sys_execve fs/exec.c:2036 [inline] __se_sys_execve fs/exec.c:2030 [inline] __x64_sys_execve+0x93/0xd0 fs/exec.c:2030 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x119/0x710 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faa6b94e107 Code: Unable to access opcode bytes at 0x7faa6b94e0dd. RSP: 002b:00007ffea33f4e08 EFLAGS: 00000202 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 000055c0cc8c6140 RCX: 00007faa6b94e107 RDX: 000055c0fafb4190 RSI: 00007ffea33f4f20 RDI: 00007ffea33f5720 RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000202 R12: 000055c0fafb4190 R13: 00007ffea33f4f20 R14: 000000000000000d R15: 0000000000000009 BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 30593, name: fido_id preempt_count: 100, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. irq event stamp: 1775 hardirqs last enabled at (1774): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (1774): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:221 hardirqs last disabled at (1775): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:153 [inline] hardirqs last disabled at (1775): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:181 softirqs last enabled at (1754): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (1754): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (1754): [] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 softirqs last disabled at (1771): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (1771): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (1771): [] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 Preemption disabled at: [] irq_enter_rcu+0x10/0x190 kernel/softirq.c:711 CPU: 1 UID: 0 PID: 30593 Comm: fido_id Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 __might_resched.cold+0x1dc/0x222 kernel/sched/core.c:9195 might_alloc include/linux/sched/mm.h:322 [inline] slab_pre_alloc_hook mm/slub.c:4673 [inline] slab_alloc_node mm/slub.c:5011 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_node_track_caller_noprof+0x473/0x810 mm/slub.c:5662 alloc_dr drivers/base/devres.c:141 [inline] devm_kmalloc+0xa5/0x2b0 drivers/base/devres.c:951 devm_kzalloc include/linux/device/devres.h:50 [inline] mt_allocate_report_data+0x59/0xcc0 drivers/hid/hid-multitouch.c:714 mt_find_report_data drivers/hid/hid-multitouch.c:764 [inline] mt_event+0x1bf/0x270 drivers/hid/hid-multitouch.c:1589 hid_process_event+0x37d/0x5a0 drivers/hid/hid-core.c:1572 hid_process_report drivers/hid/hid-core.c:1730 [inline] hid_report_raw_event+0xb14/0x14c0 drivers/hid/hid-core.c:2109 __hid_input_report.constprop.0+0x349/0x470 drivers/hid/hid-core.c:2180 hid_ctrl+0x4a4/0x560 drivers/hid/usbhid/hid-core.c:486 __usb_hcd_giveback_urb+0x38e/0x610 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741 dummy_timer+0xdb5/0x3840 drivers/usb/gadget/udc/dummy_hcd.c:2051 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x448/0x9a0 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2153 handle_softirqs+0x209/0xa00 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__read_once_word_nocheck+0x3/0x10 include/asm-generic/rwonce.h:68 Code: ff ff 48 c7 c7 18 b4 a6 87 e8 49 d5 b6 00 e9 1e fa ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 8b 07 cc cc cc cc 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc90006f7f298 EFLAGS: 00000202 RAX: ffffffff821722ff RBX: 0000000000000001 RCX: ffffffff8b8b4756 RDX: ffffc90006f7f701 RSI: ffffc90006f7f770 RDI: ffffc90006f7f770 RBP: ffffc90006f7f358 R08: ffffffff8b8b475a R09: 0000000000000007 R10: 0000000000000200 R11: 0000000000011e6b R12: ffffc90006f7f360 R13: ffffc90006f7f310 R14: ffffc90006f7f778 R15: ffffc90006f7f344 deref_stack_reg arch/x86/kernel/unwind_orc.c:422 [inline] unwind_next_frame+0xd07/0x2090 arch/x86/kernel/unwind_orc.c:614 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_record_aux_stack+0x8c/0xa0 mm/kasan/generic.c:556 __call_rcu_common.constprop.0+0x7b/0x2b0 kernel/rcu/tree.c:3287 slab_free_hook mm/slub.c:2744 [inline] slab_free mm/slub.c:6630 [inline] kmem_cache_free+0x41c/0x650 mm/slub.c:6757 anon_vma_free mm/rmap.c:137 [inline] __put_anon_vma+0x10f/0x3a0 mm/rmap.c:2960 put_anon_vma mm/internal.h:300 [inline] unlink_anon_vmas+0x5e4/0x8d0 mm/rmap.c:538 free_pgtables+0x2e7/0xd80 mm/memory.c:414 exit_mmap+0x44c/0xa40 mm/mmap.c:1327 __mmput kernel/fork.c:1192 [inline] mmput+0xdb/0x430 kernel/fork.c:1215 setup_new_exec+0x1d9/0x2a0 fs/exec.c:1395 load_elf_binary+0x593/0x50e0 fs/binfmt_elf.c:1024 search_binary_handler fs/exec.c:1777 [inline] exec_binprm fs/exec.c:1809 [inline] bprm_execve fs/exec.c:1865 [inline] bprm_execve+0x8cb/0x17e0 fs/exec.c:1841 do_execveat_common.isra.0+0x49d/0x580 fs/exec.c:1963 __do_sys_execve fs/exec.c:2036 [inline] __se_sys_execve fs/exec.c:2030 [inline] __x64_sys_execve+0x93/0xd0 fs/exec.c:2030 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x119/0x710 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faa6b94e107 Code: Unable to access opcode bytes at 0x7faa6b94e0dd. RSP: 002b:00007ffea33f4e08 EFLAGS: 00000202 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 000055c0cc8c6140 RCX: 00007faa6b94e107 RDX: 000055c0fafb4190 RSI: 00007ffea33f4f20 RDI: 00007ffea33f5720 RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000202 R12: 000055c0fafb4190 R13: 00007ffea33f4f20 R14: 000000000000000d R15: 0000000000000009 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 48 c7 c7 18 b4 a6 87 mov $0xffffffff87a6b418,%rdi 7: e8 49 d5 b6 00 call 0xb6d555 c: e9 1e fa ff ff jmp 0xfffffa2f 11: 0f 1f 40 00 nopl 0x0(%rax) 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 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: 48 8b 07 mov (%rdi),%rax * 28: c3 ret <-- trapping instruction 29: cc int3 2a: cc int3 2b: cc int3 2c: cc int3 2d: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1) 34: 00 35: 90 nop 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop