syzbot


general protection fault in pagemap_pmd_range

Status: closed as invalid on 2019/11/19 04:06
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+a0fc447639c6ffa66b59@syzkaller.appspotmail.com
First crash: 1606d, last: 1605d
Cause bisection: introduced by (bisect log) :
commit 181be542ef3c9ca495500143d4c23f4d58beb5ab
Author: Steven Price <steven.price@arm.com>
Date: Mon Nov 4 22:57:54 2019 +0000

  mm: pagewalk: allow walking without vma

Crash: general protection fault in pagemap_pmd_range (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in pagemap_pmd_range 1 (2) 2019/11/19 04:06

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8839 Comm: syz-executor009 Not tainted 5.4.0-rc6-next-20191105 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:pmd_trans_huge_lock include/linux/huge_mm.h:219 [inline]
RIP: 0010:pagemap_pmd_range+0x83/0x1e40 fs/proc/task_mmu.c:1373
Code: c1 ea 03 80 3c 02 00 0f 85 ef 1a 00 00 48 8b 43 18 49 8d 7f 40 48 89 fa 48 c1 ea 03 48 89 45 c8 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f 85 be 1a 00 00 49 8b 5f 40 be 08 00 00 00 4c 8d ab
RSP: 0018:ffff8880a4e4f288 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880a4e4f438 RCX: ffff8880a4e4f438
RDX: 0000000000000008 RSI: ffffffff81dd1b94 RDI: 0000000000000040
RBP: ffff8880a4e4f300 R08: ffff8880992ee040 R09: ffffed1012180ad2
R10: ffffed1012180ad1 R11: ffff888090c0568b R12: ffff8880a53a2010
R13: 0000000000600000 R14: 00000000005fffff R15: 0000000000000000
FS:  000000000172c880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000455150 CR3: 000000009f949000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 walk_pmd_range mm/pagewalk.c:78 [inline]
 walk_pud_range mm/pagewalk.c:149 [inline]
 walk_p4d_range mm/pagewalk.c:190 [inline]
 walk_pgd_range mm/pagewalk.c:223 [inline]
 __walk_page_range+0x10ff/0x1b40 mm/pagewalk.c:318
 walk_page_range+0x1c5/0x3b0 mm/pagewalk.c:406
 pagemap_read+0x4d1/0x650 fs/proc/task_mmu.c:1596
 do_loop_readv_writev fs/read_write.c:714 [inline]
 do_loop_readv_writev fs/read_write.c:701 [inline]
 do_iter_read+0x4a4/0x660 fs/read_write.c:935
 vfs_readv+0xf0/0x160 fs/read_write.c:997
 kernel_readv fs/splice.c:359 [inline]
 default_file_splice_read+0x482/0x8a0 fs/splice.c:414
 do_splice_to+0x127/0x180 fs/splice.c:877
 splice_direct_to_actor+0x2d3/0x970 fs/splice.c:955
 do_splice_direct+0x1da/0x2a0 fs/splice.c:1064
 do_sendfile+0x597/0xd00 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1525 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0x1dd/0x220 fs/read_write.c:1511
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4401e9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 5b 14 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffcb2c0cd38 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401e9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000012 R09: 65732f636f72702f
R10: 0000100000206201 R11: 0000000000000246 R12: 0000000000401ad0
R13: 0000000000401b60 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace d938329fe3462ca9 ]---
RIP: 0010:pmd_trans_huge_lock include/linux/huge_mm.h:219 [inline]
RIP: 0010:pagemap_pmd_range+0x83/0x1e40 fs/proc/task_mmu.c:1373
Code: c1 ea 03 80 3c 02 00 0f 85 ef 1a 00 00 48 8b 43 18 49 8d 7f 40 48 89 fa 48 c1 ea 03 48 89 45 c8 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f 85 be 1a 00 00 49 8b 5f 40 be 08 00 00 00 4c 8d ab
RSP: 0018:ffff8880a4e4f288 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880a4e4f438 RCX: ffff8880a4e4f438
RDX: 0000000000000008 RSI: ffffffff81dd1b94 RDI: 0000000000000040
RBP: ffff8880a4e4f300 R08: ffff8880992ee040 R09: ffffed1012180ad2
R10: ffffed1012180ad1 R11: ffff888090c0568b R12: ffff8880a53a2010
R13: 0000000000600000 R14: 00000000005fffff R15: 0000000000000000
FS:  000000000172c880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000455150 CR3: 000000009f949000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (310):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/05 15:01 linux-next 51309b9d73f5 0f3ec414 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/11/06 11:50 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 10:38 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 10:22 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 09:17 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 08:16 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 07:47 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 07:22 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 06:58 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 05:57 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 05:11 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 04:33 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 03:32 linux-next 51309b9d73f5 bc2c6e45 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 02:14 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 01:09 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/06 00:44 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 23:02 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 22:35 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 21:13 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 21:04 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 19:33 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 18:30 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 17:27 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 17:06 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 16:05 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:59 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:23 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:23 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:22 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:17 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:17 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:17 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:16 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:12 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:11 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:10 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:09 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:05 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:02 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 13:02 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 12:59 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 12:58 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 12:57 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/05 12:55 linux-next 51309b9d73f5 0f3ec414 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.