================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_filldir fs/ntfs/dir.c:1021 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_readdir+0xb00/0x2be8 fs/ntfs/dir.c:1200 Read of size 1 at addr ffff0000cfc06071 by task syz-executor.3/18873 CPU: 1 PID: 18873 Comm: syz-executor.3 Not tainted 6.7.0-rc3-syzkaller-g2cc14f52aeb7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x174/0x514 mm/kasan/report.c:475 kasan_report+0xd8/0x138 mm/kasan/report.c:588 __asan_report_load1_noabort+0x20/0x2c mm/kasan/report_generic.c:378 ntfs_filldir fs/ntfs/dir.c:1021 [inline] ntfs_readdir+0xb00/0x2be8 fs/ntfs/dir.c:1200 wrap_directory_iterator+0xa8/0xf4 fs/readdir.c:67 shared_ntfs_readdir+0x30/0x40 fs/ntfs/dir.c:1528 iterate_dir+0x184/0x440 fs/readdir.c:106 __do_sys_getdents64 fs/readdir.c:405 [inline] __se_sys_getdents64 fs/readdir.c:390 [inline] __arm64_sys_getdents64+0x1c4/0x4a0 fs/readdir.c:390 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Allocated by task 18873: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:511 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xcc/0x1b8 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] ntfs_readdir+0x65c/0x2be8 fs/ntfs/dir.c:1162 wrap_directory_iterator+0xa8/0xf4 fs/readdir.c:67 shared_ntfs_readdir+0x30/0x40 fs/ntfs/dir.c:1528 iterate_dir+0x184/0x440 fs/readdir.c:106 __do_sys_getdents64 fs/readdir.c:405 [inline] __se_sys_getdents64 fs/readdir.c:390 [inline] __arm64_sys_getdents64+0x1c4/0x4a0 fs/readdir.c:390 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:492 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:502 kvfree_call_rcu+0xac/0x674 kernel/rcu/tree.c:3400 sctp_bind_addr_clean net/sctp/bind_addr.c:131 [inline] sctp_bind_addr_free+0x114/0x160 net/sctp/bind_addr.c:140 sctp_endpoint_destroy net/sctp/endpointola.c:219 [inline] sctp_endpoint_put+0xbc/0x1c8 net/sctp/endpointola.c:243 sctp_endpoint_free+0x74/0x8c net/sctp/endpointola.c:183 sctp_destroy_sock+0x180/0x408 net/sctp/socket.c:5101 sk_common_release+0x70/0x2ec net/core/sock.c:3718 sctp_close+0x630/0x7e0 net/sctp/socket.c:1549 inet_release+0x160/0x1d0 net/ipv4/af_inet.c:433 inet6_release+0x5c/0x78 net/ipv6/af_inet6.c:485 __sock_release net/socket.c:659 [inline] sock_close+0xa4/0x1e8 net/socket.c:1419 __fput+0x308/0x90c fs/file_table.c:394 __fput_sync+0x60/0x9c fs/file_table.c:475 __do_sys_close fs/open.c:1590 [inline] __se_sys_close fs/open.c:1575 [inline] __arm64_sys_close+0x150/0x1e0 fs/open.c:1575 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 The buggy address belongs to the object at ffff0000cfc06000 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 57 bytes to the right of allocated 56-byte region [ffff0000cfc06000, ffff0000cfc06038) The buggy address belongs to the physical page: page:000000005b6be54b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10fc06 flags: 0x5ffc00000000800(slab|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000800 ffff0000c0001640 fffffc00031a8180 dead000000000004 raw: 0000000000000000 0000000080200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cfc05f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000cfc05f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000cfc06000: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff0000cfc06080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff0000cfc06100: 00 00 00 00 00 00 06 fc fc fc fc fc fc fc fc fc ==================================================================