syzbot


BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf

Status: upstream: reported on 2025/07/24 22:44
Reported-by: syzbot+542889457ba46ef15958@syzkaller.appspotmail.com
First crash: 38d, last: 17d

Sample crash report:
BUG: assuming non migratable context at include/linux/filter.h:599
in_atomic(): 0, irqs_disabled(): 0, migration_disabled() 0 pid: 6473, name: syz.1.121
2 locks held by syz.1.121/6473:
 #0: ffff88807c5f0130 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1731 [inline]
 #0: ffff88807c5f0130 (sk_lock-AF_INET){+.+.}-{0:0}, at: raw_sendmsg+0x13d8/0x1950 net/ipv4/raw.c:642
 #1: ffffffff8cd2fba0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #1: ffffffff8cd2fba0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #1: ffffffff8cd2fba0 (rcu_read_lock){....}-{1:2}, at: nf_hook+0x9e/0x370 include/linux/netfilter.h:228
CPU: 1 PID: 6473 Comm: syz.1.121 Not tainted 6.6.101-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 __cant_migrate+0x234/0x2e0 kernel/sched/core.c:10269
 __bpf_prog_run include/linux/filter.h:599 [inline]
 bpf_prog_run include/linux/filter.h:619 [inline]
 nf_hook_run_bpf+0x90/0x1e0 net/netfilter/nf_bpf_link.c:20
 nf_hook_entry_hookfn include/linux/netfilter.h:144 [inline]
 nf_hook_slow+0xbd/0x200 net/netfilter/core.c:626
 nf_hook+0x215/0x370 include/linux/netfilter.h:259
 NF_HOOK include/linux/netfilter.h:302 [inline]
 ip_mc_output+0x22d/0x580 net/ipv4/ip_output.c:399
 dst_output include/net/dst.h:467 [inline]
 ip_local_out net/ipv4/ip_output.c:129 [inline]
 ip_send_skb+0x12d/0x1d0 net/ipv4/ip_output.c:1491
 raw_sendmsg+0x1488/0x1950 net/ipv4/raw.c:649
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 ____sys_sendmsg+0x5bf/0x950 net/socket.c:2595
 ___sys_sendmsg+0x220/0x290 net/socket.c:2649
 __sys_sendmsg net/socket.c:2678 [inline]
 __do_sys_sendmsg net/socket.c:2687 [inline]
 __se_sys_sendmsg+0x1a5/0x270 net/socket.c:2685
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fe871f8ebe9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe872d22038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fe8721b5fa0 RCX: 00007fe871f8ebe9
RDX: 0000000020002800 RSI: 0000200000001640 RDI: 0000000000000006
RBP: 00007fe872011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe8721b6038 R14: 00007fe8721b5fa0 R15: 00007fffe874a578
 </TASK>
BUG: using smp_processor_id() in preemptible [00000000] code: syz.1.121/6473
caller is __bpf_prog_run include/linux/filter.h:606 [inline]
caller is bpf_prog_run include/linux/filter.h:619 [inline]
caller is nf_hook_run_bpf+0x157/0x1e0 net/netfilter/nf_bpf_link.c:20
CPU: 0 PID: 6473 Comm: syz.1.121 Tainted: G        W          6.6.101-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 check_preemption_disabled+0x104/0x110 lib/smp_processor_id.c:49
 __bpf_prog_run include/linux/filter.h:606 [inline]
 bpf_prog_run include/linux/filter.h:619 [inline]
 nf_hook_run_bpf+0x157/0x1e0 net/netfilter/nf_bpf_link.c:20
 nf_hook_entry_hookfn include/linux/netfilter.h:144 [inline]
 nf_hook_slow+0xbd/0x200 net/netfilter/core.c:626
 nf_hook+0x215/0x370 include/linux/netfilter.h:259
 NF_HOOK include/linux/netfilter.h:302 [inline]
 ip_mc_output+0x22d/0x580 net/ipv4/ip_output.c:399
 dst_output include/net/dst.h:467 [inline]
 ip_local_out net/ipv4/ip_output.c:129 [inline]
 ip_send_skb+0x12d/0x1d0 net/ipv4/ip_output.c:1491
 raw_sendmsg+0x1488/0x1950 net/ipv4/raw.c:649
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 ____sys_sendmsg+0x5bf/0x950 net/socket.c:2595
 ___sys_sendmsg+0x220/0x290 net/socket.c:2649
 __sys_sendmsg net/socket.c:2678 [inline]
 __do_sys_sendmsg net/socket.c:2687 [inline]
 __se_sys_sendmsg+0x1a5/0x270 net/socket.c:2685
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fe871f8ebe9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe872d22038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fe8721b5fa0 RCX: 00007fe871f8ebe9
RDX: 0000000020002800 RSI: 0000200000001640 RDI: 0000000000000006
RBP: 00007fe872011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe8721b6038 R14: 00007fe8721b5fa0 R15: 00007fffe874a578
 </TASK>
