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-executor4:18540 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-executor4 D25096 18540 4574 0x00000004 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 register_netdevice_notifier+0xb4/0x8f0 net/core/dev.c:1629 bcm_init+0x259/0x300 net/can/bcm.c:1484 can_create+0x28a/0x4b0 net/can/af_can.c:183 __sock_create+0x526/0x920 net/socket.c:1285 sock_create net/socket.c:1325 [inline] __sys_socket+0x100/0x250 net/socket.c:1355 SYSC_socket net/socket.c:1364 [inline] SyS_socket+0x24/0x30 net/socket.c:1362 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x455259 RSP: 002b:00007fe057d94c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007fe057d956d4 RCX: 0000000000455259 RDX: 0000000000000002 RSI: 0000000000000002 RDI: 000000000000001d RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000613 R14: 00000000006fc268 R15: 0000000000000000 Showing all locks held in the system: 3 locks held by kworker/u4:4/326: #0: 000000009ab2e397 ((wq_completion)"%s""netns"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 000000009ab2e397 ((wq_completion)"%s""netns"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 000000009ab2e397 ((wq_completion)"%s""netns"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 000000009ab2e397 ((wq_completion)"%s""netns"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: 000000009ab2e397 ((wq_completion)"%s""netns"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 000000009ab2e397 ((wq_completion)"%s""netns"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 000000009ab2e397 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116 #1: 000000008d3f5e78 (net_cleanup_work){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120 #2: 000000009b077519 (pernet_ops_rwsem){++++}, at: cleanup_net+0x11a/0xb20 net/core/net_namespace.c:490 2 locks held by khungtaskd/888: #0: 00000000629fbca5 (rcu_read_lock){....}, at: check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: 00000000629fbca5 (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60 kernel/hung_task.c:249 #1: 00000000da8b9bf7 (tasklist_lock){.+.+}, at: debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470 2 locks held by getty/4493: #0: 0000000038cd7ab9 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000ff731dfa (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4494: #0: 000000003a0c3794 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 0000000064d86204 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4495: #0: 00000000998d28d1 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000001b3d3d9c (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4496: #0: 00000000da961953 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000034e45a8 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4497: #0: 00000000abdd4d69 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000005f37eec0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4498: #0: 0000000089bb223f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000cb391093 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4499: #0: 000000000a681cb2 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 0000000018b2a822 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 1 lock held by syz-executor4/18540: #0: 000000009b077519 (pernet_ops_rwsem){++++}, at: register_netdevice_notifier+0xb4/0x8f0 net/core/dev.c:1629 1 lock held by syz-executor4/18574: #0: 000000009b077519 (pernet_ops_rwsem){++++}, at: register_netdevice_notifier+0xb4/0x8f0 net/core/dev.c:1629 ============================================= 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 skipped: idling at native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54