unregister_netdevice: waiting for lo to become free. Usage count = 1 unregister_netdevice: waiting for lo to become free. Usage count = 1 unregister_netdevice: waiting for lo to become free. Usage count = 1 unregister_netdevice: waiting for lo to become free. Usage count = 1 unregister_netdevice: waiting for lo to become free. Usage count = 1 INFO: task syz-executor0:13689 blocked for more than 120 seconds. Not tainted 4.16.0+ #14 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D22808 13689 4511 0x80000002 Call Trace: context_switch kernel/sched/core.c:2848 [inline] __schedule+0x807/0x1e40 kernel/sched/core.c:3490 schedule+0xef/0x430 kernel/sched/core.c:3549 __rwsem_down_write_failed_common+0x919/0x15d0 kernel/locking/rwsem-xadd.c:566 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:595 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0xa2/0x120 kernel/locking/rwsem.c:72 unregister_netdevice_notifier+0x98/0x520 net/core/dev.c:1698 raw_release+0x56/0x700 net/can/raw.c:358 sock_release+0x96/0x1b0 net/socket.c:594 sock_close+0x16/0x20 net/socket.c:1149 __fput+0x34d/0x890 fs/file_table.c:209 ____fput+0x15/0x20 fs/file_table.c:243 task_work_run+0x1e4/0x290 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x1aee/0x2730 kernel/exit.c:865 do_group_exit+0x16f/0x430 kernel/exit.c:968 SYSC_exit_group kernel/exit.c:979 [inline] SyS_exit_group+0x1d/0x20 kernel/exit.c:977 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x455259 RSP: 002b:00007fff4e349048 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00000000000000d1 RCX: 0000000000455259 RDX: 0000000000000000 RSI: 00000000007305d0 RDI: 0000000000000000 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000013 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000001380 Showing all locks held in the system: 3 locks held by kworker/u4:2/29: #0: 00000000e7ccd0de ((wq_completion)"%s""netns"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 00000000e7ccd0de ((wq_completion)"%s""netns"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 00000000e7ccd0de ((wq_completion)"%s""netns"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 00000000e7ccd0de ((wq_completion)"%s""netns"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: 00000000e7ccd0de ((wq_completion)"%s""netns"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 00000000e7ccd0de ((wq_completion)"%s""netns"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 00000000e7ccd0de ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116 #1: 00000000466acb9c (net_cleanup_work){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120 #2: 00000000e83c5c27 (pernet_ops_rwsem){++++}, at: cleanup_net+0x11a/0xb20 net/core/net_namespace.c:490 2 locks held by khungtaskd/888: #0: 0000000057faa134 (rcu_read_lock){....}, at: check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: 0000000057faa134 (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60 kernel/hung_task.c:249 #1: 00000000dd0dc9d8 (tasklist_lock){.+.+}, at: debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470 2 locks held by getty/4433: #0: 00000000fbe57534 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000005698d1fd (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4434: #0: 000000000c3569d3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000000adb24a1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4435: #0: 0000000080482f65 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000007cb31a61 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4436: #0: 000000004e56f87b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000397886fc (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4437: #0: 0000000039de4ee3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000d7323722 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4438: #0: 00000000f97cd7de (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000fe6f9352 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4439: #0: 0000000059f741d2 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000eb2f29dc (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 1 lock held by syz-executor0/13689: #0: 00000000e83c5c27 (pernet_ops_rwsem){++++}, at: unregister_netdevice_notifier+0x98/0x520 net/core/dev.c:1698 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 888 Comm: khungtaskd Not tainted 4.16.0+ #14 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+0x1b9/0x294 lib/dump_stack.c:113 nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x151/0x192 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:138 [inline] check_hung_task kernel/hung_task.c:132 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline] watchdog+0xc10/0xf60 kernel/hung_task.c:249 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:411 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.16.0+ #14 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__sanitizer_cov_trace_pc+0x1/0x50 kernel/kcov.c:94 RSP: 0018:ffff8801db007c50 EFLAGS: 00000002 RAX: 0000000000000000 RBX: ffff8801db0263e0 RCX: ffffffff8169d3bb RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000005 RBP: ffff8801db007c90 R08: ffffffff88a752c0 R09: 0000000000000000 R10: ffffed0043fff001 R11: ffff88021fff8017 R12: 0000005644f76ec7 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c425533010 CR3: 00000001bf57d000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tick_nohz_stop_idle kernel/time/tick-sched.c:534 [inline] tick_nohz_irq_enter kernel/time/tick-sched.c:1135 [inline] tick_irq_enter+0x2c4/0x3f0 kernel/time/tick-sched.c:1154 irq_enter+0xb6/0xd0 kernel/softirq.c:346 scheduler_ipi+0x39b/0xa30 kernel/sched/core.c:1768 smp_reschedule_interrupt+0xed/0x660 arch/x86/kernel/smp.c:277 reschedule_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:886 RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54 RSP: 0018:ffffffff88a07c38 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff02 RAX: dffffc0000000000 RBX: 1ffffffff1140f8a RCX: 0000000000000000 RDX: 1ffffffff1162f80 RSI: 0000000000000001 RDI: ffffffff88b17c00 RBP: ffffffff88a07c38 R08: ffffffff88a752c0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffffff88a07cf0 R14: ffffffff88b17bf0 R15: 0000000000000000 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline] default_idle+0xc2/0x440 arch/x86/kernel/process.c:354 arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:345 default_idle_call+0x6d/0x90 kernel/sched/idle.c:93 cpuidle_idle_call kernel/sched/idle.c:151 [inline] do_idle+0x2f4/0x3c0 kernel/sched/idle.c:241 cpu_startup_entry+0x104/0x120 kernel/sched/idle.c:346 rest_init+0xe1/0xe4 init/main.c:437 start_kernel+0x887/0x8ae init/main.c:717 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:443 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:424 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:242 Code: 14 dd 28 00 00 00 4d 39 d0 72 1b 49 83 c1 01 4a 89 7c 10 e0 4a 89 74 10 e8 4a 89 54 10 f0 4a 89 4c d8 20 4c 89 08 5d c3 66 90 55 <65> 48 8b 04 25 c0 ed 01 00 65 8b 15 ef df 8a 7e 48 89 e5 81 e2