loop2: detected capacity change from 0 to 4096 ntfs3: loop2: Different NTFS' sector size (1024) and media sector size (512) ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:182 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x402/0x460 fs/ntfs3/xattr.c:710 Read of size 1 at addr ffff8880274b3a3d by task syz-executor.2/12100 CPU: 0 PID: 12100 Comm: syz-executor.2 Not tainted 6.1.0-rc8-syzkaller-00014-g8ed710da2873 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15e/0x461 mm/kasan/report.c:395 kasan_report+0xbf/0x1f0 mm/kasan/report.c:495 ntfs_list_ea fs/ntfs3/xattr.c:182 [inline] ntfs_listxattr+0x402/0x460 fs/ntfs3/xattr.c:710 vfs_listxattr+0x109/0x190 fs/xattr.c:457 listxattr+0x70/0x180 fs/xattr.c:804 path_listxattr+0xae/0x140 fs/xattr.c:828 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd16e68c0d9 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:00007fd16f317168 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3 RAX: ffffffffffffffda RBX: 00007fd16e7abf80 RCX: 00007fd16e68c0d9 RDX: 00000000000000fc RSI: 0000000020000100 RDI: 00000000200000c0 RBP: 00007fd16e6e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffe1d21e3f R14: 00007fd16f317300 R15: 0000000000022000 Allocated by task 12100: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] ____kasan_kmalloc mm/kasan/common.c:330 [inline] __kasan_kmalloc+0xa3/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:955 [inline] __kmalloc+0x5a/0xd0 mm/slab_common.c:968 kmalloc include/linux/slab.h:558 [inline] ntfs_read_ea+0x3e4/0x850 fs/ntfs3/xattr.c:110 ntfs_list_ea fs/ntfs3/xattr.c:168 [inline] ntfs_listxattr+0x16b/0x460 fs/ntfs3/xattr.c:710 vfs_listxattr+0x109/0x190 fs/xattr.c:457 listxattr+0x70/0x180 fs/xattr.c:804 path_listxattr+0xae/0x140 fs/xattr.c:828 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff8880274b3a00 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 61 bytes inside of 64-byte region [ffff8880274b3a00, ffff8880274b3a40) The buggy address belongs to the physical page: page:ffffea00009d2cc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x274b3 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001de9008 ffffea0000a11448 ffff888012040200 raw: 0000000000000000 ffff8880274b3000 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 101, tgid 101 (kworker/u4:4), ts 10866384669, free_ts 0 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x10b5/0x2d50 mm/page_alloc.c:4291 __alloc_pages+0x1cb/0x5b0 mm/page_alloc.c:5558 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1363 [inline] cache_grow_begin+0x94/0x390 mm/slab.c:2570 cache_alloc_refill+0x27f/0x380 mm/slab.c:2943 ____cache_alloc mm/slab.c:3019 [inline] ____cache_alloc mm/slab.c:3002 [inline] __do_cache_alloc mm/slab.c:3202 [inline] slab_alloc_node mm/slab.c:3250 [inline] __kmem_cache_alloc_node+0x44a/0x510 mm/slab.c:3549 __do_kmalloc_node mm/slab_common.c:954 [inline] __kmalloc_node+0x4d/0xd0 mm/slab_common.c:962 kmalloc_node include/linux/slab.h:579 [inline] __vmalloc_area_node mm/vmalloc.c:3029 [inline] __vmalloc_node_range+0xa11/0x13c0 mm/vmalloc.c:3213 alloc_thread_stack_node kernel/fork.c:311 [inline] dup_task_struct kernel/fork.c:974 [inline] copy_process+0x1566/0x7190 kernel/fork.c:2084 kernel_clone+0xeb/0x980 kernel/fork.c:2671 user_mode_thread+0xb1/0xf0 kernel/fork.c:2747 call_usermodehelper_exec_work kernel/umh.c:175 [inline] call_usermodehelper_exec_work+0xd0/0x180 kernel/umh.c:161 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 page_owner free stack trace missing Memory state around the buggy address: ffff8880274b3900: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff8880274b3980: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff8880274b3a00: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff8880274b3a80: 00 00 00 00 00 00 00 03 fc fc fc fc fc fc fc fc ffff8880274b3b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================