syzbot


WARNING in bpf_prog_test_run_xdp

Status: auto-obsoleted due to no activity on 2022/09/17 06:21
Reported-by: syzbot+79fd1ab62b382be6f337@syzkaller.appspotmail.com
First crash: 247d, last: 242d

Cause bisection: introduced by (bisect log) :
commit 1c194998252469cad00a08bd9ef0b99fd255c260
Author: Lorenzo Bianconi <lorenzo@kernel.org>
Date: Fri Jan 21 10:09:58 2022 +0000

  bpf: introduce frags support to bpf_prog_test_run_xdp()

Crash: WARNING in bpf_prog_test_run_xdp (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) :
commit c8980fcb210851138cb34c9a8cb0cf0c09f07bf9
Author: Roger Pau Monne <roger.pau@citrix.com>
Date: Fri Jan 21 09:01:46 2022 +0000

  xen/x2apic: enable x2apic mode when supported for HVM

Patch testing requests:
Created Duration User Patch Repo Result
2022/09/17 03:29 16m net-next OK log
2022/09/05 18:27 16m bpf-next OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3602 at include/linux/thread_info.h:230 check_copy_size include/linux/thread_info.h:230 [inline]
WARNING: CPU: 0 PID: 3602 at include/linux/thread_info.h:230 copy_from_user include/linux/uaccess.h:191 [inline]
WARNING: CPU: 0 PID: 3602 at include/linux/thread_info.h:230 bpf_prog_test_run_xdp+0xec7/0x1150 net/bpf/test_run.c:978
Modules linked in:
CPU: 0 PID: 3602 Comm: syz-executor654 Not tainted 5.17.0-rc1-syzkaller-00550-g000fe940e51f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:check_copy_size include/linux/thread_info.h:230 [inline]
RIP: 0010:copy_from_user include/linux/uaccess.h:191 [inline]
RIP: 0010:bpf_prog_test_run_xdp+0xec7/0x1150 net/bpf/test_run.c:978
Code: fd 06 48 c1 e5 0c 48 01 c5 e8 75 ca 0c fa 49 81 fe ff ff ff 7f 0f 86 08 fe ff ff 4c 8b 74 24 60 4c 8b 7c 24 68 e8 c9 c7 0c fa <0f> 0b 41 bc f2 ff ff ff e9 02 fb ff ff 4c 8b 74 24 60 4c 8b 7c 24
RSP: 0018:ffffc90001d1fb40 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000fffff0de RCX: 0000000000000000
RDX: ffff88801b9b0000 RSI: ffffffff876b9587 RDI: 0000000000000003
RBP: ffff888078659000 R08: 000000007fffffff R09: ffffffff8d93cd17
R10: ffffffff876b956b R11: 000000000000001f R12: 0000000000000dc0
R13: ffff88801de2e000 R14: 0000000000000000 R15: ffffc90000d8e000
FS:  000055555580d300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 000000007570b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_prog_test_run kernel/bpf/syscall.c:3356 [inline]
 __sys_bpf+0x1858/0x59a0 kernel/bpf/syscall.c:4658
 __do_sys_bpf kernel/bpf/syscall.c:4744 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4742 [inline]
 __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:4742
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7ff1abe6d1d9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffeaea41438 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff1abe6d1d9
RDX: 0000000000000048 RSI: 00000000200013c0 RDI: 000000000000000a
RBP: 00007ff1abe311c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff1abe31250
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2022/02/03 02:37 net-next 000fe940e51f 4ebb2798 .config log report syz C WARNING in bpf_prog_test_run_xdp
ci-upstream-bpf-next-kasan-gce 2022/02/02 23:11 bpf-next dd5152ab338c 4ebb2798 .config log report syz C WARNING in bpf_prog_test_run_xdp
ci-upstream-net-kasan-gce 2022/01/30 03:10 net-next ff58831fa02d 495e00c5 .config log report info WARNING in bpf_prog_test_run_xdp
ci-upstream-bpf-next-kasan-gce 2022/01/29 09:08 bpf-next b3dddab2ff10 495e00c5 .config log report info WARNING in bpf_prog_test_run_xdp
* Struck through repros no longer work on HEAD.