INFO: task syz-executor.1:26534 blocked for more than 140 seconds. Not tainted 4.19.41 #10 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D29512 26534 7605 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x813/0x1d00 kernel/sched/core.c:3474 schedule+0x92/0x1c0 kernel/sched/core.c:3518 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:573 [inline] rwsem_down_write_failed+0x774/0xcc0 kernel/locking/rwsem-xadd.c:602 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+0x53/0x90 kernel/locking/rwsem.c:72 register_netdevice_notifier+0x7e/0x630 net/core/dev.c:1642 raw_init+0x299/0x340 net/can/raw.c:343 can_create+0x28a/0x4b0 net/can/af_can.c:183 __sock_create+0x3e6/0x750 net/socket.c:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0x103/0x220 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1353 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458da9 Code: Bad RIP value. RSP: 002b:00007ff45d8cbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458da9 RDX: 0000000000000001 RSI: 0000000000000003 RDI: 000000000000001d RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff45d8cc6d4 R13: 00000000004c73a7 R14: 00000000004dd088 R15: 00000000ffffffff Showing all locks held in the system: 3 locks held by kworker/u4:0/7: 1 lock held by khungtaskd/957: #0: 00000000d841261c (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4435 2 locks held by rs:main Q:Reg/7441: #0: 0000000002e29afb (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1821 [inline] #0: 0000000002e29afb (&rq->lock){-.-.}, at: __schedule+0x1f8/0x1d00 kernel/sched/core.c:3412 #1: 00000000874e3696 (sb_writers#4){.+.+}, at: file_start_write include/linux/fs.h:2773 [inline] #1: 00000000874e3696 (sb_writers#4){.+.+}, at: vfs_write+0x429/0x560 fs/read_write.c:548 1 lock held by rsyslogd/7443: #0: 00000000a1f35e5f (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:767 2 locks held by getty/7565: #0: 00000000f0503730 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 000000003c2bcab2 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7566: #0: 000000002bc0649c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 00000000b286e177 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7567: #0: 0000000093ca9e71 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 00000000dd6ed76f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7568: #0: 00000000e1a50379 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 00000000faf41f99 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7569: #0: 00000000246ba5f9 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 000000003972d469 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7570: #0: 00000000cc3097e7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 0000000010a7a9e1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7571: #0: 0000000061e3e200 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 00000000fd398dc0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 1 lock held by syz-executor.1/26534: #0: 00000000f683bedb (pernet_ops_rwsem){++++}, at: register_netdevice_notifier+0x7e/0x630 net/core/dev.c:1642 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 957 Comm: khungtaskd Not tainted 4.19.41 #10 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+0x172/0x1f0 lib/dump_stack.c:113 nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1b0/0x1f8 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:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x9df/0xee0 kernel/hung_task.c:287 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.41 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:debug_lockdep_rcu_enabled.part.0+0xb/0x60 kernel/rcu/update.c:251 Code: 5b 5d c3 e8 17 9a e6 ff 0f 1f 80 00 00 00 00 55 48 89 e5 e8 37 ff ff ff 5d c3 0f 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 55 <48> 89 e5 53 65 48 8b 1c 25 40 ee 01 00 48 8d bb 7c 08 00 00 48 89 RSP: 0018:ffff8880aa21fa30 EFLAGS: 00000002 RAX: dffffc0000000000 RBX: 1ffff11015443f50 RCX: 1ffffffff11613b4 RDX: 0000000000000004 RSI: 0000000000000000 RDI: ffff8880aa206a3c RBP: ffff8880aa21fa40 R08: 0000000000000000 R09: fffffbfff10cba68 R10: fffffbfff10cba67 R11: ffffffff8865d33b R12: ffffffff8865d350 R13: ffffffff85978721 R14: ffff8880aa2061c0 R15: ffff8880aa21fae0 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 0000000090462000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x628/0xa30 kernel/locking/lockdep.c:3918 __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock+0x1b/0x50 kernel/locking/spinlock.c:176 spin_unlock include/linux/spinlock.h:369 [inline] get_next_corpse net/netfilter/nf_conntrack_core.c:1892 [inline] nf_ct_iterate_cleanup+0x201/0x4e0 net/netfilter/nf_conntrack_core.c:1916 nf_conntrack_cleanup_net_list+0x7a/0x250 net/netfilter/nf_conntrack_core.c:2103 nf_conntrack_pernet_exit+0x11d/0x170 net/netfilter/nf_conntrack_standalone.c:663 ops_exit_list.isra.0+0x105/0x160 net/core/net_namespace.c:156 cleanup_net+0x3fb/0x960 net/core/net_namespace.c:552 process_one_work+0x98e/0x1760 kernel/workqueue.c:2153 worker_thread+0x98/0xe40 kernel/workqueue.c:2296 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413