syzbot


WARNING in sysfs_create_dir_ns

Status: auto-closed as invalid on 2021/09/16 03:50
Reported-by: syzbot+f753fb6339ff7eaa0a98@syzkaller.appspotmail.com
First crash: 826d, last: 401d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in sysfs_create_dir_ns (2) 2 172d 202d 0/1 auto-closed as invalid on 2022/05/03 02:53

Sample crash report:
sysfs: cannot create duplicate filename '/fs/gfs2/syz:syz'
 do_sys_open+0x296/0x410 fs/open.c:1081
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
------------[ cut here ]------------
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
WARNING: CPU: 0 PID: 15956 at fs/sysfs/dir.c:30 sysfs_warn_dup.cold+0x17/0x26 fs/sysfs/dir.c:30
RIP: 0033:0x4196c4
Kernel panic - not syncing: panic_on_warn set ...

RSP: 002b:00007f3b906e4f30 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00000000004196c4
RDX: 0000000000010000 RSI: 0000000020000100 RDI: 00000000ffffff9c
RBP: 0000000020000100 R08: 0000000000000000 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000010000
R13: 0000000020000100 R14: 00007f3b906e5000 R15: 0000000020047a20
CPU: 0 PID: 15956 Comm: syz-executor.1 Not tainted 4.14.232-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:sysfs_warn_dup.cold+0x17/0x26 fs/sysfs/dir.c:30
RSP: 0018:ffff8880440ef728 EFLAGS: 00010282
RAX: 000000000000003a RBX: ffff8880425f5b10 RCX: 0000000000000000
RDX: 0000000000039e4c RSI: ffffffff81441a30 RDI: ffffed100881dedb
RBP: ffff888044294280 R08: 000000000000003a R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8882392088c0
R13: ffff8880a9c9eec0 R14: ffff8880425f5b18 R15: ffff88803bef9bd8
 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:1122
 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: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:0x467afa
RSP: 002b:00007f9484e6ffa8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000467afa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f9484e70000
RBP: 00007f9484e70040 R08: 00007f9484e70040 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000000
R13: 0000000020000100 R14: 00007f9484e70000 R15: 0000000020047a20
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2021/05/19 03:50 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config log report info WARNING in sysfs_create_dir_ns
ci2-linux-4-14 2021/04/24 13:04 linux-4.14.y cf256fbcbe34 17f0b706 .config log report info WARNING in sysfs_create_dir_ns
ci2-linux-4-14 2021/03/21 15:22 linux-4.14.y cb83ddcd5332 4c9a64da .config log report info WARNING in sysfs_create_dir_ns
ci2-linux-4-14 2021/02/20 10:45 linux-4.14.y 29c52025152b 3e5ed8b4 .config log report info WARNING in sysfs_create_dir_ns
ci2-linux-4-14 2021/02/02 02:11 linux-4.14.y 2c8a3fceddf0 e6b95f32 .config log report info WARNING in sysfs_create_dir_ns
ci2-linux-4-14 2021/01/25 09:35 linux-4.14.y 2d2791fce891 52e37319 .config log report info WARNING in sysfs_create_dir_ns
ci2-linux-4-14 2020/11/27 03:20 linux-4.14.y 87335852c5d9 5018c946 .config log report info
ci2-linux-4-14 2020/10/17 00:05 linux-4.14.y cbfa1702aaf6 6e262c73 .config log report info
ci2-linux-4-14 2020/07/06 15:14 linux-4.14.y b850307b279c ac5a135b .config log report
ci2-linux-4-14 2020/06/02 04:57 linux-4.14.y 4f68020fef1c a0331e89 .config log report
ci2-linux-4-14 2020/03/20 14:45 linux-4.14.y 01364dad1d45 2c31c529 .config log report