INFO: task kworker/u8:4:66 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:4 state:D stack:21672 pid:66 tgid:66 ppid:2 task_flags:0x4208060 flags:0x00080000
Workqueue: writeback wb_workfn (flush-btrfs-9)
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5510 [inline]
__schedule+0x16dc/0x5500 kernel/sched/core.c:7234
__schedule_loop kernel/sched/core.c:7311 [inline]
schedule+0x164/0x2b0 kernel/sched/core.c:7326
wait_extent_bit fs/btrfs/extent-io-tree.c:905 [inline]
btrfs_lock_extent_bits+0x59c/0x700 fs/btrfs/extent-io-tree.c:2008
btrfs_lock_extent fs/btrfs/extent-io-tree.h:152 [inline]
find_lock_delalloc_range+0x566/0x8f0 fs/btrfs/extent_io.c:448
writepage_delalloc+0x729/0x1ba0 fs/btrfs/extent_io.c:1506
extent_writepage fs/btrfs/extent_io.c:1930 [inline]
extent_write_cache_pages fs/btrfs/extent_io.c:2593 [inline]
btrfs_writepages+0x1667/0x28b0 fs/btrfs/extent_io.c:2725
do_writepages+0x338/0x560 mm/page-writeback.c:2571
__writeback_single_inode+0x12e/0xf90 fs/fs-writeback.c:1787
writeback_sb_inodes+0x9db/0x1ab0 fs/fs-writeback.c:2079
wb_writeback+0x41c/0xad0 fs/fs-writeback.c:2264
wb_do_writeback fs/fs-writeback.c:2432 [inline]
wb_workfn+0x437/0x10f0 fs/fs-writeback.c:2477
process_one_work kernel/workqueue.c:3322 [inline]
process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3486
kthread+0x388/0x470 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
</TASK>
INFO: task syz.3.78:6246 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.78 state:D stack:22504 pid:6246 tgid:6245 ppid:5612 task_flags:0x400140 flags:0x00080002
Call Trac[ 304.355518][ T38] Call Trace:
<TASK>
context_switch kernel/sched/core.c:5510 [inline]
__schedule+0x16dc/0x5500 kernel/sched/core.c:7234
__schedule_loop kernel/sched/core.c:7311 [inline]
rt_mutex_schedule+0x76/0xf0 kernel/sched/core.c:7607
rt_mutex_slowlock_block kernel/locking/rtmutex.c:1670 [inline]
__rt_mutex_slowlock kernel/locking/rtmutex.c:1747 [inline]
__rt_mutex_slowlock_locked+0x1f84/0x25b0 kernel/locking/rtmutex.c:1787
rt_mutex_slowlock+0xbd/0x170 kernel/locking/rtmutex.c:1827
__rt_mutex_lock kernel/locking/rtmutex.c:1842 [inline]
rwbase_write_lock+0x14c/0x720 kernel/locking/rwbase_rt.c:251
inode_lock include/linux/fs.h:1024 [inline]
process_measurement+0x449/0x1c20 security/integrity/ima/ima_main.c:300
ima_file_check+0xe1/0x130 security/integrity/ima/ima_main.c:685
security_file_post_open+0xb3/0x260 security/security.c:2755
do_open fs/namei.c:4702 [inline]
path_openat+0x2eac/0x3850 fs/namei.c:4863
do_file_open+0x23e/0x4a0 fs/namei.c:4892
do_sys_openat2+0x115/0x200 fs/open.c:1368
do_sys_open fs/open.c:1374 [inline]
__do_sys_openat fs/open.c:1390 [inline]
__se_sys_openat fs/open.c:1385 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1385
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0ff846df99
RSP: 002b:00007f0ff66c6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f0ff86f5fa0 RCX: 00007f0ff846df99
RDX: 0000000000101042 RSI: 0000200000000040 RDI: ffffffffffffff9c
RBP: 00007f0ff8504ec4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000040 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0ff86f6038 R14: 00007f0ff86f5fa0 R15: 00007ffdb86281c8
</TASK>
INFO: task syz.3.78:6278 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.78 state:D stack:23720 pid:6278 tgid:6245 ppid:5612 task_flags:0x400040 flags:0x00080002
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5510 [inline]
__schedule+0x16dc/0x5500 kernel/sched/core.c:7234
__schedule_loop kernel/sched/core.c:7311 [inline]
schedule+0x164/0x2b0 kernel/sched/core.c:7326
wait_current_trans+0x396/0x590 fs/btrfs/transaction.c:537
start_transaction+0x6fc/0x1880 fs/btrfs/transaction.c:717
clone_copy_inline_extent fs/btrfs/reflink.c:353 [inline]
btrfs_clone+0x1307/0x2270 fs/btrfs/reflink.c:585
btrfs_clone_files+0x262/0x3b0 fs/btrfs/reflink.c:806
btrfs_remap_file_range+0x687/0x1370 fs/btrfs/reflink.c:959
vfs_copy_file_range+0xd97/0x1370 fs/read_write.c:1599
__do_sys_copy_file_range fs/read_write.c:1682 [inline]
__se_sys_copy_file_range+0x2fb/0x480 fs/read_write.c:1649
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0ff846df99
RSP: 002b:00007f0ff66a5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000146
RAX: ffffffffffffffda RBX: 00007f0ff86f6090 RCX: 00007f0ff846df99
RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f0ff8504ec4 R08: 0000000000000863 R09: 0000000000000000
R10: 00002000000000c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0ff86f6128 R14: 00007f0ff86f6090 R15: 00007ffdb86281c8
</TASK>
INFO: task syz.3.78:6282 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.78 state:D stack:25672 pid:6282 tgid:6245 ppid:5612 task_flags:0x400040 flags:0x00080002
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5510 [inline]
__schedule+0x16dc/0x5500 kernel/sched/core.c:7234
__schedule_loop kernel/sched/core.c:7311 [inline]
rt_mutex_schedule+0x76/0xf0 kernel/sched/core.c:7607
rt_mutex_slowlock_block kernel/locking/rtmutex.c:1670 [inline]
__rt_mutex_slowlock kernel/locking/rtmutex.c:1747 [inline]
__rt_mutex_slowlock_locked+0x1f84/0x25b0 kernel/locking/rtmutex.c:1787
rt_mutex_slowlock+0xbd/0x170 kernel/locking/rtmutex.c:1827
__rt_mutex_lock kernel/locking/rtmutex.c:1842 [inline]
rwbase_write_lock+0x14c/0x720 kernel/locking/rwbase_rt.c:251
inode_lock include/linux/fs.h:1024 [inline]
process_measurement+0x449/0x1c20 security/integrity/ima/ima_main.c:300
ima_file_check+0xe1/0x130 security/integrity/ima/ima_main.c:685
security_file_post_open+0xb3/0x260 security/security.c:2755
do_open fs/namei.c:4702 [inline]
path_openat+0x2eac/0x3850 fs/namei.c:4863
do_file_open+0x23e/0x4a0 fs/namei.c:4892
do_sys_openat2+0x115/0x200 fs/open.c:1368
do_sys_open fs/open.c:1374 [inline]
__do_sys_openat fs/open.c:1390 [inline]
__se_sys_openat fs/open.c:1385 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1385
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0ff846df99
RSP: 002b:00007f0ff6261028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f0ff86f6270 RCX: 00007f0ff846df99
RDX: 0000000000000042 RSI: 0000200000000080 RDI: ffffffffffffff9c
RBP: 00007f0ff8504ec4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0ff86f6308 R14: 00007f0ff86f6270 R15: 00007ffdb86281c8
</TASK>
INFO: task syz.4.76:6276 blocked for more than 143 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.76 state:D stack:24144 pid:6276 tgid:6247 ppid:5601 task_flags:0x400140 flags:0x00080002
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5510 [inline]
__schedule+0x16dc/0x5500 kernel/sched/core.c:7234
__schedule_loop kernel/sched/core.c:7311 [inline]
schedule+0x164/0x2b0 kernel/sched/core.c:7326
wb_wait_for_completion+0x3b2/0x700 fs/fs-writeback.c:227
__writeback_inodes_sb_nr+0x246/0x2e0 fs/fs-writeback.c:2933
try_to_writeback_inodes_sb+0x9a/0xc0 fs/fs-writeback.c:2981
btrfs_start_delalloc_flush fs/btrfs/transaction.c:2183 [inline]
btrfs_commit_transaction+0x83a/0x30b0 fs/btrfs/transaction.c:2374
__iterate_supers+0x137/0x240 fs/super.c:867
ksys_sync fs/sync.c:104 [inline]
__ia32_sys_sync+0xbe/0x120 fs/sync.c:111
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb56e5bdf99
RSP: 002b:00007fb56c7f5028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007fb56e846090 RCX: 00007fb56e5bdf99
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fb56e846090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb56e846128 R14: 00007fb56e846090 R15: 00007ffd764c6318
</TASK>
Showing all locks held in the system:
7 locks held by kworker/u8:0/12:
#0: ffff88801aea0938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
#0: ffff88801aea0938 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
#1: ffffc90000117c40 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
#1: ffffc90000117c40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
#2: ffffffff8f5a33c0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810 net/core/net_namespace.c:673
#3: ffff888034ae3160 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1102 [inline]
#3: ffff888034ae3160 (&dev->mutex){....}-{4:4}, at: devl_dev_lock net/devlink/devl_internal.h:124 [inline]
#3: ffff888034ae3160 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x129/0x420 net/devlink/core.c:557
#4: ffff888029bf6310 (&devlink->lock_key#14){+.+.}-{4:4}, at: devl_lock net/devlink/core.c:292 [inline]
#4: ffff888029bf6310 (&devlink->lock_key#14){+.+.}-{4:4}, at: devl_dev_lock net/devlink/devl_internal.h:125 [inline]
#4: ffff888029bf6310 (&devlink->lock_key#14){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x142/0x420 net/devlink/core.c:557
#5: ffffffff8f5b1f78 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0x173/0x800 drivers/net/netdevsim/netdev.c:1191
#6: ffff88803b671060 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2847 [inline]
#6: ffff88803b671060 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: unregister_netdevice_many_notify+0x5bb/0x2110 net/core/dev.c:12406
3 locks held by kworker/u8:1/13:
#0: ffff88813ff5c138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
#0: ffff88813ff5c138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
#1: ffffc90000127c40 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
#1: ffffc90000127c40 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
#2: ffffffff8f5b1f78 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:313
4 locks held by pr/legacy/17:
1 lock held by khungtaskd/38:
#0: ffffffff8e1c3000 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
#0: ffffffff8e1c3000 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline]
#0: ffffffff8e1c3000 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
3 locks held by kworker/u8:3/56:
#0: ffff888032a30138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
#0: ffff888032a30138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
#1: ffffc9000122fc40 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
#1: ffffc9000122fc40 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
#2: ffffffff8f5b1f78 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#2: ffffffff8f5b1f78 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_dad_work+0x123/0x16e0 net/ipv6/addrconf.c:4229
2 locks held by kworker/u8:4/66:
#0: ffff88801eea5938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
#0: ffff88801eea5938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
#1: ffffc9000152fc40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
#1: ffffc9000152fc40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
2 locks held by dhcpcd/5257:
#0: ffffffff8f592db8 (vlan_ioctl_mutex){+.+.}-{4:4}, at: sock_ioctl+0x5ee/0x7f0 net/socket.c:1383
#1: ffffffff8f5b1f78 (rtnl_mutex){+.+.}-{4:4}, at: vlan_ioctl_handler+0xf0/0x630 net/8021q/vlan.c:519
2 locks held by getty/5351:
#0: ffff8880361dd0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90003cbe2e0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x460/0x1360 drivers/tty/n_tty.c:2211
1 lock held by syz.3.78/6246:
#0: ffff8880611bec78 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1024 [inline]
#0: ffff8880611bec78 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: process_measurement+0x449/0x1c20 security/integrity/ima/ima_main.c:300
4 locks held by syz.3.78/6278:
#0: ffff888034ea4500 (sb_writers#19){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2733 [inline]
#0: ffff888034ea4500 (sb_writers#19){.+.+}-{0:0}, at: vfs_copy_file_range+0x9a5/0x1370 fs/read_write.c:1587
#1: ffff8880611bec78 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1024 [inline]
#1: ffff8880611bec78 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: btrfs_inode_lock+0x51/0xe0 fs/btrfs/inode.c:366
#2: ffff8880611bead8 (&ei->i_mmap_lock){+.+.}-{4:4}, at: btrfs_inode_lock+0xcb/0xe0 fs/btrfs/inode.c:369
#3: ffff888034ea47f0 (sb_internal#4){.+.+}-{0:0}, at: clone_copy_inline_extent fs/btrfs/reflink.c:353 [inline]
#3: ffff888034ea47f0 (sb_internal#4){.+.+}-{0:0}, at: btrfs_clone+0x1307/0x2270 fs/btrfs/reflink.c:585
1 lock held by syz.3.78/6282:
#0: ffff8880611bec78 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1024 [inline]
#0: ffff8880611bec78 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: process_measurement+0x449/0x1c20 security/integrity/ima/ima_main.c:300
4 locks held by syz.4.76/6276:
#0: ffff888034ea40d0 (&type->s_umount_key#88){++++}-{4:4}, at: __super_lock fs/super.c:60 [inline]
#0: ffff888034ea40d0 (&type->s_umount_key#88){++++}-{4:4}, at: super_lock+0x2d6/0x3d0 fs/super.c:122
#1: ffff88805f123190 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x5f7/0xc60 fs/btrfs/transaction.c:299
#2: ffff88805f1231b8 (btrfs_trans_num_extwriters){++++}-{0:0}, at: join_transaction+0x5f7/0xc60 fs/btrfs/transaction.c:299
#3: ffff888034ea40d0 (&type->s_umount_key#88){++++}-{4:4}, at: try_to_writeback_inodes_sb+0x22/0xc0 fs/fs-writeback.c:2978
1 lock held by btrfs-transacti/6266:
#0: ffff88805f120d98 (&fs_info->transaction_kthread_mutex){+.+.}-{4:4}, at: transaction_kthread+0xec/0x460 fs/btrfs/disk-io.c:1545
2 locks held by syz.8.134/7065:
#0: ffff888034ea40d0 (&type->s_umount_key#88){++++}-{4:4}, at: __super_lock fs/super.c:60 [inline]
#0: ffff888034ea40d0 (&type->s_umount_key#88){++++}-{4:4}, at: super_lock+0x2d6/0x3d0 fs/super.c:122
#1: ffff8880338da920 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:396 [inline]
#1: ffff8880338da920 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x20f/0xc30 fs/fs-writeback.c:3028
1 lock held by syz-executor/7557:
#0: ffffffff8f5b1f78 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#0: ffffffff8f5b1f78 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x464/0x19e0 net/ipv4/devinet.c:978
4 locks held by syz-executor/7870:
#0: ffff888035846500 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2733 [inline]
#0: ffff888035846500 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x231/0xbb0 fs/read_write.c:683
#1: ffff888063b29078 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d9/0x540 fs/kernfs/file.c:336
#2: ffff8880297bca58 (kn->active#53){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff8880297bca58 (kn->active#53){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22c/0x540 fs/kernfs/file.c:337
#3: ffffffff8ee26e98 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: new_device_store+0x13c/0x710 drivers/net/netdevsim/bus.c:184
5 locks held by syz-executor/7939:
#0: ffff888035846500 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2733 [inline]
#0: ffff888035846500 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x231/0xbb0 fs/read_write.c:683
#1: ffff888071cc9078 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d9/0x540 fs/kernfs/file.c:336
#2: ffff8880297bc968 (kn->active#52){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
#2: ffff8880297bc968 (kn->active#52){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22c/0x540 fs/kernfs/file.c:337
#3: ffffffff8ee26e98 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370 drivers/net/netdevsim/bus.c:234
#4: ffff888034ae3160 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1102 [inline]
#4: ffff888034ae3160 (&dev->mutex){....}-{4:4}, at: device_del+0xa9/0x8f0 drivers/base/core.c:3923
5 locks held by syz.1.235/8143:
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 38 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT_{RT,(full)}
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
nmi_cpu_backtrace+0x274/0x2d0 lib/nmi_backtrace.c:122
nmi_trigger_cpumask_backtrace+0x17a/0x380 lib/nmi_backtrace.c:65
trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
__sys_info lib/sys_info.c:157 [inline]
sys_info+0x135/0x170 lib/sys_info.c:165
check_hung_uninterruptible_tasks kernel/hung_task.c:353 [inline]
watchdog+0xfd7/0x1030 kernel/hung_task.c:561
kthread+0x388/0x470 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
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 17 Comm: pr/legacy Not tainted syzkaller #0 PREEMPT_{RT,(full)}
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:rdtsc_ordered arch/x86/include/asm/tsc.h:57 [inline]
RIP: 0010:delay_tsc+0x71/0xc0 arch/x86/lib/delay.c:72
Code: 00 00 e8 a2 da 51 f6 65 8b 05 fb 96 5b 07 85 c0 74 1c f3 90 bf 01 00 00 00 e8 eb d8 51 f6 e8 d6 78 01 00 39 c5 75 0e 0f 01 f9 <66> 90 eb bd e8 a6 b5 f0 f5 eb dd 4c 29 fb e8 bc 78 01 00 89 c5 0f
RSP: 0018:ffffc90000167a28 EFLAGS: 00000246
RAX: 0000000080c9a73a RBX: 0000000000000899 RCX: 0000000000000001
RDX: 00000000000000a1 RSI: ffffffff8bca7860 RDI: ffffffff8bca7820
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffffff8b4258e0 R12: 1ffffffff33c95fa
R13: 00000000ffffffff R14: 000000a180c99e38 R15: 0000000000000884
FS: 0000000000000000(0000) GS:ffff888125d41000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c34c514 CR3: 000000003223e000 CR4: 00000000003526f0
Call Trace:
<TASK>
udelay include/asm-generic/delay.h:62 [inline]
wait_for_lsr+0x14d/0x300 drivers/tty/serial/8250/8250_port.c:1988
serial8250_fifo_wait_for_lsr_thre drivers/tty/serial/8250/8250_port.c:3235 [inline]
serial8250_console_fifo_write drivers/tty/serial/8250/8250_port.c:3300 [inline]
serial8250_console_write+0x113a/0x1b40 drivers/tty/serial/8250/8250_port.c:3385
console_emit_next_record kernel/printk/printk.c:3163 [inline]
console_flush_one_record+0x642/0xb50 kernel/printk/printk.c:3269
legacy_kthread_func+0x1b6/0x250 kernel/printk/printk.c:3712
kthread+0x388/0x470 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
</TASK>