ntfs: (device loop4): read_ntfs_boot_sector(): Hot-fix: Recovering invalid primary boot sector from backup copy. ntfs: (device loop4): ntfs_mapping_pairs_decompress(): Corrupt attribute. ntfs: volume version 3.1. ================================================================== BUG: KASAN: slab-out-of-bounds in instrument_atomic_read include/linux/instrumented.h:72 [inline] BUG: KASAN: slab-out-of-bounds in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [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 ffff88806fecfec0 by task syz.4.2047/9210 CPU: 0 PID: 9210 Comm: syz.4.2047 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:72 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] NInoAttr fs/ntfs/inode.h:200 [inline] ntfs_test_inode+0x79/0x2d0 fs/ntfs/inode.c:55 find_inode+0x19a/0x3f0 fs/inode.c:960 ilookup5_nowait fs/inode.c:1515 [inline] ilookup5+0xa7/0x1e0 fs/inode.c:1544 iget5_locked+0x30/0x260 fs/inode.c:1325 ntfs_iget+0xb9/0x1a0 fs/ntfs/inode.c:168 load_and_check_logfile+0x3f/0xd0 fs/ntfs/super.c:1208 load_system_files+0x2f17/0x4540 fs/ntfs/super.c:1941 ntfs_fill_super+0x182a/0x2a60 fs/ntfs/super.c:2892 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fda28b9d8ca Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fda29b3be58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fda29b3bee0 RCX: 00007fda28b9d8ca RDX: 0000200000000100 RSI: 000020000001ecc0 RDI: 00007fda29b3bea0 RBP: 0000200000000100 R08: 00007fda29b3bee0 R09: 0000000000008000 R10: 0000000000008000 R11: 0000000000000246 R12: 000020000001ecc0 R13: 00007fda29b3bea0 R14: 000000000001ec6b R15: 0000200000000140 Allocated by task 5942: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x11a/0x2e0 mm/slub.c:3390 xas_alloc lib/xarray.c:377 [inline] xas_create+0x10a3/0x16f0 lib/xarray.c:679 xas_store+0xa2/0x19e0 lib/xarray.c:789 __filemap_add_folio+0x72b/0x1900 mm/filemap.c:908 filemap_add_folio+0xaa/0x3c0 mm/filemap.c:962 page_cache_ra_unbounded+0x19f/0x770 mm/readahead.c:251 do_async_mmap_readahead mm/filemap.c:3191 [inline] filemap_fault+0x6a1/0x1690 mm/filemap.c:3245 __do_fault+0x13b/0x4e0 mm/memory.c:4278 do_read_fault mm/memory.c:4629 [inline] do_fault mm/memory.c:4758 [inline] handle_pte_fault mm/memory.c:5029 [inline] __handle_mm_fault mm/memory.c:5171 [inline] handle_mm_fault+0x2407/0x3ee0 mm/memory.c:5292 faultin_page mm/gup.c:1026 [inline] __get_user_pages+0x40d/0xec0 mm/gup.c:1250 __get_user_pages_locked mm/gup.c:1454 [inline] get_dump_page+0x190/0x680 mm/gup.c:1952 dump_user_range+0x123/0x850 fs/coredump.c:975 elf_core_dump+0x30a6/0x35d0 fs/binfmt_elf.c:2354 do_coredump+0x165b/0x22f0 fs/coredump.c:824 get_signal+0x10aa/0x1350 kernel/signal.c:2857 arch_do_signal_or_restart+0xc4/0x1350 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14f/0x990 kernel/rcu/tree.c:2849 xa_node_free lib/xarray.c:260 [inline] xas_delete_node lib/xarray.c:497 [inline] update_node lib/xarray.c:761 [inline] xas_store+0xe35/0x19e0 lib/xarray.c:846 page_cache_delete mm/filemap.c:140 [inline] __filemap_remove_folio+0x4a0/0x8a0 mm/filemap.c:223 filemap_remove_folio+0xed/0x2c0 mm/filemap.c:255 truncate_inode_folio+0x59/0x70 mm/truncate.c:195 shmem_undo_range+0x533/0x20c0 mm/shmem.c:942 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x25b/0xa80 mm/shmem.c:1171 evict+0x4c9/0x8d0 fs/inode.c:705 __dentry_kill+0x431/0x650 fs/dcache.c:611 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xfa/0x1d0 fs/dcache.c:918 __fput+0x5e0/0x920 fs/file_table.c:328 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14f/0x990 kernel/rcu/tree.c:2849 xa_node_free lib/xarray.c:260 [inline] xas_delete_node lib/xarray.c:497 [inline] update_node lib/xarray.c:761 [inline] xas_store+0xe35/0x19e0 lib/xarray.c:846 page_cache_delete mm/filemap.c:140 [inline] __filemap_remove_folio+0x4a0/0x8a0 mm/filemap.c:223 filemap_remove_folio+0xed/0x2c0 mm/filemap.c:255 truncate_inode_folio+0x59/0x70 mm/truncate.c:195 shmem_undo_range+0x533/0x20c0 mm/shmem.c:942 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x25b/0xa80 mm/shmem.c:1171 evict+0x4c9/0x8d0 fs/inode.c:705 __dentry_kill+0x431/0x650 fs/dcache.c:611 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xfa/0x1d0 fs/dcache.c:918 __fput+0x5e0/0x920 fs/file_table.c:328 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88806fecfc80 which belongs to the cache radix_tree_node of size 576 The buggy address is located 0 bytes to the right of 576-byte region [ffff88806fecfc80, ffff88806fecfec0) The buggy address belongs to the physical page: page:ffffea0001bfb300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6fecc head:ffffea0001bfb300 order:2 compound_mapcount:0 compound_pincount:0 memcg:ffff88801d3b9101 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001bfdd00 dead000000000002 ffff88801744fdc0 raw: 0000000000000000 0000000000170017 00000001ffffffff ffff88801d3b9101 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Reclaimable, gfp_mask 0x152a30(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 4269, tgid 4269 (syz-executor), ts 85594804860, free_ts 84011306451 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559 prep_new_page mm/page_alloc.c:2566 [inline] get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5643 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x1b7/0x2f0 mm/slub.c:3383 radix_tree_node_alloc+0x197/0x3a0 lib/radix-tree.c:251 idr_get_free+0x2af/0xa60 lib/radix-tree.c:1504 idr_alloc_u32 lib/idr.c:48 [inline] idr_alloc_cyclic+0x277/0x5c0 lib/idr.c:127 alloc_pid+0x332/0xc10 kernel/pid.c:233 copy_process+0x1bdb/0x4030 kernel/fork.c:2372 kernel_clone+0x24b/0x900 kernel/fork.c:2762 __do_sys_clone kernel/fork.c:2903 [inline] __se_sys_clone kernel/fork.c:2887 [inline] __x64_sys_clone+0x1a7/0x220 kernel/fork.c:2887 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1486 [inline] free_pcp_prepare mm/page_alloc.c:1536 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3413 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3508 free_slab mm/slub.c:2036 [inline] discard_slab mm/slub.c:2042 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2591 put_cpu_partial+0x17c/0x250 mm/slub.c:2667 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 getname_flags+0xb7/0x500 fs/namei.c:139 do_sys_openat2+0xdd/0x4b0 fs/open.c:1314 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88806fecfd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806fecfe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806fecfe80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88806fecff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806fecff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================