loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size and media sector size ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:183 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x32a/0x3c0 fs/ntfs3/xattr.c:803 Read of size 1 at addr ffff88802954d2bd by task syz-executor.0/5802 CPU: 0 PID: 5802 Comm: syz-executor.0 Not tainted 5.14.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:105 print_address_description.constprop.0.cold+0x6c/0x2d6 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:436 ntfs_list_ea fs/ntfs3/xattr.c:183 [inline] ntfs_listxattr+0x32a/0x3c0 fs/ntfs3/xattr.c:803 listxattr+0xa1/0xf0 fs/xattr.c:747 path_listxattr+0x93/0xf0 fs/xattr.c:771 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7ff9cbc4c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007ff9cafbe168 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3 RAX: ffffffffffffffda RBX: 00007ff9cbd6bf80 RCX: 00007ff9cbc4c0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 00007ff9cbca7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1fe2a93f R14: 00007ff9cafbe300 R15: 0000000000022000 Allocated by task 5802: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] ____kasan_kmalloc mm/kasan/common.c:472 [inline] __kasan_kmalloc+0x98/0xc0 mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __do_kmalloc mm/slab.c:3702 [inline] __kmalloc+0x214/0x4d0 mm/slab.c:3711 kmalloc include/linux/slab.h:596 [inline] ntfs_read_ea+0x39c/0x860 fs/ntfs3/xattr.c:113 ntfs_list_ea fs/ntfs3/xattr.c:169 [inline] ntfs_listxattr+0x151/0x3c0 fs/ntfs3/xattr.c:803 listxattr+0xa1/0xf0 fs/xattr.c:747 path_listxattr+0x93/0xf0 fs/xattr.c:771 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae The buggy address belongs to the object at ffff88802954d280 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 61 bytes inside of 64-byte region [ffff88802954d280, ffff88802954d2c0) The buggy address belongs to the page: page:ffffea0000a55340 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2954d flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000a99a48 ffffea0000726708 ffff888010840200 raw: 0000000000000000 ffff88802954d000 0000000100000020 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 0x2420c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 8, ts 11245018021, free_ts 0 prep_new_page mm/page_alloc.c:2436 [inline] get_page_from_freelist+0xa72/0x2f80 mm/page_alloc.c:4169 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5391 __alloc_pages_node include/linux/gfp.h:570 [inline] kmem_getpages mm/slab.c:1377 [inline] cache_grow_begin+0x75/0x460 mm/slab.c:2593 cache_alloc_refill+0x27f/0x380 mm/slab.c:2965 ____cache_alloc mm/slab.c:3048 [inline] ____cache_alloc mm/slab.c:3031 [inline] slab_alloc_node mm/slab.c:3249 [inline] kmem_cache_alloc_node_trace+0x4ca/0x5d0 mm/slab.c:3617 __do_kmalloc_node mm/slab.c:3639 [inline] __kmalloc_node+0x38/0x60 mm/slab.c:3647 kmalloc_node include/linux/slab.h:614 [inline] __vmalloc_area_node mm/vmalloc.c:2849 [inline] __vmalloc_node_range+0x531/0x7e0 mm/vmalloc.c:2966 alloc_thread_stack_node kernel/fork.c:245 [inline] dup_task_struct kernel/fork.c:875 [inline] copy_process+0x6fc/0x6960 kernel/fork.c:1952 kernel_clone+0xb8/0x7f0 kernel/fork.c:2509 kernel_thread+0xa3/0xe0 kernel/fork.c:2561 call_usermodehelper_exec_work kernel/umh.c:174 [inline] call_usermodehelper_exec_work+0xa4/0x140 kernel/umh.c:160 process_one_work+0x84c/0x13d0 kernel/workqueue.c:2276 worker_thread+0x598/0x1040 kernel/workqueue.c:2422 kthread+0x38b/0x460 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 page_owner free stack trace missing Memory state around the buggy address: ffff88802954d180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802954d200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88802954d280: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff88802954d300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802954d380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================