syzbot


INFO: rcu detected stall in bpf_link_release

Status: closed as invalid on 2022/02/08 10:10
Subsystems: kernel
[Documentation on labels]
First crash: 817d, last: 817d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in bpf_link_release (2) kernel 1 502d 502d 0/26 auto-obsoleted due to no activity on 2023/02/13 11:46

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 ticks this GP) idle=e41/1/0x4000000000000000 softirq=104971/104971 fqs=29 
	(detected by 0, t=10502 jiffies, g=155501, q=390)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 1174 Comm: syz-executor.2 Not tainted 5.16.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:344 [inline]
RIP: 0010:cpu_online include/linux/cpumask.h:895 [inline]
RIP: 0010:trace_lock_release+0xbc/0x150 include/trace/events/lock.h:58
Code: 00 eb be 0f 0b e9 7a ff ff ff e8 ff 33 9a ff eb b9 49 89 f6 48 89 fb 65 8b 05 08 f0 9b 7e 83 f8 08 0f 83 86 00 00 00 41 89 c7 <4c> 89 f8 48 c1 e8 06 48 8d 3c c5 68 ac fe 8d be 08 00 00 00 e8 fb
RSP: 0018:ffffc90000dc0b20 EFLAGS: 00000097
RAX: 0000000000000001 RBX: ffffffff8cb1de00 RCX: ffff88808ba10000
RDX: 0000000080010001 RSI: ffffffff8850bf25 RDI: ffffffff8cb1de00
RBP: ffffc90000dc0c70 R08: ffffffff8818e3bb R09: ffffed1003cfd12c
R10: ffffed1003cfd12c R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff920001b8174 R14: ffffffff8850bf25 R15: 0000000000000001
FS:  00005555555bf400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1822a413a5 CR3: 000000008de6a000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lock_release+0x82/0x810 kernel/locking/lockdep.c:5648
 rcu_read_unlock include/linux/rcupdate.h:721 [inline]
 advance_sched+0x7be/0x930 net/sched/sch_taprio.c:769
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x50b/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:lock_acquire+0x21f/0x4d0 kernel/locking/lockdep.c:5641
Code: 08 4c 89 f7 e8 a2 ff 68 00 f6 84 24 81 00 00 00 02 0f 85 13 02 00 00 41 f7 c4 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 04 2f 00 00 00 00 43 c7 44 2f 09 00 00 00 00 43 c7 44 2f 11
RSP: 0018:ffffc90005037800 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000a06f10 RCX: ffff88808ba10a58
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90005037958 R08: dffffc0000000000 R09: fffffbfff1ff3ddf
R10: fffffbfff1ff3ddf R11: 0000000000000000 R12: 0000000000000246
R13: 1ffff92000a06f08 R14: ffffc90005037880 R15: dffffc0000000000
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:349 [inline]
 __get_locked_pte+0x2ad/0x390 mm/memory.c:1722
 get_locked_pte include/linux/mm.h:2160 [inline]
 __text_poke+0x280/0x9f0 arch/x86/kernel/alternative.c:1000
 text_poke arch/x86/kernel/alternative.c:1083 [inline]
 text_poke_bp_batch+0x4b0/0x940 arch/x86/kernel/alternative.c:1310
 text_poke_flush arch/x86/kernel/alternative.c:1451 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1458
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 static_key_disable_cpuslocked+0xcc/0x1b0 kernel/jump_label.c:207
 static_key_disable+0x16/0x20 kernel/jump_label.c:215
 tracepoint_remove_func kernel/tracepoint.c:417 [inline]
 tracepoint_probe_unregister+0x730/0x9c0 kernel/tracepoint.c:551
 bpf_raw_tp_link_release+0x5f/0x80 kernel/bpf/syscall.c:2881
 bpf_link_free kernel/bpf/syscall.c:2461 [inline]
 bpf_link_put+0x220/0x2b0 kernel/bpf/syscall.c:2487
 bpf_link_release+0x37/0x40 kernel/bpf/syscall.c:2495
 __fput+0x3fc/0x870 fs/file_table.c:280
 task_work_run+0x146/0x1c0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x209/0x220 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300
 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f52bdf95adb
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffefe51df80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f52bdf95adb
RDX: 00007f52be0fa600 RSI: ffffffffffffffff RDI: 0000000000000004
RBP: 00007f52be0f7960 R08: 0000000000000000 R09: 00007f52be0fa608
R10: 00007ffefe51e080 R11: 0000000000000293 R12: 0000000000130279
R13: 00007ffefe51e080 R14: 00007f52be0f5f60 R15: 0000000000000032
 </TASK>
