INFO: task syz.6.1011:10259 blocked for more than 143 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.1011      state:D stack:25096 pid:10259 tgid:10258 ppid:9252   task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17db/0x58f0
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_read_slowpath+0x6ba/0x920
 down_read+0x9c/0x330
 nilfs_transaction_begin+0x364/0x710
 nilfs_write_begin+0x71/0x120
 generic_perform_write+0x2d5/0x8f0
 generic_file_write_iter+0xae/0x330
 vfs_write+0x612/0xba0
 __x64_sys_pwrite64+0x196/0x220
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0f8e99e159
RSP: 002b:00007f0f8f7bf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f0f8ec25fa0 RCX: 00007f0f8e99e159
RDX: 00000000200000c1 RSI: 00002000000000c0 RDI: 0000000000000048
RBP: 00007f0f8ea35024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000404043000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0f8ec26038 R14: 00007f0f8ec25fa0 R15: 00007ffeb0e74648
 </TASK>

Showing all locks held in the system:
locks held by pool_workqueue_/3: 1, on CPU#0:
 #0: ffffffff8ed62aa8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x38d/0x770
locks held by pr/ttyS0/16: 1, last CPU#0:
 #0: ffffffff8ec362b8 (console_srcu){....}-{0:0}, at: console_srcu_read_lock+0x30/0x60
locks held by kworker/1:1/34: 2, last CPU#1:
 #0: ffff888100069d40 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90000a97c40 ((work_completion)(&(&gc_work->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by khungtaskd/36: 1, last CPU#0:
 #0: ffffffff8ed5c6e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by dhcpcd/5338: 1, on CPU#0:
 #0: ffffffff90250dc0 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xc10/0x1c30
locks held by getty/5420: 2, on CPU#1:
 #0: ffff88817a9cd0a0 (&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/0x1360
locks held by kworker/u9:11/6697: 3, on CPU#0:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000638fc40 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffffff90250dc0 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
locks held by kworker/u8:4/7834: 4, last CPU#1:
 #0: ffff8881012d5940 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc900034dfc40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffffff90242548 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810
 #3: ffff88801e5a7018 (key#16){+...}-{3:3}, at: batadv_tt_local_table_free+0xfd/0x3d0
locks held by syz.6.1011/10259: 4, on CPU#0:
 #0: ffff888114a00460 (sb_writers#22){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881bc9726f0 (&sb->s_type->i_mutex_key#30){+.+.}-{4:4}, at: generic_file_write_iter+0x82/0x330
 #2: ffff888114a00650 (sb_internal#4){.+.+}-{0:0}, at: nilfs_write_begin+0x71/0x120
 #3: ffff88810d757288 (&nilfs->ns_segctor_sem){++++}-{4:4}, at: nilfs_transaction_begin+0x364/0x710
locks held by syz.6.1011/10265: 3, last CPU#0:
 #0: ffff888114a00460 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write_file+0x60/0x200
 #1: ffff88810d757288 (&nilfs->ns_segctor_sem){++++}-{4:4}, at: nilfs_transaction_lock+0x24a/0x4b0
 #2: ffffffff8ec362b8 (console_srcu){....}-{0:0}, at: console_srcu_read_lock+0x30/0x60
locks held by syz-executor/10487: 5, on CPU#0:
 #0: ffff888113f38ea0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x22a/0x5b0
 #1: ffff888113f380b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x61f/0x10c0
 #2: ffffffff903d7580 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0x99/0x260
 #3: ffff88810e2602f8 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x9f/0x550
 #4: ffffffff8ed62aa8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x38d/0x770
locks held by syz.4.1077/10568: 1, on CPU#0:
 #0: ffffffff90250dc0 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0
locks held by syz-executor/10585: 2, on CPU#0:
 #0: ffffffff90242548 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x524/0x780
 #1: ffffffff90250dc0 (rtnl_mutex){+.+.}-{4:4}, at: register_nexthop_notifier+0x8b/0x290
locks held by syz-executor/10595: 1, on CPU#0:
 #0: ffffffff90250dc0 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xc10/0x1c30
locks held by syz.1.1089/10637: 1, on CPU#0:
 #0: ffff88802ad24378 (&mm->mmap_lock){++++}-{4:4}, at: vm_mmap_pgoff+0x1dd/0x4e0
locks held by syz.1.1089/10638: 2, on CPU#0:
 #0: ffff88802ad24378 (&mm->mmap_lock){++++}-{4:4}, at: madvise_lock+0x152/0x2e0
 #1: ffffffff8ee46200 (lock#5){+.+.}-{4:4}, at: __lru_add_drain_all+0xec/0x7a0

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 36 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+0x17d/0x390
 sys_info+0x135/0x170
 watchdog+0xfd7/0x1030
 kthread+0x38b/0x480
 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: 7834 Comm: kworker/u8:4 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: netns cleanup_net
RIP: 0010:__lock_acquire+0x1949/0x2e50
Code: 13 48 8d 3d 49 17 da 0e 48 c7 c6 2a fc 6d 8e 67 48 0f b9 3a 90 4d 8b 6f 10 48 8b 3c 24 4c 8b 74 24 10 48 8b 74 24 08 49 89 d8 <49> 8b 45 60 89 c3 83 e3 55 41 80 7f 2b 00 48 0f 44 d8 4c 09 c3 49
RSP: 0018:ffffc900034df040 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 00000000000003fd RCX: 0000000000000008
RDX: 0000000000000008 RSI: ffff8881103caac8 RDI: ffff8881103c9e00
RBP: ba0375172f9f06a0 R08: 00000000000003fd R09: 0000000000000020
R10: 0000000000000000 R11: ffffffff81a38c10 R12: 0000000000000116
R13: ffffffff944111a0 R14: ffff8881103caac8 R15: ffffffff972c05c8
FS:  0000000000000000(0000) GS:ffff8882a8cda000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd6ad030c39 CR3: 000000010daf0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_acquire+0x115/0x350
 seqcount_lockdep_reader_access+0x55/0x100
 ktime_get+0x45/0x220
 clockevents_program_event+0x290/0x630
 __hrtimer_rearm_deferred+0x36c/0x4b0
 irqentry_exit+0x8d3/0x910
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:lock_acquire+0x232/0x350
Code: ff ff ff e8 20 c9 40 0a f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 72 44 f1 11 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 cf cc 43 0a cc 48 8d 3d f7 30 da
RSP: 0018:ffffc900034df498 EFLAGS: 00000282
RAX: 0d029dca6a678e00 RBX: 0000000000000001 RCX: 8000000000000202
RDX: 00000000aba9b1a1 RSI: ffffffff8e6fc271 RDI: ffffffff8c6d9380
RBP: ffff8881103c9e00 R08: 0c00000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: ffffe8ffffc257e0 R12: ffffe8ffffc257e0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000246
 __kfree_rcu_sheaf+0xb8/0x6c0
 kvfree_call_rcu+0xa1/0x430
 batadv_tt_local_table_free+0x2b7/0x3d0
 batadv_tt_free+0x6e/0x960
 batadv_mesh_free+0x111/0x1d0
 batadv_meshif_free+0x15/0x20
 netdev_run_todo+0xe8b/0x1060
 default_device_exit_batch+0x923/0x9a0
 ops_undo_list+0x4b4/0x8d0
 cleanup_net+0x572/0x810
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
