syzbot


general protection fault in dev_map_enqueue

Status: upstream: reported C repro on 2024/03/26 23:53
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+74f0fe424da0b5228a6f@syzkaller.appspotmail.com
First crash: 193d, last: 8h30m
Bug presence (2)
Date Name Commit Repro Result
2024/09/30 lts (merge base) cac15753b8ce C Didn't crash
2024/09/30 upstream (ToT) 9852d85ec9d4 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in dev_map_enqueue bpf net C 676 136d 193d 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 101 2d20h 193d 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 66d 132d 2/28 upstream: reported C repro on 2024/05/27 00:44

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: 1 PID: 5221 Comm: syz.1.1305 Tainted: G        W          6.1.99-syzkaller-00108-gd4dab27b9d1c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:dev_map_enqueue+0x31/0x340 kernel/bpf/devmap.c:529
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 76 18 de ff 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 f0 57 25 00 4c 8b 33 48 83 c3 20
RSP: 0018:ffffc90000b475f8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc9000195d000 RSI: 000000000000057b RDI: 000000000000057c
RBP: ffffc90000b47638 R08: ffffffff84137442 R09: ffffffff84137362
R10: 0000000000000004 R11: ffff888176e03cc0 R12: dffffc0000000000
R13: 1ffff1103ede6e15 R14: 1ffff1103ede6e15 R15: ffff88812afb8070
FS:  00007fa2bf0966c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa2be524a38 CR3: 00000001423c6000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 __xdp_do_redirect_frame net/core/filter.c:4287 [inline]
 xdp_do_redirect_frame+0x2b5/0x800 net/core/filter.c:4349
 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:3650
 __sys_bpf+0x59f/0x7f0 kernel/bpf/syscall.c:5005
 __do_sys_bpf kernel/bpf/syscall.c:5091 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5089 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5089
 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:0x7fa2be37dff9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa2bf096038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fa2be536058 RCX: 00007fa2be37dff9
RDX: 0000000000000050 RSI: 00000000200000c0 RDI: 000000000000000a
RBP: 00007fa2be3f0296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa2be536058 R15: 00007ffc08cb5348
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dev_map_enqueue+0x31/0x340 kernel/bpf/devmap.c:529
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 76 18 de ff 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 f0 57 25 00 4c 8b 33 48 83 c3 20
RSP: 0018:ffffc90000b475f8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc9000195d000 RSI: 000000000000057b RDI: 000000000000057c
RBP: ffffc90000b47638 R08: ffffffff84137442 R09: ffffffff84137362
R10: 0000000000000004 R11: ffff888176e03cc0 R12: dffffc0000000000
R13: 1ffff1103ede6e15 R14: 1ffff1103ede6e15 R15: ffff88812afb8070
FS:  00007fa2bf0966c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa2be524a38 CR3: 00000001423c6000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
----------------
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 76 18 de ff       	call   0xffde1899
  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 f0 57 25 00       	call   0x255829
  39:	4c 8b 33             	mov    (%rbx),%r14
  3c:	48 83 c3 20          	add    $0x20,%rbx

Crashes (887):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/06 08:30 android14-6.1 d4dab27b9d1c d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/10/05 15:46 android14-6.1 d4dab27b9d1c d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/10/05 12:33 android14-6.1 d4dab27b9d1c d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/10/03 15:00 android14-6.1 30f8a76da561 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/10/01 07:54 android14-6.1 a43e7c2c12af bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/30 14:29 android14-6.1 110595418159 bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/30 07:01 android14-6.1 110595418159 ba29ff75 .config console log report info [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/09/29 09:42 android14-6.1 110595418159 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/28 22:35 android14-6.1 110595418159 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/28 21:02 android14-6.1 110595418159 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/27 14:08 android14-6.1 5a912daf8731 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/26 14:24 android14-6.1 9e167c1c27c5 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/24 23:54 android14-6.1 5c7d0d4f4a38 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/23 00:35 android14-6.1 3b95e548676f 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/22 12:33 android14-6.1 3b95e548676f 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/22 05:26 android14-6.1 3b95e548676f 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/21 08:56 android14-6.1 532fad0092e5 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/18 15:58 android14-6.1 47871c381d5f c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/17 08:01 android14-6.1 d1f3a046a65d c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/17 05:42 android14-6.1 d1f3a046a65d c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2024/09/16 10:02 android14-6.1 d1f3a046a65d 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/15 13:34 android14-6.1 d1f3a046a65d 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/15 04:52 android14-6.1 d1f3a046a65d 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/13 20:41 android14-6.1 6e5b92a6a151 b58f933c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/13 19:38 android14-6.1 6e5b92a6a151 b58f933c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/12 22:52 android14-6.1 6e5b92a6a151 60e1a995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2024/09/12 02:12 android14-6.1 75c9b1955b7e d94c83d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/12 01:02 android14-6.1 75c9b1955b7e d94c83d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/11 13:47 android14-6.1 d02968a02321 8ab55d0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/11 03:48 android14-6.1 d02968a02321 8ab55d0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_enqueue
2024/09/09 19:30 android14-6.1 27310ed6b677 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/09 15:05 android14-6.1 27310ed6b677 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/09 06:52 android14-6.1 27310ed6b677 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/09 04:56 android14-6.1 27310ed6b677 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/08 16:59 android14-6.1 27310ed6b677 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in dev_map_enqueue
2024/09/08 13:54 android14-6.1 27310ed6b677 9750182a .config console log report info [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
2024/10/05 23:10 android14-6.1 d4dab27b9d1c d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/10/05 18:58 android14-6.1 d4dab27b9d1c d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/10/04 09:06 android14-6.1 d4dab27b9d1c d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/10/04 01:36 android14-6.1 30f8a76da561 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/10/03 12:05 android14-6.1 1cdc168f1ef0 a4c7fd36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/10/02 09:02 android14-6.1 1cdc168f1ef0 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/10/01 11:25 android14-6.1 a43e7c2c12af ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in dev_map_enqueue
2024/09/29 21:23 android14-6.1 110595418159 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/09/28 03:49 android14-6.1 5a912daf8731 440b26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/09/27 09:47 android14-6.1 bcc435d3749c 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/09/19 18:29 android14-6.1 8a268cb981a6 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/09/14 16:17 android14-6.1 d1f3a046a65d c7e35043 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/09/09 01:49 android14-6.1 27310ed6b677 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/09/08 23:21 android14-6.1 27310ed6b677 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf KASAN: use-after-free Read in dev_map_enqueue
2024/07/27 23:48 android14-6.1 7fa70ede91bb 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: slab-out-of-bounds Read in dev_map_enqueue
* Struck through repros no longer work on HEAD.