syzbot


INFO: task hung in ovs_dp_cmd_new

Status: auto-closed as invalid on 2020/11/22 00:33
Subsystems: openvswitch
[Documentation on labels]
Reported-by: syzbot+a9d62dbe662772066f3c@syzkaller.appspotmail.com
First crash: 1686d, last: 1371d
Discussions (1)
Title Replies (including bot) Last reply
INFO: task hung in ovs_dp_cmd_new 0 (1) 2019/09/17 06:54
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in ovs_dp_cmd_new (2) openvswitch 1 912d 912d 0/26 auto-closed as invalid on 2022/01/24 21:43

Sample crash report:
INFO: task syz-executor.3:21908 blocked for more than 143 seconds.
      Not tainted 5.7.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3  D27816 21908  21704 0x00004004
Call Trace:
 schedule+0xd0/0x2a0 kernel/sched/core.c:4158
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4217
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 ovs_lock net/openvswitch/datapath.c:105 [inline]
 ovs_dp_cmd_new+0x4dc/0xdb0 net/openvswitch/datapath.c:1687
 genl_family_rcv_msg_doit net/netlink/genetlink.c:673 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:718 [inline]
 genl_rcv_msg+0x627/0xdf0 net/netlink/genetlink.c:735
 netlink_rcv_skb+0x15a/0x410 net/netlink/af_netlink.c:2469
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:746
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x537/0x740 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x882/0xe10 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6bf/0x7e0 net/socket.c:2362
 ___sys_sendmsg+0x100/0x170 net/socket.c:2416
 __sys_sendmsg+0xec/0x1b0 net/socket.c:2449
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45c829
Code: 08 0f 57 c0 0f 11 44 24 48 48 8b 4c 24 30 48 89 4c 24 48 48 89 44 24 50 48 8b 4c 24 48 48 8b 54 24 78 48 39 c2 74 12 c6 84 24 <90> 00 00 00 00 48 8b 6c 24 58 48 83 c4 60 c3 48 8b 44 24 70 48 89
RSP: 002b:00007fd08cb70c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000500880 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000009f7 R14: 00000000004ccae4 R15: 00007fd08cb716d4

Showing all locks held in the system:
1 lock held by khungtaskd/1141:
 #0: ffffffff899beb00 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5754
1 lock held by in:imklog/6717:
4 locks held by kworker/u4:3/26846:
 #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: __write_once_size include/linux/compiler.h:226 [inline]
 #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline]
 #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline]
 #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:615 [inline]
 #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline]
 #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x844/0x16a0 kernel/workqueue.c:2239
 #1: ffffc90001a7fdc0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x878/0x16a0 kernel/workqueue.c:2243
 #2: ffffffff8a576630 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xa50 net/core/net_namespace.c:565
 #3: ffffffff8a80cfa8 (ovs_mutex){+.+.}-{3:3}, at: ovs_lock net/openvswitch/datapath.c:105 [inline]
 #3: ffffffff8a80cfa8 (ovs_mutex){+.+.}-{3:3}, at: ovs_exit_net+0x1e3/0xba0 net/openvswitch/datapath.c:2469
4 locks held by kworker/u4:5/22721:
2 locks held by syz-executor.3/21908:
 #0: ffffffff8a5d9910 (cb_lock){++++}-{3:3}, at: genl_rcv+0x15/0x40 net/netlink/genetlink.c:745
 #1: ffffffff8a80cfa8 (ovs_mutex){+.+.}-{3:3}, at: ovs_lock net/openvswitch/datapath.c:105 [inline]
 #1: ffffffff8a80cfa8 (ovs_mutex){+.+.}-{3:3}, at: ovs_dp_cmd_new+0x4dc/0xdb0 net/openvswitch/datapath.c:1687

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

