rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-...D } 2658 jiffies s: 91785 root: 0x1/. rcu: blocking rcu_node structures (internal RCU debug): Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 3545 Comm: syz.1.6793 Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:in_softirq_really kernel/kcov.c:171 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x23/0x70 kernel/kcov.c:217 Code: 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 15 64 0e ae 7e 65 8b 05 65 0e ae 7e a9 00 01 ff 00 48 8b 34 24 74 1d f6 c4 01 74 43 00 00 0f 00 75 3c a9 00 00 f0 00 75 35 8b 82 54 15 00 00 85 c0 RSP: 0018:ffffc90000006ca0 EFLAGS: 00000002 RAX: 0000000000000103 RBX: ffffffff8728c6c1 RCX: ffffffff86e56efa RDX: ffff88810cfcba80 RSI: ffffffff86e56f09 RDI: 0000000000000001 RBP: ffffffff8728c6c3 R08: 0000000000000001 R09: 000000000000002e R10: 000000000000006c R11: 00000000007b5c90 R12: ffffc90000006da8 R13: 000000000000006c R14: 0000000000000035 R15: 0000000000000005 FS: 00007fdb9a3476c0(0000) GS:ffff8881f5800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdb9b9b1000 CR3: 0000000115a42000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: format_decode+0x3b9/0xba0 lib/vsprintf.c:2597 vsnprintf+0x13d/0x1880 lib/vsprintf.c:2755 sprintf+0xcd/0x110 lib/vsprintf.c:3007 print_time kernel/printk/printk.c:1362 [inline] info_print_prefix+0x25c/0x350 kernel/printk/printk.c:1388 record_print_text+0x141/0x400 kernel/printk/printk.c:1437 printk_get_next_message+0x2a6/0x670 kernel/printk/printk.c:2978 console_emit_next_record kernel/printk/printk.c:3046 [inline] console_flush_all+0x6ec/0xc60 kernel/printk/printk.c:3180 __console_flush_and_unlock kernel/printk/printk.c:3239 [inline] console_unlock+0xd9/0x210 kernel/printk/printk.c:3279 vprintk_emit+0x424/0x6f0 kernel/printk/printk.c:2407 vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:68 _printk+0xc8/0x100 kernel/printk/printk.c:2432 printk_stack_address arch/x86/kernel/dumpstack.c:72 [inline] show_trace_log_lvl+0x1b7/0x3d0 arch/x86/kernel/dumpstack.c:285 sched_show_task kernel/sched/core.c:7582 [inline] sched_show_task+0x3f0/0x5f0 kernel/sched/core.c:7557 show_state_filter+0xee/0x320 kernel/sched/core.c:7627 k_spec drivers/tty/vt/keyboard.c:667 [inline] k_spec+0xed/0x150 drivers/tty/vt/keyboard.c:656 kbd_keycode drivers/tty/vt/keyboard.c:1522 [inline] kbd_event+0xcbd/0x17a0 drivers/tty/vt/keyboard.c:1541 input_handler_events_default+0x116/0x1b0 drivers/input/input.c:2549 input_pass_values+0x777/0x8e0 drivers/input/input.c:126 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf0b/0x14d0 drivers/input/input.c:369 input_event drivers/input/input.c:398 [inline] input_event+0x83/0xa0 drivers/input/input.c:390 input_sync include/linux/input.h:451 [inline] hidinput_report_event+0xb2/0x100 drivers/hid/hid-input.c:1736 hid_report_raw_event+0x274/0x11c0 drivers/hid/hid-core.c:2047 __hid_input_report.constprop.0+0x341/0x440 drivers/hid/hid-core.c:2110 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:285 __usb_hcd_giveback_urb+0x389/0x6e0 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x396/0x450 drivers/usb/core/hcd.c:1734 dummy_timer+0x17c3/0x38d0 drivers/usb/gadget/udc/dummy_hcd.c:1988 __run_hrtimer kernel/time/hrtimer.c:1691 [inline] __hrtimer_run_queues+0x20c/0xcc0 kernel/time/hrtimer.c:1755 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1772 handle_softirqs+0x206/0x8d0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xac/0x110 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1037 [inline] sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1037 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:122 [inline] RIP: 0010:lock_is_held_type+0x3d/0x150 kernel/locking/lockdep.c:5887 Code: 53 48 83 ec 08 8b 0d 5a ce 68 03 85 c9 0f 84 dd 00 00 00 65 8b 05 1b 1e 15 79 85 c0 0f 85 ce 00 00 00 65 4c 8b 25 83 58 16 79 <41> 8b 94 24 94 0a 00 00 85 d2 0f 85 b6 00 00 00 48 89 fd 41 89 f6 RSP: 0018:ffffc90002257858 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff9200044af15 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff88ebac00 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff14ac541 R10: ffffffff8a562a0f R11: 0000000000000000 R12: ffff88810cfcba80 R13: 00000000ffffffff R14: 00000000ffffffff R15: ffff888100041640 lock_is_held include/linux/lockdep.h:249 [inline] __might_resched+0x4ca/0x5e0 kernel/sched/core.c:8593 might_alloc include/linux/sched/mm.h:330 [inline] might_alloc include/linux/sched/mm.h:325 [inline] slab_pre_alloc_hook mm/slub.c:4037 [inline] slab_alloc_node mm/slub.c:4115 [inline] __do_kmalloc_node mm/slub.c:4264 [inline] __kmalloc_node_track_caller_noprof+0x30a/0x3e0 mm/slub.c:4284 kstrdup+0x3c/0x70 mm/util.c:64 kstrdup_const+0x63/0x80 mm/util.c:87 __kernfs_new_node+0x9c/0x890 fs/kernfs/dir.c:620 kernfs_new_node+0x186/0x240 fs/kernfs/dir.c:700 kernfs_create_dir_ns+0x4c/0x150 fs/kernfs/dir.c:1061 sysfs_create_dir_ns+0x13b/0x2b0 fs/sysfs/dir.c:59 create_dir lib/kobject.c:73 [inline] kobject_add_internal+0x2c8/0x990 lib/kobject.c:240 kobject_add_varg lib/kobject.c:374 [inline] kobject_init_and_add+0x11c/0x190 lib/kobject.c:457 bus_add_driver+0x186/0x690 drivers/base/bus.c:666 driver_register+0x15c/0x4b0 drivers/base/driver.c:246 usb_gadget_register_driver_owner+0xfd/0x2f0 drivers/usb/gadget/udc/core.c:1699 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:595 [inline] raw_ioctl+0x1731/0x2b90 drivers/usb/gadget/legacy/raw_gadget.c:1306 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdb9b6cdbfb Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007fdb9a344f10 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fdb9b6cdbfb RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000004 RBP: 00007fdb9a345fe0 R08: 0000000000000000 R09: 00312e6364755f79 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdb9a344fb0 R14: 0000000020000cc0 R15: 00007fdb9b9b0b88 task:kworker/u8:3 state:R running task stack:32568 pid:4271 tgid:4271 ppid:32025 flags:0x00004000 Call Trace: __switch_to_asm+0x70/0x70 task:modprobe state:R running task stack:25408 pid:4287 tgid:4287 ppid:28124 flags:0x00000002 Call Trace: task:kworker/u8:5 state:R running task stack:32568 pid:4288 tgid:4288 ppid:3800 flags:0x00004000 Call Trace: __switch_to_asm+0x70/0x70 task:kworker/u8:2 state:R running task stack:32568 pid:4290 tgid:4290 ppid:8808 flags:0x00004000 Call Trace: __switch_to_asm+0x70/0x70 task:kworker/u8:6 state:I stack:30912 pid:4291 tgid:4291 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x105f/0x34b0 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6767 worker_thread+0x2de/0xf00 kernel/workqueue.c:3406 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Showing all locks held in the system: 2 locks held by syslogd/2531: 2 locks held by getty/2607: #0: ffff88810ff3e0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900000432f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfba/0x1480 drivers/tty/n_tty.c:2211 5 locks held by kworker/1:4/4933: 3 locks held by kworker/0:5/4998: #0: ffff8881062e5948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 #1: ffffc900027afd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff8881097b3190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff8881097b3190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 2 locks held by kworker/u8:2/8808: #0: ffff8881f593d6d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:593 [inline] #0: ffff8881f593d6d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1505 [inline] #0: ffff8881f593d6d8 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1804 [inline] #0: ffff8881f593d6d8 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x293/0x34b0 kernel/sched/core.c:6575 #1: ffff8881f593d858 (&cfs_rq->removed.lock){-.-.}-{2:2}, at: update_cfs_rq_load_avg kernel/sched/fair.c:4677 [inline] #1: ffff8881f593d858 (&cfs_rq->removed.lock){-.-.}-{2:2}, at: update_load_avg+0xe30/0x1f70 kernel/sched/fair.c:4836 5 locks held by kworker/0:4/22449: #0: ffff8881062e5948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 #1: ffffc90004a47d80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff888135e2f190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff888135e2f190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 #3: ffff8881013a0508 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3206 [inline] #3: ffff8881013a0508 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x5c4/0x4f40 drivers/usb/core/hub.c:5902 #4: ffff88813aa51098 (&hub->status_mutex){+.+.}-{3:3}, at: hub_ext_port_status+0x5e/0x670 drivers/usb/core/hub.c:620 3 locks held by kworker/0:2/25737: #0: ffff8881062e5948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000a677d80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff888109bf2190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff888109bf2190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 6 locks held by kworker/1:1/29293: #0: ffff8881062e5948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000aa9fd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff888109b81190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff888109b81190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 #3: ffff888106f18190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff888106f18190 (&dev->mutex){....}-{3:3}, at: usb_disconnect+0x10a/0x920 drivers/usb/core/hub.c:2295 #4: ffff88810be8b160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ffff88810be8b160 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff88810be8b160 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1293 #5: ffff88811dd51a20 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #5: ffff88811dd51a20 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #5: ffff88811dd51a20 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1293 4 locks held by syz.1.6793/3545: #0: ffff888139d67230 (&dev->event_lock){..-.}-{2:2}, at: input_event drivers/input/input.c:397 [inline] #0: ffff888139d67230 (&dev->event_lock){..-.}-{2:2}, at: input_event+0x70/0xa0 drivers/input/input.c:390 #1: ffffffff88ebacc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #1: ffffffff88ebacc0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff88ebacc0 (rcu_read_lock){....}-{1:2}, at: input_pass_values+0x8b/0x8e0 drivers/input/input.c:118 #2: ffffffff893872d8 (kbd_event_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffffffff893872d8 (kbd_event_lock){..-.}-{2:2}, at: kbd_event+0x8a/0x17a0 drivers/tty/vt/keyboard.c:1535 #3: ffffffff88ebacc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #3: ffffffff88ebacc0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #3: ffffffff88ebacc0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6701 1 lock held by syz.3.6796/3555: #0: ffffffff88ec6638 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock+0x282/0x3b0 kernel/rcu/tree_exp.h:297 1 lock held by syz.2.6797/3558: #0: ffffffff88ec6638 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock+0x1a4/0x3b0 kernel/rcu/tree_exp.h:329 ============================================= keytouch 0003:0926:3333.0366: can't resubmit intr, dummy_hcd.2-1/input0, status -19