[v6.1] INFO: rcu detected stall in sys_bpf

0 views
Skip to first unread message

syzbot

unread,
Apr 20, 2024, 6:27:33 AM (13 days ago) Apr 20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6741e066ec76 Linux 6.1.87
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15f53a6f180000
kernel config: https://syzkaller.appspot.com/x/.config?x=3fc2f61bd0ae457
dashboard link: https://syzkaller.appspot.com/bug?extid=66feb346d5c375250c6e
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/665ba05da528/disk-6741e066.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2ec8afc9ea0a/vmlinux-6741e066.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b0dbfd69f35b/bzImage-6741e066.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+66feb3...@syzkaller.appspotmail.com

rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2656 jiffies s: 11637 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6561 Comm: syz-executor.4 Not tainted 6.1.87-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:instrument_atomic_read include/linux/instrumented.h:72 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4748 [inline]
RIP: 0010:__lock_acquire+0x782/0x1f80 kernel/locking/lockdep.c:4999
Code: e8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 2f 01 00 00 41 8b 5d 00 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 20 a2 49 90 <be> 08 00 00 00 e8 b4 96 77 00 48 0f a3 1d 9c 30 df 0e 73 1b 48 8d
RSP: 0018:ffffc90000007540 EFLAGS: 00000047
RAX: 0000000000000000 RBX: 000000000000002c RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffff88805d1d28a0 RDI: ffffffff9049a220
RBP: ffff88805d1d28c0 R08: dffffc0000000000 R09: fffffbfff2093445
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff88805d1d28c0 R14: 0000000000000000 R15: 1ffff1100ba3a502
FS: 00007f343108c6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32025000 CR3: 00000000296ac000 CR4: 00000000003506f0
DR0: 0080ffff00000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
<NMI>
</NMI>
<IRQ>
lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
rcu_read_lock include/linux/rcupdate.h:791 [inline]
trace_call_bpf+0xdf/0x6a0 kernel/trace/bpf_trace.c:134
perf_trace_run_bpf_submit+0x7b/0x1d0 kernel/events/core.c:9924
perf_trace_preemptirq_template+0x2d1/0x3d0 include/trace/events/preemptirq.h:14
trace_irq_enable_rcuidle+0xd5/0x140 include/trace/events/preemptirq.h:40
trace_hardirqs_on+0x24/0x40 kernel/trace/trace_preemptirq.c:44
asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:679
RIP: 0010:rcu_read_unlock_special+0x84/0x540 kernel/rcu/tree_plugin.h:682
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 2d 59 8e 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc90000007ac0 EFLAGS: 00000206
RAX: c5fb51392c5c5300 RBX: 1ffff92000000f60 RCX: ffffffff91c92103
RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: ffffffff8b3d4320
RBP: ffffc90000007ba0 R08: ffffffff81b624bc R09: ffffed1017306ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8d12fb00
R13: ffff88805d1d2218 R14: ffffc90000007b00 R15: 1ffff92000000f5c
__rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
rcu_read_unlock include/linux/rcupdate.h:823 [inline]
ieee80211_iterate_active_interfaces_atomic+0x153/0x170 net/mac80211/util.c:826
mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142
__run_hrtimer kernel/time/hrtimer.c:1686 [inline]
__hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1750
hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1767
__do_softirq+0x2e9/0xa4c kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:preempt_schedule_irq+0xf2/0x1c0 kernel/sched/core.c:6870
Code: 89 f5 49 c1 ed 03 eb 0d 48 f7 03 08 00 00 00 0f 84 97 00 00 00 bf 01 00 00 00 e8 f9 43 cb f6 e8 84 43 fe f6 fb bf 01 00 00 00 <e8> 99 b4 ff ff 43 80 7c 3d 00 00 74 08 4c 89 f7 e8 d9 f8 4e f7 48
RSP: 0018:ffffc90004936da0 EFLAGS: 00000286
RAX: c5fb51392c5c5300 RBX: 1ffff92000926dbc RCX: ffffffff91c92103
RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: 0000000000000001
RBP: ffffc90004936e50 R08: ffffffff81b624bc R09: ffffed1017306ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000926db4
R13: 1ffff92000926db8 R14: ffffc90004936dc0 R15: dffffc0000000000
irqentry_exit+0x53/0x80 kernel/entry/common.c:439
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:memcpy_erms+0x8/0x10 arch/x86/lib/memcpy_64.S:57
Code: ff cc eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4 <c3> 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35
RSP: 0018:ffffc90004936f10 EFLAGS: 00000296
RAX: ffff8880586434a0 RBX: ffff8881436e88c0 RCX: 0000000000000000
RDX: 0000000000000008 RSI: ffff8881436e88c8 RDI: ffff8880586434a8
RBP: ffff8880586434a0 R08: 0000000000000020 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805d38d070
R13: dffffc0000000000 R14: 0000000000100cc0 R15: 0000000000000008
__do_krealloc mm/slab_common.c:1352 [inline]
krealloc+0x81/0xf0 mm/slab_common.c:1381
push_jmp_history kernel/bpf/verifier.c:2542 [inline]
is_state_visited kernel/bpf/verifier.c:12330 [inline]
do_check kernel/bpf/verifier.c:12527 [inline]
do_check_common+0x78bf/0xc1d0 kernel/bpf/verifier.c:15006
do_check_main kernel/bpf/verifier.c:15069 [inline]
bpf_check+0x1039b/0x15ea0 kernel/bpf/verifier.c:15646
bpf_prog_load+0x12df/0x1bb0 kernel/bpf/syscall.c:2631
__sys_bpf+0x382/0x6c0 kernel/bpf/syscall.c:5005
__do_sys_bpf kernel/bpf/syscall.c:5109 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5107 [inline]
__x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5107
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f343027dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f343108c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f34303abf80 RCX: 00007f343027dea9
RDX: 0000000000000048 RSI: 00000000200054c0 RDI: 0000000000000005
RBP: 00007f34302ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f34303abf80 R15: 00007ffe0a2271c8
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages