loop7: detected capacity change from 0 to 4096 ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_read_run_nb+0x4e2/0xdb0 fs/ntfs3/fsntfs.c:1232 Write of size 1024 at addr ffff888039d96800 by task syz.7.626/10260 CPU: 0 UID: 0 PID: 10260 Comm: syz.7.626 Tainted: G W 6.16.0-syzkaller-08685-g260f6f4fda93 #0 PREEMPT_{RT,(full)} Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:189 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 ntfs_read_run_nb+0x4e2/0xdb0 fs/ntfs3/fsntfs.c:1232 ntfs_read_bh+0x40/0x7e0 fs/ntfs3/fsntfs.c:1293 mi_read+0x194/0x5a0 fs/ntfs3/record.c:133 ntfs_read_mft fs/ntfs3/inode.c:70 [inline] ntfs_iget5+0x45b/0x37c0 fs/ntfs3/inode.c:540 ntfs_fill_super+0x3927/0x40b0 fs/ntfs3/super.c:1519 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1692 vfs_get_tree+0x8f/0x2b0 fs/super.c:1815 do_new_mount+0x2a2/0x9e0 fs/namespace.c:3805 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4321 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdf55bc014a 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:00007fdf53a25e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fdf53a25ef0 RCX: 00007fdf55bc014a RDX: 0000200000000080 RSI: 000020000001f740 RDI: 00007fdf53a25eb0 RBP: 0000200000000080 R08: 00007fdf53a25ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000020000001f740 R13: 00007fdf53a25eb0 R14: 000000000001f771 R15: 0000200000000100 Allocated by task 10260: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4364 [inline] __kmalloc_noprof+0x1ef/0x430 mm/slub.c:4376 kmalloc_noprof include/linux/slab.h:909 [inline] mi_init+0x76/0xe0 fs/ntfs3/record.c:105 ntfs_read_mft fs/ntfs3/inode.c:54 [inline] ntfs_iget5+0x356/0x37c0 fs/ntfs3/inode.c:540 ntfs_fill_super+0x3927/0x40b0 fs/ntfs3/super.c:1519 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1692 vfs_get_tree+0x8f/0x2b0 fs/super.c:1815 do_new_mount+0x2a2/0x9e0 fs/namespace.c:3805 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4321 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888039d96800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of allocated 1023-byte region [ffff888039d96800, ffff888039d96bff) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x39d90 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff888019841dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 0080000000000040 ffff888019841dc0 0000000000000000 dead000000000001 head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 0080000000000003 ffffea0000e76401 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 13, tgid 13 (kworker/u8:1), ts 124032451391, free_ts 123946177344 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x2119/0x21b0 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2486 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2654 new_slab mm/slub.c:2708 [inline] ___slab_alloc+0x8d1/0xdd0 mm/slub.c:3890 __slab_alloc mm/slub.c:3980 [inline] __slab_alloc_node mm/slub.c:4055 [inline] slab_alloc_node mm/slub.c:4216 [inline] __do_kmalloc_node mm/slub.c:4363 [inline] __kmalloc_noprof+0x145/0x430 mm/slub.c:4376 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] ieee802_11_parse_elems_full+0x152/0x2aa0 net/mac80211/parse.c:1011 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2462 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2469 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1569 [inline] ieee80211_ibss_rx_queued_mgmt+0x462/0x2ae0 net/mac80211/ibss.c:1600 ieee80211_iface_process_skb net/mac80211/iface.c:1699 [inline] ieee80211_iface_work+0x85f/0x12d0 net/mac80211/iface.c:1753 cfg80211_wiphy_work+0x2dc/0x460 net/wireless/core.c:435 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 6016 tgid 6016 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] __free_frozen_pages+0xbe5/0xdf0 mm/page_alloc.c:2706 discard_slab mm/slub.c:2752 [inline] __put_partials+0x159/0x1a0 mm/slub.c:3217 __slab_free+0x2b3/0x390 mm/slub.c:4549 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4179 [inline] slab_alloc_node mm/slub.c:4228 [inline] __do_kmalloc_node mm/slub.c:4363 [inline] __kmalloc_noprof+0x1a5/0x430 mm/slub.c:4376 kmalloc_noprof include/linux/slab.h:909 [inline] tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x1e8/0x5a0 security/tomoyo/file.c:723 security_file_ioctl+0xcb/0x2d0 security/security.c:2943 __do_sys_ioctl fs/ioctl.c:592 [inline] __se_sys_ioctl+0x47/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888039d96a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888039d96b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888039d96b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 ^ ffff888039d96c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888039d96c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================