syzbot


INFO: task hung in nfnetlink_net_exit_batch

Status: auto-closed as invalid on 2019/06/18 22:56
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+80a2b6a3afb5e783e4c1@syzkaller.appspotmail.com
First crash: 2039d, last: 1945d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in nfnetlink_net_exit_batch (2) netfilter 1 1686d 1686d 0/26 closed as invalid on 2019/10/23 07:54

Sample crash report:
INFO: task kworker/u4:2:52 blocked for more than 140 seconds.
      Not tainted 4.20.0-rc6+ #241
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/u4:2    D13432    52      2 0x80000000
Workqueue: netns cleanup_net
Call Trace:
 context_switch kernel/sched/core.c:2831 [inline]
 __schedule+0x8cf/0x21d0 kernel/sched/core.c:3472
 schedule+0xfe/0x460 kernel/sched/core.c:3516
 exp_funnel_lock kernel/rcu/tree_exp.h:319 [inline]
 _synchronize_rcu_expedited.constprop.58+0x8df/0x9d0 kernel/rcu/tree_exp.h:620
 synchronize_rcu_expedited+0x27/0xa0 kernel/rcu/tree_exp.h:758
 synchronize_net+0x3b/0x60 net/core/dev.c:9074
 nfnetlink_net_exit_batch+0x10b/0x200 net/netfilter/nfnetlink.c:608
 ops_exit_list.isra.5+0x105/0x160 net/core/net_namespace.c:156
 cleanup_net+0x555/0xb10 net/core/net_namespace.c:551
 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153
 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296
 kthread+0x35a/0x440 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
INFO: task syz-executor4:8654 blocked for more than 140 seconds.
      Not tainted 4.20.0-rc6+ #241
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor4   D24064  8654   6224 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2831 [inline]
 __schedule+0x8cf/0x21d0 kernel/sched/core.c:3472
 schedule+0xfe/0x460 kernel/sched/core.c:3516
 exp_funnel_lock kernel/rcu/tree_exp.h:319 [inline]
 _synchronize_rcu_expedited.constprop.58+0x8df/0x9d0 kernel/rcu/tree_exp.h:620
 synchronize_rcu_expedited+0x27/0xa0 kernel/rcu/tree_exp.h:758
 synchronize_net+0x3b/0x60 net/core/dev.c:9074
 packet_set_ring+0x286/0x1da0 net/packet/af_packet.c:4339
 packet_setsockopt+0x16ef/0x23b0 net/packet/af_packet.c:3649
 __sys_setsockopt+0x1ba/0x3c0 net/socket.c:1902
 __do_sys_setsockopt net/socket.c:1913 [inline]
 __se_sys_setsockopt net/socket.c:1910 [inline]
 __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1910
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457669
Code: 27 fc ff e8 39 78 fc ff 48 8b 44 24 08 e9 95 fe ff ff e8 5a 28 00 00 e9 45 fe ff ff cc cc cc cc cc 48 8b 4c 24 10 48 8b 11 64 <48> 8b 1c 25 f8 ff ff ff 8b b2 d8 00 00 00 8d 7e ff 89 ba d8 00 00
RSP: 002b:00007fed25615c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457669
RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000005
RBP: 000000000072bfa0 R08: 00000000000000c5 R09: 0000000000000000
R10: 0000000020001000 R11: 0000000000000246 R12: 00007fed256166d4
R13: 00000000004c460d R14: 00000000004d77b8 R15: 00000000ffffffff

Showing all locks held in the system:
3 locks held by kworker/u4:2/52:
 #0: 000000006fe16344 ((wq_completion)"%s""netns"){+.+.}, at: __write_once_size include/linux/compiler.h:209 [inline]
 #0: 000000006fe16344 ((wq_completion)"%s""netns"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: 000000006fe16344 ((wq_completion)"%s""netns"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline]
 #0: 000000006fe16344 ((wq_completion)"%s""netns"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline]
 #0: 000000006fe16344 ((wq_completion)"%s""netns"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline]
 #0: 000000006fe16344 ((wq_completion)"%s""netns"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0: 000000006fe16344 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0xb43/0x1c40 kernel/workqueue.c:2124
 #1: 0000000017f7c90a (net_cleanup_work){+.+.}, at: process_one_work+0xb9a/0x1c40 kernel/workqueue.c:2128
 #2: 0000000048c40e4e (pernet_ops_rwsem){++++}, at: cleanup_net+0x13f/0xb10 net/core/net_namespace.c:518
1 lock held by khungtaskd/1013:
 #0: 000000008a1ec607 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4379
1 lock held by rsyslogd/5988:
 #0: 00000000b34a2909 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766
2 locks held by getty/6078:
 #0: 00000000393c8a8d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000963eafb0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154
2 locks held by getty/6079:
 #0: 000000008158b9a1 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000d572c8de (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154
2 locks held by getty/6080:
 #0: 0000000069aa3850 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 000000006e2b2c3d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154
2 locks held by getty/6081:
 #0: 00000000f3306027 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 000000009e08b63b (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154
2 locks held by getty/6082:
 #0: 000000007f7b13af (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000c74d2c2a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154
2 locks held by getty/6083:
 #0: 000000002a17d12b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 000000007c36c1bb (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154
2 locks held by getty/6084:
 #0: 000000009bf114fd (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 0000000030e51264 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154
1 lock held by syz-executor4/8654:
 #0: 00000000ca99c4c3 (sk_lock-AF_PACKET){+.+.}, at: lock_sock include/net/sock.h:1492 [inline]
 #0: 00000000ca99c4c3 (sk_lock-AF_PACKET){+.+.}, at: packet_setsockopt+0x602/0x23b0 net/packet/af_packet.c:3632

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

NMI backtrace for cpu 1
CPU: 1 PID: 1013 Comm: khungtaskd Not tainted 4.20.0-rc6+ #241
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+0x244/0x39d lib/dump_stack.c:113
 nmi_cpu_backtrace.cold.2+0x5c/0xa1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1e8/0x22a 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:205 [inline]
 watchdog+0xb51/0x1060 kernel/hung_task.c:289
 kthread+0x35a/0x440 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
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:57

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/12/20 22:55 net-old d84e7bc0595a aaf59e84 .config console log report ci-upstream-net-this-kasan-gce
2018/10/31 15:50 net-old a6b3a3fa0423 89781090 .config console log report ci-upstream-net-this-kasan-gce
2018/10/07 07:18 net-old c1d84a1b42ef 8b311eaf .config console log report ci-upstream-net-this-kasan-gce
2018/12/18 23:31 net-next-old b12c97d45cd0 4edaba93 .config console log report ci-upstream-net-kasan-gce
2018/11/14 19:02 net-next-old 15cef30974c5 5f5f6d14 .config console log report ci-upstream-net-kasan-gce
2018/10/19 18:06 net-next-old 1107a674cc04 9aba67b5 .config console log report ci-upstream-net-kasan-gce
2018/09/18 09:14 net-next-old ce5b127b172e 7f125108 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.