syzbot


WARNING in romfs_kill_sb

Status: upstream: reported C repro on 2022/08/20 14:44
Reported-by: syzbot+be6d607e79291c8bad6a@syzkaller.appspotmail.com
First crash: 667d, last: 484d
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2023/02/19 18:51 24m bisect fix linux-4.14.y job log (0) log
2023/01/20 10:28 26m bisect fix linux-4.14.y job log (0) log
2022/10/27 17:29 25m bisect fix linux-4.14.y job log (0) log
2022/09/20 03:24 30m bisect fix linux-4.14.y job log (0) log

Sample crash report:
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
 should_failslab+0xd6/0x130 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:421 [inline]
 slab_alloc mm/slab.c:3376 [inline]
 __do_kmalloc mm/slab.c:3718 [inline]
 __kmalloc+0x2c1/0x400 mm/slab.c:3729
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8197 at fs/super.c:1163 kill_block_super+0xbe/0xe0 fs/super.c:1163
 kmalloc include/linux/slab.h:493 [inline]
 kzalloc include/linux/slab.h:661 [inline]
 kobject_get_path+0xb5/0x230 lib/kobject.c:154
Kernel panic - not syncing: panic_on_warn set ...

 kobject_uevent_env+0x230/0xf30 lib/kobject_uevent.c:403
 loop_clr_fd+0x59f/0xc20 drivers/block/loop.c:1069
 lo_ioctl+0x895/0x1cd0 drivers/block/loop.c:1424
 __blkdev_driver_ioctl block/ioctl.c:297 [inline]
 blkdev_ioctl+0x540/0x1830 block/ioctl.c:594
 block_ioctl+0xd9/0x120 fs/block_dev.c:1893
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fa6b0154dc7
RSP: 002b:00007ffc626d7308 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00005555563a62c0 RCX: 00007fa6b0154dc7
RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000005
RBP: 0000000000000005 R08: 00007ffc626d7360 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000200018d8
R13: 0000000000000004 R14: 0000000000000005 R15: 0000000000000001
CPU: 0 PID: 8197 Comm: syz-executor409 Not tainted 4.14.290-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:kill_block_super+0xbe/0xe0 fs/super.c:1163
RSP: 0018:ffff888093befb88 EFLAGS: 00010297
RAX: ffff8880aa2b0000 RBX: 0000000000000000 RCX: 1ffff11015456116
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88808fefdcb0
RBP: ffff888093638540 R08: ffffffff8b9ccd70 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880aa2b0000 R12: ffff88808fefd800
R13: ffffffff891e2cf0 R14: ffffffff88f45760 R15: dffffc0000000000
 romfs_kill_sb fs/romfs/super.c:606 [inline]
 romfs_kill_sb+0x71/0xa0 fs/romfs/super.c:596
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 sget_userns+0x9c4/0xc10 fs/super.c:537
 sget+0xd1/0x110 fs/super.c:572
 mount_bdev+0xcd/0x360 fs/super.c:1107
 romfs_mount fs/romfs/super.c:587 [inline]
 romfs_mount+0x6a/0x70 fs/romfs/super.c:576
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fa6b015634a
RSP: 002b:00007ffc626d7308 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc626d7360 RCX: 00007fa6b015634a
RDX: 00000000200011c0 RSI: 00000000200013c0 RDI: 00007ffc626d7320
RBP: 00007ffc626d7320 R08: 00007ffc626d7360 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 00000000200018d8
R13: 0000000000000004 R14: 0000000000000005 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/20 15:22 linux-4.14.y b641242202ed 26a13b38 .config console log report syz C ci2-linux-4-14 WARNING in romfs_kill_sb
2022/08/20 14:44 linux-4.14.y b641242202ed 26a13b38 .config console log report info ci2-linux-4-14 WARNING in romfs_kill_sb
* Struck through repros no longer work on HEAD.