hpfs: You really don't want any checks? You are crazy... hpfs: hpfs_map_sector(): read error hpfs: code page support is disabled ================================================================== BUG: KASAN: slab-out-of-bounds in strcmp+0xc0/0xf4 lib/string.c:361 Read of size 1 at addr ffff0000f6f658a6 by task syz.1.2/4436 CPU: 0 PID: 4436 Comm: syz.1.2 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0x100 mm/kasan/report.c:524 __asan_report_load1_noabort+0x2c/0x38 mm/kasan/report_generic.c:348 strcmp+0xc0/0xf4 lib/string.c:361 hpfs_get_ea+0xfc/0x968 fs/hpfs/ea.c:139 hpfs_read_inode+0x15c/0xcac fs/hpfs/inode.c:63 hpfs_fill_super+0xe64/0x1800 fs/hpfs/super.c:712 mount_bdev+0x264/0x358 fs/super.c:1443 hpfs_mount+0x44/0x58 fs/hpfs/super.c:758 legacy_get_tree+0xd4/0x16c fs/fs_context.c:632 vfs_get_tree+0x90/0x274 fs/super.c:1573 do_new_mount+0x228/0x810 fs/namespace.c:3069 path_mount+0x5b4/0xe78 fs/namespace.c:3399 do_mount fs/namespace.c:3412 [inline] __do_sys_mount fs/namespace.c:3620 [inline] __se_sys_mount fs/namespace.c:3597 [inline] __arm64_sys_mount+0x49c/0x584 fs/namespace.c:3597 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 4327: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x28/0x34 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node+0xf0/0x17c mm/slab_common.c:943 kmalloc_node include/linux/slab.h:589 [inline] kvmalloc_node+0x88/0x1dc mm/util.c:581 kvmalloc include/linux/slab.h:716 [inline] kvmalloc_array include/linux/slab.h:734 [inline] kvcalloc include/linux/slab.h:739 [inline] xt_alloc_entry_offsets+0x54/0x64 net/netfilter/x_tables.c:968 translate_table+0x12c/0x17fc net/ipv4/netfilter/ip_tables.c:680 ipt_register_table+0xe8/0x5c0 net/ipv4/netfilter/ip_tables.c:1744 iptable_nat_table_init+0x50/0x2ec net/ipv4/netfilter/iptable_nat.c:115 xt_find_table_lock+0x2c8/0x394 net/netfilter/x_tables.c:1259 xt_request_find_table_lock+0x38/0x114 net/netfilter/x_tables.c:1284 get_info net/ipv4/netfilter/ip_tables.c:965 [inline] do_ipt_get_ctl+0x6d0/0x1314 net/ipv4/netfilter/ip_tables.c:1661 nf_getsockopt+0x264/0x284 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x230/0x334 net/ipv4/ip_sockglue.c:1826 tcp_getsockopt+0xcc/0xe8 net/ipv4/tcp.c:4469 sock_common_getsockopt+0xa8/0xc4 net/core/sock.c:3655 __sys_getsockopt+0x1e0/0x480 net/socket.c:2332 __do_sys_getsockopt net/socket.c:2347 [inline] __se_sys_getsockopt net/socket.c:2344 [inline] __arm64_sys_getsockopt+0xb8/0xd4 net/socket.c:2344 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Freed by task 4327: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_free_info+0x3c/0x60 mm/kasan/generic.c:516 ____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:236 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:244 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x16c/0x1ec mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xc0/0x224 mm/slub.c:3700 kfree+0xd0/0x1ac mm/slab_common.c:988 kvfree+0x40/0x50 mm/util.c:627 translate_table+0xdd0/0x17fc net/ipv4/netfilter/ip_tables.c:713 ipt_register_table+0xe8/0x5c0 net/ipv4/netfilter/ip_tables.c:1744 iptable_nat_table_init+0x50/0x2ec net/ipv4/netfilter/iptable_nat.c:115 xt_find_table_lock+0x2c8/0x394 net/netfilter/x_tables.c:1259 xt_request_find_table_lock+0x38/0x114 net/netfilter/x_tables.c:1284 get_info net/ipv4/netfilter/ip_tables.c:965 [inline] do_ipt_get_ctl+0x6d0/0x1314 net/ipv4/netfilter/ip_tables.c:1661 nf_getsockopt+0x264/0x284 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x230/0x334 net/ipv4/ip_sockglue.c:1826 tcp_getsockopt+0xcc/0xe8 net/ipv4/tcp.c:4469 sock_common_getsockopt+0xa8/0xc4 net/core/sock.c:3655 __sys_getsockopt+0x1e0/0x480 net/socket.c:2332 __do_sys_getsockopt net/socket.c:2347 [inline] __se_sys_getsockopt net/socket.c:2344 [inline] __arm64_sys_getsockopt+0xb8/0xd4 net/socket.c:2344 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the object at ffff0000f6f65800 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 38 bytes to the right of 128-byte region [ffff0000f6f65800, ffff0000f6f65880) The buggy address belongs to the physical page: page:00000000a7b5425c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x136f65 flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 0000000000000000 dead000000000122 ffff0000c0002300 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f6f65780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000f6f65800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000f6f65880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000f6f65900: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ffff0000f6f65980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== hpfs: hpfs_map_sector(): read error hpfs: hpfs_map_sector(): read error hpfs: hpfs_map_sector(): read error hpfs: hpfs_map_sector(): read error hpfs: hpfs_map_4sectors(): unaligned read hpfs: hpfs_map_4sectors(): unaligned read hpfs: filesystem error: unable to find root dir