syzbot


WARNING in sysfs_create_dir_ns (3)

Status: upstream: reported on 2022/09/30 20:30
Reported-by: syzbot+5bb9a47a1a20f62e4182@syzkaller.appspotmail.com
First crash: 627d, last: 479d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in sysfs_create_dir_ns (2) 2 898d 927d 0/1 auto-closed as invalid on 2022/05/03 02:53
linux-4.14 WARNING in sysfs_create_dir_ns 11 1127d 1551d 0/1 auto-closed as invalid on 2021/09/16 03:50

Sample crash report:
 call_write_iter include/linux/fs.h:1780 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44c/0x630 fs/read_write.c:482
gfs2: fsid=syz:syz: Trying to join cluster "lock_dlm", "syz:syz"
 vfs_write+0x17f/0x4d0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
------------[ cut here ]------------
WARNING: CPU: 0 PID: 11320 at fs/sysfs/dir.c:30 sysfs_warn_dup.cold+0x17/0x26 fs/sysfs/dir.c:30
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
Kernel panic - not syncing: kernel: panic_on_warn set ...

 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f1895719e7f
RSP: 002b:00007f1893cd9f10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f1895719e7f
RDX: 0000000000020000 RSI: 00007f188b8ba000 RDI: 0000000000000004
RBP: 00007f188b8ba000 R08: 0000000000000000 R09: 0000000000000525
R10: 0000000000020000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f1893cd9fdc R14: 00007f1893cd9fe0 R15: 0000000020000602
CPU: 0 PID: 11320 Comm: syz-executor.0 Not tainted 4.14.307-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x21d/0x451 kernel/panic.c:247
 check_panic_on_warn.cold+0x19/0x35 kernel/panic.c:171
 __warn+0xdf/0x1e0 kernel/panic.c:603
 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:ffff8880544df728 EFLAGS: 00010282
RAX: 000000000000003a RBX: ffff8880550d4650 RCX: 0000000000000000
RDX: 000000000000db12 RSI: ffffffff814443b0 RDI: ffffed100a89bedb
RBP: ffff88809a458840 R08: 000000000000003a R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b0810ee0
R13: ffff8880b4f19900 R14: ffff8880550d4658 R15: ffff8880aabe0858
 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:0x7f625398b62a
RSP: 002b:00007f6251efbf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000049259 RCX: 00007f625398b62a
RDX: 0000000020049280 RSI: 00000000200492c0 RDI: 00007f6251efbfe0
RBP: 00007f6251efc020 R08: 00007f6251efc020 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020049280
R13: 00000000200492c0 R14: 00007f6251efbfe0 R15: 0000000020049300
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/25 22:59 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2023/02/25 15:52 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2023/02/22 07:35 linux-4.14.y a8ad60f2af58 42a4d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2023/02/17 20:11 linux-4.14.y a8ad60f2af58 cf8c2d39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2023/02/10 15:43 linux-4.14.y a8ad60f2af58 e29a17f5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2023/02/04 18:07 linux-4.14.y 3949d1610004 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2023/01/19 11:21 linux-4.14.y 97205fccccdc 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2022/12/27 17:40 linux-4.14.y c4215ee4771b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2022/12/09 17:41 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2022/12/08 23:08 linux-4.14.y 65afe34ac33d 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
2022/09/30 20:30 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in sysfs_create_dir_ns
* Struck through repros no longer work on HEAD.