WARNING in gfs2_kill_sb (4)

5 views
Skip to first unread message

syzbot

unread,
Mar 10, 2022, 5:25:27 PM3/10/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c9fcc1545c3b Linux 4.14.270
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10021365700000
kernel config: https://syzkaller.appspot.com/x/.config?x=b69b060ee804baf2
dashboard link: https://syzkaller.appspot.com/bug?extid=86f76c84106d0e942d21
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+86f76c...@syzkaller.appspotmail.com

fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
should_fail_alloc_page mm/page_alloc.c:2898 [inline]
prepare_alloc_pages mm/page_alloc.c:4131 [inline]
__alloc_pages_nodemask+0x22c/0x2720 mm/page_alloc.c:4179
alloc_pages_current+0x155/0x260 mm/mempolicy.c:2113
------------[ cut here ]------------
alloc_pages include/linux/gfp.h:520 [inline]
gfs2_read_super+0x47/0xd40 fs/gfs2/ops_fstype.c:239
WARNING: CPU: 0 PID: 27714 at fs/super.c:1163 kill_block_super+0xbe/0xe0 fs/super.c:1163
init_names fs/gfs2/ops_fstype.c:378 [inline]
fill_super+0x127e/0x2310 fs/gfs2/ops_fstype.c:1110
Kernel panic - not syncing: panic_on_warn set ...

gfs2_mount+0x439/0x510 fs/gfs2/ops_fstype.c:1335
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/0x2a10 fs/namespace.c:2902
SYSC_mount fs/namespace.c:3118 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3095
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fe8714f157a
RSP: 002b:00007fe86fe64f88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020002a40 RCX: 00007fe8714f157a
RDX: 0000000020000780 RSI: 00000000200007c0 RDI: 00007fe86fe64fe0
RBP: 00007fe86fe65020 R08: 00007fe86fe65020 R09: 0000000020000780
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000780
R13: 00000000200007c0 R14: 00007fe86fe64fe0 R15: 0000000020002ac0
CPU: 0 PID: 27714 Comm: syz-executor.3 Not tainted 4.14.270-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: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:ffff8880b39c7a50 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc900093e6000
RDX: 0000000000040000 RSI: ffffffff81874dde RDI: ffff8880b1dc2bb0
RBP: ffff88809b264dc0 R08: ffffffff8b9a7020 R09: 0000000000000001
R10: 0000000000000000 R11: ffff88807bb88500 R12: ffff8880b1dc2700
R13: ffffffff89303db0 R14: ffffffff88f45040 R15: dffffc0000000000
gfs2_kill_sb+0x144/0x1a0 fs/gfs2/ops_fstype.c:1398
deactivate_locked_super+0x6c/0xd0 fs/super.c:319
sget_userns+0x9c4/0xc10 fs/super.c:537
sget+0xd1/0x110 fs/super.c:572
gfs2_mount+0x10f/0x510 fs/gfs2/ops_fstype.c:1292
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/0x2a10 fs/namespace.c:2902
SYSC_mount fs/namespace.c:3118 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3095
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f2b8011957a
RSP: 002b:00007f2b7ea8cf88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020002a40 RCX: 00007f2b8011957a
RDX: 0000000020000780 RSI: 00000000200007c0 RDI: 00007f2b7ea8cfe0
RBP: 00007f2b7ea8d020 R08: 00007f2b7ea8d020 R09: 0000000020000780
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000780
R13: 00000000200007c0 R14: 00007f2b7ea8cfe0 R15: 0000000020002ac0
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,
Mar 10, 2022, 5:57:19 PM3/10/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: c9fcc1545c3b Linux 4.14.270
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17755879700000
kernel config: https://syzkaller.appspot.com/x/.config?x=b69b060ee804baf2
dashboard link: https://syzkaller.appspot.com/bug?extid=86f76c84106d0e942d21
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16b1b609700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1011176e700000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+86f76c...@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]
__do_kmalloc mm/slab.c:3718 [inline]
__kmalloc+0x2c1/0x400 mm/slab.c:3729
------------[ cut here ]------------
kmalloc include/linux/slab.h:493 [inline]
kzalloc include/linux/slab.h:661 [inline]
__list_lru_init+0x67/0x710 mm/list_lru.c:539
alloc_super fs/super.c:229 [inline]
sget_userns+0x4e4/0xc10 fs/super.c:516
WARNING: CPU: 0 PID: 8031 at fs/super.c:1163 kill_block_super+0xbe/0xe0 fs/super.c:1163
Kernel panic - not syncing: panic_on_warn set ...

sget+0xd1/0x110 fs/super.c:572
gfs2_mount+0x10f/0x510 fs/gfs2/ops_fstype.c:1292
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/0x2a10 fs/namespace.c:2902
SYSC_mount fs/namespace.c:3118 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3095
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fc44b2320fa
RSP: 002b:00007ffe9a2e4e98 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fc44b2320fa
RDX: 0000000020000780 RSI: 00000000200007c0 RDI: 00007ffe9a2e4ea0
RBP: 00007ffe9a2e4ea0 R08: 00007ffe9a2e4ee0 R09: 6f6f6c2f7665642f
R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000005
R13: 0000000000000000 R14: 00007ffe9a2e4ee0 R15: 0000000000000000
CPU: 0 PID: 8031 Comm: syz-executor174 Not tainted 4.14.270-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: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:ffff8880b53bfa50 EFLAGS: 00010297
RAX: ffff8880b34fc500 RBX: 0000000000000000 RCX: 1ffff1101669f9b6
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff8880b1dc0bb0
RBP: ffff8880b53b2dc0 R08: ffffffff8b9ac500 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880b34fc500 R12: ffff8880b1dc0700
R13: ffffffff89303db0 R14: ffffffff88f45040 R15: dffffc0000000000
gfs2_kill_sb+0x144/0x1a0 fs/gfs2/ops_fstype.c:1398
deactivate_locked_super+0x6c/0xd0 fs/super.c:319
sget_userns+0x9c4/0xc10 fs/super.c:537
sget+0xd1/0x110 fs/super.c:572
gfs2_mount+0x10f/0x510 fs/gfs2/ops_fstype.c:1292
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/0x2a10 fs/namespace.c:2902
SYSC_mount fs/namespace.c:3118 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3095
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fc44b2320fa
RSP: 002b:00007ffe9a2e4e98 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fc44b2320fa
RDX: 0000000020000780 RSI: 00000000200007c0 RDI: 00007ffe9a2e4ea0
RBP: 00007ffe9a2e4ea0 R08: 00007ffe9a2e4ee0 R09: 6f6f6c2f7665642f
R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000005
R13: 0000000000000000 R14: 00007ffe9a2e4ee0 R15: 0000000000000000
Reply all
Reply to author
Forward
0 new messages