syzbot


kernel BUG in vmf_insert_pfn_prot

Status: upstream: reported C repro on 2023/03/18 14:33
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+a4d5a11e163f2d728bd0@syzkaller.appspotmail.com
First crash: 405d, last: 7d03h
Bug presence (2)
Date Name Commit Repro Result
2024/04/19 linux-6.1.y (ToT) 6741e066ec76 C [report] kernel BUG in vmf_insert_pfn_prot
2024/04/19 upstream (ToT) 2d412262ccfd C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in vmf_insert_pfn_prot C done done 1933 348d 952d 22/26 fixed on 2023/06/14 22:21
upstream kernel BUG in vmf_insert_pfn_prot (2) dri C done 21 6d02h 246d 0/26 upstream: reported C repro on 2023/08/24 07:01
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/10/20 19:35 2h25m fix candidate upstream job log (0)
2023/09/12 06:32 1h22m fix candidate upstream error job log (0)

Sample crash report:
------------[ cut here ]------------
kernel BUG at mm/memory.c:2230!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3549 Comm: syz-executor146 Not tainted 6.1.84-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:vmf_insert_pfn_prot+0x2b3/0x2d0 mm/memory.c:2230
Code: 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 07 0b be ff b8 02 00 00 00 eb c4 e8 fb 0a be ff 0f 0b e8 f4 0a be ff 0f 0b e8 ed 0a be ff <0f> 0b e8 c6 9b bd 08 e8 e1 0a be ff 0f 0b 66 2e 0f 1f 84 00 00 00
RSP: 0018:ffffc90003a0f820 EFLAGS: 00010293
RAX: ffffffff81cc7c03 RBX: 0000000000000420 RCX: ffff888028bf0000
RDX: 0000000000000000 RSI: 0000000000000420 RDI: 0000000000000420
RBP: ffffc90003a0f8e0 R08: ffffffff81cc7a4d R09: ffffffff81cc7a21
R10: 0000000000000002 R11: ffff888028bf0000 R12: ffffc90003a0f860
R13: ffff888024efb6c0 R14: 1ffff92000741f08 R15: 000000000c040471
FS:  0000555555c75480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000740 CR3: 0000000027cb2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 drm_gem_shmem_fault+0x1d9/0x230 drivers/gpu/drm/drm_gem_shmem_helper.c:562
 __do_fault+0x136/0x4f0 mm/memory.c:4261
 do_read_fault mm/memory.c:4612 [inline]
 do_fault mm/memory.c:4741 [inline]
 handle_pte_fault mm/memory.c:5013 [inline]
 __handle_mm_fault mm/memory.c:5155 [inline]
 handle_mm_fault+0x3412/0x5340 mm/memory.c:5276
 do_user_addr_fault arch/x86/mm/fault.c:1371 [inline]
 handle_page_fault arch/x86/mm/fault.c:1462 [inline]
 exc_page_fault+0x26f/0x660 arch/x86/mm/fault.c:1518
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:copy_user_enhanced_fast_string+0xa/0x40 arch/x86/lib/copy_user_64.S:166
Code: ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 20 0f 01 cb 83 fa 40 72 38 89 d1 <f3> a4 31 c0 0f 01 ca c3 89 ca eb 0a 66 2e 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc90003a0fd50 EFLAGS: 00050202
RAX: ffffffff8437f401 RBX: 00007fffffffefb8 RCX: 0000000000000048
RDX: 0000000000000048 RSI: 0000000020000740 RDI: ffffc90003a0fdc0
RBP: ffffc90003a0fef8 R08: dffffc0000000000 R09: fffff52000741fc1
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000048
R13: 1ffff92000741fb4 R14: ffffc90003a0fdc0 R15: 0000000020000740
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline]
 _copy_from_user+0xf3/0x170 lib/usercopy.c:23
 copy_from_user include/linux/uaccess.h:161 [inline]
 copy_from_bpfptr_offset include/linux/bpfptr.h:53 [inline]
 copy_from_bpfptr include/linux/bpfptr.h:59 [inline]
 __sys_bpf+0x226/0x6c0 kernel/bpf/syscall.c:4978
 __do_sys_bpf kernel/bpf/syscall.c:5109 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5107 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5107
 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:0x7f86b5d4ac29
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc8a4a6348 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00000000fffff000 RCX: 00007f86b5d4ac29
RDX: 0000000000000048 RSI: 0000000020000740 RDI: 0000000000000000
RBP: 00000000fffff000 R08: 00000000fffff000 R09: 00007f86b5d1abd0
R10: 00007ffc8a4a6350 R11: 0000000000000246 R12: 00007f86b5d1a73e
R13: 00007ffc8a4a65b8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:vmf_insert_pfn_prot+0x2b3/0x2d0 mm/memory.c:2230
Code: 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 07 0b be ff b8 02 00 00 00 eb c4 e8 fb 0a be ff 0f 0b e8 f4 0a be ff 0f 0b e8 ed 0a be ff <0f> 0b e8 c6 9b bd 08 e8 e1 0a be ff 0f 0b 66 2e 0f 1f 84 00 00 00
RSP: 0018:ffffc90003a0f820 EFLAGS: 00010293
RAX: ffffffff81cc7c03 RBX: 0000000000000420 RCX: ffff888028bf0000
RDX: 0000000000000000 RSI: 0000000000000420 RDI: 0000000000000420
RBP: ffffc90003a0f8e0 R08: ffffffff81cc7a4d R09: ffffffff81cc7a21
R10: 0000000000000002 R11: ffff888028bf0000 R12: ffffc90003a0f860
R13: ffff888024efb6c0 R14: 1ffff92000741f08 R15: 000000000c040471
FS:  0000555555c75480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000740 CR3: 0000000027cb2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	ff c9                	dec    %ecx
   2:	75 f2                	jne    0xfffffff6
   4:	89 d1                	mov    %edx,%ecx
   6:	c1 e9 03             	shr    $0x3,%ecx
   9:	83 e2 07             	and    $0x7,%edx
   c:	f3 48 a5             	rep movsq %ds:(%rsi),%es:(%rdi)
   f:	89 d1                	mov    %edx,%ecx
  11:	f3 a4                	rep movsb %ds:(%rsi),%es:(%rdi)
  13:	31 c0                	xor    %eax,%eax
  15:	0f 01 ca             	clac
  18:	c3                   	ret
  19:	8d 0c ca             	lea    (%rdx,%rcx,8),%ecx
  1c:	89 ca                	mov    %ecx,%edx
  1e:	eb 20                	jmp    0x40
  20:	0f 01 cb             	stac
  23:	83 fa 40             	cmp    $0x40,%edx
  26:	72 38                	jb     0x60
  28:	89 d1                	mov    %edx,%ecx
