syzbot


general protection fault in hugetlb_follow_page_mask

Status: auto-obsoleted due to no activity on 2024/02/21 16:43
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+9731531677dfdee90172@syzkaller.appspotmail.com
First crash: 212d, last: 186d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000001d: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000e8-0x00000000000000ef]
CPU: 0 PID: 7195 Comm: syz-executor.3 Not tainted 6.7.0-rc2-syzkaller-00029-g9b6de136b5f0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:__lock_acquire+0x69/0x1fd0 kernel/locking/lockdep.c:5004
Code: df 0f b6 04 30 84 c0 0f 85 47 16 00 00 83 3d a9 c7 93 0d 00 0f 84 1c 11 00 00 83 3d 80 78 12 0c 00 74 2c 4c 89 e0 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 e7 e8 b9 2c 7d 00 48 be 00 00 00 00 00 fc
RSP: 0018:ffffc9000b1570b0 EFLAGS: 00010006
RAX: 000000000000001d RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 00000000000000e8
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1e01806 R12: 00000000000000e8
R13: 0000000000000000 R14: ffff88802446bb80 R15: 0000000000000001
FS:  00007fc612bfe6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcd547d020 CR3: 0000000035a46000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5753
 down_read+0xb1/0xa40 kernel/locking/rwsem.c:1526
 hugetlb_follow_page_mask+0x2b9/0x1380 mm/hugetlb.c:6791
 follow_page_mask+0x27d/0xe20 mm/gup.c:824
 __get_user_pages+0x643/0x15f0 mm/gup.c:1237
 __get_user_pages_locked mm/gup.c:1507 [inline]
 __gup_longterm_locked+0x2068/0x2bf0 mm/gup.c:2209
 pin_user_pages_remote+0x132/0x1e0 mm/gup.c:3356
 process_vm_rw_single_vec mm/process_vm_access.c:105 [inline]
 process_vm_rw_core mm/process_vm_access.c:215 [inline]
 process_vm_rw+0x713/0xcf0 mm/process_vm_access.c:283
 __do_sys_process_vm_writev mm/process_vm_access.c:303 [inline]
 __se_sys_process_vm_writev mm/process_vm_access.c:298 [inline]
 __x64_sys_process_vm_writev+0xe0/0xf0 mm/process_vm_access.c:298
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fc61407cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc612bfe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000137
RAX: ffffffffffffffda RBX: 00007fc61419bf80 RCX: 00007fc61407cae9
RDX: 0000000000000001 RSI: 0000000020000b80 RDI: 0000000000000a49
RBP: 00007fc6140c847a R08: 0000000000000001 R09: 0000000000000000
R10: 0000000020000f80 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fc61419bf80 R15: 00007ffcd547cd58
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0x69/0x1fd0 kernel/locking/lockdep.c:5004
Code: df 0f b6 04 30 84 c0 0f 85 47 16 00 00 83 3d a9 c7 93 0d 00 0f 84 1c 11 00 00 83 3d 80 78 12 0c 00 74 2c 4c 89 e0 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 e7 e8 b9 2c 7d 00 48 be 00 00 00 00 00 fc
RSP: 0018:ffffc9000b1570b0 EFLAGS: 00010006
RAX: 000000000000001d RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 00000000000000e8
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1e01806 R12: 00000000000000e8
R13: 0000000000000000 R14: ffff88802446bb80 R15: 0000000000000001
FS:  00007fc612bfe6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcd547d020 CR3: 0000000035a46000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	df 0f                	fisttps (%rdi)
   2:	b6 04                	mov    $0x4,%dh
   4:	30 84 c0 0f 85 47 16 	xor    %al,0x1647850f(%rax,%rax,8)
   b:	00 00                	add    %al,(%rax)
   d:	83 3d a9 c7 93 0d 00 	cmpl   $0x0,0xd93c7a9(%rip)        # 0xd93c7bd
  14:	0f 84 1c 11 00 00    	je     0x1136
  1a:	83 3d 80 78 12 0c 00 	cmpl   $0x0,0xc127880(%rip)        # 0xc1278a1
  21:	74 2c                	je     0x4f
  23:	4c 89 e0             	mov    %r12,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 30 00          	cmpb   $0x0,(%rax,%rsi,1) <-- trapping instruction
  2e:	74 12                	je     0x42
  30:	4c 89 e7             	mov    %r12,%rdi
  33:	e8 b9 2c 7d 00       	call   0x7d2cf1
  38:	48                   	rex.W
  39:	be 00 00 00 00       	mov    $0x0,%esi
  3e:	00 fc                	add    %bh,%ah

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/23 16:42 upstream 9b6de136b5f0 fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in hugetlb_follow_page_mask
2023/11/03 22:33 upstream 8f6f76a6a29f 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in hugetlb_follow_page_mask
2023/10/28 01:56 upstream 888cf78c29e2 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in hugetlb_follow_page_mask
* Struck through repros no longer work on HEAD.