syzbot


general protection fault in dev_map_enqueue

Status: upstream: reported C repro on 2024/03/26 23:53
Bug presence: origin:lts
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+74f0fe424da0b5228a6f@syzkaller.appspotmail.com
First crash: 374d, last: 5h17m
Bug presence (2)
Date Name Commit Repro Result
2024/12/14 lts (merge base) 0d968ced7330 C [report] general protection fault in dev_map_enqueue
2024/12/14 upstream (ToT) a0e3919a2df2 C Didn't crash
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in dev_map_enqueue 1 71d 71d 0/2 premoderation: reported on 2025/01/23 18:09
upstream general protection fault in dev_map_enqueue bpf net C 676 317d 374d 25/28 fixed on 2024/05/22 23:26
linux-6.1 general protection fault in dev_map_enqueue origin:upstream missing-backport C unreliable 189 1d17h 374d 0/3 upstream: reported C repro on 2024/03/26 19:03
upstream general protection fault in dev_map_enqueue (2) bpf net C error done 336 246d 312d 28/28 fixed on 2024/11/12 23:31
linux-5.15 KASAN: use-after-free Read in dev_map_enqueue 1 13d 13d 0/3 upstream: reported on 2025/03/22 21:42

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 323 Comm: syz-executor105 Not tainted 6.1.129-syzkaller-00051-gc1fd50266bd6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:dev_map_enqueue+0x31/0x340 kernel/bpf/devmap.c:532
Code: 56 41 55 41 54 53 48 83 ec 18 48 89 55 c0 49 89 f7 48 89 fb 49 bc 00 00 00 00 00 fc ff df e8 a6 f3 dd ff 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 e0 9e 25 00 4c 8b 33 48 83 c3 20
RSP: 0018:ffffc90000e475f8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88810e092880
RDX: 0000000000000000 RSI: ffff888122a5e070 RDI: 0000000000000000
RBP: ffffc90000e47638 R08: ffffffff84158d72 R09: ffffffff84158c92
R10: 0000000000000004 R11: ffff88810e092880 R12: dffffc0000000000
R13: 1ffff1103edc6e15 R14: 1ffff1103edc6e15 R15: ffff888122a5e070
FS:  00007fd4308176c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000010 CR3: 00000001229a5000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __xdp_do_redirect_frame net/core/filter.c:4319 [inline]
 xdp_do_redirect_frame+0x2b5/0x800 net/core/filter.c:4381
 xdp_test_run_batch net/bpf/test_run.c:314 [inline]
 bpf_test_run_xdp_live+0xc30/0x1f70 net/bpf/test_run.c:362
 bpf_prog_test_run_xdp+0x7d1/0x1130 net/bpf/test_run.c:1393
 bpf_prog_test_run+0x3b0/0x630 kernel/bpf/syscall.c:3670
 __sys_bpf+0x59f/0x7f0 kernel/bpf/syscall.c:5025
 __do_sys_bpf kernel/bpf/syscall.c:5111 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5109 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5109
 x64_sys_call+0x87f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd430877b29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 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:00007fd430817218 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fd430902358 RCX: 00007fd430877b29
RDX: 0000000000000050 RSI: 00002000000000c0 RDI: 000000000000000a
RBP: 00007fd430902350 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd4308cf074
R13: 00002000000000c0 R14: 0000200000000048 R15: 0000200000000040
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dev_map_enqueue+0x31/0x340 kernel/bpf/devmap.c:532
Code: 56 41 55 41 54 53 48 83 ec 18 48 89 55 c0 49 89 f7 48 89 fb 49 bc 00 00 00 00 00 fc ff df e8 a6 f3 dd ff 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 e0 9e 25 00 4c 8b 33 48 83 c3 20
RSP: 0018:ffffc90000e475f8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88810e092880
RDX: 0000000000000000 RSI: ffff888122a5e070 RDI: 0000000000000000
RBP: ffffc90000e47638 R08: ffffffff84158d72 R09: ffffffff84158c92
R10: 0000000000000004 R11: ffff88810e092880 R12: dffffc0000000000
R13: 1ffff1103edc6e15 R14: 1ffff1103edc6e15 R15: ffff888122a5e070
FS:  00007fd4308176c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000010 CR3: 00000001229a5000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	56                   	push   %rsi
   1:	41 55                	push   %r13
   3:	41 54                	push   %r12
   5:	53                   	push   %rbx
   6:	48 83 ec 18          	sub    $0x18,%rsp
   a:	48 89 55 c0          	mov    %rdx,-0x40(%rbp)
   e:	49 89 f7             	mov    %rsi,%r15
  11:	48 89 fb             	mov    %rdi,%rbx
  14:	49 bc 00 00 00 00 00 	movabs $0xdffffc0000000000,%r12
  1b:	fc ff df
  1e:	e8 a6 f3 dd ff       	call   0xffddf3c9
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 e0 9e 25 00       	call   0x259f19
  39:	4c 8b 33             	mov    (%rbx),%r14
  3c:	48 83 c3 20          	add    $0x20,%rbx

