kobject: kobject_add_internal failed for syz:syz with -EEXIST, don't try to register things with the same name in the same directory. gfs2: fsid=syz:syz: error -17 adding sysfs files ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: null-ptr-deref in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: null-ptr-deref in gfs2_drop_inode+0x107/0x400 fs/gfs2/super.c:1052 Read of size 8 at addr 00000000000000a8 by task syz.1.4255/15634 CPU: 1 UID: 0 PID: 15634 Comm: syz.1.4255 Not tainted 6.15.0-syzkaller-08297-ge0797d3b91de #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 kasan_report+0xe0/0x110 mm/kasan/report.c:634 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] gfs2_drop_inode+0x107/0x400 fs/gfs2/super.c:1052 iput_final fs/inode.c:1868 [inline] iput fs/inode.c:1924 [inline] iput+0x406/0x880 fs/inode.c:1910 gfs2_fill_super+0x1508/0x2d80 fs/gfs2/ops_fstype.c:1314 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1686 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1333 vfs_get_tree+0x8e/0x340 fs/super.c:1809 do_new_mount fs/namespace.c:3882 [inline] path_mount+0x14d4/0x1f70 fs/namespace.c:4209 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount fs/namespace.c:4410 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4410 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2360d9010a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2361c62e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2361c62ef0 RCX: 00007f2360d9010a RDX: 0000200000037f40 RSI: 0000200000037f80 RDI: 00007f2361c62eb0 RBP: 0000200000037f40 R08: 00007f2361c62ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000037f80 R13: 00007f2361c62eb0 R14: 0000000000037f0c R15: 0000200000037fc0 ================================================================== Oops: general protection fault, probably for non-canonical address 0xdffffc0000000015: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000000a8-0x00000000000000af] CPU: 1 UID: 0 PID: 15634 Comm: syz.1.4255 Tainted: G B 6.15.0-syzkaller-08297-ge0797d3b91de #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:206 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:238 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:gfs2_drop_inode+0x118/0x400 fs/gfs2/super.c:1052 Code: e8 4d 17 b2 fd 49 8d ad a8 00 00 00 be 08 00 00 00 48 89 ef e8 89 ad 17 fe 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 6d 02 00 00 49 8b ad a8 00 00 00 31 ff 48 c1 ed RSP: 0018:ffffc9000b37fa48 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: ffff888058221410 RCX: ffffc9001095d000 RDX: 0000000000000015 RSI: ffffffff82210fd7 RDI: 0000000000000007 RBP: 00000000000000a8 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 6e696c6261736944 R12: ffff888058221458 R13: 0000000000000000 R14: ffff888058221490 R15: ffffffff8bdf09a0 FS: 00007f2361c636c0(0000) GS:ffff888124a76000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3861e2f000 CR3: 000000004bfb4000 CR4: 0000000000350ef0 Call Trace: iput_final fs/inode.c:1868 [inline] iput fs/inode.c:1924 [inline] iput+0x406/0x880 fs/inode.c:1910 gfs2_fill_super+0x1508/0x2d80 fs/gfs2/ops_fstype.c:1314 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1686 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1333 vfs_get_tree+0x8e/0x340 fs/super.c:1809 do_new_mount fs/namespace.c:3882 [inline] path_mount+0x14d4/0x1f70 fs/namespace.c:4209 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount fs/namespace.c:4410 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4410 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2360d9010a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2361c62e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2361c62ef0 RCX: 00007f2360d9010a RDX: 0000200000037f40 RSI: 0000200000037f80 RDI: 00007f2361c62eb0 RBP: 0000200000037f40 R08: 00007f2361c62ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000037f80 R13: 00007f2361c62eb0 R14: 0000000000037f0c R15: 0000200000037fc0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:206 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:238 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:gfs2_drop_inode+0x118/0x400 fs/gfs2/super.c:1052 Code: e8 4d 17 b2 fd 49 8d ad a8 00 00 00 be 08 00 00 00 48 89 ef e8 89 ad 17 fe 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 6d 02 00 00 49 8b ad a8 00 00 00 31 ff 48 c1 ed RSP: 0018:ffffc9000b37fa48 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: ffff888058221410 RCX: ffffc9001095d000 RDX: 0000000000000015 RSI: ffffffff82210fd7 RDI: 0000000000000007 RBP: 00000000000000a8 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 6e696c6261736944 R12: ffff888058221458 R13: 0000000000000000 R14: ffff888058221490 R15: ffffffff8bdf09a0 FS: 00007f2361c636c0(0000) GS:ffff888124a76000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3861e2f000 CR3: 000000004bfb4000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: e8 4d 17 b2 fd call 0xfdb21752 5: 49 8d ad a8 00 00 00 lea 0xa8(%r13),%rbp c: be 08 00 00 00 mov $0x8,%esi 11: 48 89 ef mov %rbp,%rdi 14: e8 89 ad 17 fe call 0xfe17ada2 19: 48 89 ea mov %rbp,%rdx 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 6d 02 00 00 jne 0x2a1 34: 49 8b ad a8 00 00 00 mov 0xa8(%r13),%rbp 3b: 31 ff xor %edi,%edi 3d: 48 rex.W 3e: c1 .byte 0xc1 3f: ed in (%dx),%eax