ntfs: (device loop4): load_and_init_upcase(): Failed to load $UpCase from the volume. Using default. ntfs: volume version 3.1. ================================================================== BUG: KASAN: slab-out-of-bounds in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: slab-out-of-bounds in test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] BUG: KASAN: slab-out-of-bounds in NInoAttr fs/ntfs/inode.h:200 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_test_inode+0x79/0x2d0 fs/ntfs/inode.c:55 Read of size 8 at addr ffff888061357ec0 by task syz.4.11081/29444 CPU: 0 PID: 29444 Comm: syz.4.11081 Not tainted 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] NInoAttr fs/ntfs/inode.h:200 [inline] ntfs_test_inode+0x79/0x2d0 fs/ntfs/inode.c:55 find_inode+0x180/0x3c0 fs/inode.c:898 ilookup5_nowait fs/inode.c:1450 [inline] ilookup5+0x9f/0x1f0 fs/inode.c:1479 iget5_locked+0x30/0x250 fs/inode.c:1260 ntfs_iget+0xab/0x180 fs/ntfs/inode.c:168 load_and_check_logfile+0x3f/0xd0 fs/ntfs/super.c:1208 load_system_files+0x3a29/0x5560 fs/ntfs/super.c:1941 ntfs_fill_super+0x19e0/0x2c90 fs/ntfs/super.c:2894 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f9e2eb2310a 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:00007f9e2c988e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f9e2c988ef0 RCX: 00007f9e2eb2310a RDX: 0000200000000040 RSI: 0000200000000000 RDI: 00007f9e2c988eb0 RBP: 0000200000000040 R08: 00007f9e2c988ef0 R09: 0000000000000400 R10: 0000000000000400 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f9e2c988eb0 R14: 000000000001eec5 R15: 0000200000000f40 Allocated by task 4179: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 sock_alloc_inode+0x17/0xb0 net/socket.c:303 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x210 fs/inode.c:1001 sock_alloc net/socket.c:626 [inline] __sock_create+0x129/0x900 net/socket.c:1450 sock_create net/socket.c:1542 [inline] __sys_socket+0xe2/0x170 net/socket.c:1584 __do_sys_socket net/socket.c:1593 [inline] __se_sys_socket net/socket.c:1591 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1591 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x179/0x920 kernel/rcu/tree.c:3087 destroy_inode fs/inode.c:316 [inline] evict+0x7da/0x870 fs/inode.c:662 __dentry_kill+0x431/0x650 fs/dcache.c:586 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xd8/0x1a0 fs/dcache.c:893 __fput+0x5ee/0x930 fs/file_table.c:319 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Second to last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x179/0x920 kernel/rcu/tree.c:3087 destroy_inode fs/inode.c:316 [inline] evict+0x7da/0x870 fs/inode.c:662 __dentry_kill+0x431/0x650 fs/dcache.c:586 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xd8/0x1a0 fs/dcache.c:893 __fput+0x5ee/0x930 fs/file_table.c:319 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888061357800 which belongs to the cache sock_inode_cache of size 1408 The buggy address is located 320 bytes to the right of 1408-byte region [ffff888061357800, ffff888061357d80) The buggy address belongs to the page: page:ffffea000184d400 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888061356600 pfn:0x61350 head:ffffea000184d400 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888079e0b001 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea00017ed608 ffffea0001d01e08 ffff88801b5e5500 raw: ffff888061356600 0000000000150005 00000001ffffffff ffff888079e0b001 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 4180, ts 84583336791, free_ts 25321780744 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5466 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3233 sock_alloc_inode+0x17/0xb0 net/socket.c:303 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x210 fs/inode.c:1001 sock_alloc net/socket.c:626 [inline] __sock_create+0x129/0x900 net/socket.c:1450 udp_sock_create4+0xbb/0x4b0 net/ipv4/udp_tunnel_core.c:20 udp_sock_create include/net/udp_tunnel.h:59 [inline] wg_socket_init+0x46c/0x9b0 drivers/net/wireguard/socket.c:387 wg_open+0x24b/0x420 drivers/net/wireguard/device.c:50 __dev_open+0x2b0/0x420 net/core/dev.c:1537 __dev_change_flags+0x20a/0x6a0 net/core/dev.c:8853 dev_change_flags+0x82/0x1a0 net/core/dev.c:8924 do_setlink+0xc01/0x3980 net/core/rtnetlink.c:2779 __rtnl_newlink net/core/rtnetlink.c:3450 [inline] rtnl_newlink+0x1419/0x17d0 net/core/rtnetlink.c:3572 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 free_contig_range+0x96/0xf0 mm/page_alloc.c:9385 destroy_args+0xef/0x8b0 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x318/0x370 mm/debug_vm_pgtable.c:1331 do_one_initcall+0x1ee/0x680 init/main.c:1302 do_initcall_level+0x137/0x1f0 init/main.c:1375 do_initcalls+0x4b/0x90 init/main.c:1391 kernel_init_freeable+0x3ce/0x560 init/main.c:1615 kernel_init+0x19/0x1b0 init/main.c:1506 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff888061357d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888061357e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888061357e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888061357f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888061357f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================