ntfs3: loop1: Mark volume as dirty due to NTFS errors ntfs3: loop1: Failed to load $Extend. ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:230 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x3b2/0x5b0 fs/ntfs3/xattr.c:749 Read of size 48 at addr ffff88801ad56930 by task syz-executor.1/1220 CPU: 0 PID: 1220 Comm: syz-executor.1 Not tainted 5.15.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 ntfs_list_ea fs/ntfs3/xattr.c:230 [inline] ntfs_listxattr+0x3b2/0x5b0 fs/ntfs3/xattr.c:749 vfs_listxattr fs/xattr.c:448 [inline] listxattr+0x282/0x2e0 fs/xattr.c:783 path_listxattr fs/xattr.c:807 [inline] __do_sys_listxattr fs/xattr.c:819 [inline] __se_sys_listxattr fs/xattr.c:816 [inline] __x64_sys_listxattr+0x172/0x230 fs/xattr.c:816 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fd65ca96ae9 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:00007fd65b0180c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fd65cbb5f80 RCX: 00007fd65ca96ae9 RDX: 00000000000000d3 RSI: 0000000020000040 RDI: 0000000020000000 RBP: 00007fd65cae247a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd65cbb5f80 R15: 00007ffec06691f8 Allocated by task 1220: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x168/0x300 mm/slub.c:4407 kmalloc include/linux/slab.h:596 [inline] ntfs_read_ea+0x48a/0xa00 fs/ntfs3/xattr.c:117 ntfs_list_ea fs/ntfs3/xattr.c:202 [inline] ntfs_listxattr+0x179/0x5b0 fs/ntfs3/xattr.c:749 vfs_listxattr fs/xattr.c:448 [inline] listxattr+0x282/0x2e0 fs/xattr.c:783 path_listxattr fs/xattr.c:807 [inline] __do_sys_listxattr fs/xattr.c:819 [inline] __se_sys_listxattr fs/xattr.c:816 [inline] __x64_sys_listxattr+0x172/0x230 fs/xattr.c:816 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb Last potentially related work creation: kasan_save_stack+0x36/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xba/0x100 mm/kasan/generic.c:348 kvfree_call_rcu+0x118/0x8a0 kernel/rcu/tree.c:3583 sctp_bind_addr_clean net/sctp/bind_addr.c:131 [inline] sctp_bind_addr_free+0x136/0x170 net/sctp/bind_addr.c:140 sctp_association_free+0x288/0x7b0 net/sctp/associola.c:358 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1331 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0x3c58/0x5c80 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x3ed/0x640 net/sctp/associola.c:1053 sctp_backlog_rcv+0x16f/0x3c0 net/sctp/input.c:346 sk_backlog_rcv include/net/sock.h:1059 [inline] __release_sock+0x198/0x4b0 net/core/sock.c:2705 release_sock+0x5d/0x1c0 net/core/sock.c:3246 sctp_wait_for_connect+0x3c9/0x6e0 net/sctp/socket.c:9346 __sctp_connect+0xb50/0xe10 net/sctp/socket.c:1244 __sctp_setsockopt_connectx net/sctp/socket.c:1333 [inline] sctp_setsockopt_connectx+0x17d/0x290 net/sctp/socket.c:1360 sctp_setsockopt+0x839/0x10e0 net/sctp/socket.c:4616 __sys_setsockopt+0x57e/0x990 net/socket.c:2196 __do_sys_setsockopt net/socket.c:2207 [inline] __se_sys_setsockopt net/socket.c:2204 [inline] __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2204 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88801ad56900 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 48 bytes inside of 64-byte region [ffff88801ad56900, ffff88801ad56940) The buggy address belongs to the page: page:ffffea00006b5580 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1ad56 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000653c80 0000000500000005 ffff888011c41640 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 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 29160, ts 1084148367919, free_ts 1084129861674 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5421 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xbb/0x4b0 mm/slub.c:1975 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc_trace+0x1a0/0x290 mm/slub.c:3245 kmalloc include/linux/slab.h:591 [inline] kzalloc include/linux/slab.h:721 [inline] sctp_add_bind_addr+0x85/0x3a0 net/sctp/bind_addr.c:150 sctp_copy_local_addr_list+0x2e7/0x4c0 net/sctp/protocol.c:166 sctp_bind_addr_copy+0xa9/0x3b0 net/sctp/bind_addr.c:56 sctp_connect_new_asoc+0x2e5/0x6a0 net/sctp/socket.c:1092 __sctp_connect+0x657/0xe10 net/sctp/socket.c:1194 __sctp_setsockopt_connectx net/sctp/socket.c:1333 [inline] sctp_setsockopt_connectx+0x17d/0x290 net/sctp/socket.c:1360 sctp_setsockopt+0x839/0x10e0 net/sctp/socket.c:4616 __sys_setsockopt+0x57e/0x990 net/socket.c:2196 __do_sys_setsockopt net/socket.c:2207 [inline] __se_sys_setsockopt net/socket.c:2204 [inline] __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2204 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page_list+0x1f7/0x8e0 mm/page_alloc.c:3433 release_pages+0x1bb9/0x1f40 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x177/0x320 mm/mmu_gather.c:338 exit_mmap+0x3cd/0x670 mm/mmap.c:3188 __mmput+0x112/0x3b0 kernel/fork.c:1126 exit_mm+0x688/0x7f0 kernel/exit.c:548 do_exit+0x626/0x2480 kernel/exit.c:859 do_group_exit+0x144/0x310 kernel/exit.c:994 get_signal+0xc66/0x14e0 kernel/signal.c:2889 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff88801ad56800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88801ad56880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88801ad56900: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff88801ad56980: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88801ad56a00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================