sysfs: cannot create duplicate filename '/fs/gfs2/syz:syz' alloc_pages_vma+0xd2/0x6d0 mm/mempolicy.c:2071 shmem_alloc_page+0xe0/0x180 mm/shmem.c:1480 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 11231 at fs/sysfs/dir.c:30 sysfs_warn_dup.cold+0x17/0x26 fs/sysfs/dir.c:30 Kernel panic - not syncing: panic_on_warn set ... shmem_alloc_and_acct_page+0x126/0x620 mm/shmem.c:1505 shmem_getpage_gfp+0x302/0x2a40 mm/shmem.c:1782 shmem_getpage mm/shmem.c:131 [inline] shmem_write_begin+0xeb/0x190 mm/shmem.c:2431 generic_perform_write+0x1d5/0x430 mm/filemap.c:3055 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180 generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208 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 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 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f2ef16d9e4f RSP: 002b:00007f2eefc99f10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f2ef16d9e4f RDX: 0000000000400000 RSI: 00007f2ee787a000 RDI: 0000000000000004 RBP: 00007f2ee787a000 R08: 0000000000000000 R09: 00000000000011d7 R10: 0000000000400000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007f2eefc99fdc R14: 00007f2eefc99fe0 R15: 00000000200012c2 CPU: 0 PID: 11231 Comm: syz-executor.0 Not tainted 4.14.303-syzkaller #0 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:ffff88804b467728 EFLAGS: 00010282 RAX: 000000000000003a RBX: ffff888045b08cd0 RCX: 0000000000000000 RDX: 0000000000038c73 RSI: ffffffff814443d0 RDI: ffffed100968cedb RBP: ffff8880b183ebc0 R08: 000000000000003a R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b087f620 R13: ffff8880a9033bc0 R14: ffff888045b08cd8 R15: ffff8880585dca98 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:0x7f08332075fa RSP: 002b:00007f0831777f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000002114d RCX: 00007f08332075fa RDX: 0000000020021180 RSI: 00000000200211c0 RDI: 00007f0831777fe0 RBP: 00007f0831778020 R08: 00007f0831778020 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020021180 R13: 00000000200211c0 R14: 00007f0831777fe0 R15: 0000000020021200 Kernel Offset: disabled Rebooting in 86400 seconds..