hpfs: hpfs_map_sector(): read error hpfs: code page support is disabled ================================================================== BUG: KASAN: slab-out-of-bounds in strcmp+0x6b/0xb0 lib/string.c:361 Read of size 1 at addr ffff8880735b48a6 by task syz.7.733/8122 CPU: 0 PID: 8122 Comm: syz.7.733 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 strcmp+0x6b/0xb0 lib/string.c:361 hpfs_get_ea+0x111/0xc80 fs/hpfs/ea.c:139 hpfs_read_inode+0x19a/0x1000 fs/hpfs/inode.c:63 hpfs_fill_super+0x12d1/0x1eb0 fs/hpfs/super.c:712 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ff870790eea Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff86e9f5e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff86e9f5ef0 RCX: 00007ff870790eea RDX: 0000200000000000 RSI: 0000200000009ec0 RDI: 00007ff86e9f5eb0 RBP: 0000200000000000 R08: 00007ff86e9f5ef0 R09: 0000000001200041 R10: 0000000001200041 R11: 0000000000000246 R12: 0000200000009ec0 R13: 00007ff86e9f5eb0 R14: 0000000000009e15 R15: 0000200000000080 Allocated by task 7500: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] __register_sysctl_table+0xef/0xe70 fs/proc/proc_sysctl.c:1345 __addrconf_sysctl_register+0x268/0x3d0 net/ipv6/addrconf.c:7150 addrconf_sysctl_register+0x15c/0x1b0 net/ipv6/addrconf.c:7197 ipv6_add_dev+0xbe0/0x1120 net/ipv6/addrconf.c:451 addrconf_notify+0x634/0xf40 net/ipv6/addrconf.c:3595 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2039 [inline] call_netdevice_notifiers net/core/dev.c:2053 [inline] register_netdevice+0x1600/0x1aa0 net/core/dev.c:10237 veth_newlink+0x592/0xbe0 drivers/net/veth.c:1725 rtnl_newlink_create net/core/rtnetlink.c:3422 [inline] __rtnl_newlink net/core/rtnetlink.c:3642 [inline] rtnl_newlink+0x14c4/0x1ff0 net/core/rtnetlink.c:3655 rtnetlink_rcv_msg+0x79b/0xed0 net/core/rtnetlink.c:6150 netlink_rcv_skb+0x1de/0x420 net/netlink/af_netlink.c:2511 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x74d/0x8d0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x89e/0xbc0 net/netlink/af_netlink.c:1872 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x44f/0x5c0 net/socket.c:2152 __do_sys_sendto net/socket.c:2164 [inline] __se_sys_sendto net/socket.c:2160 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2160 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880735b4000 which belongs to the cache kmalloc-cg-2k of size 2048 The buggy address is located 166 bytes to the right of 2048-byte region [ffff8880735b4000, ffff8880735b4800) The buggy address belongs to the physical page: page:ffffea0001cd6c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x735b0 head:ffffea0001cd6c00 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88802f292f01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801744c140 raw: 0000000000000000 0000000000080008 00000001ffffffff ffff88802f292f01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 7500, tgid 7500 (syz-executor), ts 399548747155, free_ts 398936778172 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node_track_caller+0x9e/0x230 mm/slab_common.c:956 kmemdup+0x27/0x60 mm/util.c:129 kmemdup include/linux/fortify-string.h:585 [inline] neigh_sysctl_register+0x9c/0xa70 net/core/neighbour.c:3796 devinet_sysctl_register+0xa8/0x1f0 net/ipv4/devinet.c:2649 inetdev_init+0x2b4/0x4f0 net/ipv4/devinet.c:280 inetdev_event+0x270/0x1410 net/ipv4/devinet.c:1547 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2039 [inline] call_netdevice_notifiers net/core/dev.c:2053 [inline] register_netdevice+0x1600/0x1aa0 net/core/dev.c:10237 veth_newlink+0x592/0xbe0 drivers/net/veth.c:1725 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_slab mm/slub.c:2036 [inline] discard_slab mm/slub.c:2042 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2591 put_cpu_partial+0x17c/0x250 mm/slub.c:2667 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 vm_area_dup+0x23/0x1a0 kernel/fork.c:467 __split_vma+0xb9/0x500 mm/mmap.c:2363 do_mas_align_munmap+0x351/0x1220 mm/mmap.c:2480 do_mas_munmap+0x240/0x2b0 mm/mmap.c:2650 __mmap_region mm/mmap.c:2698 [inline] mmap_region+0x6e5/0x1c70 mm/mmap.c:2916 do_mmap+0x958/0xfd0 mm/mmap.c:1436 vm_mmap_pgoff+0x1b2/0x2b0 mm/util.c:520 Memory state around the buggy address: ffff8880735b4780: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff8880735b4800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880735b4880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880735b4900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880735b4980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================