syzbot


INFO: task hung in register_netdevice_notifier

Status: closed as invalid on 2018/05/03 10:15
Reported-by: syzbot+b2092ae67d1efbb80f8b@syzkaller.appspotmail.com
First crash: 1708d, last: 1695d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in register_netdevice_notifier 64 559d 1317d 0/1 auto-closed as invalid on 2021/09/21 07:27
upstream INFO: task hung in register_netdevice_notifier (2) syz done 10555 533d 1138d 22/24 fixed on 2021/11/10 00:50

Sample crash report:
unregister_netdevice: waiting for lo to become free. Usage count = 3
unregister_netdevice: waiting for lo to become free. Usage count = 3
unregister_netdevice: waiting for lo to become free. Usage count = 3
unregister_netdevice: waiting for lo to become free. Usage count = 3
unregister_netdevice: waiting for lo to become free. Usage count = 3
INFO: task syz-executor4:9710 blocked for more than 120 seconds.
      Not tainted 4.16.0+ #2
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor4   D24280  9710   4548 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2848 [inline]
 __schedule+0x801/0x1e30 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:0x455319
RSP: 002b:00007f05dfed5c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007f05dfed66d4 RCX: 0000000000455319
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:
4 locks held by kworker/u4:0/6:
 #0: 000000006951eec2 ((wq_completion)"%s""netns"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline]
 #0: 000000006951eec2 ((wq_completion)"%s""netns"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: 000000006951eec2 ((wq_completion)"%s""netns"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline]
 #0: 000000006951eec2 ((wq_completion)"%s""netns"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline]
 #0: 000000006951eec2 ((wq_completion)"%s""netns"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline]
 #0: 000000006951eec2 ((wq_completion)"%s""netns"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0: 000000006951eec2 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116
 #1: 0000000081f20978 (net_cleanup_work){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120
 #2: 0000000058cd45e9 (pernet_ops_rwsem){++++}, at: cleanup_net+0x11a/0xb20 net/core/net_namespace.c:490
 #3: 00000000d93885d9 (rcu_sched_state.barrier_mutex){+.+.}, at: _rcu_barrier+0x142/0x770 kernel/rcu/tree.c:3495
2 locks held by khungtaskd/890:
 #0: 000000003bad0ccd (rcu_read_lock){....}, at: check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline]
 #0: 000000003bad0ccd (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60 kernel/hung_task.c:249
 #1: 000000009f7de74a (tasklist_lock){.+.+}, at: debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470
2 locks held by getty/4469:
 #0: 00000000074ce33d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
 #1: 0000000015878d7d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4470:
 #0: 00000000e6714935 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
 #1: 0000000065bca30a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4471:
 #0: 000000000f385d07 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
 #1: 000000001c4a2752 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4472:
 #0: 000000001bac0de5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
 #1: 00000000adad1f15 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4473:
 #0: 000000004b04b0fe (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
 #1: 00000000fe1b6f87 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4474:
 #0: 000000004c951247 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
 #1: 0000000058cadef5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
2 locks held by getty/4475:
 #0: 00000000928b5b52 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
 #1: 00000000bfced093 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131
1 lock held by syz-executor4/9710:
 #0: 0000000058cd45e9 (pernet_ops_rwsem){++++}, at: register_netdevice_notifier+0xb4/0x8f0 net/core/dev.c:1629
1 lock held by syz-executor4/9760:
 #0: 0000000058cd45e9 (pernet_ops_rwsem){++++}, at: register_netdevice_notifier+0xb4/0x8f0 net/core/dev.c:1629

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 890 Comm: khungtaskd Not tainted 4.16.0+ #2
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 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54

