syzbot


WARNING in bio_free
Status: upstream: reported C repro on 2022/03/31 16:42
Reported-by: syzbot+e08de3db8be67b2a01b0@syzkaller.appspotmail.com
First crash: 57d, last: 56d

Cause bisection: introduced by (bisect log) :
commit 57c47b42f4545b5f8fa288f190c0d68f96bc477f
Author: Christoph Hellwig <hch@lst.de>
Date: Tue Mar 8 06:15:50 2022 +0000

  block: turn bio_kmalloc into a simple kmalloc wrapper

Crash: WARNING in bio_free (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2022/03/31 16:44 9m hch@lst.de git://git.infradead.org/users/hch/misc.git squashfs-fix OK

Sample crash report:
loop0: detected capacity change from 0 to 8
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3587 at block/bio.c:229 bio_free+0xe8/0x120 block/bio.c:229
Modules linked in:
CPU: 1 PID: 3587 Comm: syz-executor393 Not tainted 5.17.0-next-20220331-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bio_free+0xe8/0x120 block/bio.c:229
Code: fa 48 c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 20 8b 45 08 48 83 c4 08 48 29 c3 48 89 df 5b 5d e9 fd be cb fd e8 a8 af a3 fd <0f> 0b e9 51 ff ff ff 48 89 34 24 e8 e8 57 ef fd 48 8b 34 24 eb d1
RSP: 0018:ffffc900038efac0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880241c7f00 RCX: 0000000000000000
RDX: ffff888019410000 RSI: ffffffff83d57848 RDI: ffff8880241c7f80
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff83d57915 R11: 0000000000000000 R12: 0000000000000060
R13: 0000000000000060 R14: 0000000000001000 R15: 0000000000000060
FS:  0000555556045300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc4e7ecd20 CR3: 000000007554f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bio_put+0x20e/0x3b0 block/bio.c:754
 squashfs_read_data+0x2ce/0xed0 fs/squashfs/block.c:221
 squashfs_read_table+0x184/0x1f0 fs/squashfs/cache.c:432
 squashfs_fill_super+0x337/0x2690 fs/squashfs/super.c:184
 get_tree_bdev+0x440/0x760 fs/super.c:1292
 vfs_get_tree+0x89/0x2f0 fs/super.c:1497
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1320/0x1fa0 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5ae6a070da
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe7a847f68 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe7a847fc0 RCX: 00007f5ae6a070da
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe7a847f80
RBP: 00007ffe7a847f80 R08: 00007ffe7a847fc0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000282 R12: 0000000020000218
R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000001
 </TASK>

Crashes (173):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/03/31 10:01 linux-next fdcbcd1348f4 9d49f3a7 .config log report syz C WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 09:06 linux-next fdcbcd1348f4 9d49f3a7 .config log report syz C WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 08:54 linux-next fdcbcd1348f4 9d49f3a7 .config log report syz C WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/04/01 02:54 linux-next fdcbcd1348f4 68fc921a .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/04/01 02:46 linux-next fdcbcd1348f4 68fc921a .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/04/01 00:37 linux-next fdcbcd1348f4 68fc921a .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 23:36 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 22:01 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 20:47 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 19:45 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 18:33 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 17:07 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 16:50 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 15:48 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 14:47 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 13:17 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 12:59 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 11:56 linux-next fdcbcd1348f4 c4c32d8c .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 09:33 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 08:18 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 06:57 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 06:52 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:52 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:50 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:47 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:46 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:46 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:43 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:42 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:42 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:41 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:34 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:34 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:33 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:32 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:28 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:27 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:27 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:26 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:22 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:22 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:22 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:21 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:16 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 05:13 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free
ci-upstream-linux-next-kasan-gce-root 2022/03/31 04:01 linux-next fdcbcd1348f4 9d49f3a7 .config log report info WARNING in bio_free