INFO: task syz-executor.2:12123 blocked for more than 143 seconds. Not tainted 5.7.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D28160 12123 7155 0x80004006 Call Trace: context_switch kernel/sched/core.c:3430 [inline] __schedule+0x8f3/0x1fc0 kernel/sched/core.c:4156 schedule+0xd0/0x2a0 kernel/sched/core.c:4231 rwsem_down_write_slowpath+0x706/0xf90 kernel/locking/rwsem.c:1235 __down_write kernel/locking/rwsem.c:1389 [inline] down_write+0x137/0x150 kernel/locking/rwsem.c:1532 unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1844 bcm_release+0x8b/0x660 net/can/bcm.c:1474 __sock_release+0xcd/0x280 net/socket.c:605 sock_close+0x18/0x20 net/socket.c:1278 __fput+0x33e/0x880 fs/file_table.c:281 task_work_run+0xf4/0x1b0 kernel/task_work.c:123 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xb3f/0x2de0 kernel/exit.c:806 do_group_exit+0x125/0x340 kernel/exit.c:904 get_signal+0x47b/0x2510 kernel/signal.c:2739 do_signal+0x81/0x2240 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x26c/0x360 arch/x86/entry/common.c:161 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_64+0x6b1/0x7d0 arch/x86/entry/common.c:305 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca59 Code: Bad RIP value. RSP: 002b:00007f6bf8c80c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: 0000000000000004 RBX: 00000000005076a0 RCX: 000000000045ca59 RDX: 0000000000000002 RSI: 0000000000000002 RDI: 000000000000001d RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000b93 R14: 00000000004cdf19 R15: 00007f6bf8c816d4 Showing all locks held in the system: 1 lock held by khungtaskd/1149: #0: ffffffff899bdd80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5779 1 lock held by in:imklog/6608: #0: ffff88809711b870 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:826 3 locks held by kworker/u4:2/26826: #0: ffff88821b048138 ((wq_completion)netns){+.+.}-{0:0}, at: __write_once_size include/linux/compiler.h:279 [inline] #0: ffff88821b048138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88821b048138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff88821b048138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff88821b048138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff88821b048138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff88821b048138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x844/0x16a0 kernel/workqueue.c:2239 #1: ffffc90016b17dc0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x878/0x16a0 kernel/workqueue.c:2243 #2: ffffffff8a58a6f0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xa50 net/core/net_namespace.c:565 2 locks held by syz-executor.2/12123: #0: ffff88804b7ef210 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:799 [inline] #0: ffff88804b7ef210 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:604 #1: ffffffff8a58a6f0 (pernet_ops_rwsem){++++}-{3:3}, at: unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1844 1 lock held by syz-executor.2/12248: #0: ffffffff8a58a6f0 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x270/0x590 net/core/net_namespace.c:478 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1149 Comm: khungtaskd Not tainted 5.7.0-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+0x188/0x20d lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1e6/0x221 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline] watchdog+0xa8c/0x1010 kernel/hung_task.c:289 kthread+0x388/0x470 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3965 Comm: systemd-journal Not tainted 5.7.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:estimation_timer+0x0/0x8d0 net/netfilter/ipvs/ip_vs_est.c:97 Code: e0 84 e5 88 e8 e0 d8 c5 fa e9 4c ca ff ff e8 97 5d dc fa 48 c7 c7 40 85 e5 88 e8 ca d8 c5 fa e9 71 ca ff ff cc cc cc cc cc cc <41> 57 41 56 41 55 41 54 55 53 48 89 fb 48 83 ec 78 48 89 7c 24 48 RSP: 0018:ffffc90000da8d10 EFLAGS: 00000246 RAX: ffffffff86977140 RBX: ffff888030c52918 RCX: ffffffff8163b832 RDX: 0000000000000000 RSI: ffffffff8163b3c2 RDI: ffff888030c52918 RBP: 0000000000000100 R08: ffff88809437a180 R09: ffffed1015ce7194 R10: ffff8880ae738c9b R11: ffffed1015ce7193 R12: ffffc90000da8d60 R13: 0000000000000000 R14: 1ffff920001b51a6 R15: ffff8880ae727580 FS: 00007fbd3c8a98c0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbd39f46020 CR3: 00000000947a0000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x623/0x1600 kernel/time/timer.c:1786 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x192/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x19e/0x600 arch/x86/kernel/apic/apic.c:1107 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:765 [inline] RIP: 0010:slab_alloc mm/slab.c:3313 [inline] RIP: 0010:__do_kmalloc mm/slab.c:3654 [inline] RIP: 0010:__kmalloc+0x2b2/0x7a0 mm/slab.c:3665 Code: 7e 0f 85 da fe ff ff e8 30 09 4e ff e9 d0 fe ff ff e8 62 e1 c6 ff 48 83 3d 6a 3f e2 07 00 0f 84 7c 03 00 00 48 8b 3c 24 57 9d <0f> 1f 44 00 00 e9 63 fe ff ff 31 d2 be 37 02 00 00 48 c7 c7 34 85 RSP: 0018:ffffc90001577b80 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 0000000000000c40 RCX: 1ffffffff15173ba RDX: 1ffff1101286f540 RSI: 0000000000000000 RDI: 0000000000000282 RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff8c347a37 R11: fffffbfff1868f46 R12: 0000000000000c40 R13: ffff8880aa002000 R14: ffff8880aa002000 R15: ffff8880920a2000 kmalloc include/linux/slab.h:560 [inline] tomoyo_realpath_from_path+0xc2/0x620 security/tomoyo/realpath.c:254 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x214/0x400 security/tomoyo/file.c:822 security_path_truncate+0xeb/0x150 security/security.c:1144 do_sys_ftruncate+0x3fc/0x570 fs/open.c:193 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7fbd3bb6cec7 Code: 73 01 c3 48 8b 0d d1 5f 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 4d 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 5f 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffccf4cbe38 EFLAGS: 00000202 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007ffccf4cbe70 RCX: 00007fbd3bb6cec7 RDX: 000055cd418d6e80 RSI: 0000000000800000 RDI: 0000000000000010 RBP: 00007ffccf4cbe68 R08: 0000000000000008 R09: 000055cd418d725c R10: 000055cd418d71e0 R11: 0000000000000202 R12: 000055cd418d71e0 R13: 00007ffccf4cbf68 R14: 000055cd3fff3958 R15: 0005a83edb6aa0cc