* 2a:	f3 a4                	rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction
  2c:	31 c0                	xor    %eax,%eax
  2e:	0f 01 ca             	clac
  31:	c3                   	ret
  32:	89 ca                	mov    %ecx,%edx
  34:	eb 0a                	jmp    0x40
  36:	66 2e 0f 1f 84 00 00 	cs nopw 0x0(%rax,%rax,1)
  3d:	00 00 00

Crashes (67):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/04 12:39 linux-6.1.y 347385861c50 0ee3535e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/12/10 20:30 linux-6.1.y 6c6a6c7e211c 28b24332 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/03/18 14:58 linux-6.1.y 7eaef76fbc46 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/08/19 05:54 linux-6.1.y 6c44e13dc284 d216d8a0 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/12/12 07:58 linux-6.1.y e7cddbb41b63 28b24332 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/05/07 20:14 linux-6.1.y ca48fc16c493 90c93c40 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/04/05 09:59 linux-6.1.y 347385861c50 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/04/04 11:48 linux-6.1.y 347385861c50 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/03/29 16:56 linux-6.1.y e5cd595e23c1 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/03/19 18:42 linux-6.1.y d7543167affd e104824c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/02/21 10:37 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/02/21 10:21 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/01/31 17:22 linux-6.1.y 883d1a956208 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/01/16 15:59 linux-6.1.y fec3b1451d5f 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/09/23 23:53 linux-6.1.y d23900f974e0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/09/16 17:17 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/09/16 17:17 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/09/16 17:13 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/09/11 08:16 linux-6.1.y 59b13c2b647e 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/09/11 08:15 linux-6.1.y 59b13c2b647e 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2024/01/31 20:56 linux-6.1.y 883d1a956208 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2024/01/31 18:30 linux-6.1.y 883d1a956208 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2024/01/11 11:45 linux-6.1.y 7c58bfa711cb 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/10/28 07:33 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/10/26 10:09 linux-6.1.y 32c9cdbe383c 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/09/29 20:54 linux-6.1.y d23900f974e0 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/09/18 00:09 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/09/17 00:11 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/09/17 00:11 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/08/13 07:16 linux-6.1.y 1321ab403b38 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/08/13 05:33 linux-6.1.y 1321ab403b38 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/07/27 21:29 linux-6.1.y d2a6dc4eaf6d 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/07/08 01:31 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/05/22 07:06 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/05/20 07:13 linux-6.1.y fa74641fb6b9 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in vmf_insert_pfn_prot
2023/08/21 23:54 linux-6.1.y 6c44e13dc284 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/08/21 23:54 linux-6.1.y 6c44e13dc284 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/08/19 05:07 linux-6.1.y 6c44e13dc284 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/08/13 05:41 linux-6.1.y 1321ab403b38 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/08/13 05:29 linux-6.1.y 1321ab403b38 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/07/09 02:25 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/07/07 22:29 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/07/07 22:28 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/07/07 22:28 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/06/16 23:38 linux-6.1.y ca87e77a2ef8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/05/22 07:02 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/05/22 06:50 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/05/20 09:21 linux-6.1.y fa74641fb6b9 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/04/26 01:34 linux-6.1.y f17b0ab65d17 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/04/17 05:19 linux-6.1.y 0102425ac76b ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/04/09 21:39 linux-6.1.y 543aff194ab6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
2023/03/18 14:33 linux-6.1.y 7eaef76fbc46 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in vmf_insert_pfn_prot
* Struck through repros no longer work on HEAD.