syzbot


general protection fault in khugepaged (3)

Status: upstream: reported on 2024/07/13 12:38
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+33287c327c3bcd4ea552@syzkaller.appspotmail.com
First crash: 292d, last: 22d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] general protection fault in khugepaged (3) 0 (1) 2024/07/13 12:38
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in khugepaged mm C done 3 1583d 1595d 15/28 fixed on 2020/09/16 22:51
upstream general protection fault in khugepaged (2) mm 1 359d 355d 0/28 auto-obsoleted due to no activity on 2024/01/27 04:37
linux-4.19 general protection fault in khugepaged 1 1102d 1102d 0/1 auto-closed as invalid on 2022/03/15 05:26

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000084: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000420-0x0000000000000427]
CPU: 1 UID: 0 PID: 37 Comm: khugepaged Not tainted 6.12.0-rc5-syzkaller-00005-ge42b1a9a2557 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:khugepaged_scan_mm_slot mm/khugepaged.c:2383 [inline]
RIP: 0010:khugepaged_do_scan mm/khugepaged.c:2515 [inline]
RIP: 0010:khugepaged+0x771/0x1dc0 mm/khugepaged.c:2571
Code: 8b 1b be 00 00 00 01 48 21 de 31 ff e8 c8 ea 92 ff b8 00 00 00 01 48 21 c3 0f 85 4a 0d 00 00 49 8d 7d 20 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 74 05 e8 d3 7e f9 ff 4d 8b 75 20 49 8d 5d 70 48 89
RSP: 0018:ffffc90000ad7bc0 EFLAGS: 00010207
RAX: 0000000000000084 RBX: 0000000000000000 RCX: ffff88801fefda00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000426
RBP: ffffc90000ad7ed0 R08: ffffffff8201f248 R09: 1ffff1100358ea2e
R10: dffffc0000000000 R11: ffffed100358ea2f R12: ffff88801ac74a00
R13: 0000000000000406 R14: 00000000180400fb R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb17451ed58 CR3: 0000000064988000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:khugepaged_scan_mm_slot mm/khugepaged.c:2383 [inline]
RIP: 0010:khugepaged_do_scan mm/khugepaged.c:2515 [inline]
RIP: 0010:khugepaged+0x771/0x1dc0 mm/khugepaged.c:2571
Code: 8b 1b be 00 00 00 01 48 21 de 31 ff e8 c8 ea 92 ff b8 00 00 00 01 48 21 c3 0f 85 4a 0d 00 00 49 8d 7d 20 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 74 05 e8 d3 7e f9 ff 4d 8b 75 20 49 8d 5d 70 48 89
RSP: 0018:ffffc90000ad7bc0 EFLAGS: 00010207
RAX: 0000000000000084 RBX: 0000000000000000 RCX: ffff88801fefda00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000426
RBP: ffffc90000ad7ed0 R08: ffffffff8201f248 R09: 1ffff1100358ea2e
R10: dffffc0000000000 R11: ffffed100358ea2f R12: ffff88801ac74a00
R13: 0000000000000406 R14: 00000000180400fb R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555594c407d0 CR3: 0000000064988000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8b 1b                	mov    (%rbx),%ebx
   2:	be 00 00 00 01       	mov    $0x1000000,%esi
   7:	48 21 de             	and    %rbx,%rsi
   a:	31 ff                	xor    %edi,%edi
   c:	e8 c8 ea 92 ff       	call   0xff92ead9
  11:	b8 00 00 00 01       	mov    $0x1000000,%eax
  16:	48 21 c3             	and    %rax,%rbx
  19:	0f 85 4a 0d 00 00    	jne    0xd69
  1f:	49 8d 7d 20          	lea    0x20(%r13),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 d3 7e f9 ff       	call   0xfff97f09
  36:	4d 8b 75 20          	mov    0x20(%r13),%r14
  3a:	49 8d 5d 70          	lea    0x70(%r13),%rbx
  3e:	48                   	rex.W
  3f:	89                   	.byte 0x89

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/29 22:31 upstream e42b1a9a2557 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in khugepaged
2024/09/15 18:37 upstream d42f7708e27c 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in khugepaged
2024/09/15 10:15 upstream 0babf683783d 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in khugepaged
2024/09/08 12:42 upstream d1f2d51b711a 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in khugepaged
2024/08/02 09:11 upstream c0ecd6388360 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in khugepaged
2024/08/01 20:53 upstream 21b136cc63d2 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in khugepaged
2024/07/13 12:37 upstream 528dd46d0fc3 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in khugepaged
2024/07/01 22:27 upstream 22a40d14b572 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in khugepaged
2024/04/21 10:16 upstream 977b1ef51866 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in khugepaged
2024/02/02 12:37 upstream 021533194476 60bf9982 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in khugepaged
2024/10/21 21:52 upstream 42f7652d3eb5 f1e4447c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in khugepaged
2024/07/02 05:34 upstream 9903efbddba0 b294e901 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in khugepaged
2024/10/04 21:49 upstream 0c559323bbaa d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in khugepaged
* Struck through repros no longer work on HEAD.