[v6.1] invalid opcode in bpf_dispatcher_xdp

0 views
Skip to first unread message

syzbot

unread,
Oct 7, 2023, 2:11:46 AM10/7/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ecda77b46871 Linux 6.1.56
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11aef252680000
kernel config: https://syzkaller.appspot.com/x/.config?x=e82fa6f6f9ab7d72
dashboard link: https://syzkaller.appspot.com/bug?extid=7ea81ba9180113ec63d2
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/26156996757c/disk-ecda77b4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/df4f6e37d40e/vmlinux-ecda77b4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7c5207dbf773/bzImage-ecda77b4.xz

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

invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5979 Comm: syz-executor.2 Not tainted 6.1.56-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:bpf_dispatcher_xdp+0x88b/0x1000
Code: 81 fa 2c 20 00 a0 7f 17 48 81 fa 2c 20 00 a0 0f 84 76 dc ff ff ff e2 0f 1f 84 00 00 00 00 00 48 81 fa a8 20 00 a0 0f 84 db dc <ff> ff ff e2 90 48 81 fa a4 21 00 a0 7f 47 48 81 fa 64 21 00 a0 7f
RSP: 0018:ffffc90004b47978 EFLAGS: 00010246
RAX: ffffffff888ced93 RBX: ffffc90004b47a60 RCX: 0000000000040000
RDX: ffffffffa00020a8 RSI: ffffc9000483b048 RDI: ffffc90004b47c80
RBP: ffffc90004b47b70 R08: ffffffff88bd38a7 R09: ffffed10056e93b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc9000483b030 R14: 0000000000000000 R15: ffffc90004b47c60
FS: 00007f77393de6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb2783e6d58 CR3: 000000004c0e1000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bpf_prog_test_run_xdp+0x7a7/0x1130 net/bpf/test_run.c:1389
bpf_prog_test_run+0x32f/0x3a0 kernel/bpf/syscall.c:3633
__sys_bpf+0x3eb/0x6c0 kernel/bpf/syscall.c:4986
__do_sys_bpf kernel/bpf/syscall.c:5072 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5070 [inline]
__x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5070
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f773867cae9
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:00007f77393de0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f773879c120 RCX: 00007f773867cae9
RDX: 0000000000000048 RSI: 0000000020001480 RDI: 000000000000000a
RBP: 00007f77386c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f773879c120 R15: 00007fffc972eb08
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_dispatcher_xdp+0x88b/0x1000
Code: 81 fa e8 21 00 a0 0f 84 3b de ff ff ff e2 ff e2 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 81 fa a8 20 00 a0 0f 84 db dc <ff> ff ff e2 90 48 81 fa e8 21 00 a0 0f 84 0b de ff ff ff e2 00 48
RSP: 0018:ffffc90004b47978 EFLAGS: 00010246
RAX: ffffffff888ced93 RBX: ffffc90004b47a60 RCX: 0000000000040000
RDX: ffffffffa00020a8 RSI: ffffc9000483b048 RDI: ffffc90004b47c80
RBP: ffffc90004b47b70 R08: ffffffff88bd38a7 R09: ffffed10056e93b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc9000483b030 R14: 0000000000000000 R15: ffffc90004b47c60
FS: 00007f77393de6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32725000 CR3: 000000004c0e1000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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 bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

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

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

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Oct 7, 2023, 1:09:56 PM10/7/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: ecda77b46871 Linux 6.1.56
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1761d311680000
kernel config: https://syzkaller.appspot.com/x/.config?x=e82fa6f6f9ab7d72
dashboard link: https://syzkaller.appspot.com/bug?extid=7ea81ba9180113ec63d2
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=154563f1680000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/26156996757c/disk-ecda77b4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/df4f6e37d40e/vmlinux-ecda77b4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7c5207dbf773/bzImage-ecda77b4.xz

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

invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3903 Comm: syz-executor.4 Not tainted 6.1.56-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:bpf_dispatcher_xdp+0xd/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 48 81 fa 18 07 00 a0 7f 47 48 81 fa c8 <06> 00 a0 7f 2e 48 81 fa 60 06 00 a0 7f 15 48 81 fa 60 06 00 a0 0f
RSP: 0018:ffffc90004dff978 EFLAGS: 00010287
RAX: ffffffff888ced93 RBX: ffffc90004dffa60 RCX: ffff888063c61dc0
RDX: ffffffffa00006c8 RSI: ffffc90004c8d048 RDI: ffffc90004dffc80
RBP: ffffc90004dffb70 R08: ffffffff88bd38a7 R09: ffffed100c78c3b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90004c8d030 R14: 0000000000000000 R15: ffffc90004dffc60
FS: 00007f6b813966c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 0000000026165000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bpf_prog_test_run_xdp+0x7a7/0x1130 net/bpf/test_run.c:1389
bpf_prog_test_run+0x32f/0x3a0 kernel/bpf/syscall.c:3633
__sys_bpf+0x3eb/0x6c0 kernel/bpf/syscall.c:4986
__do_sys_bpf kernel/bpf/syscall.c:5072 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5070 [inline]
__x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5070
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6b8067cae9
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:00007f6b813960c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f6b8079bf80 RCX: 00007f6b8067cae9
RDX: 0000000000000048 RSI: 0000000020001480 RDI: 000000000000000a
RBP: 00007f6b806c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6b8079bf80 R15: 00007ffe63dce938
</TASK>
Modules linked in:


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
Jan 10, 2024, 9:37:30 PMJan 10
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 7c58bfa711cb Linux 6.1.72
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=124adf5de80000
kernel config: https://syzkaller.appspot.com/x/.config?x=36d06871d6eebdd3
dashboard link: https://syzkaller.appspot.com/bug?extid=7ea81ba9180113ec63d2
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=128f4f5be80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13838469e80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2a24ee1b98bf/disk-7c58bfa7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1cb50190fbd6/vmlinux-7c58bfa7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/8ae16f01ccb4/bzImage-7c58bfa7.xz

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

invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4850 Comm: syz-executor351 Not tainted 6.1.72-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:bpf_dispatcher_xdp+0xb/0x1000
Code: 0a b8 00 00 ff 7f e9 33 fd ff ff 31 c0 e9 2c fd ff ff cc cc cc cc cc cc cc cc cc cc cc cc cc 48 81 fa 14 1a 00 a0 0f 84 47 e1 <ff> ff ff e2 a0 7f 1e 48 81 fa f8 08 00 a0 0f 84 19 d0 ff ff ff e2
RSP: 0018:ffffc9000506f978 EFLAGS: 00010246
RAX: ffffffff888cff93 RBX: ffffc9000506fa60 RCX: ffff888020a61dbf
RDX: ffffffffa0001a14 RSI: ffffc900087a9048 RDI: ffffc9000506fc80
RBP: ffffc9000506fb70 R08: ffffffff88bd6207 R09: ffffed100414c3b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc900087a9030 R14: 0000000000000000 R15: ffffc9000506fc60
FS: 0000555556f29380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7f997bb110 CR3: 00000000274b1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bpf_prog_test_run_xdp+0x7a7/0x1130 net/bpf/test_run.c:1389
bpf_prog_test_run+0x32f/0x3a0 kernel/bpf/syscall.c:3633
__sys_bpf+0x3eb/0x6c0 kernel/bpf/syscall.c:4986
__do_sys_bpf kernel/bpf/syscall.c:5072 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5070 [inline]
__x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5070
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:0x7f7f99741c69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff3c628e78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7f99741c69
RDX: 0000000000000050 RSI: 0000000020000000 RDI: 000000000000000a
RBP: 0000000000000000 R08: 00000000000000a0 R09: 00000000000000a0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bpf_dispatcher_xdp+0xb/0x1000
Code: 0a b8 00 00 ff 7f e9 33 fd ff ff 31 c0 e9 2c fd ff ff cc cc cc cc cc cc cc cc cc cc cc cc cc 48 81 fa 4c 71 00 a0 7f 37 48 81 <fa> 14 1a 00 a0 7f 1e 48 81 fa 14 1a 00 a0 0f 84 35 e1 ff ff ff e2
RSP: 0018:ffffc9000506f978 EFLAGS: 00010246
RAX: ffffffff888cff93 RBX: ffffc9000506fa60 RCX: ffff888020a61dbf
RDX: ffffffffa0001a14 RSI: ffffc900087a9048 RDI: ffffc9000506fc80
RBP: ffffc9000506fb70 R08: ffffffff88bd6207 R09: ffffed100414c3b9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc900087a9030 R14: 0000000000000000 R15: ffffc9000506fc60
FS: 0000555556f29380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7f997bb110 CR3: 00000000274b1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
Reply all
Reply to author
Forward
0 new messages