INFO: task syz-executor.2:26263 blocked for more than 143 seconds. Not tainted 5.7.0-rc3-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D23120 26263 7272 0x80004006 Call Trace: context_switch kernel/sched/core.c:3367 [inline] __schedule+0x805/0xc90 kernel/sched/core.c:4083 schedule+0x188/0x220 kernel/sched/core.c:4158 rwsem_down_write_slowpath+0x7d0/0xd60 kernel/locking/rwsem.c:1235 __down_write kernel/locking/rwsem.c:1389 [inline] down_write+0x125/0x130 kernel/locking/rwsem.c:1532 unregister_netdevice_notifier+0x30/0x380 net/core/dev.c:1776 inode_lock include/linux/fs.h:797 [inline] __sock_release net/socket.c:604 [inline] sock_close+0x94/0x260 net/socket.c:1283 bcm_release+0x77/0x800 net/can/bcm.c:1474 atomic64_set include/asm-generic/atomic-instrumented.h:854 [inline] atomic_long_set include/asm-generic/atomic-long.h:40 [inline] rwsem_set_owner kernel/locking/rwsem.c:176 [inline] __down_write kernel/locking/rwsem.c:1391 [inline] down_write+0xcd/0x130 kernel/locking/rwsem.c:1532 __sock_release net/socket.c:605 [inline] sock_close+0xd8/0x260 net/socket.c:1283 sock_mmap+0x90/0x90 net/socket.c:1278 __fput+0x2ed/0x750 fs/file_table.c:280 task_work_run+0x147/0x1d0 kernel/task_work.c:123 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x5ef/0x1f80 kernel/exit.c:796 debug_smp_processor_id+0x5/0x20 lib/smp_processor_id.c:56 atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] rcu_irq_exit+0x163/0x300 kernel/rcu/tree.c:705 do_group_exit+0x15e/0x2c0 kernel/exit.c:894 get_signal+0x13cf/0x1d60 kernel/signal.c:2739 check_preemption_disabled+0x40/0x240 lib/smp_processor_id.c:16 debug_smp_processor_id+0x5/0x20 lib/smp_processor_id.c:56 exit_to_usermode_loop arch/x86/entry/common.c:148 [inline] prepare_exit_to_usermode+0x280/0x600 arch/x86/entry/common.c:196 do_signal+0x33/0x610 arch/x86/kernel/signal.c:784 atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] rcu_irq_exit+0x163/0x300 kernel/rcu/tree.c:705 exit_to_usermode_loop arch/x86/entry/common.c:148 [inline] prepare_exit_to_usermode+0x280/0x600 arch/x86/entry/common.c:196 exit_to_usermode_loop arch/x86/entry/common.c:148 [inline] prepare_exit_to_usermode+0x280/0x600 arch/x86/entry/common.c:196 trace_event_raw_event_preemptirq_template+0x1d0/0x1d0 include/trace/events/preemptirq.h:14 exit_to_usermode_loop arch/x86/entry/common.c:148 [inline] prepare_exit_to_usermode+0x280/0x600 arch/x86/entry/common.c:196 exit_to_usermode_loop arch/x86/entry/common.c:161 [inline] prepare_exit_to_usermode+0x32a/0x600 arch/x86/entry/common.c:196 syscall_return_slowpath+0xf9/0x420 arch/x86/entry/common.c:278 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Showing all locks held in the system: 3 locks held by kworker/u4:0/7: #0: ffff8880a9bb4938 ((wq_completion)netns){+.+.}-{0:0}, at: spin_unlock_irq include/linux/spinlock.h:403 [inline] #0: ffff8880a9bb4938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x6df/0xfd0 kernel/workqueue.c:2241 #1: ffffc90000cdfd80 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x71e/0xfd0 kernel/workqueue.c:2243 #2: ffffffff895ac270 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xac/0xb80 net/core/net_namespace.c:565 1 lock held by khungtaskd/1134: #0: ffffffff892e8550 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 net/mptcp/pm_netlink.c:860 1 lock held by in:imklog/6629: #0: ffff888094f051b0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x25d/0x2f0 fs/file.c:826 3 locks held by kworker/u4:9/14355: #0: ffff8880ae837518 (&rq->lock){-.-.}-{2:2}, at: newidle_balance+0x664/0xb20 kernel/sched/fair.c:10512 #1: ffffffff892e8550 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 net/mptcp/pm_netlink.c:860 #2: ffff8880ae827458 (&base->lock){-.-.}-{2:2}, at: lock_timer_base kernel/time/timer.c:936 [inline] #2: ffff8880ae827458 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x1e3/0x15e0 kernel/time/timer.c:1009 2 locks held by syz-executor.2/26263: #0: ffff88802a1d6750 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:797 [inline] #0: ffff88802a1d6750 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: __sock_release net/socket.c:604 [inline] #0: ffff88802a1d6750 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: sock_close+0x94/0x260 net/socket.c:1283 #1: ffffffff895ac270 (pernet_ops_rwsem){++++}-{3:3}, at: unregister_netdevice_notifier+0x30/0x380 net/core/dev.c:1776 1 lock held by syz-executor.2/26358: #0: ffffffff895ac270 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x31d/0x540 net/core/net_namespace.c:478 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1134 Comm: khungtaskd Not tainted 5.7.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 nmi_cpu_backtrace+0x9f/0x180 lib/nmi_backtrace.c:101 arch_trigger_cpumask_backtrace+0x10/0x10 arch/x86/kernel/apic/hw_nmi.c:38 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline] watchdog+0xd2a/0xd40 kernel/hung_task.c:289 kthread+0x353/0x380 kernel/kthread.c:268 hungtask_pm_notify+0x50/0x50 kernel/hung_task.c:265 kthread_blkcg+0xd0/0xd0 kernel/kthread.c:1247 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 14355 Comm: kworker/u4:9 Not tainted 5.7.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_purge_orig RIP: 0010:lockdep_hardirqs_off+0x71/0x2f0 kernel/locking/lockdep.c:3721 Code: 08 00 00 48 89 d8 48 c1 e8 03 42 8a 04 20 84 c0 0f 85 83 01 00 00 83 3b 00 0f 85 fe 00 00 00 48 c7 c0 30 7d 55 8b 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 89 01 00 00 83 3d 0c 34 fd 09 00 75 3e 48 RSP: 0018:ffffc90006267b98 EFLAGS: 00000806 RAX: 1ffffffff16aafa6 RBX: ffff888012678944 RCX: ffff888012678080 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8146c327 RBP: ffff888012678944 R08: ffffffff8178fdd2 R09: ffffed10119c03d1 R10: ffffed10119c03d1 R11: 0000000000000000 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffffffff8146c327 R15: ffff888012678080 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fed18c5a000 CR3: 00000000938e1000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: spin_unlock_bh include/linux/spinlock.h:398 [inline] batadv_purge_orig_ref+0x1252/0x1320 net/batman-adv/originator.c:1366 __local_bh_enable_ip+0xd7/0x230 kernel/softirq.c:171 spin_unlock_bh include/linux/spinlock.h:398 [inline] batadv_purge_orig_ref+0x1252/0x1320 net/batman-adv/originator.c:1366 batadv_purge_orig+0x18/0x60 net/batman-adv/originator.c:1379 process_one_work+0x76e/0xfd0 kernel/workqueue.c:2268 worker_thread+0xa7f/0x1450 kernel/workqueue.c:2414 trace_event_raw_event_preemptirq_template+0x1d0/0x1d0 include/trace/events/preemptirq.h:14 kthread+0x353/0x380 kernel/kthread.c:268 rcu_lock_release+0x20/0x20 include/linux/rcupdate.h:213 kthread_blkcg+0xd0/0xd0 kernel/kthread.c:1247 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352