WARNING in efs_kill_sb

6 views
Skip to first unread message

syzbot

unread,
Apr 21, 2021, 11:28:20 AM4/21/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cf256fbc Linux 4.14.231
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10842d75d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=403e68efdb1dcca6
dashboard link: https://syzkaller.appspot.com/bug?extid=9df050644b79c1f74ad6

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+9df050...@syzkaller.appspotmail.com

__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
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
------------[ cut here ]------------
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
kmem_cache_alloc_trace+0x29a/0x3d0 mm/slab.c:3616
WARNING: CPU: 1 PID: 22767 at fs/super.c:1163 kill_block_super+0xbe/0xe0 fs/super.c:1163
Kernel panic - not syncing: panic_on_warn set ...

kmalloc include/linux/slab.h:488 [inline]
kzalloc include/linux/slab.h:661 [inline]
kobject_uevent_env+0x20c/0xf40 lib/kobject_uevent.c:397
figure_loop_size+0x249/0x2e0 drivers/block/loop.c:242
loop_set_status+0x6aa/0x12b0 drivers/block/loop.c:1152
loop_set_status64+0x92/0xe0 drivers/block/loop.c:1311
lo_ioctl+0x587/0x1cd0 drivers/block/loop.c:1441
__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:0x466459
RSP: 002b:00007f4554a7d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000020000040 RSI: 0000000000004c04 RDI: 0000000000000003
RBP: 00007f4554a7d1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffcf60ab4cf R14: 00007f4554a7d300 R15: 0000000000022000
CPU: 1 PID: 22767 Comm: syz-executor.3 Not tainted 4.14.231-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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:186
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:ffff88809437fbb0 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90007cda000
RDX: 0000000000040000 RSI: ffffffff818726fe RDI: ffff8880b1f86c30
RBP: ffff8880778b8dc0 R08: ffffffff8b998e78 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880a1406480 R12: ffff8880b1f86780
R13: ffffffff891ba2d0 R14: ffffffff88f44f40 R15: dffffc0000000000
efs_kill_sb+0x38/0x50 fs/efs/super.c:33
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
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:2549 [inline]
do_mount+0xe53/0x2a00 fs/namespace.c:2879
SYSC_mount fs/namespace.c:3095 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3072
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x46797a
RSP: 002b:00007f0136d9ffa8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000480 RCX: 000000000046797a
RDX: 0000000020000140 RSI: 0000000020000180 RDI: 00007f0136da0000
RBP: 00007f0136da0040 R08: 00007f0136da0040 R09: 0000000020000140
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000140
R13: 0000000020000180 R14: 00007f0136da0000 R15: 00000000200004c0
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,
Apr 21, 2021, 12:13:17 PM4/21/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: cf256fbc Linux 4.14.231
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17730729d00000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16842d75d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1753166dd00000

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

should_failslab+0xd6/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3376 [inline]
kmem_cache_alloc+0x28e/0x3c0 mm/slab.c:3550
------------[ cut here ]------------
kmem_cache_zalloc include/linux/slab.h:651 [inline]
alloc_buffer_head+0x20/0x110 fs/buffer.c:3429
alloc_page_buffers+0xb3/0x1f0 fs/buffer.c:874
WARNING: CPU: 0 PID: 8064 at fs/super.c:1163 kill_block_super+0xbe/0xe0 fs/super.c:1163
grow_dev_page fs/buffer.c:1025 [inline]
grow_buffers fs/buffer.c:1077 [inline]
__getblk_slow+0x2d6/0x7a0 fs/buffer.c:1104
Kernel panic - not syncing: panic_on_warn set ...

__getblk_gfp fs/buffer.c:1383 [inline]
__bread_gfp+0x206/0x2e0 fs/buffer.c:1428
sb_bread include/linux/buffer_head.h:309 [inline]
efs_fill_super+0x12d/0xac0 fs/efs/super.c:275
mount_bdev+0x2b3/0x360 fs/super.c:1134
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:2549 [inline]
do_mount+0xe53/0x2a00 fs/namespace.c:2879
SYSC_mount fs/namespace.c:3095 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3072
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4465ba
RSP: 002b:00007ffc74ef3078 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004465ba
RDX: 0000000020000140 RSI: 0000000020000180 RDI: 00007ffc74ef30c0
RBP: 0000000000000005 R08: 00007ffc74ef3100 R09: 00007ffc74ef30c0
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000001a622c0
R13: 00007ffc74ef3100 R14: 0000000000000001 R15: 0000000000000006
CPU: 0 PID: 8064 Comm: syz-executor175 Not tainted 4.14.231-syzkaller #0
efs: cannot read superblock
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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:186
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
efs: cannot read superblock
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:kill_block_super+0xbe/0xe0 fs/super.c:1163
RSP: 0018:ffff8880959c7bb0 EFLAGS: 00010297
RAX: ffff8880b06ec1c0 RBX: 0000000000000000 RCX: 1ffff110160dd94e
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff8880b1fb5cb0
RBP: ffff888094cac080 R08: ffffffff8b9a72c0 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880b06ec1c0 R12: ffff8880b1fb5800
R13: ffffffff891ba2d0 R14: ffffffff88f44f40 R15: dffffc0000000000
efs_kill_sb+0x38/0x50 fs/efs/super.c:33
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
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:2549 [inline]
do_mount+0xe53/0x2a00 fs/namespace.c:2879
SYSC_mount fs/namespace.c:3095 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3072
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4465ba
RSP: 002b:00007ffc74ef3078 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004465ba
RDX: 0000000020000140 RSI: 0000000020000180 RDI: 00007ffc74ef30c0
RBP: 0000000000000005 R08: 00007ffc74ef3100 R09: 00007ffc74ef30c0
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000001a622c0
R13: 00007ffc74ef3100 R14: 0000000000000001 R15: 0000000000000006
Reply all
Reply to author
Forward
0 new messages