ntfs3: loop1: Failed to load $Extend (-22). ntfs3: loop1: Failed to initialize $Extend. ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:232 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x354/0x50c fs/ntfs3/xattr.c:733 Read of size 48 at addr ffff0000d3735eb0 by task syz-executor.1/8734 CPU: 0 PID: 8734 Comm: syz-executor.1 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 kasan_check_range+0x254/0x294 mm/kasan/generic.c:187 __asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105 ntfs_list_ea fs/ntfs3/xattr.c:232 [inline] ntfs_listxattr+0x354/0x50c fs/ntfs3/xattr.c:733 vfs_listxattr fs/xattr.c:494 [inline] listxattr+0x108/0x368 fs/xattr.c:841 path_listxattr fs/xattr.c:865 [inline] __do_sys_listxattr fs/xattr.c:877 [inline] __se_sys_listxattr fs/xattr.c:874 [inline] __arm64_sys_listxattr+0x13c/0x21c fs/xattr.c:874 __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 8734: 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_read_ea+0x3c0/0x808 fs/ntfs3/xattr.c:118 ntfs_list_ea fs/ntfs3/xattr.c:204 [inline] ntfs_listxattr+0x14c/0x50c fs/ntfs3/xattr.c:733 vfs_listxattr fs/xattr.c:494 [inline] listxattr+0x108/0x368 fs/xattr.c:841 path_listxattr fs/xattr.c:865 [inline] __do_sys_listxattr fs/xattr.c:877 [inline] __se_sys_listxattr fs/xattr.c:874 [inline] __arm64_sys_listxattr+0x13c/0x21c fs/xattr.c:874 __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 __call_rcu_common kernel/rcu/tree.c:2681 [inline] call_rcu+0x104/0xaf4 kernel/rcu/tree.c:2795 collapse net/ipv4/fib_trie.c:703 [inline] resize+0x21f8/0x24fc net/ipv4/fib_trie.c:906 replace+0x400/0x52c net/ipv4/fib_trie.c:530 inflate net/ipv4/fib_trie.c:624 [inline] resize+0xe74/0x24fc net/ipv4/fib_trie.c:869 trie_rebalance net/ipv4/fib_trie.c:1106 [inline] fib_insert_node net/ipv4/fib_trie.c:1150 [inline] fib_insert_alias+0xb00/0xef0 net/ipv4/fib_trie.c:1164 fib_table_insert+0x624/0x1574 net/ipv4/fib_trie.c:1378 fib_magic+0x300/0x4b8 net/ipv4/fib_frontend.c:1104 fib_add_ifaddr+0x118/0x4ec net/ipv4/fib_frontend.c:1126 fib_inetaddr_event+0x12c/0x200 net/ipv4/fib_frontend.c:1440 notifier_call_chain+0x1a4/0x510 kernel/notifier.c:93 blocking_notifier_call_chain+0x70/0xa0 kernel/notifier.c:388 __inet_insert_ifa+0x8b0/0xac8 net/ipv4/devinet.c:556 inet_rtm_newaddr+0xfa4/0x1950 net/ipv4/devinet.c:976 rtnetlink_rcv_msg+0x748/0xdbc net/core/rtnetlink.c:6558 netlink_rcv_skb+0x214/0x3c4 net/netlink/af_netlink.c:2545 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:6576 netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline] netlink_unicast+0x65c/0x898 net/netlink/af_netlink.c:1368 netlink_sendmsg+0x83c/0xb20 net/netlink/af_netlink.c:1910 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x56c/0x840 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x26c/0x33c net/socket.c:2667 __do_sys_sendmsg net/socket.c:2676 [inline] __se_sys_sendmsg net/socket.c:2674 [inline] __arm64_sys_sendmsg+0x80/0x94 net/socket.c:2674 __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 ffff0000d3735e80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 48 bytes inside of allocated 60-byte region [ffff0000d3735e80, ffff0000d3735ebc) The buggy address belongs to the physical page: page:00000000bbaaca6f refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x113735 flags: 0x5ffc00000000800(slab|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000800 ffff0000c0001640 dead000000000100 dead000000000122 raw: 0000000000000000 0000000080200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d3735d80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff0000d3735e00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff0000d3735e80: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff0000d3735f00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff0000d3735f80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================