syzbot


kernel BUG in prog_array_map_poke_run

Status: upstream: reported C repro on 2023/11/08 01:21
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+8d05832106d723fa0f4e@syzkaller.appspotmail.com
First crash: 219d, last: 174d
Bug presence (3)
Date Name Commit Repro Result
2023/12/23 linux-6.1.y (ToT) 4aa6747d9352 C [report] kernel BUG in prog_array_map_poke_run
2023/11/08 upstream (ToT) 305230142ae0 C [report] kernel BUG in prog_array_map_poke_run
2023/12/23 upstream (ToT) c0f65a7c112b C Didn't crash
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in prog_array_map_poke_run origin:upstream missing-backport C done 16 161d 219d 0/3 upstream: reported C repro on 2023/11/07 11:42
upstream kernel BUG in prog_array_map_poke_run bpf C done done 35 179d 219d 25/28 fixed on 2024/01/23 01:55
android-6-1 kernel BUG in prog_array_map_poke_run origin:upstream missing-backport C error 14 161d 220d 2/2 fixed on 2024/01/09 06:37
android-5-15 kernel BUG in prog_array_map_poke_run missing-backport origin:upstream C done 32 152d 220d 0/2 auto-obsoleted due to no activity on 2024/03/24 07:32
android-5-10 kernel BUG in prog_array_map_poke_run C 169 2d00h 220d 0/2 upstream: reported C repro on 2023/11/07 04:51
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/12/23 13:16 7h40m fix candidate upstream job log (1)

Sample crash report:
------------[ cut here ]------------
kernel BUG at kernel/bpf/arraymap.c:1077!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7 Comm: kworker/0:0 Not tainted 6.1.63-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: events prog_array_map_clear_deferred
RIP: 0010:prog_array_map_poke_run+0x659/0x670 kernel/bpf/arraymap.c:1077
Code: ca e5 ff 48 83 c4 68 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ea ca e5 ff 0f 0b e9 1c fa ff ff e8 de ca e5 ff 0f 0b e8 d7 ca e5 ff <0f> 0b e8 d0 ca e5 ff 0f 0b e8 c9 ca e5 ff 0f 0b 0f 1f 80 00 00 00
RSP: 0018:ffffc900000c7ab8 EFLAGS: 00010293
RAX: ffffffff81a4c519 RBX: 00000000fffffff0 RCX: ffff88813fe43b80
RDX: 0000000000000000 RSI: 00000000fffffff0 RDI: 00000000ffffffea
RBP: ffff888028306c10 R08: ffffffff81a4c2bc R09: fffff52000018f2d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888029775310
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f69b76c5d58 CR3: 000000000ce8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 fd_array_map_delete_elem+0x13c/0x230 kernel/bpf/arraymap.c:871
 bpf_fd_array_map_clear kernel/bpf/arraymap.c:918 [inline]
 prog_array_map_clear_deferred+0xfb/0x210 kernel/bpf/arraymap.c:1097
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:prog_array_map_poke_run+0x659/0x670 kernel/bpf/arraymap.c:1077
Code: ca e5 ff 48 83 c4 68 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ea ca e5 ff 0f 0b e9 1c fa ff ff e8 de ca e5 ff 0f 0b e8 d7 ca e5 ff <0f> 0b e8 d0 ca e5 ff 0f 0b e8 c9 ca e5 ff 0f 0b 0f 1f 80 00 00 00
RSP: 0018:ffffc900000c7ab8 EFLAGS: 00010293
RAX: ffffffff81a4c519 RBX: 00000000fffffff0 RCX: ffff88813fe43b80
RDX: 0000000000000000 RSI: 00000000fffffff0 RDI: 00000000ffffffea
RBP: ffff888028306c10 R08: ffffffff81a4c2bc R09: fffff52000018f2d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888029775310
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f69b7782da8 CR3: 000000000ce8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/28 00:36 linux-6.1.y 69e434a1cb21 7ec6c044 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf kernel BUG in prog_array_map_poke_run
2023/11/08 02:54 linux-6.1.y 4a61839152cc 83211397 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf kernel BUG in prog_array_map_poke_run
2023/11/08 01:21 linux-6.1.y 4a61839152cc 83211397 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf kernel BUG in prog_array_map_poke_run
* Struck through repros no longer work on HEAD.