NMI backtrace for cpu 1
CPU: 1 PID: 1141 Comm: khungtaskd Not tainted 5.7.0-rc2-syzkaller #0
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+0x188/0x20d lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x231/0x27e lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline]
 watchdog+0xa8c/0x1010 kernel/hung_task.c:289
 kthread+0x388/0x470 kernel/kthread.c:268
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4102 Comm: systemd-journal Not tainted 5.7.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:check_memory_region+0x15/0x190 mm/kasan/generic.c:192
Code: ff 01 0f 1f 00 48 89 f2 be f8 00 00 00 e9 33 5e ff 01 0f 1f 00 48 85 f6 0f 84 40 01 00 00 49 89 fa 41 54 0f b6 d2 49 01 f2 55 <53> 0f 82 20 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 c7 0f 86
RSP: 0018:ffffc900015774c8 EFLAGS: 00000086
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81598296
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8a894b40
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff8a894b48 R11: ffffed1015cc7103 R12: 0000000000000002
R13: ffffffff899beb00 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fd6faf4d8c0(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd6f722aa68 CR3: 000000009412b000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline]
 cpumask_test_cpu include/linux/cpumask.h:367 [inline]
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0x1a6/0x8f0 kernel/locking/lockdep.c:4933
 rcu_lock_acquire include/linux/rcupdate.h:208 [inline]
 rcu_read_lock include/linux/rcupdate.h:601 [inline]
 is_bpf_text_address+0x36/0x160 kernel/bpf/core.c:704
 kernel_text_address+0x6e/0xe0 kernel/extable.c:151
 __kernel_text_address+0x9/0x30 kernel/extable.c:105
 unwind_get_return_address arch/x86/kernel/unwind_orc.c:314 [inline]
 unwind_get_return_address+0x5a/0xa0 arch/x86/kernel/unwind_orc.c:309
 arch_stack_walk+0x84/0xd0 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:123
 save_stack+0x1b/0x40 mm/kasan/common.c:49
 set_track mm/kasan/common.c:57 [inline]
 __kasan_kmalloc mm/kasan/common.c:495 [inline]
 __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468
 slab_post_alloc_hook mm/slab.h:586 [inline]
 slab_alloc mm/slab.c:3320 [inline]
 kmem_cache_alloc+0x11b/0x740 mm/slab.c:3484
 kmem_cache_zalloc include/linux/slab.h:659 [inline]
 lsm_file_alloc security/security.c:567 [inline]
 security_file_alloc+0x34/0x160 security/security.c:1435
 __alloc_file+0xd8/0x350 fs/file_table.c:106
 alloc_empty_file+0x6d/0x170 fs/file_table.c:151
 path_openat+0xe3/0x27d0 fs/namei.c:3332
 do_filp_open+0x192/0x260 fs/namei.c:3373
 do_sys_openat2+0x585/0x7d0 fs/open.c:1148
 do_sys_open+0xc3/0x140 fs/open.c:1164
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x7fd6fa4dd840
Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24
RSP: 002b:00007ffd16a1d848 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007ffd16a1db50 RCX: 00007fd6fa4dd840
RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055f7212d8750
RBP: 000000000000000d R08: 00000000000001c0 R09: 00000000ffffffff
R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000055f7212cc040 R14: 00007ffd16a1db10 R15: 000055f7212d8570

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/27 04:18 bpf 52a90612fa61 0ce7569e .config console log report ci-upstream-bpf-kasan-gce
2020/04/25 14:02 bpf e1cebd841b0a b8bb8e5f .config console log report ci-upstream-bpf-kasan-gce
2020/01/28 16:08 bpf 2821e26f3a0a 56cd6c9b .config console log report ci-upstream-bpf-kasan-gce
2020/01/23 18:56 bpf 08dc225d8868 3334d684 .config console log report ci-upstream-bpf-kasan-gce
2020/01/15 20:15 bpf 555089fdfc37 f9b69507 .config console log report ci-upstream-bpf-kasan-gce
2020/01/13 07:12 bpf 555089fdfc37 53faa9fe .config console log report ci-upstream-bpf-kasan-gce
2020/01/08 04:29 bpf da29f2d84bd1 6738e0b3 .config console log report ci-upstream-bpf-kasan-gce
2019/11/20 02:01 bpf 34e59836565e 5bc70212 .config console log report ci-upstream-bpf-kasan-gce
2019/10/10 15:28 bpf 106c35dda32f a4efa8c0 .config console log report ci-upstream-bpf-kasan-gce
2019/09/17 04:24 bpf 81e09359b465 51ca0454 .config console log report ci-upstream-bpf-kasan-gce
2019/09/13 17:01 bpf 2339cd6cd0b5 40fa42bc .config console log report ci-upstream-bpf-kasan-gce
2020/07/25 00:33 bpf-next e0145983a8af 554af388 .config console log report ci-upstream-bpf-next-kasan-gce
2020/07/24 03:34 bpf-next c3cf63174974 70c104a1 .config console log report ci-upstream-bpf-next-kasan-gce
2020/07/23 06:42 bpf-next a6c0d0934f0d 340ea530 .config console log report ci-upstream-bpf-next-kasan-gce
2020/05/12 15:48 bpf-next ff20460e94af 160c7698 .config console log report ci-upstream-bpf-next-kasan-gce
2020/05/11 16:22 bpf-next 385bbf7b119a f8f57555 .config console log report ci-upstream-bpf-next-kasan-gce
2020/05/08 10:17 bpf-next 2b6c6f071632 6c70a1c2 .config console log report ci-upstream-bpf-next-kasan-gce
2020/04/30 10:30 bpf-next 449e14bfdb83 2dd552a5 .config console log report ci-upstream-bpf-next-kasan-gce
2020/04/24 17:58 bpf-next 3f2eaebb5450 03d97a1b .config console log report ci-upstream-bpf-next-kasan-gce
2020/04/16 17:52 bpf-next 1a323ea5356e c743fcb3 .config console log report ci-upstream-bpf-next-kasan-gce
2020/01/11 20:08 bpf-next ac065870d928 4c04afaa .config console log report ci-upstream-bpf-next-kasan-gce
2019/11/21 17:37 bpf-next 68e724965ea4 8098ea0f .config console log report ci-upstream-bpf-next-kasan-gce
2019/11/07 07:30 bpf-next ed578021210e d797d201 .config console log report ci-upstream-bpf-next-kasan-gce
2019/10/29 23:25 bpf-next a566e35f1e8b 5ea87a66 .config console log report ci-upstream-bpf-next-kasan-gce
2019/10/13 10:12 bpf-next b8fc345d6b5d 2f661ec4 .config console log report ci-upstream-bpf-next-kasan-gce
2019/09/17 09:10 bpf-next 40ba6a12a548 51ca0454 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.