================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. pr/ttyS0/15 [HC0[0]:SC1[1]:HE0:SE0] takes: ffffffff89ab7bc0 (fs_reclaim){+.?.}-{0:0}, at: might_alloc include/linux/sched/mm.h:316 [inline] ffffffff89ab7bc0 (fs_reclaim){+.?.}-{0:0}, at: slab_pre_alloc_hook mm/slub.c:4636 [inline] ffffffff89ab7bc0 (fs_reclaim){+.?.}-{0:0}, at: slab_alloc_node mm/slub.c:4974 [inline] ffffffff89ab7bc0 (fs_reclaim){+.?.}-{0:0}, at: __do_kmalloc_node mm/slub.c:5413 [inline] ffffffff89ab7bc0 (fs_reclaim){+.?.}-{0:0}, at: __kmalloc_node_track_caller_noprof+0xcc/0x820 mm/slub.c:5545 {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:4375 [inline] fs_reclaim_acquire+0xc4/0x100 mm/page_alloc.c:4389 might_alloc include/linux/sched/mm.h:316 [inline] xa_alloc include/linux/xarray.h:876 [inline] mem_cgroup_alloc mm/memcontrol.c:4160 [inline] mem_cgroup_css_alloc+0x7e/0x1ce0 mm/memcontrol.c:4225 cgroup_init_subsys+0x223/0x700 kernel/cgroup/cgroup.c:6431 cgroup_init+0x569/0xe50 kernel/cgroup/cgroup.c:6558 start_kernel+0x470/0x490 init/main.c:1176 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: 345875 hardirqs last enabled at (345874): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (345874): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:221 hardirqs last disabled at (345875): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:153 [inline] hardirqs last disabled at (345875): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:181 softirqs last enabled at (345860): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (345860): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (345860): [] __irq_exit_rcu+0x168/0x210 kernel/softirq.c:758 softirqs last disabled at (345869): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (345869): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (345869): [] __irq_exit_rcu+0x168/0x210 kernel/softirq.c:758 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/15: 1, last CPU#1: #0: ffffffff898d0ef8 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:314 [inline] #0: ffffffff898d0ef8 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:439 [inline] #0: ffffffff898d0ef8 (console_srcu){....}-{0:0}, at: console_srcu_read_lock+0x49/0x60 kernel/printk/printk.c:291 stack backtrace: CPU: 1 UID: 0 PID: 15 Comm: pr/ttyS0 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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:4375 [inline] fs_reclaim_acquire+0xc4/0x100 mm/page_alloc.c:4389 might_alloc include/linux/sched/mm.h:316 [inline] slab_pre_alloc_hook mm/slub.c:4636 [inline] slab_alloc_node mm/slub.c:4974 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_node_track_caller_noprof+0xcc/0x820 mm/slub.c:5545 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:695 mt_find_report_data drivers/hid/hid-multitouch.c:745 [inline] mt_event+0x1bf/0x270 drivers/hid/hid-multitouch.c:1570 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+0xdb2/0x3700 drivers/usb/gadget/udc/dummy_hcd.c:2019 __run_hrtimer kernel/time/hrtimer.c:2067 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2124 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2141 handle_softirqs+0x1d9/0x9b0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x168/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+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 56 f7 05 fa 48 89 df e8 de 4d 06 fa f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 65 a3 f8 f9 65 48 83 3d d4 ee 98 05 00 74 16 5b RSP: 0018:ffffc900000ffcb8 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffffffff9448a7e0 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff89329b79 RDI: ffffffff87d2b780 RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 205d393332355420 R12: 1ffff9200001ff9a R13: ffffffff89eb8ae0 R14: 0000000000000001 R15: 0000000000000001 nbcon_emit_one+0x15c/0x2b0 kernel/printk/nbcon.c:1165 nbcon_kthread_func+0x613/0x7d0 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: 15, name: pr/ttyS0 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. irq event stamp: 345875 hardirqs last enabled at (345874): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (345874): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:221 hardirqs last disabled at (345875): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:153 [inline] hardirqs last disabled at (345875): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:181 softirqs last enabled at (345860): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (345860): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (345860): [] __irq_exit_rcu+0x168/0x210 kernel/softirq.c:758 softirqs last disabled at (345869): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (345869): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (345869): [] __irq_exit_rcu+0x168/0x210 kernel/softirq.c:758 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 UID: 0 PID: 15 Comm: pr/ttyS0 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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:9256 might_alloc include/linux/sched/mm.h:322 [inline] slab_pre_alloc_hook mm/slub.c:4636 [inline] slab_alloc_node mm/slub.c:4974 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_node_track_caller_noprof+0x473/0x820 mm/slub.c:5545 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:695 mt_find_report_data drivers/hid/hid-multitouch.c:745 [inline] mt_event+0x1bf/0x270 drivers/hid/hid-multitouch.c:1570 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+0xdb2/0x3700 drivers/usb/gadget/udc/dummy_hcd.c:2019 __run_hrtimer kernel/time/hrtimer.c:2067 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2124 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2141 handle_softirqs+0x1d9/0x9b0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x168/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+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 56 f7 05 fa 48 89 df e8 de 4d 06 fa f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 65 a3 f8 f9 65 48 83 3d d4 ee 98 05 00 74 16 5b RSP: 0018:ffffc900000ffcb8 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffffffff9448a7e0 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff89329b79 RDI: ffffffff87d2b780 RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 205d393332355420 R12: 1ffff9200001ff9a R13: ffffffff89eb8ae0 R14: 0000000000000001 R15: 0000000000000001 nbcon_emit_one+0x15c/0x2b0 kernel/printk/nbcon.c:1165 nbcon_kthread_func+0x613/0x7d0 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 56 f7 05 fa call 0xfa05f769 13: 48 89 df mov %rbx,%rdi 16: e8 de 4d 06 fa call 0xfa064df9 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 65 a3 f8 f9 call 0xf9f8a399 34: 65 48 83 3d d4 ee 98 cmpq $0x0,%gs:0x598eed4(%rip) # 0x598ef11 3b: 05 00 3d: 74 16 je 0x55 3f: 5b pop %rbx