loop4: detected capacity change from 0 to 4096 ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x14e/0x37d0 fs/ntfs3/inode.c:526 Read of size 8 at addr ffff888070707f60 by task syz.4.2076/9231 CPU: 0 PID: 9231 Comm: syz.4.2076 Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x220 mm/kasan/report.c:427 kasan_report+0x10b/0x140 mm/kasan/report.c:531 ntfs_iget5+0x14e/0x37d0 fs/ntfs3/inode.c:526 ntfs_fill_super+0x2226/0x3f30 fs/ntfs3/super.c:1033 get_tree_bdev+0x3f1/0x610 fs/super.c:1366 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3054 do_mount fs/namespace.c:3397 [inline] __do_sys_mount fs/namespace.c:3605 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3582 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f71a37900ca 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:00007f71a4555e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f71a4555ef0 RCX: 00007f71a37900ca RDX: 0000200000000000 RSI: 0000200000000040 RDI: 00007f71a4555eb0 RBP: 0000200000000000 R08: 00007f71a4555ef0 R09: 0000000000004013 R10: 0000000000004013 R11: 0000000000000246 R12: 0000200000000040 R13: 00007f71a4555eb0 R14: 000000000001f8ed R15: 00002000000000c0 Allocated by task 5207: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328 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:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc_lru+0x11a/0x2e0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3245 [inline] alloc_inode fs/inode.c:263 [inline] iget_locked+0x206/0x830 fs/inode.c:1373 kernfs_get_inode+0x4b/0x6d0 fs/kernfs/inode.c:254 kernfs_iop_lookup+0x25f/0x380 fs/kernfs/dir.c:1189 __lookup_slow+0x27d/0x3a0 fs/namei.c:1690 lookup_slow+0x53/0x70 fs/namei.c:1707 walk_component+0x2be/0x3f0 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x169/0x440 fs/namei.c:2479 filename_lookup+0x1f0/0x500 fs/namei.c:2508 user_path_at_empty+0x3e/0x60 fs/namei.c:2905 do_readlinkat+0xd4/0x480 fs/stat.c:468 __do_sys_readlink fs/stat.c:501 [inline] __se_sys_readlink fs/stat.c:498 [inline] __x64_sys_readlink+0x7b/0x90 fs/stat.c:498 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880707077b0 which belongs to the cache inode_cache of size 1168 The buggy address is located 800 bytes to the right of 1168-byte region [ffff8880707077b0, ffff888070707c40) The buggy address belongs to the physical page: page:ffffea0001c1c100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x70704 head:ffffea0001c1c100 order:2 compound_mapcount:0 compound_pincount:0 memcg:ffff88801eaf1d01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff8881400098c0 raw: 0000000000000000 00000000000c000c 00000001ffffffff ffff88801eaf1d01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 5207, tgid 5207 (udevadm), ts 107080988052, free_ts 100208184287 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc_lru+0x1ae/0x2e0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3245 [inline] alloc_inode fs/inode.c:263 [inline] iget_locked+0x206/0x830 fs/inode.c:1373 kernfs_get_inode+0x4b/0x6d0 fs/kernfs/inode.c:254 kernfs_iop_lookup+0x25f/0x380 fs/kernfs/dir.c:1189 __lookup_slow+0x27d/0x3a0 fs/namei.c:1690 lookup_slow+0x53/0x70 fs/namei.c:1707 walk_component+0x2be/0x3f0 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x169/0x440 fs/namei.c:2479 filename_lookup+0x1f0/0x500 fs/namei.c:2508 user_path_at_empty+0x3e/0x60 fs/namei.c:2905 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 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:305 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:3398 [inline] kmem_cache_alloc_node+0x14d/0x320 mm/slub.c:3443 __alloc_skb+0xfc/0x7e0 net/core/skbuff.c:505 alloc_skb include/linux/skbuff.h:1271 [inline] alloc_skb_with_frags+0xa7/0x710 net/core/skbuff.c:6162 sock_alloc_send_pskb+0x853/0x980 net/core/sock.c:2750 unix_dgram_sendmsg+0x592/0x16c0 net/unix/af_unix.c:1937 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x44f/0x5c0 net/socket.c:2153 __do_sys_sendto net/socket.c:2165 [inline] __se_sys_sendto net/socket.c:2161 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2161 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff888070707e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888070707e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888070707f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888070707f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888070708000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================