rcu: rcu_preempt kthread starved for 10443 jiffies! g155501 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:26576 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4972 [inline]
 __schedule+0xb72/0x1460 kernel/sched/core.c:6253
 schedule+0x12b/0x1f0 kernel/sched/core.c:6326
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1881
 rcu_gp_fqs_loop+0x1fd/0x770 kernel/rcu/tree.c:1955
 rcu_gp_kthread+0xa5/0x350 kernel/rcu/tree.c:2128
 kthread+0x468/0x490 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 0
CPU: 0 PID: 1301 Comm: syz-executor.0 Not tainted 5.16.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_check_gp_kthread_starvation+0x1ff/0x270 kernel/rcu/tree_stall.h:481
 print_other_cpu_stall kernel/rcu/tree_stall.h:586 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:729 [inline]
 rcu_pending kernel/rcu/tree.c:3878 [inline]
 rcu_sched_clock_irq+0x23d5/0x2bc0 kernel/rcu/tree.c:2597
 update_process_times+0x197/0x200 kernel/time/timer.c:1785
 tick_sched_handle kernel/time/tick-sched.c:226 [inline]
 tick_sched_timer+0x27d/0x420 kernel/time/tick-sched.c:1428
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_single+0x2a2/0x570 kernel/smp.c:758
Code: e6 01 31 ff e8 5f c8 0b 00 41 83 e5 01 75 19 e8 44 c4 0b 00 e9 16 01 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 f3 90 <42> 0f b6 04 23 84 c0 75 15 f7 44 24 68 01 00 00 00 0f 84 e9 00 00
RSP: 0018:ffffc9000f4f7020 EFLAGS: 00000246
RAX: ffffffff8178b9fe RBX: 1ffff92001e9ee11 RCX: 0000000000040000
RDX: ffffc90002cc1000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc9000f4f7130 R08: ffffffff8178b9c1 R09: fffffbfff1ff3ddd
R10: fffffbfff1ff3ddd R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000001 R14: 0000000000000000 R15: ffffc9000f4f7088
 rcu_barrier+0x30e/0x550 kernel/rcu/tree.c:4024
 nft_rhash_destroy+0x23/0x40 net/netfilter/nft_set_hash.c:411
 nf_tables_newset+0x3d24/0x4320 net/netfilter/nf_tables_api.c:4467
 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:513 [inline]
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:634 [inline]
 nfnetlink_rcv+0x10e6/0x2550 net/netfilter/nfnetlink.c:652
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x814/0x9f0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0xaea/0xe60 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x5b9/0x910 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x280/0x370 net/socket.c:2492
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f9afc5d7e99
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9afaf4d168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f9afc6eaf60 RCX: 00007f9afc5d7e99
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007f9afc631ff1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffc04539ff R14: 00007f9afaf4d300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	eb be                	jmp    0xffffffc0
   2:	0f 0b                	ud2
   4:	e9 7a ff ff ff       	jmpq   0xffffff83
   9:	e8 ff 33 9a ff       	callq  0xff9a340d
   e:	eb b9                	jmp    0xffffffc9
  10:	49 89 f6             	mov    %rsi,%r14
  13:	48 89 fb             	mov    %rdi,%rbx
  16:	65 8b 05 08 f0 9b 7e 	mov    %gs:0x7e9bf008(%rip),%eax        # 0x7e9bf025
  1d:	83 f8 08             	cmp    $0x8,%eax
  20:	0f 83 86 00 00 00    	jae    0xac
  26:	41 89 c7             	mov    %eax,%r15d
* 29:	4c 89 f8             	mov    %r15,%rax <-- trapping instruction
  2c:	48 c1 e8 06          	shr    $0x6,%rax
  30:	48 8d 3c c5 68 ac fe 	lea    -0x72015398(,%rax,8),%rdi
  37:	8d
  38:	be 08 00 00 00       	mov    $0x8,%esi
  3d:	e8                   	.byte 0xe8
  3e:	fb                   	sti

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/31 20:05 upstream 4f3d93c6eaff e1768e9c .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in bpf_link_release
* Struck through repros no longer work on HEAD.