syzbot


kernel BUG in prog_array_map_poke_run

Status: upstream: reported C repro on 2023/11/07 11:42
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+ac89e36969de34892034@syzkaller.appspotmail.com
First crash: 380d, last: 322d
Fix commit to backport (bisect log) :
tree: upstream
commit 4b7de801606e504e69689df71475d27e35336fb3
Author: Jiri Olsa <jolsa@kernel.org>
Date: Wed Dec 6 08:30:40 2023 +0000

  bpf: Fix prog_array_map_poke_run map poke update

[report pending]
  
Bug presence (3)
Date Name Commit Repro Result
2023/12/22 linux-5.15.y (ToT) 1d146b1875fc C [report] kernel BUG in prog_array_map_poke_run
2023/11/07 upstream (ToT) be3ca57cfb77 C [report] kernel BUG in prog_array_map_poke_run
2023/12/22 upstream (ToT) 24e0d2e527a3 C Didn't crash
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in prog_array_map_poke_run bpf C done done 35 339d 380d 25/28 fixed on 2024/01/23 01:55
linux-6.1 kernel BUG in prog_array_map_poke_run origin:upstream missing-backport C unreliable 3 334d 379d 0/3 upstream: reported C repro on 2023/11/08 01:21
android-6-1 kernel BUG in prog_array_map_poke_run origin:upstream missing-backport C error 14 321d 380d 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 312d 380d 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 237 1h26m 380d 0/2 upstream: reported C repro on 2023/11/07 04:51
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/10/15 02:12 0m retest repro linux-5.15.y error
2024/10/15 02:12 0m retest repro linux-5.15.y error
2024/10/15 02:12 0m retest repro linux-5.15.y error
2024/10/15 02:12 0m retest repro linux-5.15.y error
2024/10/15 02:12 0m retest repro linux-5.15.y error
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/12/22 19:52 6h49m fix candidate upstream OK (1) job log

Sample crash report:
------------[ cut here ]------------
kernel BUG at kernel/bpf/arraymap.c:1037!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3555 Comm: kworker/0:4 Not tainted 5.15.139-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+0x65d/0x670 kernel/bpf/arraymap.c:1037
Code: d3 e7 ff 48 83 c4 68 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 f6 d2 e7 ff 0f 0b e9 18 fa ff ff e8 ea d2 e7 ff 0f 0b e8 e3 d2 e7 ff <0f> 0b e8 dc d2 e7 ff 0f 0b e8 d5 d2 e7 ff 0f 0b 0f 1f 00 55 48 89
RSP: 0018:ffffc90002bffab8 EFLAGS: 00010293
RAX: ffffffff819850ed RBX: 00000000fffffff0 RCX: ffff888078fa9dc0
RDX: 0000000000000000 RSI: 00000000fffffff0 RDI: 00000000ffffffea
RBP: ffff88806f80ec10 R08: ffffffff81984e90 R09: fffff5200057ff29
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff88801e7aecd0
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff3d0659b0 CR3: 0000000023930000 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:830
 bpf_fd_array_map_clear kernel/bpf/arraymap.c:878 [inline]
 prog_array_map_clear_deferred+0xfb/0x210 kernel/bpf/arraymap.c:1057
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Modules linked in:
---[ end trace 8c686e65e3e7b5e5 ]---
RIP: 0010:prog_array_map_poke_run+0x65d/0x670 kernel/bpf/arraymap.c:1037
Code: d3 e7 ff 48 83 c4 68 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 f6 d2 e7 ff 0f 0b e9 18 fa ff ff e8 ea d2 e7 ff 0f 0b e8 e3 d2 e7 ff <0f> 0b e8 dc d2 e7 ff 0f 0b e8 d5 d2 e7 ff 0f 0b 0f 1f 00 55 48 89
RSP: 0018:ffffc90002bffab8 EFLAGS: 00010293
RAX: ffffffff819850ed RBX: 00000000fffffff0 RCX: ffff888078fa9dc0
RDX: 0000000000000000 RSI: 00000000fffffff0 RDI: 00000000ffffffea
RBP: ffff88806f80ec10 R08: ffffffff81984e90 R09: fffff5200057ff29
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff88801e7aecd0
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff3d0659b0 CR3: 0000000023930000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/27 22:15 linux-5.15.y 2a910f4af54d 7ec6c044 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/11/07 14:38 linux-5.15.y 12952a23a5da 83211397 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/11/07 13:03 linux-5.15.y 12952a23a5da 83211397 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/11/07 11:41 linux-5.15.y 12952a23a5da 83211397 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2024/01/04 18:24 linux-5.15.y d93fa2c78854 28c42cff .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/12/28 23:03 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/12/28 09:32 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/12/27 19:44 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/12/24 23:03 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/12/23 02:38 linux-5.15.y 1d146b1875fc fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/12/20 22:52 linux-5.15.y 1d146b1875fc de21eb89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/12/08 10:39 linux-5.15.y 8a1d809b0545 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in prog_array_map_poke_run
2023/12/03 07:31 linux-5.15.y 9b91d36ba301 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
2023/11/28 20:54 linux-5.15.y a78d278e01b1 1adfb6f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in prog_array_map_poke_run
2023/11/27 23:43 linux-5.15.y 2a910f4af54d 7ec6c044 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in prog_array_map_poke_run
2023/11/17 09:48 linux-5.15.y 80529b4968a8 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf kernel BUG in prog_array_map_poke_run
* Struck through repros no longer work on HEAD.