syzbot


general protection fault in loop_validate_file

Status: closed as dup on 2018/06/18 14:51
Reported-by: syzbot+2f228435b0b9ec0ba068@syzkaller.appspotmail.com
First crash: 1468d, last: 1283d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in lo_ioctl (2) syz 2 1515d 1514d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 general protection fault in loop_validate_file syz 20 1250d 1168d 0/2 public: reported syz repro on 2019/04/14 00:02
android-414 general protection fault in loop_validate_file 4 1257d 1168d 0/1 auto-closed as invalid on 2019/07/13 08:46
android-49 general protection fault in loop_validate_file syz 28 1024d 1167d 0/3 public: reported syz repro on 2019/04/14 09:28
upstream general protection fault in loop_validate_file (2) 3 1192d 1195d 12/22 fixed on 2019/04/01 10:28
android-414 general protection fault in loop_validate_file (2) syz 6 1022d 1068d 0/1 public: reported syz repro on 2019/07/22 13:25
linux-4.14 general protection fault in loop_validate_file C error 7 34d 1031d 0/1 upstream: reported C repro on 2019/08/28 22:28

Sample crash report:
Buffer I/O error on dev loop3, logical block 36, lost async page write
print_req_error: I/O error, dev loop3, sector 0
kasan: CONFIG_KASAN_INLINE enabled
print_req_error: I/O error, dev loop3, sector 4096
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 0 PID: 4659 Comm: syz-executor487 Not tainted 4.18.0-rc5+ #156
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:loop_validate_file+0x247/0x470 drivers/block/loop.c:664
Code: 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 2e 02 00 00 4d 8b a4 24 f0 00 00 00 49 8d bc 24 b8 01 00 00 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 03 02 00 00 4d 8b a4 24 b8 01 00 00 4c 89 e0 48 
RSP: 0018:ffff8801ac3df8f8 EFLAGS: 00010202
RAX: 0000000000000037 RBX: dffffc0000000000 RCX: ffffffff84c242d9
RDX: 0000000000000000 RSI: ffffffff84c242e7 RDI: 00000000000001b8
RBP: ffff8801ac3df918 R08: ffff8801d966e640 R09: ffffed003b5c46d6
R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8801d24c1380 R14: 0000000000000002 R15: ffff8801d92eba00
FS:  00007fb12628e700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb1262f0db8 CR3: 00000001ad211000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 loop_set_fd drivers/block/loop.c:928 [inline]
 lo_ioctl+0x54d/0x1d10 drivers/block/loop.c:1411
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x9cd/0x2030 block/ioctl.c:601
 block_ioctl+0xee/0x130 fs/block_dev.c:1880
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:684
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701
 __do_sys_ioctl fs/ioctl.c:708 [inline]
 __se_sys_ioctl fs/ioctl.c:706 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x449e89
Code: e8 0c e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 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 7b d2 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fb12628dce8 EFLAGS: 00000206 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dbc8c RCX: 0000000000449e89
RDX: 0000000000000003 RSI: 0000000000004c00 RDI: 0000000000000007
RBP: 00000000006dbc88 R08: 00007fb12628e700 R09: 0000000000000000
R10: 00007fb12628e700 R11: 0000000000000206 R12: 0000000000000000
R13: 00007fff6ab7558f R14: 00007fb12628e9c0 R15: 0000000000000009
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace d6d498549d11e4ff ]---
RIP: 0010:loop_validate_file+0x247/0x470 drivers/block/loop.c:664
Code: 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 2e 02 00 00 4d 8b a4 24 f0 00 00 00 49 8d bc 24 b8 01 00 00 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 03 02 00 00 4d 8b a4 24 b8 01 00 00 4c 89 e0 48 
RSP: 0018:ffff8801ac3df8f8 EFLAGS: 00010202
RAX: 0000000000000037 RBX: dffffc0000000000 RCX: ffffffff84c242d9
RDX: 0000000000000000 RSI: ffffffff84c242e7 RDI: 00000000000001b8
RBP: ffff8801ac3df918 R08: ffff8801d966e640 R09: ffffed003b5c46d6
R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8801d24c1380 R14: 0000000000000002 R15: ffff8801d92eba00
FS:  00007fb12628e700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb1262f0db8 CR3: 00000001ad211000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (19):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2018/07/20 15:50 upstream 28c20cc73b9c 49f35839 .config log report syz C
ci-upstream-kasan-gce-386 2018/07/19 14:18 upstream 024ddc0ce104 49f35839 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2018/08/26 12:45 linux-next e27bc174c9c6 758cd203 .config log report syz
ci-upstream-kasan-gce-smack-root 2018/12/20 01:10 upstream 62393dbcbe0f 02e69052 .config log report
ci-upstream-kasan-gce-smack-root 2018/12/18 04:48 upstream 1a9430db2835 def91db3 .config log report
ci-upstream-kasan-gce-root 2018/12/03 15:00 upstream 2595646791c3 819002b0 .config log report
ci-upstream-kasan-gce-smack-root 2018/12/03 01:03 upstream 6a512726090a 7dcaeaf3 .config log report
ci-upstream-kasan-gce-root 2018/10/25 06:38 upstream 01aa9d518eae a8292de9 .config log report
ci-upstream-kasan-gce-selinux-root 2018/10/24 20:41 upstream 638820d8da8e a8292de9 .config log report
ci-upstream-kasan-gce 2018/10/18 01:43 upstream c343db455eb3 b2695b95 .config log report
ci-upstream-kasan-gce-selinux-root 2018/09/22 07:47 upstream 10dc890d4228 37079712 .config log report
ci-upstream-kasan-gce 2018/08/22 04:22 upstream 0214f46b3a03 95b5c82b .config log report
ci-upstream-kasan-gce 2018/08/14 09:12 upstream 7796916146b8 7a88b141 .config log report
ci-upstream-kasan-gce-root 2018/08/11 20:40 upstream ec0c96714e7d 7a88b141 .config log report
ci-upstream-kasan-gce-root 2018/07/16 02:30 upstream 9d3cce1e8b85 92a49505 .config log report
ci-upstream-kasan-gce-root 2018/06/17 20:01 upstream ce397d215ccd 27c5f59f .config log report
ci-upstream-linux-next-kasan-gce-root 2018/11/07 22:31 linux-next d881de30d29e e85d2a61 .config log report
ci-upstream-linux-next-kasan-gce-root 2018/08/13 13:55 linux-next 5ed5da74de9e 7a88b141 .config log report
ci-upstream-linux-next-kasan-gce-root 2018/07/18 18:05 linux-next 0b742fe187f7 809256c3 .config log report