syzbot


general protection fault in bdev_read_page

Status: upstream: reported C repro on 2020/08/22 05:04
Reported-by: syzbot+abe1d53f7ee6e44eb373@syzkaller.appspotmail.com
First crash: 1552d, last: 11d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in bdev_read_page 1 1100d 1100d 0/2 auto-closed as invalid on 2022/02/15 00:11
upstream general protection fault in bdev_read_page (2) fs C error inconclusive 16 1145d 1599d 0/28 auto-obsoleted due to no activity on 2023/04/16 11:07
upstream general protection fault in bdev_read_page 2149 2642d 2578d 0/28 closed as invalid on 2017/10/31 12:51
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/11/10 13:46 16m retest repro android12-5.4 report log
2024/09/15 13:42 5m retest repro android12-5.4 report log
2024/09/01 12:58 11m retest repro android12-5.4 report log
2024/07/07 11:42 34m retest repro android12-5.4 report log
2024/06/23 11:14 14m retest repro android12-5.4 report log
2024/04/27 17:18 15m retest repro android12-5.4 report log
2024/04/13 05:45 11m retest repro android12-5.4 report log
2024/02/16 07:59 16m retest repro android12-5.4 report log
2024/02/02 07:02 13m retest repro android12-5.4 report log
2023/12/08 06:51 7m retest repro android12-5.4 report log

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 341 Comm: systemd-udevd Not tainted 5.4.125-syzkaller-00008-ga8f2bcabf9c5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bdev_read_page+0x37/0x190 fs/block_dev.c:707
Code: 10 49 89 d5 48 89 74 24 08 49 89 fc 49 bf 00 00 00 00 00 fc ff df e8 f8 26 be ff 49 8d 9c 24 80 00 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 ea e6 ec ff bd d0 04 00 00 48 03
RSP: 0018:ffff8881e59973b8 EFLAGS: 00010202
RAX: 0000000000000010 RBX: 0000000000000080 RCX: ffff8881f0a54ec0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881e59975d0 R08: ffffffff81a866cf R09: fffff94000edb671
R10: fffff94000edb671 R11: 0000000000000000 R12: 0000000000000000
R13: ffffea00076db380 R14: 0000000000000014 R15: dffffc0000000000
FS:  00007f1125d688c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004b51d0 CR3: 00000001e64be000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_mpage_readpage+0x1378/0x1a90 fs/mpage.c:338
 mpage_readpages+0x385/0x500 fs/mpage.c:440
 read_pages+0x118/0x400 mm/readahead.c:126
 __do_page_cache_readahead+0x470/0x510 mm/readahead.c:212
 force_page_cache_readahead mm/readahead.c:243 [inline]
 page_cache_sync_readahead+0x339/0x3b0 mm/readahead.c:522
 generic_file_buffered_read mm/filemap.c:2070 [inline]
 generic_file_read_iter+0x676/0x2120 mm/filemap.c:2343
 blkdev_read_iter+0x12a/0x180 fs/block_dev.c:2043
 call_read_iter include/linux/fs.h:1970 [inline]
 new_sync_read fs/read_write.c:414 [inline]
 __vfs_read+0x5e9/0x770 fs/read_write.c:427
 vfs_read+0x161/0x370 fs/read_write.c:461
 ksys_read+0x186/0x2b0 fs/read_write.c:587
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
Code: 73 01 c3 48 8b 0d 98 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d b9 c1 20 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24
RSP: 002b:00007ffc95e20138 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 000056369ae31520 RCX: 00007f1124eae210
RDX: 0000000000000400 RSI: 000056369ae31548 RDI: 000000000000000f
RBP: 000056369ae299d0 R08: 00007f1124e98f58 R09: 0000000000000430
R10: 000000000000006d R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000400 R14: 000056369ae29a20 R15: 0000000000000400
Modules linked in:
---[ end trace 73735f6812821fd1 ]---
RIP: 0010:bdev_read_page+0x37/0x190 fs/block_dev.c:707
Code: 10 49 89 d5 48 89 74 24 08 49 89 fc 49 bf 00 00 00 00 00 fc ff df e8 f8 26 be ff 49 8d 9c 24 80 00 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 ea e6 ec ff bd d0 04 00 00 48 03
RSP: 0018:ffff8881e59973b8 EFLAGS: 00010202
RAX: 0000000000000010 RBX: 0000000000000080 RCX: ffff8881f0a54ec0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881e59975d0 R08: ffffffff81a866cf R09: fffff94000edb671
R10: fffff94000edb671 R11: 0000000000000000 R12: 0000000000000000
R13: ffffea00076db380 R14: 0000000000000014 R15: dffffc0000000000
FS:  00007f1125d688c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004b51d0 CR3: 00000001e64be000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	49 89 d5             	mov    %rdx,%r13
   3:	48 89 74 24 08       	mov    %rsi,0x8(%rsp)
   8:	49 89 fc             	mov    %rdi,%r12
   b:	49 bf 00 00 00 00 00 	movabs $0xdffffc0000000000,%r15
  12:	fc ff df 
  15:	e8 f8 26 be ff       	callq  0xffbe2712
  1a:	49 8d 9c 24 80 00 00 	lea    0x80(%r12),%rbx
  21:	00 
  22:	48 89 d8             	mov    %rbx,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
  29:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 ea e6 ec ff       	callq  0xffece722
  38:	bd d0 04 00 00       	mov    $0x4d0,%ebp
  3d:	48                   	rex.W
  3e:	03                   	.byte 0x3

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/16 03:46 android12-5.4 a8f2bcabf9c5 2489ab88 .config console log report syz C ci2-android-5-4-kasan general protection fault in bdev_read_page
2020/08/22 05:30 https://android.googlesource.com/kernel/common android-5.4 45551fb3ebd9 6436ce4b .config console log report syz C ci2-android-5-4-kasan
2023/04/28 04:43 android12-5.4 d5ed2ca98e48 70a605de .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bdev_read_page
2023/04/21 15:02 android12-5.4 0108362f3305 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bdev_read_page
2021/12/05 07:14 android12-5.4 97b7ffb32f29 a617004c .config console log report info ci2-android-5-4-kasan general protection fault in bdev_read_page
2021/11/05 03:24 android12-5.4 2138e7367558 4c1be0be .config console log report info ci2-android-5-4-kasan general protection fault in bdev_read_page
2021/08/04 02:27 android12-5.4 e7e1f9adf836 6c236867 .config console log report info ci2-android-5-4-kasan general protection fault in bdev_read_page
2021/07/15 11:53 android12-5.4 bbf5a2eaba8d b9a2f64e .config console log report info ci2-android-5-4-kasan general protection fault in bdev_read_page
2021/03/02 22:51 android12-5.4 5aa479507289 e5b64d68 .config console log report info ci2-android-5-4-kasan general protection fault in bdev_read_page
2021/03/02 09:13 android12-5.4 13369a790167 92ead296 .config console log report info ci2-android-5-4-kasan general protection fault in bdev_read_page
2021/01/09 10:07 android12-5.4 47494776db44 a6c52263 .config console log report info ci2-android-5-4-kasan
2020/10/12 16:38 android12-5.4 cfc2b5293ada d32b0bbf .config console log report info ci2-android-5-4-kasan
2020/09/23 16:47 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 287cd75a .config console log report info ci2-android-5-4-kasan
2020/09/23 13:26 https://android.googlesource.com/kernel/common android-5.4 63d1c2f0b547 287cd75a .config console log report info ci2-android-5-4-kasan
2020/09/04 15:59 https://android.googlesource.com/kernel/common android-5.4 3f20ba7d5d1d abf9ba4f .config console log report ci2-android-5-4-kasan
2020/08/22 05:04 https://android.googlesource.com/kernel/common android-5.4 45551fb3ebd9 6436ce4b .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.