syzbot


INFO: task hung in bpf_trampoline_update

Status: auto-closed as invalid on 2021/05/12 22:37
Subsystems: bpf
[Documentation on labels]
First crash: 1163d, last: 1163d

Sample crash report:
INFO: task syz-executor.2:14695 blocked for more than 143 seconds.
      Not tainted 5.11.0-rc4-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:27872 pid:14695 ppid:  8460 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4313 [inline]
 __schedule+0x90c/0x21a0 kernel/sched/core.c:5064
 schedule+0xcf/0x270 kernel/sched/core.c:5143
 schedule_timeout+0x1d8/0x250 kernel/time/timer.c:1854
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x163/0x260 kernel/sched/completion.c:138
 __wait_rcu_gp+0x246/0x380 kernel/rcu/update.c:401
 bpf_trampoline_update+0x39f/0x880 kernel/bpf/trampoline.c:220
 bpf_trampoline_link_prog+0x2c4/0x860 kernel/bpf/trampoline.c:302
 bpf_tracing_prog_attach+0x65d/0xde0 kernel/bpf/syscall.c:2685
 bpf_raw_tracepoint_open+0x425/0x720 kernel/bpf/syscall.c:2832
 __do_sys_bpf+0x22a4/0x4f00 kernel/bpf/syscall.c:4430
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x465b09
RSP: 002b:00007f7a9c1a3188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465b09
RDX: 0000000000000010 RSI: 0000000020000080 RDI: 0000000000000011
RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007fffd596f54f R14: 00007f7a9c1a3300 R15: 0000000000022000
INFO: task syz-executor.2:14717 blocked for more than 144 seconds.
      Not tainted 5.11.0-rc4-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:28328 pid:14717 ppid:  8460 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4313 [inline]
 __schedule+0x90c/0x21a0 kernel/sched/core.c:5064
 schedule+0xcf/0x270 kernel/sched/core.c:5143
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:5202
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x81a/0x1110 kernel/locking/mutex.c:1103
 bpf_trampoline_get+0x59b/0x7f0 kernel/bpf/trampoline.c:344
 check_attach_btf_id kernel/bpf/verifier.c:12414 [inline]
 bpf_check+0x32eb/0xc670 kernel/bpf/verifier.c:12531
 bpf_prog_load+0xe47/0x1f40 kernel/bpf/syscall.c:2209
 __do_sys_bpf+0x1251/0x4f00 kernel/bpf/syscall.c:4388
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x465b09
RSP: 002b:00007f7a9c182188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465b09
RDX: 0000000000000078 RSI: 0000000020000440 RDI: 0000000000000005
RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008
R13: 00007fffd596f54f R14: 00007f7a9c182300 R15: 0000000000022000

Showing all locks held in the system:
3 locks held by ksoftirqd/1/18:
1 lock held by khungtaskd/1644:
 #0: ffffffff8bd73a60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6254
1 lock held by in:imklog/8162:
2 locks held by syz-executor.2/14695:
 #0: ffff8880138f60b8 (&fp->aux->dst_mutex){+.+.}-{3:3}, at: bpf_tracing_prog_attach+0x57d/0xde0 kernel/bpf/syscall.c:2626
 #1: ffff888147941c78 (&tr->mutex){+.+.}-{3:3}, at: bpf_trampoline_link_prog+0x618/0x860 kernel/bpf/trampoline.c:271
1 lock held by syz-executor.2/14717:
 #0: ffff888147941c78 (&tr->mutex){+.+.}-{3:3}, at: bpf_trampoline_get+0x59b/0x7f0 kernel/bpf/trampoline.c:344

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

NMI backtrace for cpu 0
CPU: 0 PID: 1644 Comm: khungtaskd Not tainted 5.11.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:120
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xd43/0xfa0 kernel/hung_task.c:294
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 18 Comm: ksoftirqd/1 Not tainted 5.11.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x27/0x60 kernel/kcov.c:197
Code: 00 00 00 65 8b 05 69 0f 8f 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b 14 25 00 f0 01 00 a9 00 01 ff 00 74 0e 85 c9 74 35 <8b> 82 cc 14 00 00 85 c0 74 2b 8b 82 a8 14 00 00 83 f8 02 75 20 48
RSP: 0018:ffffc90000d87288 EFLAGS: 00000206
RAX: 0000000080000100 RBX: 0000000000000007 RCX: 0000000000000100
RDX: ffff8880119fb780 RSI: ffffffff87ccd6a4 RDI: 0000000000000003
RBP: 1ffff920001b0e57 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff87ccd9fa R11: 0000000000000000 R12: 0000000000000004
R13: ffff888024788000 R14: 0000000000000001 R15: ffff888025776300
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff51bdd0000 CR3: 0000000015778000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nf_hook+0x104/0x670 include/linux/netfilter.h:221
 NF_HOOK include/linux/netfilter.h:299 [inline]
 br_forward_finish+0x7f/0xd0 net/bridge/br_forward.c:64
 br_nf_hook_thresh+0x2bd/0x350 net/bridge/br_netfilter_hooks.c:1025
 br_nf_forward_finish+0x7cb/0xc30 net/bridge/br_netfilter_hooks.c:564
 NF_HOOK include/linux/netfilter.h:301 [inline]
 NF_HOOK include/linux/netfilter.h:295 [inline]
 br_nf_forward_arp+0x10da/0x13b0 net/bridge/br_netfilter_hooks.c:674
 nf_hook_entry_hookfn include/linux/netfilter.h:136 [inline]
 nf_hook_slow+0xc5/0x1e0 net/netfilter/core.c:589
 nf_hook+0x3a1/0x670 include/linux/netfilter.h:256
 NF_HOOK include/linux/netfilter.h:299 [inline]
 __br_forward+0x1aa/0x610 net/bridge/br_forward.c:108
 deliver_clone net/bridge/br_forward.c:124 [inline]
 maybe_deliver+0x32e/0x430 net/bridge/br_forward.c:180
 br_flood+0x13a/0x450 net/bridge/br_forward.c:222
 br_handle_frame_finish+0x64e/0x1680 net/bridge/br_input.c:162
 nf_hook_bridge_pre net/bridge/br_input.c:246 [inline]
 br_handle_frame+0xe84/0x1180 net/bridge/br_input.c:367
 __netif_receive_skb_core+0xc4f/0x37d0 net/core/dev.c:5214
 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5317
 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5433
 process_backlog+0x232/0x6c0 net/core/dev.c:6312
 napi_poll net/core/dev.c:6790 [inline]
 net_rx_action+0x461/0xe10 net/core/dev.c:6873
 __do_softirq+0x29b/0x9f6 kernel/softirq.c:343
 run_ksoftirqd kernel/softirq.c:650 [inline]
 run_ksoftirqd+0x2d/0x50 kernel/softirq.c:642
 smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:165
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/11 22:35 bpf-next 750e5d7649b1 a5f86b15 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: task hung in bpf_trampoline_update
* Struck through repros no longer work on HEAD.