syzbot


invalid opcode in bpf_dispatcher_xdp

Status: upstream: reported C repro on 2023/05/28 12:21
Reported-by: syzbot+bbeac345f0dc2a3d110a@syzkaller.appspotmail.com
First crash: 543d, last: 33d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit d0d2df38f5d01930d9441b259890cfb04bfea5cd
Author: Jiri Olsa <jolsa@kernel.org>
Date: Wed Dec 14 12:35:42 2022 +0000

  bpf: Synchronize dispatcher update with bpf_dispatcher_xdp_func

  
Bug presence (2)
Date Name Commit Repro Result
2024/11/17 lts (merge base) aa4cd140bba5 C Didn't crash
2024/11/17 upstream (ToT) 4a5df3796467 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 invalid opcode in bpf_dispatcher_xdp origin:lts-only C unreliable 14 233d 411d 0/3 upstream: reported C repro on 2023/10/07 06:11
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/11/20 02:14 8h02m bisect fix android14-6.1 OK (1) job log
2024/08/07 02:01 1h49m bisect fix android14-6.1 OK (0) job log log
2024/05/16 23:56 1h50m bisect fix android14-6.1 OK (0) job log log
2023/06/28 18:28 41m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 29863 Comm: syz-executor.2 Not tainted 6.1.68-syzkaller-00147-g9265fa90c1dd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:bpf_dispatcher_xdp+0xc/0x1000
Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 81 fa 48 1c 00 a0 0f 84 fb e0 ff <ff> ff e2 a0 7f 1e 48 81 fa 4c 1b 00 a0 0f 84 ed df ff ff ff e2 0f
RSP: 0018:ffffc90000fe78b0 EFLAGS: 00010246
RAX: ffffffff8413a737 RBX: ffffc90000fe7c00 RCX: ffff888111e0d0ff
RDX: ffffffffa0001c48 RSI: ffffc90000ffb050 RDI: ffffc90000fe7c00
RBP: ffffc90000fe78d0 R08: ffffffff842ce23d R09: ffffed10223c1a21
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90000ffb030 R14: ffffffffa0001c48 R15: ffffc90000ffb050
FS:  00007ff802dc96c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200013c0 CR3: 0000000123295000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __bpf_prog_run include/linux/filter.h:600 [inline]
 bpf_prog_run_xdp include/linux/filter.h:775 [inline]
 bpf_test_run+0x470/0xa40 net/bpf/test_run.c:400
 bpf_prog_test_run_xdp+0x7a7/0x1130 net/bpf/test_run.c:1389
 bpf_prog_test_run+0x3b0/0x630 kernel/bpf/syscall.c:3635
 __sys_bpf+0x59f/0x7f0 kernel/bpf/syscall.c:4990
 __do_sys_bpf kernel/bpf/syscall.c:5076 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5074 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5074
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff80207dda9
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:00007ff802dc90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ff8021abf80 RCX: 00007ff80207dda9
RDX: 0000000000000050 RSI: 0000000020000740 RDI: 000000000000000a
RBP: 00007ff8020ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007ff8021abf80 R15: 00007ffd6cafbf38
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_dispatcher_xdp+0xc/0x1000
Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 81 fa c8 1d 00 a0 7f 37 48 81 fa <48> 1c 00 a0 7f 1e 48 81 fa 48 1c 00 a0 0f 84 e9 e0 ff ff ff e2 0f
RSP: 0018:ffffc90000fe78b0 EFLAGS: 00010246
RAX: ffffffff8413a737 RBX: ffffc90000fe7c00 RCX: ffff888111e0d0ff
RDX: ffffffffa0001c48 RSI: ffffc90000ffb050 RDI: ffffc90000fe7c00
RBP: ffffc90000fe78d0 R08: ffffffff842ce23d R09: ffffed10223c1a21
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90000ffb030 R14: ffffffffa0001c48 R15: ffffc90000ffb050
FS:  00007ff802dc96c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200013c0 CR3: 0000000123295000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (55):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/30 22:35 android14-6.1 9265fa90c1dd 7f400fcb .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/13 19:03 android14-6.1 b2b3a1e6d1bb ebcad15c .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/10/04 19:12 android14-6.1 d4dab27b9d1c d7906eff .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/04/13 12:20 android14-6.1 cfa154389a65 c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in bpf_dispatcher_xdp
2024/03/14 11:59 android14-6.1 ef39f76e4d24 8d8ee116 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/02/27 07:13 android14-6.1 7114c782ec16 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/02/24 02:25 android14-6.1 8c0f9174731d 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/02/19 06:10 android14-6.1 92432f07d663 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/02/07 20:20 android14-6.1 696293ef723c 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/01/28 07:10 android14-6.1 2730733d54b6 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/01/20 22:33 android14-6.1 aba5a3fe094e 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/01/18 03:36 android14-6.1 899194d7e909 915053c7 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/01/16 06:16 android14-6.1 66cd99ccdbea 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in bpf_dispatcher_xdp
2024/01/11 04:20 android14-6.1 7c91752f5dd9 04815ef1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/01/08 10:16 android14-6.1 ac90f0829243 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2024/01/07 22:35 android14-6.1 ac90f0829243 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/28 14:28 android14-6.1 401a2769d990 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/25 01:28 android14-6.1 401a2769d990 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/13 19:01 android14-6.1 b2b3a1e6d1bb ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/13 05:36 android14-6.1 a9567a35d0b8 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/13 01:37 android14-6.1 a9567a35d0b8 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/12 21:52 android14-6.1 a9567a35d0b8 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/10 19:00 android14-6.1 ddf142e5a817 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/10 10:33 android14-6.1 ddf142e5a817 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/12/09 00:14 android14-6.1 ddf142e5a817 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/11/26 23:37 android14-6.1 d2c0f4c4502a 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/11/23 01:00 android14-6.1 5c8e593916ad 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/11/17 23:31 android14-6.1 1b639e97b8fc cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/11/14 10:20 android14-6.1 a59b32866cd4 cb976f63 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in bpf_dispatcher_xdp
2023/11/14 03:19 android14-6.1 a59b32866cd4 cb976f63 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/11/11 09:16 android14-6.1 48c6c901fe0e d80eec66 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in bpf_dispatcher_xdp
2023/11/11 06:52 android14-6.1 48c6c901fe0e d80eec66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/11/03 23:43 android14-6.1 7bec8a818066 500bfdc4 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/10/30 22:51 android14-6.1 9e4f6e1ef8ce b5729d82 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/10/29 00:46 android14-6.1 5418491fa533 3c418d72 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/10/25 14:20 android14-6.1 63d4231d85e2 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/10/22 21:26 android14-6.1 53771c1826da 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/10/22 06:45 android14-6.1 53771c1826da 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/10/22 06:25 android14-6.1 53771c1826da 361b23dc .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in bpf_dispatcher_xdp
2023/10/10 15:31 android14-6.1 4fcc13c1ff37 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/10/08 12:45 android14-6.1 1fe248991f96 5e837c76 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in bpf_dispatcher_xdp
2023/09/29 09:18 android14-6.1 45fe413fdfdb d265efd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/09/29 01:19 android14-6.1 45fe413fdfdb d265efd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in bpf_dispatcher_xdp
2023/09/17 16:01 android14-6.1 d3212c2dbaba 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/09/10 11:09 android14-6.1 cd94fe67fd33 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/07/25 20:29 android14-6.1 0ee75a672ca5 6756545c .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/05/28 14:02 android14-6.1 500484f5be02 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 invalid opcode in bpf_dispatcher_xdp
2023/05/28 12:20 android14-6.1 500484f5be02 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/08/29 11:22 android14-6.1 5b0878fc616a 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/08/28 04:27 android14-6.1 5ef132d5643b 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/08/27 16:00 android14-6.1 5ef132d5643b 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/08/24 14:53 android14-6.1 6923dcc21df4 4d7ae7ab .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/08/24 08:28 android14-6.1 9fd41ac1729d 4d7ae7ab .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/08/20 20:25 android14-6.1 c2611a04b92f d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
2023/08/17 23:24 android14-6.1 3ebafb7b468b 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf invalid opcode in bpf_dispatcher_xdp
* Struck through repros no longer work on HEAD.