Crashes (602):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2018/04/13 18:36 upstream 16e205cf42da 0a0c5db6 .config log report
ci-upstream-kasan-gce 2018/04/13 16:45 upstream 16e205cf42da 0a0c5db6 .config log report
ci-upstream-kasan-gce 2018/04/13 13:27 upstream 16e205cf42da 0a0c5db6 .config log report
ci-upstream-kasan-gce-root 2018/04/13 09:48 upstream 16e205cf42da 0a0c5db6 .config log report
ci-upstream-kasan-gce 2018/04/13 05:54 upstream c17b0aadb7d8 eb2295de .config log report
ci-upstream-kasan-gce-root 2018/04/13 02:57 upstream c17b0aadb7d8 eb2295de .config log report
ci-upstream-kasan-gce-root 2018/04/12 23:00 upstream c17b0aadb7d8 eb2295de .config log report
ci-upstream-kasan-gce 2018/04/12 20:52 upstream c17b0aadb7d8 eb2295de .config log report
ci-upstream-kasan-gce-root 2018/04/12 18:27 upstream c17b0aadb7d8 eb2295de .config log report
ci-upstream-kasan-gce-root 2018/04/12 13:51 upstream b284d4d5a678 9cd56d71 .config log report
ci-upstream-kasan-gce-root 2018/04/11 21:03 upstream b284d4d5a678 9cd56d71 .config log report
ci-upstream-kasan-gce-root 2018/04/11 15:59 upstream b284d4d5a678 8b8de427 .config log report
ci-upstream-kasan-gce-root 2018/04/11 11:58 upstream b284d4d5a678 8b8de427 .config log report
ci-upstream-kasan-gce-root 2018/04/11 10:44 upstream b284d4d5a678 8b8de427 .config log report
ci-upstream-kasan-gce-root 2018/04/11 09:16 upstream b284d4d5a678 8b8de427 .config log report
ci-upstream-kasan-gce-root 2018/04/11 02:26 upstream c18bb396d3d2 8b8de427 .config log report
ci-upstream-kasan-gce-root 2018/04/11 00:26 upstream c18bb396d3d2 8b8de427 .config log report
ci-upstream-kasan-gce-root 2018/04/10 21:04 upstream c18bb396d3d2 8b8de427 .config log report
ci-upstream-kasan-gce-root 2018/04/10 19:54 upstream c18bb396d3d2 8b8de427 .config log report
ci-upstream-kasan-gce-root 2018/04/10 11:34 upstream c18bb396d3d2 b9f65507 .config log report
ci-upstream-kasan-gce-root 2018/04/10 06:06 upstream fd40ffc72e2f b9f65507 .config log report
ci-upstream-kasan-gce-root 2018/04/10 04:16 upstream fd40ffc72e2f b9f65507 .config log report
ci-upstream-kasan-gce 2018/04/10 01:43 upstream fd40ffc72e2f b9f65507 .config log report
ci-upstream-kasan-gce-root 2018/04/09 21:56 upstream fd40ffc72e2f b9f65507 .config log report
ci-upstream-kasan-gce-root 2018/04/09 19:01 upstream 3fd14cdcc05a f13fb445 .config log report
ci-upstream-kasan-gce-root 2018/04/09 15:29 upstream 3fd14cdcc05a f13fb445 .config log report
ci-upstream-kasan-gce-root 2018/04/09 09:16 upstream 3fd14cdcc05a f13fb445 .config log report
ci-upstream-kasan-gce-root 2018/04/08 20:26 upstream 3fd14cdcc05a 77bd5117 .config log report
ci-upstream-kasan-gce-root 2018/04/08 16:31 upstream 3fd14cdcc05a 77bd5117 .config log report
ci-upstream-kasan-gce-root 2018/04/08 13:42 upstream 3fd14cdcc05a 77bd5117 .config log report
ci-upstream-kasan-gce-root 2018/04/08 00:22 upstream 3fd14cdcc05a 66f22a7f .config log report
ci-upstream-kasan-gce 2018/04/07 16:40 upstream 3fd14cdcc05a 66f22a7f .config log report
ci-upstream-kasan-gce-root 2018/04/07 14:11 upstream 3fd14cdcc05a 66f22a7f .config log report
ci-upstream-kasan-gce-root 2018/04/07 12:42 upstream 3fd14cdcc05a 66f22a7f .config log report
ci-upstream-kasan-gce 2018/04/07 10:46 upstream 3fd14cdcc05a d613535f .config log report
ci-upstream-kasan-gce 2018/04/07 08:06 upstream 3fd14cdcc05a d613535f .config log report
ci-upstream-kasan-gce 2018/04/07 03:18 upstream 3fd14cdcc05a d613535f .config log report
ci-upstream-kasan-gce 2018/04/06 23:34 upstream 3fd14cdcc05a d613535f .config log report
ci-upstream-kasan-gce 2018/04/06 17:48 upstream 38c23685b273 4f1152d4 .config log report
ci-upstream-kasan-gce-root 2018/04/06 14:05 upstream 38c23685b273 4f1152d4 .config log report
ci-upstream-kasan-gce-root 2018/04/06 10:57 upstream 38c23685b273 4f1152d4 .config log report
ci-upstream-kasan-gce-root 2018/04/06 06:15 upstream 3c8ba0d61d04 a932eae6 .config log report
ci-upstream-kasan-gce-root 2018/04/06 04:18 upstream 3c8ba0d61d04 a932eae6 .config log report
ci-upstream-net-kasan-gce 2018/03/31 13:07 net-next c0b6edef0bf0 8fbce0e4 .config log report
* Struck through repros no longer work on HEAD.