loop5: detected capacity change from 0 to 4119 ntfs3: loop5: Different NTFS' sector size (2048) and media sector size (512) ntfs3: loop5: Mark volume as dirty due to NTFS errors ntfs3: loop5: 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 ffff88807a3e11bd by task syz-executor.5/19573 CPU: 1 PID: 19573 Comm: syz-executor.5 Not tainted 6.0.0-rc3-next-20220901-syzkaller #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/0x719 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+0x94/0x360 fs/ntfs3/xattr.c:971 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:0x7fcf55289409 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:00007fcf56420168 EFLAGS: 00000246 ORIG_RAX: 000000000000014c RAX: ffffffffffffffda RBX: 00007fcf5539bf80 RCX: 00007fcf55289409 RDX: 0000000000000000 RSI: 0000000020005980 RDI: 0000000000000005 RBP: 00007fcf552e4367 R08: 00000000200059c0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffee7bef8ef R14: 00007fcf56420300 R15: 0000000000022000 Allocated by task 19573: 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+0xa9/0xd0 mm/kasan/common.c:525 kasan_kmalloc include/linux/kasan.h:234 [inline] __do_kmalloc_node mm/slab_common.c:930 [inline] __kmalloc+0x54/0xc0 mm/slab_common.c:943 kmalloc include/linux/slab.h:564 [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+0x94/0x360 fs/ntfs3/xattr.c:971 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 Last potentially related work creation: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 __kasan_record_aux_stack+0xbe/0xd0 mm/kasan/generic.c:348 kvfree_call_rcu+0x74/0x8f0 kernel/rcu/tree.c:3341 fib_notifier_ops_unregister+0xf9/0x140 net/core/fib_notifier.c:167 ip6mr_notifier_exit net/ipv6/ip6mr.c:1302 [inline] ip6mr_net_exit+0x97/0xf0 net/ipv6/ip6mr.c:1350 ops_exit_list+0xb0/0x170 net/core/net_namespace.c:163 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:595 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Second to last potentially related work creation: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 __kasan_record_aux_stack+0xbe/0xd0 mm/kasan/generic.c:348 kvfree_call_rcu+0x74/0x8f0 kernel/rcu/tree.c:3341 sctp_bind_addr_clean+0x135/0x1f0 net/sctp/bind_addr.c:125 sctp_association_free+0x28c/0x7d0 net/sctp/associola.c:358 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1328 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0x385c/0x4ec0 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x386/0x6c0 net/sctp/associola.c:1053 sctp_inq_push+0x1d2/0x270 net/sctp/inqueue.c:80 sctp_backlog_rcv+0x196/0x5a0 net/sctp/input.c:346 sk_backlog_rcv include/net/sock.h:1114 [inline] __release_sock+0x12f/0x3a0 net/core/sock.c:2895 release_sock+0x54/0x1b0 net/core/sock.c:3451 sctp_close+0x442/0x940 net/sctp/socket.c:1534 inet_release+0x12e/0x270 net/ipv4/af_inet.c:428 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:482 __sock_release+0xcd/0x280 net/socket.c:650 sock_close+0x18/0x20 net/socket.c:1365 __fput+0x27c/0xa90 fs/file_table.c:320 task_work_run+0x16b/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xc3f/0x2b60 kernel/exit.c:818 do_group_exit+0xd0/0x2a0 kernel/exit.c:948 get_signal+0x238c/0x2610 kernel/signal.c:2858 arch_do_signal_or_restart+0x82/0x2300 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88807a3e1180 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 61 bytes inside of 64-byte region [ffff88807a3e1180, ffff88807a3e11c0) The buggy address belongs to the physical page: page:ffffea0001e8f840 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7a3e1 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001ea9a40 dead000000000005 ffff888011841640 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 0x112c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 3644, tgid 3644 (syz-executor.4), ts 271697173167, free_ts 271695666440 prep_new_page mm/page_alloc.c:2534 [inline] get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4284 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5542 alloc_pages+0x1a6/0x270 mm/mempolicy.c:2280 alloc_slab_page mm/slub.c:1721 [inline] allocate_slab+0x228/0x370 mm/slub.c:1866 new_slab mm/slub.c:1919 [inline] ___slab_alloc+0xad0/0x1440 mm/slub.c:3100 __slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3198 slab_alloc_node mm/slub.c:3283 [inline] __kmem_cache_alloc_node+0x18a/0x3d0 mm/slub.c:3356 __do_kmalloc_node mm/slab_common.c:929 [inline] __kmalloc+0x44/0xc0 mm/slab_common.c:943 kmalloc include/linux/slab.h:564 [inline] kzalloc include/linux/slab.h:695 [inline] tomoyo_encode2.part.0+0xe9/0x3a0 security/tomoyo/realpath.c:45 tomoyo_encode2 security/tomoyo/realpath.c:31 [inline] tomoyo_encode+0x28/0x50 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x181/0x600 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x21b/0x400 security/tomoyo/file.c:822 security_inode_getattr+0xcf/0x140 security/security.c:1345 vfs_getattr fs/stat.c:157 [inline] vfs_fstat+0x43/0xb0 fs/stat.c:182 __do_sys_newfstat+0x81/0x100 fs/stat.c:435 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1451 [inline] free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1501 free_unref_page_prepare mm/page_alloc.c:3382 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3478 tlb_batch_list_free mm/mmu_gather.c:74 [inline] tlb_finish_mmu+0x1a3/0x7e0 mm/mmu_gather.c:356 exit_mmap+0x1fe/0x720 mm/mmap.c:3102 __mmput+0x128/0x4c0 kernel/fork.c:1187 mmput+0x5c/0x70 kernel/fork.c:1209 exit_mm kernel/exit.c:515 [inline] do_exit+0xb4c/0x2b60 kernel/exit.c:805 do_group_exit+0xd0/0x2a0 kernel/exit.c:948 __do_sys_exit_group kernel/exit.c:959 [inline] __se_sys_exit_group kernel/exit.c:957 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:957 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: ffff88807a3e1080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88807a3e1100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88807a3e1180: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff88807a3e1200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88807a3e1280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================