INFO: task syz-executor:23387 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:22656 pid:23387 tgid:23387 ppid:1      task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x157d/0x50e0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c0/0x12d0
 new_device_store+0x13c/0x710
 kernfs_fop_write_iter+0x3a4/0x540
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0xf0/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3c8195d68e
RSP: 002b:00007ffc03b28e28 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000055558baa1500 RCX: 00007f3c8195d68e
RDX: 0000000000000003 RSI: 00007ffc03b28eb0 RDI: 0000000000000005
RBP: 00007f3c81a33716 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007ffc03b28eb0 R14: 00007f3c82744620 R15: 0000000000000003
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/0:0/9:
1 lock held by khungtaskd/35:
 #0: ffffffff8e356e40 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
3 locks held by kworker/u9:15/4245:
2 locks held by getty/5437:
 #0: ffff88816df1b0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000356b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x13a0
6 locks held by kworker/u8:5/7327:
 #0: ffff888100eef948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9bd/0x1470
 #1: ffffc9000a75fb80 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9bd/0x1470
 #2: ffffffff8f737610 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xfe/0x7b0
 #3: ffff8881b85f70e8 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x117/0x3f0
 #4: ffff88816d895250 (&devlink->lock_key#8){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x129/0x3f0
 #5: ffffffff8e35d600 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530
2 locks held by kworker/0:7/15681:
3 locks held by kworker/0:8/15779:
2 locks held by kworker/0:10/15783:
4 locks held by kworker/0:11/15784:
3 locks held by kworker/0:5/23012:
4 locks held by syz-executor/23387:
 #0: ffff888111600420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881b157c088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88810ab46a58 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8efdf708 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: new_device_store+0x13c/0x710
7 locks held by syz-executor/23450:
 #0: ffff888111600420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff888170001088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88810ab46b48 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8efdf708 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
 #4: ffff8881a0cac0e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xb9/0x820
 #5: ffff8881a0caf250 (&devlink->lock_key#11){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x160
 #6: ffffffff8e35d600 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530
4 locks held by syz-executor/23473:
 #0: ffff888111600420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88819b7d3c88 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88810ab46b48 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8efdf708 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/23494:
 #0: ffff888111600420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88819b99fc88 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88810ab46b48 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8efdf708 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/23516:
 #0: ffff888111600420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88819c06d488 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88810ab46b48 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8efdf708 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
3 locks held by kworker/u11:4/23543:
 #0: ffff88816df71948 ((wq_completion)hci2){+.+.}-{0:0}, at: process_scheduled_works+0x9bd/0x1470
 #1: ffffc90003f87b80 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9bd/0x1470
 #2: ffff8881a8e00ec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1cb/0x3f0
4 locks held by syz-executor/23552:
 #0: ffff888111600420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881ac978888 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88810ab46b48 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8efdf708 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/23565:
 #0: ffff888111600420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88818803dc88 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88810ab46b48 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8efdf708 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 35 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x1a9/0x280
 nmi_cpu_backtrace+0x3a9/0x3e0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 sys_info+0x135/0x170
 watchdog+0xf54/0xfa0
 kthread+0x787/0x910
 ret_from_fork+0x5b0/0xb20
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 15779 Comm: kworker/0:8 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue:  0x0 (wg-kex-wg2)
RIP: 0010:asm_sysvec_apic_timer_interrupt+0x0/0x20
Code: 16 44 71 0a e9 61 06 00 00 90 f3 0f 1e fa 0f 1f 00 fc 6a ff e8 11 05 00 00 48 89 c4 48 89 e7 e8 26 43 71 0a e9 41 06 00 00 90 <f3> 0f 1e fa 0f 1f 00 fc 6a ff e8 f1 04 00 00 48 89 c4 48 89 e7 e8
RSP: 0018:ffffc90000007868 EFLAGS: 00000082
RAX: 1ffff11022092b80 RBX: ffff88816d31cb80 RCX: ffff88810b1057c0
RDX: 0000000000000100 RSI: 0000000000000001 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffff88810b1057c0 R09: 0000000000000004
R10: 0000000000000003 R11: ffffffff89dc6840 R12: ffff888116ac9500
R13: ffff888110495c00 R14: ffff8881b8258108 R15: ffff888116ac9558
FS:  0000000000000000(0000) GS:ffff88818e448000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f985c469ee6 CR3: 000000000e144000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
RIP: 0010:ip_rcv_finish_core+0x971/0x1c00
Code: e7 f7 4d 85 ed 0f 84 96 00 00 00 4c 89 e8 48 c1 e8 03 80 3c 28 00 74 08 4c 89 ef e8 e9 cb 4f f8 41 be 08 01 00 00 4d 03 75 00 <e8> ba e0 94 01 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8
RSP: 0018:ffffc90000007898 EFLAGS: 00000282
 ip_rcv_finish+0x14c/0x2f0
 NF_HOOK+0x336/0x3c0
 process_backlog+0xb52/0x1a10
 __napi_poll+0xaa/0x330
 net_rx_action+0x656/0xfd0
 handle_softirqs+0x275/0x850
 __irq_exit_rcu+0xd5/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:__schedule+0x1aa9/0x50e0
Code: e8 8c 6c 2d f6 4c 89 f7 e8 14 d7 20 f6 48 8b 5c 24 70 0f 1f 44 00 00 4c 89 f7 e8 22 ab 01 00 e8 4d 70 59 f6 fb 4c 8b 74 24 10 <e9> d7 fa ff ff 90 0f 0b 90 e9 96 f2 ff ff ba 09 00 01 00 e9 09 ec
RSP: 0018:ffffc90005f0f700 EFLAGS: 00000286
RAX: e383b0ac64207900 RBX: 1ffff92000be1f04 RCX: e383b0ac64207900
RDX: 0000000000000000 RSI: ffffffff8da4ef30 RDI: ffffffff8be55840
RBP: ffffc90005f0f910 R08: ffffffff8fc6a777 R09: 1ffffffff1f8d4ee
R10: dffffc0000000000 R11: fffffbfff1f8d4ef R12: dffffc0000000000
R13: ffff88810b1057c0 R14: ffff88810b1057c0 R15: 1ffff110242076e6
 preempt_schedule_irq+0xbf/0x160
 irqentry_exit+0x58c/0x610
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:format_worker_id+0x45/0x260
Code: 00 00 fc ff df e8 db 9f 37 00 4d 8d af a0 00 00 00 4c 89 e8 48 c1 e8 03 80 3c 28 00 74 08 4c 89 ef e8 af 12 a0 00 4d 8b 6d 00 <4d> 85 ed 74 2b e8 b1 9f 37 00 49 81 c5 78 01 00 00 4c 89 f7 48 89
RSP: 0018:ffffc90005f0fae8 EFLAGS: 00000246
RAX: 1ffff11022192934 RBX: 000000000000002a RCX: ffff88810b1057c0
RDX: 0000000000000000 RSI: 000000000000002a RDI: ffffc90005f0fb80
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: ffffc90005f0fb80 R11: fffff52000be1f75 R12: ffff88812103a080
R13: 0000000000000000 R14: ffffc90005f0fb80 R15: ffff888110c94900
 create_worker+0x2a8/0x7b0
 worker_thread+0x556/0x1460
 kthread+0x787/0x910
 ret_from_fork+0x5b0/0xb20
 ret_from_fork_asm+0x1a/0x30
 </TASK>
