INFO: task syz.1.29:6961 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.29 state:D stack:26888 pid:6961 tgid:6961 ppid:6655 task_flags:0x400140 flags:0x00080002
Call Trace:
context_switch kernel/sched/core.c:5598 [inline]
__schedule+0x1ba5/0x5f70 kernel/sched/core.c:7401
__schedule_loop kernel/sched/core.c:7478 [inline]
schedule+0x164/0x2b0 kernel/sched/core.c:7493
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7550
__mutex_lock_common kernel/locking/mutex.c:726 [inline]
__mutex_lock+0x7c4/0x15a0 kernel/locking/mutex.c:821
scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4aa/0x540 drivers/scsi/scsi_sysfs.c:191
kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345
new_sync_write fs/read_write.c:580 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:672
ksys_write+0x150/0x270 fs/read_write.c:1021
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x00007fe7b93a9559
RSP: 002b:00007ffc4a7fb598 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe7b9625fa0 RCX: 00007fe7b93a9559
RDX: 0000000000000005 RSI: 0000200000000180 RDI: 0000000000000003
RBP: 00007fe7b9438136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe7b9625fac R14: 00007fe7b9625fa0 R15: 00007fe7b9625fa0
INFO: task syz.0.28:6972 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.28 state:D stack:27624 pid:6972 tgid:6972 ppid:6637 task_flags:0x400140 flags:0x00080002
Call Trace:
context_switch kernel/sched/core.c:5598 [inline]
__schedule+0x1ba5/0x5f70 kernel/sched/core.c:7401
__schedule_loop kernel/sched/core.c:7478 [inline]
schedule+0x164/0x2b0 kernel/sched/core.c:7493
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7550
__mutex_lock_common kernel/locking/mutex.c:726 [inline]
__mutex_lock+0x7c4/0x15a0 kernel/locking/mutex.c:821
scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4aa/0x540 drivers/scsi/scsi_sysfs.c:191
kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345
new_sync_write fs/read_write.c:580 [inline]
vfs_write+0x612/0xba0 fs/read_write.c:672
ksys_write+0x150/0x270 fs/read_write.c:1021
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x00007f55a29a9559
RSP: 002b:00007ffc87349d68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f55a2c25fa0 RCX: 00007f55a29a9559
RDX: 0000000000000005 RSI: 0000200000000180 RDI: 0000000000000003
RBP: 00007f55a2a38136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f55a2c25fac R14: 00007f55a2c25fa0 R15: 00007f55a2c25fa0
Showing all locks held in the system:
locks held by pr/ttyS0/34: 2, on CPU#0:
#0: ffffffff90234878 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:314 [inline]
#0: ffffffff90234878 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:529 [inline]
#0: ffffffff90234878 (console_srcu){....}-{0:0}, at: console_srcu_read_lock+0x30/0x60 kernel/printk/printk.c:291
#1: ffffffff9c5127d8 (&port_lock_key){-.-.}-{3:3}, at: __uart_port_lock_irqsave include/linux/serial_core.h:613 [inline]
#1: ffffffff9c5127d8 (&port_lock_key){-.-.}-{3:3}, at: univ8250_console_device_lock+0x67/0xc0 drivers/tty/serial/8250/8250_core.c:413
locks held by khungtaskd/35: 1, on CPU#1:
#0: ffffffff9035b020 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#0: ffffffff9035b020 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff9035b020 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6871
locks held by kworker/1:1/49: 3, last CPU#1:
#0: ffff88801c86a150 ((wq_completion)events){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#0: ffff88801c86a150 ((wq_completion)events){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffff88801c86a150 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3476 [inline]
#0: ffff88801c86a150 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3594
#1: ffffc90000b97c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#1: ffffc90000b97c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#1: ffffc90000b97c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3476 [inline]
#1: ffffc90000b97c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3594
#2: ffff88802c210258 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x1fd/0x3b0 drivers/net/netdevsim/fib.c:1490
locks held by kworker/u8:3/56: 2, last CPU#1:
#0: ffff88801c8ac150 ((wq_completion)events_unbound){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#0: ffff88801c8ac150 ((wq_completion)events_unbound){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffff88801c8ac150 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3476 [inline]
#0: ffff88801c8ac150 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3594
#1: ffffc9000121fc40 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#1: ffffc9000121fc40 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#1: ffffc9000121fc40 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3476 [inline]
#1: ffffc9000121fc40 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3594
locks held by kworker/u8:5/90: 3, on CPU#1:
#0: ffff88801c8ac150 ((wq_completion)events_unbound){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#0: ffff88801c8ac150 ((wq_completion)events_unbound){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffff88801c8ac150 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3476 [inline]
#0: ffff88801c8ac150 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3594
#1: ffffc900015f7c40 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#1: ffffc900015f7c40 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#1: ffffc900015f7c40 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3476 [inline]
#1: ffffc900015f7c40 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3594
#2: ffff88807d351258 (&devlink->lock_key#28){+.+.}-{4:4}, at: nsim_dev_trap_report_work+0x57/0xb30 drivers/net/netdevsim/dev.c:834
locks held by getty/5400: 2, last CPU#1:
#0: ffff88803895f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900032532e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360 drivers/tty/n_tty.c:2211
locks held by syz.9.27/6954: 4, on CPU#1:
#0: ffff88802c282478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff88802c282478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff8880697bb080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.1.29/6961: 4, last CPU#1:
#0: ffff888057226478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888057226478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88807e132c80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.0.28/6972: 4, last CPU#1:
#0: ffff888036296478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888036296478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff8880610a3480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.2.30/7264: 4, last CPU#0:
#0: ffff888035bae478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888035bae478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff888068ee9c80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.3.31/7547: 4, last CPU#1:
#0: ffff888024f8c478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888024f8c478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88807e467080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.4.32/7548: 4, last CPU#1:
#0: ffff888076aae478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888076aae478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88807162cc80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.5.33/7550: 4, last CPU#1:
#0: ffff8880796aa478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff8880796aa478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88806b853080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.6.34/7591: 4, last CPU#0:
#0: ffff888031ed8478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888031ed8478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff8880716bc480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.7.35/7729: 4, last CPU#1:
#0: ffff888079374478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888079374478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88806948dc80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.8.36/7746: 4, last CPU#0:
#0: ffff88803824c478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff88803824c478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88807822c080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.9.37/7757: 4, last CPU#1:
#0: ffff888028736478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888028736478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88803807dc80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.1.38/7758: 4, last CPU#0:
#0: ffff888079e50478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888079e50478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88807e131480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.0.39/7887: 4, last CPU#0:
#0: ffff888027906478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888027906478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88807e044c80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.2.40/7905: 4, last CPU#1:
#0: ffff88805721e478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff88805721e478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff888024383880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.3.41/7906: 4, last CPU#1:
#0: ffff88805304e478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff88805304e478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88806ba5a080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.4.42/7907: 4, last CPU#0:
#0: ffff888050156478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888050156478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88806ba3f080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.5.43/8043: 4, last CPU#1:
#0: ffff888056c4c478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888056c4c478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88804b5aa080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.6.44/8080: 4, last CPU#1:
#0: ffff88805206e478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff88805206e478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88804b086880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.8.46/8081: 4, last CPU#0:
#0: ffff888076746478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888076746478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88805a620080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.7.45/8082: 4, last CPU#0:
#0: ffff88805b63e478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff88805b63e478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88804b988480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by syz.9.47/8185: 4, last CPU#0:
#0: ffff888077da2478 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2769 [inline]
#0: ffff888077da2478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:668
#1: ffff88803499dc80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540 fs/kernfs/file.c:336
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff88802a157e18 (kn->active#59){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540 fs/kernfs/file.c:337
#3: ffff8880227a00d0 (&shost->scan_mutex){+.+.}-{4:4}, at: scsi_scan_host_selected+0x19c/0x6c0 drivers/scsi/scsi_scan.c:2024
locks held by modprobe/8207: 1, on CPU#0:
#0: ffff888076472800 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:590 [inline]
#0: ffff888076472800 (&mm->mmap_lock){++++}-{4:4}, at: do_mprotect_pkey+0x25c/0xd40 mm/mprotect.c:875
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 35 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
nmi_cpu_backtrace+0x274/0x2d0 lib/nmi_backtrace.c:123
nmi_trigger_cpumask_backtrace+0x17d/0x390 lib/nmi_backtrace.c:66
trigger_all_cpu_backtrace include/linux/nmi.h:164 [inline]
__sys_info lib/sys_info.c:157 [inline]
sys_info+0x13a/0x180 lib/sys_info.c:165
check_hung_uninterruptible_tasks kernel/hung_task.c:377 [inline]
watchdog+0x1073/0x10f0 kernel/hung_task.c:598
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 55 Comm: kworker/0:2 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: events psi_avgs_work
RIP: 0010:lookup_chain_cache kernel/locking/lockdep.c:3845 [inline]
RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:3865 [inline]
RIP: 0010:validate_chain kernel/locking/lockdep.c:3920 [inline]
RIP: 0010:__lock_acquire+0xbc9/0x2de0 kernel/locking/lockdep.c:5288
Code: 73 40 10 48 c7 c6 69 78 b5 8e 67 48 0f b9 3a 90 48 bb eb 83 b5 80 46 86 c8 61 48 0f af dd 48 c1 eb 2d 48 8b 04 dd 20 ea d3 95 <48> 85 c0 74 1c 48 83 c0 f8 74 16 48 8b 48 18 48 39 e9 0f 84 c5 01
RSP: 0018:ffffc9000120f8e8 EFLAGS: 00000803
RAX: ffffffff96182e18 RBX: 000000000004c9b5 RCX: 0000000000040000
RDX: 000000000013dd7d RSI: 00000000369435cc RDI: ffff88801cfc9f40
RBP: a3e9b1a0eb6508e9 R08: ffffffff8190c1c6 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff23c3c98 R12: 0000000000000000
R13: ffff88801cfcaaf0 R14: ffff88801cfcaaf0 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8881230fd000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f643bd07c50 CR3: 00000000328e6000 CR4: 00000000003526f0
Call Trace:
lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942
__raw_spin_lock_irq include/linux/spinlock_api_smp.h:165 [inline]
_raw_spin_lock_irq+0x3d/0x50 kernel/locking/spinlock.c:189
process_one_work kernel/workqueue.c:3546 [inline]
process_scheduled_works+0xea6/0x1630 kernel/workqueue.c:3594
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3675
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245