loop4: detected capacity change from 0 to 4143 ntfs3: loop4: Different NTFS' sector size (4096) and media sector size (512) ntfs3: loop4: Mark volume as dirty due to NTFS errors ntfs3: loop4: Failed to load $Extend. ================================================================== BUG: KASAN: slab-out-of-bounds in unpacked_ea_size fs/ntfs3/xattr.c:26 [inline] BUG: KASAN: slab-out-of-bounds in unpacked_ea_size fs/ntfs3/xattr.c:23 [inline] BUG: KASAN: slab-out-of-bounds in find_ea fs/ntfs3/xattr.c:54 [inline] BUG: KASAN: slab-out-of-bounds in find_ea fs/ntfs3/xattr.c:44 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_get_ea+0x5ca/0x620 fs/ntfs3/xattr.c:230 Read of size 1 at addr ffff8880910085bd by task syz-executor.4/9347 CPU: 0 PID: 9347 Comm: syz-executor.4 Not tainted 6.0.0-rc3-syzkaller-00299-gd895ec7938c4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:317 [inline] print_report.cold+0x2ba/0x6e9 mm/kasan/report.c:433 kasan_report+0xb1/0x1e0 mm/kasan/report.c:495 unpacked_ea_size fs/ntfs3/xattr.c:26 [inline] unpacked_ea_size fs/ntfs3/xattr.c:23 [inline] find_ea fs/ntfs3/xattr.c:54 [inline] find_ea fs/ntfs3/xattr.c:44 [inline] ntfs_get_ea+0x5ca/0x620 fs/ntfs3/xattr.c:230 ntfs_get_wsl_perm+0x117/0x360 fs/ntfs3/xattr.c:1067 ntfs_read_mft fs/ntfs3/inode.c:355 [inline] ntfs_iget5+0xe65/0x3280 fs/ntfs3/inode.c:501 dir_search_u+0x36a/0x3f0 fs/ntfs3/dir.c:264 ntfs_lookup+0x174/0x1e0 fs/ntfs3/namei.c:83 __lookup_slow+0x24c/0x460 fs/namei.c:1685 lookup_slow fs/namei.c:1702 [inline] walk_component+0x33f/0x5a0 fs/namei.c:1993 lookup_last fs/namei.c:2450 [inline] path_lookupat+0x1ba/0x840 fs/namei.c:2474 filename_lookup+0x1ce/0x590 fs/namei.c:2503 vfs_statx+0x148/0x390 fs/stat.c:228 do_statx+0xd9/0x160 fs/stat.c:629 __do_sys_statx fs/stat.c:656 [inline] __se_sys_statx fs/stat.c:647 [inline] __x64_sys_statx+0x157/0x1b0 fs/stat.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f76a3289279 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f76a4397168 EFLAGS: 00000246 ORIG_RAX: 000000000000014c RAX: ffffffffffffffda RBX: 00007f76a339bf80 RCX: 00007f76a3289279 RDX: 0000000000000000 RSI: 0000000020003c40 RDI: 0000000000000005 RBP: 00007f76a32e32e9 R08: 0000000020003c80 R09: 0000000000000000 R10: 0000000000000080 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff0e4e445f R14: 00007f76a4397300 R15: 0000000000022000 Allocated by task 9347: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:437 [inline] ____kasan_kmalloc mm/kasan/common.c:516 [inline] ____kasan_kmalloc mm/kasan/common.c:475 [inline] __kasan_kmalloc+0xa6/0xd0 mm/kasan/common.c:525 kasan_kmalloc include/linux/kasan.h:234 [inline] __do_kmalloc mm/slab.c:3686 [inline] __kmalloc+0x1f9/0x4a0 mm/slab.c:3695 kmalloc include/linux/slab.h:605 [inline] ntfs_read_ea+0x3e4/0x850 fs/ntfs3/xattr.c:110 ntfs_get_ea+0x1ad/0x620 fs/ntfs3/xattr.c:222 ntfs_get_wsl_perm+0x117/0x360 fs/ntfs3/xattr.c:1067 ntfs_read_mft fs/ntfs3/inode.c:355 [inline] ntfs_iget5+0xe65/0x3280 fs/ntfs3/inode.c:501 dir_search_u+0x36a/0x3f0 fs/ntfs3/dir.c:264 ntfs_lookup+0x174/0x1e0 fs/ntfs3/namei.c:83 __lookup_slow+0x24c/0x460 fs/namei.c:1685 lookup_slow fs/namei.c:1702 [inline] walk_component+0x33f/0x5a0 fs/namei.c:1993 lookup_last fs/namei.c:2450 [inline] path_lookupat+0x1ba/0x840 fs/namei.c:2474 filename_lookup+0x1ce/0x590 fs/namei.c:2503 vfs_statx+0x148/0x390 fs/stat.c:228 do_statx+0xd9/0x160 fs/stat.c:629 __do_sys_statx fs/stat.c:656 [inline] __se_sys_statx fs/stat.c:647 [inline] __x64_sys_statx+0x157/0x1b0 fs/stat.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888091008580 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 61 bytes inside of 64-byte region [ffff888091008580, ffff8880910085c0) The buggy address belongs to the physical page: page:ffffea0002440200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888091008100 pfn:0x91008 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000999148 ffffea0001e848c8 ffff888011840200 raw: ffff888091008100 ffff888091008000 000000010000001b 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x3420c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_COMP|__GFP_HARDWALL|__GFP_THISNODE), pid 8136, tgid 8134 (syz-executor.2), ts 1508599229594, free_ts 1508347469466 prep_new_page mm/page_alloc.c:2532 [inline] get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4283 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5515 __alloc_pages_node include/linux/gfp.h:243 [inline] kmem_getpages mm/slab.c:1363 [inline] cache_grow_begin+0x75/0x360 mm/slab.c:2569 cache_alloc_refill+0x27f/0x380 mm/slab.c:2942 ____cache_alloc mm/slab.c:3018 [inline] ____cache_alloc mm/slab.c:3001 [inline] __do_cache_alloc mm/slab.c:3246 [inline] slab_alloc mm/slab.c:3287 [inline] kmem_cache_alloc_trace+0x362/0x460 mm/slab.c:3557 kmalloc include/linux/slab.h:600 [inline] dccp_feat_entry_new+0x1a6/0x390 net/dccp/feat.c:464 dccp_feat_push_change net/dccp/feat.c:484 [inline] __feat_register_sp+0x34f/0x5a0 net/dccp/feat.c:740 dccp_feat_init+0x763/0x820 net/dccp/feat.c:1502 dccp_init_sock+0x2fc/0x3d0 net/dccp/proto.c:205 dccp_v4_init_sock+0x1b/0xa0 net/dccp/ipv4.c:932 inet_create net/ipv4/af_inet.c:377 [inline] inet_create+0x8a5/0xea0 net/ipv4/af_inet.c:245 __sock_create+0x355/0x790 net/socket.c:1515 inet_ctl_sock_create+0x88/0x1d0 net/ipv4/af_inet.c:1648 dccp_v4_init_net+0x152/0x2d0 net/dccp/ipv4.c:1021 ops_init+0xaf/0x470 net/core/net_namespace.c:135 setup_net+0x5d1/0xc50 net/core/net_namespace.c:326 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1449 [inline] free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1499 free_unref_page_prepare mm/page_alloc.c:3380 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3476 slab_destroy mm/slab.c:1615 [inline] slabs_destroy+0x89/0xc0 mm/slab.c:1635 cache_flusharray mm/slab.c:3389 [inline] ___cache_free+0x2a8/0x3d0 mm/slab.c:3452 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x4f/0x1b0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x97/0xb0 mm/kasan/common.c:447 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:727 [inline] slab_alloc mm/slab.c:3294 [inline] __kmem_cache_alloc_lru mm/slab.c:3471 [inline] kmem_cache_alloc+0x214/0x520 mm/slab.c:3491 getname_flags.part.0+0x50/0x4f0 fs/namei.c:139 getname_flags+0x9a/0xe0 include/linux/audit.h:320 user_path_at_empty+0x2b/0x60 fs/namei.c:2875 user_path_at include/linux/namei.h:57 [inline] do_utimes_path+0xdc/0x1a0 fs/utimes.c:94 do_utimes+0x31/0xf0 fs/utimes.c:144 __do_sys_utimensat fs/utimes.c:163 [inline] __se_sys_utimensat fs/utimes.c:147 [inline] __x64_sys_utimensat+0x190/0x250 fs/utimes.c:147 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff888091008480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff888091008500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888091008580: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff888091008600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888091008680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================