BUG: using smp_processor_id() in preemptible [00000000] code: syz.1.121/6473
caller is __bpf_prog_run include/linux/filter.h:606 [inline]
caller is bpf_prog_run include/linux/filter.h:619 [inline]
caller is nf_hook_run_bpf+0x157/0x1e0 net/netfilter/nf_bpf_link.c:20
CPU: 1 PID: 6473 Comm: syz.1.121 Tainted: G        W          6.6.101-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 check_preemption_disabled+0x104/0x110 lib/smp_processor_id.c:49
 __bpf_prog_run include/linux/filter.h:606 [inline]
 bpf_prog_run include/linux/filter.h:619 [inline]
 nf_hook_run_bpf+0x157/0x1e0 net/netfilter/nf_bpf_link.c:20
 nf_hook_entry_hookfn include/linux/netfilter.h:144 [inline]
 nf_hook_slow+0xbd/0x200 net/netfilter/core.c:626
 nf_hook+0x215/0x370 include/linux/netfilter.h:259
 NF_HOOK_COND include/linux/netfilter.h:292 [inline]
 ip_mc_output+0x424/0x580 net/ipv4/ip_output.c:420
 dst_output include/net/dst.h:467 [inline]
 ip_local_out net/ipv4/ip_output.c:129 [inline]
 ip_send_skb+0x12d/0x1d0 net/ipv4/ip_output.c:1491
 raw_sendmsg+0x1488/0x1950 net/ipv4/raw.c:649
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 ____sys_sendmsg+0x5bf/0x950 net/socket.c:2595
 ___sys_sendmsg+0x220/0x290 net/socket.c:2649
 __sys_sendmsg net/socket.c:2678 [inline]
 __do_sys_sendmsg net/socket.c:2687 [inline]
 __se_sys_sendmsg+0x1a5/0x270 net/socket.c:2685
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fe871f8ebe9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe872d22038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fe8721b5fa0 RCX: 00007fe871f8ebe9
RDX: 0000000020002800 RSI: 0000200000001640 RDI: 0000000000000006
RBP: 00007fe872011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe8721b6038 R14: 00007fe8721b5fa0 R15: 00007fffe874a578
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/14 12:53 linux-6.6.y 3a8ababb8b6a 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/14 12:52 linux-6.6.y 3a8ababb8b6a 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/14 01:41 linux-6.6.y 3a8ababb8b6a 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/14 01:39 linux-6.6.y 3a8ababb8b6a 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/14 01:28 linux-6.6.y 3a8ababb8b6a 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/14 01:28 linux-6.6.y 3a8ababb8b6a 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/09 05:00 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/08 13:02 linux-6.6.y 3a8ababb8b6a 6a893178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/08 13:02 linux-6.6.y 3a8ababb8b6a 6a893178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/08 00:44 linux-6.6.y 3a8ababb8b6a 04cffc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/08 00:44 linux-6.6.y 3a8ababb8b6a 04cffc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/08/06 21:16 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/07/25 12:09 linux-6.6.y dbcb8d8e4163 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/07/24 22:43 linux-6.6.y dbcb8d8e4163 65d60d73 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
2025/07/24 22:43 linux-6.6.y dbcb8d8e4163 65d60d73 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: using smp_processor_id() in preemptible code in nf_hook_run_bpf
* Struck through repros no longer work on HEAD.