syzbot


general protection fault in loop_validate_file

Status: public: reported syz repro on 2019/04/14 00:02
Reported-by: syzbot+99f7858b4f046076e1bd@syzkaller.appspotmail.com
First crash: 2337d, last: 2151d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 general protection fault in loop_validate_file 4 2159d 2069d 0/1 auto-closed as invalid on 2019/07/13 08:46
upstream general protection fault in loop_validate_file block C 19 2184d 2368d 0/28 closed as dup on 2018/06/18 14:51
android-49 general protection fault in loop_validate_file syz 28 1925d 2068d 0/3 public: reported syz repro on 2019/04/14 09:28
upstream general protection fault in loop_validate_file (2) block 3 2093d 2096d 11/28 fixed on 2019/04/01 10:28
android-414 general protection fault in loop_validate_file (2) syz 6 1923d 1969d 0/1 public: reported syz repro on 2019/07/22 13:25
linux-4.14 general protection fault in loop_validate_file C error 9 649d 1932d 0/1 upstream: reported C repro on 2019/08/28 22:28

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 6611 Comm: syz-executor3 Not tainted 4.4.145-g2241aa9 #78
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8800b56c6000 task.stack: ffff8800b7660000
RIP: 0010:[<ffffffff8251968d>]  [<ffffffff8251968d>] loop_validate_file+0x20d/0x400 drivers/block/loop.c:667
RSP: 0018:ffff8800b7667b70  EFLAGS: 00010206
RAX: 0000000000000036 RBX: dffffc0000000000 RCX: ffff8800b56c6000
RDX: 0000000000000000 RSI: ffffffff8251965d RDI: 00000000000001b0
RBP: ffff8800b7667b88 R08: ffff8800b56c6928 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8800b56c6000 R12: 0000000000000000
R13: ffff8801d9c11140 R14: ffff8801d9c11140 R15: ffff8801d6a5dc58
FS:  00007f82c255a700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffea13ee004 CR3: 00000000b577e000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801d6a5db00 ffff8800b58e9000 0000000000000004 ffff8800b7667c18
 ffffffff8251fbed 0000000b0000004c 0000000100000006 0000000000000000
 0000000300000001 ffff8801d6a5db18 0000000041b58ab3 ffffffff84208310
Call Trace:
 [<ffffffff8251fbed>] loop_change_fd drivers/block/loop.c:713 [inline]
 [<ffffffff8251fbed>] lo_ioctl+0x3ed/0x16c0 drivers/block/loop.c:1370
 [<ffffffff81dbb628>] __blkdev_driver_ioctl block/ioctl.c:288 [inline]
 [<ffffffff81dbb628>] blkdev_ioctl+0x7b8/0x19c0 block/ioctl.c:584
 [<ffffffff815d637e>] block_ioctl+0xde/0x120 fs/block_dev.c:1625
 [<ffffffff8155bfdf>] vfs_ioctl fs/ioctl.c:43 [inline]
 [<ffffffff8155bfdf>] file_ioctl fs/ioctl.c:470 [inline]
 [<ffffffff8155bfdf>] do_vfs_ioctl+0x63f/0xf40 fs/ioctl.c:605
 [<ffffffff8155c96f>] SYSC_ioctl fs/ioctl.c:622 [inline]
 [<ffffffff8155c96f>] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:613
 [<ffffffff838c84e5>] entry_SYSCALL_64_fastpath+0x22/0x9e
Code: 00 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 f7 01 00 00 4d 8b a4 24 f0 00 00 00 49 8d bc 24 b0 01 00 00 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 cc 01 00 00 4d 8b a4 24 b0 01 00 00 4c 89 e0 
RIP  [<ffffffff8251968d>] loop_validate_file+0x20d/0x400 drivers/block/loop.c:667
 RSP <ffff8800b7667b70>
---[ end trace edb1b898ce394c4c ]---

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/05 12:03 https://android.googlesource.com/kernel/common android-4.4 2241aa98c9aa 1beb8136 .config console log report syz ci-android-44-kasan-gce
2018/07/19 13:05 https://android.googlesource.com/kernel/common android-4.4 1b37d68f4c82 49f35839 .config console log report syz ci-android-44-kasan-gce
2018/08/25 19:56 https://android.googlesource.com/kernel/common android-4.4 e5c5f1fae55d 76e7c3df .config console log report syz ci-android-44-kasan-gce-386
2018/08/05 12:28 https://android.googlesource.com/kernel/common android-4.4 2241aa98c9aa 1beb8136 .config console log report syz ci-android-44-kasan-gce-386
2018/07/19 13:25 https://android.googlesource.com/kernel/common android-4.4 1b37d68f4c82 49f35839 .config console log report syz ci-android-44-kasan-gce-386
2018/10/14 18:30 https://android.googlesource.com/kernel/common android-4.4 8e7f196597f3 caf12900 .config console log report ci-android-44-kasan-gce
2018/10/13 07:35 https://android.googlesource.com/kernel/common android-4.4 a94efb1c27c4 caf12900 .config console log report ci-android-44-kasan-gce
2018/09/06 00:45 https://android.googlesource.com/kernel/common android-4.4 b2cf10ee86d7 873745f2 .config console log report ci-android-44-kasan-gce
2018/08/17 03:55 https://android.googlesource.com/kernel/common android-4.4 f057ff937754 9ccc1d45 .config console log report ci-android-44-kasan-gce
2018/08/05 11:23 https://android.googlesource.com/kernel/common android-4.4 2241aa98c9aa 1beb8136 .config console log report ci-android-44-kasan-gce
2018/08/03 02:47 https://android.googlesource.com/kernel/common android-4.4 2241aa98c9aa 5b7e23bb .config console log report ci-android-44-kasan-gce
2018/08/02 21:24 https://android.googlesource.com/kernel/common android-4.4 2241aa98c9aa 5b7e23bb .config console log report ci-android-44-kasan-gce
2018/07/19 12:39 https://android.googlesource.com/kernel/common android-4.4 1b37d68f4c82 49f35839 .config console log report ci-android-44-kasan-gce
2019/01/21 22:00 https://android.googlesource.com/kernel/common android-4.4 24189101975d badbbeee .config console log report ci-android-44-kasan-gce-386
2018/10/20 10:30 https://android.googlesource.com/kernel/common android-4.4 34e65b671bc7 ecb386fe .config console log report ci-android-44-kasan-gce-386
2018/09/04 10:54 https://android.googlesource.com/kernel/common android-4.4 7e85a4b796e8 a4718693 .config console log report ci-android-44-kasan-gce-386
2018/09/03 22:41 https://android.googlesource.com/kernel/common android-4.4 7e85a4b796e8 a4718693 .config console log report ci-android-44-kasan-gce-386
2018/08/31 19:54 https://android.googlesource.com/kernel/common android-4.4 7e85a4b796e8 a4718693 .config console log report ci-android-44-kasan-gce-386
2018/08/25 18:43 https://android.googlesource.com/kernel/common android-4.4 e5c5f1fae55d 76e7c3df .config console log report ci-android-44-kasan-gce-386
2018/07/24 11:44 https://android.googlesource.com/kernel/common android-4.4 1b37d68f4c82 4969639c .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.