syzbot


BUG: unable to handle kernel paging request in alloc_huge_page

Status: upstream: reported C repro on 2021/08/14 11:07
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+57876cfc2dca0c6b2e6a@syzkaller.appspotmail.com
Fix commit: mm/hugetlb: Initialize page to NULL in alloc_buddy_huge_page_with_mpol()
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb]
First crash: 980d, last: 977d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit efc52308c6a51125138c0034b3c7c24acbdd4173
Author: Ville Syrjรคlรค <ville.syrjala@linux.intel.com>
Date: Tue Mar 30 16:24:15 2021 +0000

  drm/i915: Split out glk_plane_min_cdclk()

Crash: WARNING in kvm_wait (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] BUG: unable to handle kernel paging request in alloc_huge_page 5 (6) 2021/08/16 17:00

Sample crash report:
BUG: unable to handle page fault for address: fffffffffffffffc
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD b68f067 P4D b68f067 PUD b691067 PMD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6601 Comm: syz-executor361 Not tainted 5.14.0-rc5-next-20210810-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add include/linux/list.h:71 [inline]
RIP: 0010:list_add include/linux/list.h:86 [inline]
RIP: 0010:alloc_huge_page+0xdcb/0x11b0 mm/hugetlb.c:2821
Code: 00 0f 85 6b 03 00 00 48 89 ce 48 89 4a 08 48 b8 00 00 00 00 00 fc ff df 48 c1 ee 03 80 3c 06 00 0f 85 2b 03 00 00 49 8d 7e 10 <49> 89 56 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80
RSP: 0018:ffffc90002b8fb78 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: fffffffffffffffc
RDX: ffffea0001fb0008 RSI: 1fffffffffffffff RDI: 0000000000000004
RBP: ffffc90002b8fd50 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff81b6fda1 R11: 0000000000000000 R12: ffffffff90246a70
R13: 0000000000000001 R14: fffffffffffffff4 R15: ffffffff90246b48
FS:  00000000014e5300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffffc CR3: 000000006eadf000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hugetlbfs_fallocate+0x6f3/0x12e0 fs/hugetlbfs/inode.c:727
 vfs_fallocate+0x48d/0xd80 fs/open.c:311
 ksys_fallocate fs/open.c:334 [inline]
 __do_sys_fallocate fs/open.c:342 [inline]
 __se_sys_fallocate fs/open.c:340 [inline]
 __x64_sys_fallocate+0xcf/0x140 fs/open.c:340
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43fca9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffeb30e0858 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 000000000043fca9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000003fe R11: 0000000000000246 R12: 000000000001105c
R13: 00007ffeb30e087c R14: 00007ffeb30e0890 R15: 00007ffeb30e0880
Modules linked in:
CR2: fffffffffffffffc
---[ end trace ca76f32b4018d821 ]---
RIP: 0010:__list_add include/linux/list.h:71 [inline]
RIP: 0010:list_add include/linux/list.h:86 [inline]
RIP: 0010:alloc_huge_page+0xdcb/0x11b0 mm/hugetlb.c:2821
Code: 00 0f 85 6b 03 00 00 48 89 ce 48 89 4a 08 48 b8 00 00 00 00 00 fc ff df 48 c1 ee 03 80 3c 06 00 0f 85 2b 03 00 00 49 8d 7e 10 <49> 89 56 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80
RSP: 0018:ffffc90002b8fb78 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: fffffffffffffffc
RDX: ffffea0001fb0008 RSI: 1fffffffffffffff RDI: 0000000000000004
RBP: ffffc90002b8fd50 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff81b6fda1 R11: 0000000000000000 R12: ffffffff90246a70
R13: 0000000000000001 R14: fffffffffffffff4 R15: ffffffff90246b48
FS:  00000000014e5300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffffc CR3: 000000006eadf000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (491):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/10 20:32 linux-next 92d00774360d 6972b106 .config console log report syz C ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/10 20:15 linux-next 92d00774360d 6972b106 .config console log report syz C ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 10:37 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 08:30 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 06:28 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 06:01 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 04:44 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 03:16 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 02:50 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 01:22 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/13 00:21 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 23:12 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 22:10 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 21:47 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 20:39 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 19:33 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 18:24 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 15:56 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 14:56 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 13:50 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 12:48 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 12:41 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 11:40 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 10:09 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 08:44 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 07:36 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 04:57 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 02:40 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 00:35 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/12 00:28 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 23:26 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 22:22 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 21:16 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 20:06 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 19:06 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 17:53 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 17:47 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 16:45 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 15:45 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 14:26 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 13:25 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 12:21 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 11:17 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 10:30 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 09:22 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/11 07:31 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
2021/08/10 10:58 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in alloc_huge_page
* Struck through repros no longer work on HEAD.