ntfs3: loop5: Failed to initialize $Extend/$Reparse. ntfs3: loop5: Mark volume as dirty due to NTFS errors ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:227 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x3a6/0x5b0 fs/ntfs3/xattr.c:728 Read of size 48 at addr ffff88802362ad30 by task syz-executor.5/10622 CPU: 0 PID: 10622 Comm: syz-executor.5 Not tainted 6.5.0-rc1-syzkaller-00259-g831fe284d827 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 ntfs_list_ea fs/ntfs3/xattr.c:227 [inline] ntfs_listxattr+0x3a6/0x5b0 fs/ntfs3/xattr.c:728 vfs_listxattr fs/xattr.c:494 [inline] listxattr+0x103/0x280 fs/xattr.c:841 path_listxattr fs/xattr.c:865 [inline] __do_sys_llistxattr fs/xattr.c:883 [inline] __se_sys_llistxattr fs/xattr.c:880 [inline] __x64_sys_llistxattr+0x173/0x230 fs/xattr.c:880 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fdb6ea7cb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdb6f80c0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3 RAX: ffffffffffffffda RBX: 00007fdb6eb9bf80 RCX: 00007fdb6ea7cb29 RDX: 0000000000000090 RSI: 0000000020000180 RDI: 0000000020000100 RBP: 00007fdb6eac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fdb6eb9bf80 R15: 00007fff467a4f68 Allocated by task 10622: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:985 [inline] __kmalloc+0xb9/0x230 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] ntfs_read_ea+0x48e/0xa10 fs/ntfs3/xattr.c:118 ntfs_list_ea fs/ntfs3/xattr.c:204 [inline] ntfs_listxattr+0x17b/0x5b0 fs/ntfs3/xattr.c:728 vfs_listxattr fs/xattr.c:494 [inline] listxattr+0x103/0x280 fs/xattr.c:841 path_listxattr fs/xattr.c:865 [inline] __do_sys_llistxattr fs/xattr.c:883 [inline] __se_sys_llistxattr fs/xattr.c:880 [inline] __x64_sys_llistxattr+0x173/0x230 fs/xattr.c:880 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88802362ad00 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 48 bytes inside of allocated 60-byte region [ffff88802362ad00, ffff88802362ad3c) The buggy address belongs to the physical page: page:ffffea00008d8a80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2362a flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff888012841640 ffffea00007c8cc0 dead000000000002 raw: 0000000000000000 0000000080200020 00000001ffffffff 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 0x12c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY), pid 5140, tgid 5140 (modprobe), ts 201064305992, free_ts 201026642354 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x31e8/0x3370 mm/page_alloc.c:3221 __alloc_pages+0x255/0x670 mm/page_alloc.c:4477 alloc_slab_page+0x6a/0x160 mm/slub.c:1862 allocate_slab mm/slub.c:2009 [inline] new_slab+0x84/0x2f0 mm/slub.c:2062 ___slab_alloc+0xade/0x1100 mm/slub.c:3215 __slab_alloc mm/slub.c:3314 [inline] __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] __kmem_cache_alloc_node+0x1af/0x270 mm/slub.c:3509 __do_kmalloc_node mm/slab_common.c:984 [inline] __kmalloc+0xa8/0x230 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] kzalloc include/linux/slab.h:703 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x26f/0x530 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x598/0x5e0 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x254/0x4e0 security/tomoyo/file.c:771 security_file_open+0x63/0xa0 security/security.c:2797 do_dentry_open+0x325/0x1470 fs/open.c:901 do_open fs/namei.c:3636 [inline] path_openat+0x27bb/0x3180 fs/namei.c:3793 do_filp_open+0x234/0x490 fs/namei.c:3820 do_sys_openat2+0x13e/0x1d0 fs/open.c:1407 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2348 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2443 discard_slab mm/slub.c:2108 [inline] __unfreeze_partials+0x1dc/0x220 mm/slub.c:2647 put_cpu_partial+0x116/0x180 mm/slub.c:2723 __slab_free+0x2b6/0x390 mm/slub.c:3671 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x6c/0x3b0 mm/slab.h:762 slab_alloc_node mm/slub.c:3470 [inline] __kmem_cache_alloc_node+0x141/0x270 mm/slub.c:3509 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1076 kmalloc include/linux/slab.h:582 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:643 [inline] netdevice_event+0x37d/0x950 drivers/infiniband/core/roce_gid_mgmt.c:802 notifier_call_chain+0x18c/0x3a0 kernel/notifier.c:93 call_netdevice_notifiers_info net/core/dev.c:1962 [inline] call_netdevice_notifiers_extack net/core/dev.c:2000 [inline] call_netdevice_notifiers net/core/dev.c:2014 [inline] dev_set_mac_address+0x3c8/0x520 net/core/dev.c:8793 dev_set_mac_address_user+0x31/0x50 net/core/dev.c:8807 do_setlink+0x8ef/0x4340 net/core/rtnetlink.c:2815 Memory state around the buggy address: ffff88802362ac00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802362ac80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88802362ad00: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff88802362ad80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88802362ae00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================