syzbot


general protection fault in PageHeadHuge

Status: upstream: reported C repro on 2022/09/23 16:05
Reported-by: syzbot+152d76c44ba142f8992b@syzkaller.appspotmail.com
First crash: 73d, last: 47d

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: 3617 Comm: syz-executor722 Not tainted 6.0.0-rc6-next-20220921-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2022
RIP: 0010:PagePoisoned include/linux/page-flags.h:304 [inline]
RIP: 0010:PageHead include/linux/page-flags.h:787 [inline]
RIP: 0010:PageHeadHuge+0x1d/0x200 mm/hugetlb.c:1892
Code: ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 41 54 55 48 89 fd 53 e8 54 c9 b9 ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 a2 01 00 00 48 8b 5d 00 48 c7 c7 ff ff ff ff 48
RSP: 0018:ffffc90003e7f5a0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc90003e7f788 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81c2cb2c RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90003e7f798
R13: 0000000000000000 R14: 0000000000000000 R15: 00000000000003f4
FS:  00007f5642262700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000203f4ef0 CR3: 000000007adcc000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 folio_test_hugetlb include/linux/page-flags.h:831 [inline]
 folio_file_page include/linux/pagemap.h:683 [inline]
 shmem_fault+0x27c/0x8a0 mm/shmem.c:2130
 __do_fault+0x107/0x600 mm/memory.c:4191
 do_shared_fault mm/memory.c:4597 [inline]
 do_fault mm/memory.c:4675 [inline]
 handle_pte_fault mm/memory.c:4943 [inline]
 __handle_mm_fault+0x2200/0x3a40 mm/memory.c:5085
 handle_mm_fault+0x1c8/0x780 mm/memory.c:5206
 do_user_addr_fault+0x475/0x1210 arch/x86/mm/fault.c:1428
 handle_page_fault arch/x86/mm/fault.c:1519 [inline]
 exc_page_fault+0x94/0x170 arch/x86/mm/fault.c:1575
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:__put_user_nocheck_4+0x3/0x11
Code: 00 00 48 39 d9 73 54 0f 01 cb 66 89 01 31 c9 0f 01 ca c3 0f 1f 44 00 00 48 bb fd ef ff ff ff 7f 00 00 48 39 d9 73 34 0f 01 cb <89> 01 31 c9 0f 01 ca c3 66 0f 1f 44 00 00 48 bb f9 ef ff ff ff 7f
RSP: 0018:ffffc90003e7fa00 EFLAGS: 00050293
RAX: 0000000000000000 RBX: ffffc90003e7fdf4 RCX: 00000000203f4ef0
RDX: ffff888020c51d40 RSI: ffffffff8726d52f RDI: 0000000000000005
RBP: ffffc90003e7fdb0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000002 R14: 00000000203f4ef0 R15: 0000000000000000
 ____sys_recvmsg+0x3ba/0x610 net/socket.c:2714
 ___sys_recvmsg+0xf2/0x180 net/socket.c:2743
 do_recvmmsg+0x25e/0x6e0 net/socket.c:2837
 __sys_recvmmsg net/socket.c:2916 [inline]
 __do_sys_recvmmsg net/socket.c:2939 [inline]
 __se_sys_recvmmsg net/socket.c:2932 [inline]
 __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2932
 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+0x63/0xcd
