syzbot


general protection fault in bd_set_size

Status: auto-closed as invalid on 2019/02/22 10:29
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+a8fee545ee1476ba30af5012608524fe65ed2920@syzkaller.appspotmail.com
First crash: 2543d, last: 2459d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 general protection fault in bd_set_size syz 46 2091d 2009d 0/1 public: reported syz repro on 2019/04/12 00:01

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] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 23078 Comm: syz-executor3 Not tainted 4.15.0-rc8+ #263
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bdev_get_queue include/linux/blkdev.h:1011 [inline]
RIP: 0010:bdev_logical_block_size include/linux/blkdev.h:1449 [inline]
RIP: 0010:bd_set_size+0x5f/0x330 fs/block_dev.c:1383
RSP: 0018:ffff8801c24d7108 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff81bfbbdc
RDX: 00000000000000aa RSI: 0000000000000000 RDI: 0000000000000550
RBP: ffff8801c24d7138 R08: 1ffff1003849adc6 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801bfce48c0
R13: 0000000000000000 R14: ffff8801cfd1c900 R15: ffff8801cfd1cc28
FS:  00007f4003b77700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f089cdf7000 CR3: 0000000006822002 CR4: 00000000001606e0
DR0: 0000000020000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 loop_clr_fd+0x4fc/0xb50 drivers/block/loop.c:1053
 __lo_release drivers/block/loop.c:1597 [inline]
 lo_release+0x101/0x190 drivers/block/loop.c:1615
 __blkdev_put+0x62d/0x7f0 fs/block_dev.c:1770
 blkdev_put+0x85/0x4f0 fs/block_dev.c:1835
 blkdev_close+0x8b/0xb0 fs/block_dev.c:1842
 __fput+0x327/0x7e0 fs/file_table.c:210
 ____fput+0x15/0x20 fs/file_table.c:244
 task_work_run+0x199/0x270 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x9bb/0x1ad0 kernel/exit.c:865
 do_group_exit+0x149/0x400 kernel/exit.c:968
 get_signal+0x73f/0x16c0 kernel/signal.c:2335
 do_signal+0x90/0x1eb0 arch/x86/kernel/signal.c:809
 exit_to_usermode_loop+0x214/0x310 arch/x86/entry/common.c:158
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath+0x490/0x550 arch/x86/entry/common.c:264
 entry_SYSCALL_64_fastpath+0x9e/0xa0
RIP: 0033:0x452df9
RSP: 002b:00007f4003b76ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000071bf80 RCX: 0000000000452df9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000071bf80
RBP: 000000000071bf80 R08: 00000000000000b2 R09: 000000000071bf58
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000a2f7ef R14: 00007f4003b779c0 R15: 000000000000000b
Code: 03 80 3c 02 00 0f 85 c6 02 00 00 49 8b 9c 24 e0 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 50 05 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 76 02 00 00 4d 8d 74 24 08 48 b8 00 00 00 00 
RIP: bdev_get_queue include/linux/blkdev.h:1011 [inline] RSP: ffff8801c24d7108
RIP: bdev_logical_block_size include/linux/blkdev.h:1449 [inline] RSP: ffff8801c24d7108
RIP: bd_set_size+0x5f/0x330 fs/block_dev.c:1383 RSP: ffff8801c24d7108
---[ end trace 131cd01bb074b768 ]---

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/16 11:38 upstream a8750ddca918 4198e588 .config console log report ci-upstream-kasan-gce
2017/11/27 02:20 upstream bbecb1cfcca5 4bd70f88 .config console log report ci-upstream-kasan-gce
2017/11/20 04:24 upstream ed30b147e1f6 9badd053 .config console log report ci-upstream-kasan-gce
2017/11/07 07:31 upstream e4880bc5dfb1 d49979f7 .config console log report ci-upstream-kasan-gce
2017/10/24 22:03 upstream ae59df0349ba 3d7d860f .config console log report ci-upstream-kasan-gce
2017/11/25 01:19 mmots 1ea8d039f9ed deb5f6ae .config console log report ci-upstream-mmots-kasan-gce
2017/11/20 20:45 mmots 9390953851bb 84dd36ba .config console log report ci-upstream-mmots-kasan-gce
2017/10/24 20:37 linux-next 36ef71cae353 e511d9f8 .config console log report skylake-linux-next-kasan-qemu
* Struck through repros no longer work on HEAD.