BUG: using __this_cpu_add() in preemptible code in __bpf_redirect

Status: premoderation: reported on 2026/10/31 06:55
Reported-by: syzbot+dc7f169c36d45c7f2d76@syzkaller.appspotmail.com
First crash: 19d, last: 19d

Sample crash report:
RSP: 002b:00007fc5200f4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fc521922fa0 RCX: 00007fc52169c559
RDX: 0000000000000050 RSI: 0000200000001500 RDI: 000000000000000a
RBP: 00007fc521733b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc521923038 R14: 00007fc521922fa0 R15: 00007fffa93005a8
---[ end trace 165a1a40631c31f7 ]---
check_preemption_disabled: 183 callbacks suppressed
BUG: using __this_cpu_add() in preemptible [00000000] code: syz.7.2010/7365
caller is __this_cpu_preempt_check+0x13/0x20 lib/smp_processor_id.c:65
CPU: 0 PID: 7365 Comm: syz.7.2010 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Call Trace:
 __dump_stack+0x21/0x24 lib/dump_stack.c:77
 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
 dump_stack+0x15/0x1c lib/dump_stack.c:135
 check_preemption_disabled+0xf7/0x100 lib/smp_processor_id.c:48
 __this_cpu_preempt_check+0x13/0x20 lib/smp_processor_id.c:65
 dev_xmit_recursion_dec include/linux/netdevice.h:3350 [inline]
 __bpf_tx_skb net/core/filter.c:2139 [inline]
 __bpf_redirect_no_mac net/core/filter.c:2172 [inline]
 __bpf_redirect+0x673/0xdd0 net/core/filter.c:2195
 ____bpf_clone_redirect net/core/filter.c:2488 [inline]
 bpf_clone_redirect+0x2d8/0x460 net/core/filter.c:2453
 bpf_prog_208b094576c80b22+0x56/0xff0
 bpf_dispatcher_nop_func include/linux/bpf.h:669 [inline]
 bpf_test_run+0x317/0x9c0 net/bpf/test_run.c:116
 bpf_prog_test_run_skb+0xa10/0x1160 net/bpf/test_run.c:644
 bpf_prog_test_run+0x34a/0x3c0 kernel/bpf/syscall.c:3156
 __do_sys_bpf kernel/bpf/syscall.c:4453 [inline]
 __se_sys_bpf+0x501/0x740 kernel/bpf/syscall.c:4391
 __x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:4391
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fc52169c559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc5200f4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fc521922fa0 RCX: 00007fc52169c559
RDX: 0000000000000050 RSI: 0000200000001500 RDI: 000000000000000a
RBP: 00007fc521733b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc521923038 R14: 00007fc521922fa0 R15: 00007fffa93005a8
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(val > preempt_count())
WARNING: CPU: 0 PID: 7365 at kernel/sched/core.c:4488 preempt_count_sub+0xa7/0x170 kernel/sched/core.c:4488
Modules linked in:
CPU: 1 PID: 7365 Comm: syz.7.2010 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:preempt_count_sub+0xa7/0x170 kernel/sched/core.c:4488
Code: e8 03 0f b6 04 18 84 c0 0f 85 8b 00 00 00 83 3d b6 e1 7e 05 00 75 d2 48 c7 c7 80 14 e8 84 48 c7 c6 20 15 e8 84 e8 19 68 35 03 <0f> 0b eb bb e8 50 9d f6 00 85 c0 74 b2 48 c7 c0 c8 b3 c3 86 48 c1
RSP: 0018:ffffc9000104faf0 EFLAGS: 00010246
RAX: afd3cc1d8b279100 RBX: dffffc0000000000 RCX: 0000000000080000
RDX: ffffc900035b1000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000104fb00 R08: ffffc9000104f487 R09: fffff52000209ec4
R10: dffffc0000000000 R11: fffff52000209e91 R12: 1ffff92000209f7a
R13: dffffc0000000000 R14: ffffc9000104fbd0 R15: 0000000000000001
FS:  00007fc5200f46c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556a3c948 CR3: 000000011710e000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 bpf_test_timer_leave net/bpf/test_run.c:-1 [inline]
 bpf_test_timer_continue+0x2b8/0x410 net/bpf/test_run.c:73
 bpf_test_run+0x475/0x9c0 net/bpf/test_run.c:120
 bpf_prog_test_run_skb+0xa10/0x1160 net/bpf/test_run.c:644
 bpf_prog_test_run+0x34a/0x3c0 kernel/bpf/syscall.c:3156
 __do_sys_bpf kernel/bpf/syscall.c:4453 [inline]
 __se_sys_bpf+0x501/0x740 kernel/bpf/syscall.c:4391
 __x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:4391
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fc52169c559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc5200f4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fc521922fa0 RCX: 00007fc52169c559
RDX: 0000000000000050 RSI: 0000200000001500 RDI: 000000000000000a
RBP: 00007fc521733b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc521923038 R14: 00007fc521922fa0 R15: 00007fffa93005a8
---[ end trace 165a1a40631c31f8 ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/31 06:55 android13-5.10-lts f61a392235e0 0ec395f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: using __this_cpu_add() in preemptible code in __bpf_redirect
2026/10/31 06:55 android13-5.10-lts f61a392235e0 0ec395f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: using __this_cpu_add() in preemptible code in __bpf_redirect
* Struck through repros no longer work on HEAD.