syzbot


general protection fault in dev_map_generic_redirect

Status: premoderation: reported on 2024/04/02 16:15
Reported-by: syzbot+81eee47b99c6e6932743@syzkaller.appspotmail.com
First crash: 75d, last: 2h28m
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in dev_map_generic_redirect bpf net 11 6d04h 70d 0/27 upstream: reported on 2024/04/08 03:43

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: 4698 Comm: syz-executor.2 Not tainted 6.1.78-syzkaller-00010-gc0618d182a9c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:dev_map_generic_redirect+0x90/0x7d0 kernel/bpf/devmap.c:664
Code: f1 f1 00 f2 f2 f2 4b 89 04 26 43 c7 44 26 0f f3 f3 f3 f3 43 c6 44 26 13 f3 e8 ac 07 de ff 48 89 d8 48 c1 e8 03 48 89 44 24 48 <42> 80 3c 20 00 74 08 48 89 df e8 f1 04 25 00 48 89 5c 24 18 4c 8b
RSP: 0018:ffffc900023f76c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc90002c52000 RSI: 0000000000000414 RDI: 0000000000000415
RBP: ffffc900023f7818 R08: 0000000000000005 R09: ffffffff8411e3d3
R10: 0000000000000004 R11: ffff88811ba96540 R12: dffffc0000000000
R13: ffff8881309dcb40 R14: 1ffff9200047eee4 R15: 0000000000000000
FS:  00007f5a7a2db6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 0000000121c96000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 xdp_do_generic_redirect_map net/core/filter.c:4355 [inline]
 xdp_do_generic_redirect+0x411/0xad0 net/core/filter.c:4412
 do_xdp_generic+0x53e/0x800 net/core/dev.c:4954
 tun_get_user+0x238a/0x3a90 drivers/net/tun.c:1919
 tun_chr_write_iter+0x129/0x210 drivers/net/tun.c:2043
 call_write_iter include/linux/fs.h:2258 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x902/0xeb0 fs/read_write.c:584
 ksys_write+0x199/0x2c0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f5a7947bc6f
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48
RSP: 002b:00007f5a7a2db090 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f5a795b3f80 RCX: 00007f5a7947bc6f
RDX: 000000000000fdef RSI: 0000000020000780 RDI: 00000000000000c8
RBP: 00007f5a794ec074 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f5a795b3f80 R15: 00007ffc8936e728
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dev_map_generic_redirect+0x90/0x7d0 kernel/bpf/devmap.c:664
Code: f1 f1 00 f2 f2 f2 4b 89 04 26 43 c7 44 26 0f f3 f3 f3 f3 43 c6 44 26 13 f3 e8 ac 07 de ff 48 89 d8 48 c1 e8 03 48 89 44 24 48 <42> 80 3c 20 00 74 08 48 89 df e8 f1 04 25 00 48 89 5c 24 18 4c 8b
RSP: 0018:ffffc900023f76c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc90002c52000 RSI: 0000000000000414 RDI: 0000000000000415
RBP: ffffc900023f7818 R08: 0000000000000005 R09: ffffffff8411e3d3
R10: 0000000000000004 R11: ffff88811ba96540 R12: dffffc0000000000
R13: ffff8881309dcb40 R14: 1ffff9200047eee4 R15: 0000000000000000
FS:  00007f5a7a2db6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 0000000121c96000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f1                   	int1
   1:	f1                   	int1
   2:	00 f2                	add    %dh,%dl
   4:	f2 f2 4b 89 04 26    	repnz repnz mov %rax,(%r14,%r12,1)
   a:	43 c7 44 26 0f f3 f3 	movl   $0xf3f3f3f3,0xf(%r14,%r12,1)
  11:	f3 f3
  13:	43 c6 44 26 13 f3    	movb   $0xf3,0x13(%r14,%r12,1)
  19:	e8 ac 07 de ff       	call   0xffde07ca
  1e:	48 89 d8             	mov    %rbx,%rax
  21:	48 c1 e8 03          	shr    $0x3,%rax
  25:	48 89 44 24 48       	mov    %rax,0x48(%rsp)
* 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 f1 04 25 00       	call   0x25052a
  39:	48 89 5c 24 18       	mov    %rbx,0x18(%rsp)
  3e:	4c                   	rex.WR
  3f:	8b                   	.byte 0x8b

Crashes (30):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/17 09:24 android14-6.1 c0618d182a9c 88722c0f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/17 09:23 android14-6.1 c0618d182a9c 88722c0f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/17 03:29 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/17 03:29 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/16 21:26 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/16 17:04 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/16 12:48 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/16 12:48 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/15 20:24 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/15 18:28 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/15 13:14 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/15 13:14 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/15 01:41 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/15 01:40 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/14 21:22 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/14 16:33 android14-6.1 4c45e2f34089 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/14 16:33 android14-6.1 4c45e2f34089 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/14 13:18 android14-6.1 4c45e2f34089 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/14 13:17 android14-6.1 4c45e2f34089 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/14 10:08 android14-6.1 4c45e2f34089 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/14 10:08 android14-6.1 4c45e2f34089 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/14 04:44 android14-6.1 4c45e2f34089 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/12 00:33 android14-6.1 65aed0e2f758 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/11 20:12 android14-6.1 65aed0e2f758 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/08 20:03 android14-6.1 ac9706483e98 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/07 19:11 android14-6.1 62a4d78ddaf1 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/02 08:58 android14-6.1 74c507aab139 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/01 13:29 android14-6.1 74c507aab139 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/06/01 13:29 android14-6.1 74c507aab139 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
2024/04/02 16:14 android14-6.1 f085398f0e8f eb2966c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dev_map_generic_redirect
* Struck through repros no longer work on HEAD.