================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. pr/ttyS0/30 [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: 1019159 hardirqs last enabled at (1019158): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (1019158): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:221 hardirqs last disabled at (1019159): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:153 [inline] hardirqs last disabled at (1019159): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:181 softirqs last enabled at (1019148): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (1019148): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (1019148): [] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 softirqs last disabled at (1019155): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (1019155): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (1019155): [] __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 pr/ttyS0/30: 1, last CPU#1: #0: ffffffff898d3958 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:314 [inline] #0: ffffffff898d3958 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:493 [inline] #0: ffffffff898d3958 (console_srcu){....}-{0:0}, at: console_srcu_read_lock+0x49/0x60 kernel/printk/printk.c:291 stack backtrace: CPU: 1 UID: 0 PID: 30 Comm: pr/ttyS0 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:221 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 16 b9 f4 f9 48 89 df e8 9e 0f f5 f9 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 e5 40 e7 f9 65 48 83 3d 54 37 8e 05 00 74 16 5b RSP: 0018:ffffc90000207cb0 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffffffff94511ca0 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff89306960 RDI: ffffffff87d36a00 RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 205d313334303154 R12: 1ffff92000040f99 R13: ffffffff89ed3440 R14: 0000000000000001 R15: dffffc0000000000 nbcon_emit_one+0x15c/0x2b0 kernel/printk/nbcon.c:1165 nbcon_kthread_func+0x5ef/0x7f0 kernel/printk/nbcon.c:1271 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x69f/0xc90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 30, name: pr/ttyS0 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. irq event stamp: 1019159 hardirqs last enabled at (1019158): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (1019158): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:221 hardirqs last disabled at (1019159): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:153 [inline] hardirqs last disabled at (1019159): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:181 softirqs last enabled at (1019148): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (1019148): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (1019148): [] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 softirqs last disabled at (1019155): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (1019155): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (1019155): [] __irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 UID: 0 PID: 30 Comm: pr/ttyS0 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:221 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 16 b9 f4 f9 48 89 df e8 9e 0f f5 f9 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 e5 40 e7 f9 65 48 83 3d 54 37 8e 05 00 74 16 5b RSP: 0018:ffffc90000207cb0 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffffffff94511ca0 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff89306960 RDI: ffffffff87d36a00 RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 205d313334303154 R12: 1ffff92000040f99 R13: ffffffff89ed3440 R14: 0000000000000001 R15: dffffc0000000000 nbcon_emit_one+0x15c/0x2b0 kernel/printk/nbcon.c:1165 nbcon_kthread_func+0x5ef/0x7f0 kernel/printk/nbcon.c:1271 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x69f/0xc90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: f5 cmc 1: 53 push %rbx 2: 48 8b 74 24 10 mov 0x10(%rsp),%rsi 7: 48 89 fb mov %rdi,%rbx a: 48 83 c7 18 add $0x18,%rdi e: e8 16 b9 f4 f9 call 0xf9f4b929 13: 48 89 df mov %rbx,%rdi 16: e8 9e 0f f5 f9 call 0xf9f50fb9 1b: f7 c5 00 02 00 00 test $0x200,%ebp 21: 75 23 jne 0x46 23: 9c pushf 24: 58 pop %rax 25: f6 c4 02 test $0x2,%ah 28: 75 37 jne 0x61 * 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction 2f: e8 e5 40 e7 f9 call 0xf9e74119 34: 65 48 83 3d 54 37 8e cmpq $0x0,%gs:0x58e3754(%rip) # 0x58e3791 3b: 05 00 3d: 74 16 je 0x55 3f: 5b pop %rbx