WARNING in romfs_kill_sb

5 views
Skip to first unread message

syzbot

unread,
Aug 20, 2022, 10:44:27 AM8/20/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b641242202ed Linux 4.14.290
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11999fc3080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d2165c966db95316
dashboard link: https://syzkaller.appspot.com/bug?extid=be6d607e79291c8bad6a
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+be6d60...@syzkaller.appspotmail.com

kstrdup_const+0x35/0x60 mm/util.c:78
alloc_vfsmnt+0xe0/0x7f0 fs/namespace.c:214
vfs_kern_mount.part.0+0x27/0x470 fs/namespace.c:1039
vfs_kern_mount fs/namespace.c:1036 [inline]
do_new_mount fs/namespace.c:2572 [inline]
do_mount+0xe65/0x2a30 fs/namespace.c:2905
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4211 at fs/super.c:1163 kill_block_super+0xbe/0xe0 fs/super.c:1163
Kernel panic - not syncing: panic_on_warn set ...

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:0x7f25b5a2b7aa
RSP: 002b:00007f25b439ef88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00000000200018c0 RCX: 00007f25b5a2b7aa
RDX: 00000000200011c0 RSI: 00000000200013c0 RDI: 00007f25b439efe0
RBP: 00007f25b439f020 R08: 00007f25b439f020 R09: 00000000200011c0
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000200011c0
R13: 00000000200013c0 R14: 00007f25b439efe0 R15: 0000000020001980
CPU: 0 PID: 4211 Comm: syz-executor.1 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:ffff88808ea3fb88 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90007215000
RDX: 0000000000040000 RSI: ffffffff81875ece RDI: ffff8880b1da6b70
RBP: ffff88809fa46800 R08: ffffffff8b9d6660 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880999a6040 R12: ffff8880b1da66c0
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:0x7f5c08b6d7aa
RSP: 002b:00007f5c074e0f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00000000200018c0 RCX: 00007f5c08b6d7aa
RDX: 00000000200011c0 RSI: 00000000200013c0 RDI: 00007f5c074e0fe0
RBP: 00007f5c074e1020 R08: 00007f5c074e1020 R09: 00000000200011c0
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000200011c0
R13: 00000000200013c0 R14: 00007f5c074e0fe0 R15: 0000000020001980
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Aug 20, 2022, 11:23:27 AM8/20/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: b641242202ed Linux 4.14.290
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=120358b5080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d2165c966db95316
dashboard link: https://syzkaller.appspot.com/bug?extid=be6d607e79291c8bad6a
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1363541d080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10510e3d080000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+be6d60...@syzkaller.appspotmail.com

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
Reply all
Reply to author
Forward
0 new messages