syzbot


WARNING in gfs2_lm_withdraw

Status: upstream: reported on 2022/10/29 07:03
Reported-by: syzbot+ed172c61c7d54f4db429@syzkaller.appspotmail.com
First crash: 517d, last: 425d

Sample crash report:
  function = gfs2_jdesc_check, file = fs/gfs2/super.c, line = 368
gfs2: fsid=syz:syz.0: about to withdraw this file system
sysfs: cannot create duplicate filename '/fs/gfs2/syz:syz'
gfs2: fsid=syz:syz.0: withdrawn
------------[ cut here ]------------
WARNING: CPU: 1 PID: 11502 at fs/sysfs/dir.c:30 sysfs_warn_dup.cold+0x17/0x26 fs/sysfs/dir.c:30
CPU: 0 PID: 11479 Comm: syz-executor.5 Not tainted 4.14.304-syzkaller #0
Kernel panic - not syncing: panic_on_warn set ...

Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 gfs2_lm_withdraw.cold+0x1d8/0x251 fs/gfs2/util.c:73
 gfs2_consist_inode_i+0xca/0x110 fs/gfs2/util.c:161
 gfs2_jdesc_check+0x1f6/0x220 fs/gfs2/super.c:368
 init_journal fs/gfs2/ops_fstype.c:732 [inline]
 init_inodes+0x110b/0x18d0 fs/gfs2/ops_fstype.c:807
 fill_super+0x1721/0x2310 fs/gfs2/ops_fstype.c:1177
 gfs2_mount+0x439/0x510 fs/gfs2/ops_fstype.c:1340
 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+0x5e/0xd3
RIP: 0033:0x7f63921d05fa
RSP: 002b:00007f6390740f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00000000000124dc RCX: 00007f63921d05fa
RDX: 00000000200124c0 RSI: 0000000020012500 RDI: 00007f6390740fe0
RBP: 00007f6390741020 R08: 00007f6390741020 R09: 000000000020400f
R10: 000000000020400f R11: 0000000000000202 R12: 00000000200124c0
R13: 0000000020012500 R14: 00007f6390740fe0 R15: 0000000020000040
CPU: 1 PID: 11502 Comm: syz-executor.4 Not tainted 4.14.304-syzkaller #0
gfs2: fsid=syz:syz.0: my journal (0) is bad: -5
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
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:967
RIP: 0010:sysfs_warn_dup.cold+0x17/0x26 fs/sysfs/dir.c:30
RSP: 0018:ffff88803f2cf728 EFLAGS: 00010282
RAX: 000000000000003a RBX: ffff8880403343d0 RCX: 0000000000000000
RDX: 0000000000017a81 RSI: ffffffff81444260 RDI: ffffed1007e59edb
RBP: ffff88803de76080 R08: 000000000000003a R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b11b2540
R13: ffff8880b5447b80 R14: ffff8880403343d8 R15: ffff88803ea58218
 sysfs_create_dir_ns+0x16f/0x1d0 fs/sysfs/dir.c:59
 create_dir lib/kobject.c:71 [inline]
 kobject_add_internal+0x28b/0x930 lib/kobject.c:229
 kobject_add_varg lib/kobject.c:364 [inline]
 kobject_init_and_add+0xde/0x120 lib/kobject.c:436
 gfs2_sys_fs_add+0x184/0x3f0 fs/gfs2/sys.c:652
 fill_super+0x118b/0x2310 fs/gfs2/ops_fstype.c:1127
 gfs2_mount+0x439/0x510 fs/gfs2/ops_fstype.c:1340
 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+0x5e/0xd3
RIP: 0033:0x7f8c766be5fa
RSP: 002b:00007f8c74c2ef88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00000000000124dc RCX: 00007f8c766be5fa
RDX: 00000000200124c0 RSI: 0000000020012500 RDI: 00007f8c74c2efe0
RBP: 00007f8c74c2f020 R08: 00007f8c74c2f020 R09: 000000000020400f
R10: 000000000020400f R11: 0000000000000202 R12: 00000000200124c0
R13: 0000000020012500 R14: 00007f8c74c2efe0 R15: 0000000020000040
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/28 20:10 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in gfs2_lm_withdraw
2022/12/28 14:16 linux-4.14.y c4215ee4771b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in gfs2_lm_withdraw
2022/12/14 05:09 linux-4.14.y 65afe34ac33d f6511626 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in gfs2_lm_withdraw
2022/10/29 07:03 linux-4.14.y 41f36d7859a7 899d812a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in gfs2_lm_withdraw
* Struck through repros no longer work on HEAD.