INFO: task segctord:12793 blocked for more than 143 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:segctord        state:D stack:28680 pid:12793 tgid:12793 ppid:2      task_flags:0x200040 flags:0x00080000
Call Trace:
 <TASK>
 __schedule+0x1840/0x57a0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x87d/0x1080
 down_write+0x1bc/0x200
 nilfs_transaction_lock+0x24a/0x4b0
 nilfs_segctor_thread+0x6be/0xdb0
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/35:
 #0: ffffffff8e95cc00 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5445:
 #0: ffff888110cca0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034762e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1380
3 locks held by syz.9.15991/12789:
1 lock held by segctord/12793:
 #0: ffff88801d011288 (&nilfs->ns_segctor_sem){++++}-{4:4}, at: nilfs_transaction_lock+0x24a/0x4b0
8 locks held by kworker/u8:3/21696:
 #0: ffff8881012b5940 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #1: ffffc90005b77c40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #2: ffffffff8fdb79e8 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810
 #3: ffff8881b95b0128 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x129/0x420
 #4: ffff8881b9187258 (&devlink->lock_key#41){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x142/0x420
 #5: ffffffff8fdc66c0 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0x16b/0x800
 #6: ffff8881ad464dc8 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: unregister_netdevice_many_notify+0x5bb/0x2370
 #7: ffffffff8e962f28 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2d0/0x770
1 lock held by syz.9.20827/31182:
 #0: ffffffff8fdc66c0 (rtnl_mutex){+.+.}-{4:4}, at: rtnetlink_rcv_msg+0x767/0xc00

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 35 Comm: khungtaskd Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
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+0xe8/0x150
 nmi_cpu_backtrace+0x274/0x2d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 sys_info+0x135/0x170
 watchdog+0xfd7/0x1030
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 625 Comm: kworker/u10:1 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:rb_erase+0x95d/0xe20
Code: 00 74 08 4c 89 f7 e8 52 80 91 f6 4d 8b 2e 41 f6 c5 01 0f 84 77 02 00 00 49 83 e5 fc 0f 84 b2 04 00 00 4c 89 f3 e9 05 fb ff ff <41> 80 3c 2e 00 74 08 48 89 df e8 14 81 91 f6 4c 8b 74 24 08 4c 89
RSP: 0018:ffffc90000a08d48 EFLAGS: 00000046
RAX: 1ffff11021471482 RBX: ffff8881bd117bf0 RCX: dffffc0000000000
RDX: ffff88810a38a430 RSI: ffff88823c628598 RDI: ffff88810a38a418
RBP: dffffc0000000000 R08: ffffffff9a69e4ab R09: 1ffffffff34d3c95
R10: dffffc0000000000 R11: fffffbfff34d3c96 R12: ffff8881bd117be0
R13: ffff8881bd117be0 R14: 1ffff11037a22f7e R15: ffff88810a38a410
FS:  0000000000000000(0000) GS:ffff8882a92a4000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0f879cbff8 CR3: 000000000e74a000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 rb_erase_linked+0x116/0x170
 __remove_hrtimer+0xf7/0x3e0
 __hrtimer_run_queues+0x295/0xa10
 hrtimer_run_softirq+0x17a/0x240
 handle_softirqs+0x225/0x840
 __irq_exit_rcu+0xca/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:smp_call_function_many_cond+0x10b0/0x14b0
Code: c0 75 73 41 8b 1e 89 de 83 e6 01 31 ff e8 f8 02 0c 00 83 e3 01 48 bb 00 00 00 00 00 fc ff df 75 07 e8 a4 fe 0b 00 eb 37 f3 90 <41> 0f b6 04 1c 84 c0 75 10 41 f7 06 01 00 00 00 74 1e e8 89 fe 0b
RSP: 0018:ffffc90004dff720 EFLAGS: 00000293
RAX: ffffffff81b95447 RBX: dffffc0000000000 RCX: ffff8881bedd1dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004dff860 R08: ffffffff902fe4f7 R09: 1ffffffff205fc9e
R10: dffffc0000000000 R11: fffffbfff205fc9f R12: 1ffff11024208601
R13: ffff88823c63c4c8 R14: ffff888121043008 R15: 0000000000000000
 on_each_cpu_cond_mask+0x3f/0x80
 smp_text_poke_batch_finish+0xb27/0x1110
 arch_jump_label_transform_apply+0x1c/0x30
 static_key_enable_cpuslocked+0x128/0x240
 static_key_enable+0x1a/0x20
 toggle_allocation_gate+0xab/0x290
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