Crashes (1654):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/31 11:12 android14-6.1 c1fd50266bd6 d3999433 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/31 07:59 android14-6.1 c1fd50266bd6 d3999433 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/12/31 10:27 android14-6.1 e2b9748880b9 d3ccff63 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/12/14 06:23 android14-6.1 22b7ded8b55b 7cbfbb3a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/04/03 19:56 android14-6.1 ca24c52e3c25 d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/04/01 14:14 android14-6.1 3e6e324f5b47 b8645499 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/29 17:12 android14-6.1 c1fd50266bd6 d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/27 18:27 android14-6.1 e1ab072bcf60 6c09fb82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/23 04:45 android14-6.1 5145d157731f 4e8d3850 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/19 15:37 android14-6.1 6bd3e435f2e8 e20d7b13 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/17 20:09 android14-6.1 33c9d4844afc ce3352cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/15 02:44 android14-6.1 4da91a8e563c e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/14 00:10 android14-6.1 70d032fba5f4 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/13 10:52 android14-6.1 efd0bedd2cb2 44be8b44 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/12 21:29 android14-6.1 69a6dfc9c3cb 1a5d9317 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/11 17:07 android14-6.1 9bcabbda673a 16256247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/03/08 17:46 android14-6.1 44db4837f75e 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/03/06 20:19 android14-6.1 471a10d3af3b 831e3629 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/03/04 18:54 android14-6.1 471a10d3af3b c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/03/03 16:07 android14-6.1 471a10d3af3b c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/02/26 13:49 android14-6.1 4deb2cd70382 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/02/23 12:48 android14-6.1 a624f97c9afe d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/02/17 09:04 android14-6.1 ccc915784332 4121cf9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2025/02/17 02:36 android14-6.1 ccc915784332 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/02/16 00:35 android14-6.1 ccc915784332 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/10/12 03:47 android14-6.1 d41d398db683 084d8178 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/30 04:28 android14-6.1 110595418159 ba29ff75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/06/09 13:11 android14-6.1 ac9706483e98 82c05ab8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/03/27 05:14 android14-6.1 eef3b6e52937 454571b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2024/03/27 05:13 android14-6.1 eef3b6e52937 454571b6 .config strace log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/03/27 03:17 android14-6.1 eef3b6e52937 454571b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2024/03/26 23:51 android14-6.1 eef3b6e52937 454571b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/03/26 22:58 android14-6.1 eef3b6e52937 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2025/04/04 17:43 android14-6.1 ca24c52e3c25 1c4febdb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/04/04 05:57 android14-6.1 ca24c52e3c25 d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/04/03 05:49 android14-6.1 3e6e324f5b47 996a9618 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in dev_map_enqueue
2025/04/03 01:57 android14-6.1 3e6e324f5b47 c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/04/02 18:24 android14-6.1 3e6e324f5b47 c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/04/02 14:52 android14-6.1 3e6e324f5b47 c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/04/02 13:27 android14-6.1 3e6e324f5b47 c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/30 19:21 android14-6.1 c1fd50266bd6 d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/29 03:33 android14-6.1 c1fd50266bd6 9a1a9e31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/27 03:08 android14-6.1 1c9aeb1ce34b 20510e88 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/26 11:15 android14-6.1 b18db21117e2 89d30d73 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/25 17:21 android14-6.1 5145d157731f 875573af .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/21 20:28 android14-6.1 5145d157731f c6512ef7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in dev_map_enqueue
2025/03/21 06:28 android14-6.1 da6a42c111c8 62330552 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/20 15:44 android14-6.1 7da329f7cf91 9209bc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/17 17:49 android14-6.1 33c9d4844afc 948c34e4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/17 06:11 android14-6.1 33c9d4844afc 948c34e4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in dev_map_enqueue
2025/03/17 04:03 android14-6.1 33c9d4844afc e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/16 10:29 android14-6.1 33c9d4844afc e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/15 22:21 android14-6.1 33c9d4844afc e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/05 06:53 android14-6.1 471a10d3af3b c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in dev_map_enqueue
2025/03/04 03:16 android14-6.1 471a10d3af3b c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/03 21:47 android14-6.1 471a10d3af3b c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/03/03 01:59 android14-6.1 471a10d3af3b c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/02/17 17:56 android14-6.1 ccc915784332 4121cf9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2025/01/27 09:50 android14-6.1 ef4fb40b87a9 d99a33ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: slab-out-of-bounds Read in dev_map_enqueue
* Struck through repros no longer work on HEAD.