RIP: 0033:0x7f56422dabb9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 18 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5642262208 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f564235c4b8 RCX: 00007f56422dabb9
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007f564235c4b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 00007f564235c4bc
R13: 00007fffbde3618f R14: 00007f5642262300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:PagePoisoned include/linux/page-flags.h:304 [inline]
RIP: 0010:PageHead include/linux/page-flags.h:787 [inline]
RIP: 0010:PageHeadHuge+0x1d/0x200 mm/hugetlb.c:1892
Code: ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 41 54 55 48 89 fd 53 e8 54 c9 b9 ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 a2 01 00 00 48 8b 5d 00 48 c7 c7 ff ff ff ff 48
RSP: 0018:ffffc90003e7f5a0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc90003e7f788 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81c2cb2c RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90003e7f798
R13: 0000000000000000 R14: 0000000000000000 R15: 00000000000003f4
FS:  00007f5642262700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f56419ff718 CR3: 000000007adcc000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	ff 66 66             	jmpq   *0x66(%rsi)
   3:	2e 0f 1f 84 00 00 00 	nopl   %cs:0x0(%rax,%rax,1)
   a:	00 00
   c:	90                   	nop
   d:	41 54                	push   %r12
   f:	55                   	push   %rbp
  10:	48 89 fd             	mov    %rdi,%rbp
  13:	53                   	push   %rbx
  14:	e8 54 c9 b9 ff       	callq  0xffb9c96d
  19:	48 89 ea             	mov    %rbp,%rdx
  1c:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  23:	fc ff df
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 a2 01 00 00    	jne    0x1d6
  34:	48 8b 5d 00          	mov    0x0(%rbp),%rbx
  38:	48 c7 c7 ff ff ff ff 	mov    $0xffffffffffffffff,%rdi
  3f:	48                   	rex.W

Crashes (96):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/09/21 21:02 linux-next 483fed3b5dc8 380f82fb .config log report syz C general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/16 22:28 linux-next aaa11ce2ffc8 67cb024c .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/15 16:13 linux-next aaa11ce2ffc8 67cb024c .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/15 10:42 linux-next aaa11ce2ffc8 67cb024c .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/14 21:43 linux-next aaa11ce2ffc8 4954e4b2 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/13 18:01 linux-next aaa11ce2ffc8 adf90437 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/12 23:08 linux-next aaa11ce2ffc8 89b5a509 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/12 12:13 linux-next aaa11ce2ffc8 16a9c9e0 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/10 22:59 linux-next aaa11ce2ffc8 aea5da89 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/10 11:46 linux-next aaa11ce2ffc8 aea5da89 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/10 04:29 linux-next aaa11ce2ffc8 aea5da89 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/08 22:13 linux-next aaa11ce2ffc8 aea5da89 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/08 17:00 linux-next aaa11ce2ffc8 aea5da89 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/08 05:57 linux-next aaa11ce2ffc8 0de35f24 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/08 00:38 linux-next aaa11ce2ffc8 0de35f24 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/07 11:00 linux-next aaa11ce2ffc8 8a212197 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/06 14:37 linux-next aaa11ce2ffc8 131b38ac .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/06 08:36 linux-next aaa11ce2ffc8 2c6543ad .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/06 05:56 linux-next aaa11ce2ffc8 2c6543ad .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/05 16:24 linux-next aaa11ce2ffc8 267e3bb1 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/04 16:57 linux-next aaa11ce2ffc8 eab8f949 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/04 11:20 linux-next aaa11ce2ffc8 77d3f689 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/04 10:08 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/04 06:12 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/04 04:40 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/03 09:32 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/03 06:33 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/02 23:47 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/02 02:35 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/01 22:26 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/01 17:20 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/01 11:53 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/10/01 05:16 linux-next aaa11ce2ffc8 feb56351 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/30 09:07 linux-next aaa11ce2ffc8 1d385642 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/29 06:18 linux-next aaa11ce2ffc8 e2556bc3 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/28 16:55 linux-next aaa11ce2ffc8 e2556bc3 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/28 16:21 linux-next aaa11ce2ffc8 e2556bc3 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/28 10:19 linux-next aaa11ce2ffc8 75c78242 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/28 10:19 linux-next aaa11ce2ffc8 75c78242 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/28 07:02 linux-next aaa11ce2ffc8 75c78242 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/28 04:41 linux-next aaa11ce2ffc8 75c78242 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/28 04:19 linux-next aaa11ce2ffc8 75c78242 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/26 20:09 linux-next aaa11ce2ffc8 10323ddf .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/26 01:58 linux-next aaa11ce2ffc8 0042f2b4 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/25 15:37 linux-next aaa11ce2ffc8 0042f2b4 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/24 00:36 linux-next aaa11ce2ffc8 0042f2b4 .config log report info general protection fault in PageHeadHuge
ci-upstream-linux-next-kasan-gce-root 2022/09/21 11:28 linux-next 483fed3b5dc8 380f82fb .config log report info general protection fault in PageHeadHuge
* Struck through repros no longer work on HEAD.