================================================================== BUG: KASAN: slab-out-of-bounds in hfs_bnode_read+0x179/0x2a0 fs/hfs/bnode.c:37 Write of size 94 at addr ffff8880182eb680 by task syz.5.916/10450 CPU: 0 PID: 10450 Comm: syz.5.916 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 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+0x3c/0x60 mm/kasan/shadow.c:66 hfs_bnode_read+0x179/0x2a0 fs/hfs/bnode.c:37 hfs_bnode_read_key+0x16e/0x240 fs/hfs/bnode.c:73 hfs_brec_insert+0x7ef/0xbd0 fs/hfs/brec.c:159 hfs_cat_create+0x419/0xa60 fs/hfs/catalog.c:118 hfs_create+0x62/0xd0 fs/hfs/dir.c:202 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x130a/0x2f20 fs/namei.c:3739 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x4f0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f9e832c9849 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9e8113f058 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f9e8348efa0 RCX: 00007f9e832c9849 RDX: 000000000000275a RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 00007f9e8333c986 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9e8348efa0 R15: 00007fffa3172fc8 Allocated by task 10450: 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] hfs_find_init+0x8c/0x1e0 fs/hfs/bfind.c:21 hfs_cat_create+0x17e/0xa60 fs/hfs/catalog.c:96 hfs_create+0x62/0xd0 fs/hfs/dir.c:202 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x130a/0x2f20 fs/namei.c:3739 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x4f0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 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:3596 cfg80211_update_known_bss+0x16b/0x9e0 cfg80211_bss_update+0x187/0x2280 net/wireless/scan.c:1800 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2519 [inline] cfg80211_inform_bss_frame_data+0xa13/0x20f0 net/wireless/scan.c:2552 ieee80211_bss_info_update+0x7a6/0xc80 net/mac80211/scan.c:190 ieee80211_rx_bss_info net/mac80211/ibss.c:1123 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1614 [inline] ieee80211_ibss_rx_queued_mgmt+0x175e/0x2af0 net/mac80211/ibss.c:1643 ieee80211_iface_process_skb net/mac80211/iface.c:1456 [inline] ieee80211_iface_work+0x78f/0xcc0 net/mac80211/iface.c:1510 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Second to 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 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x1c4/0xa70 kernel/rcu/tree.c:3087 nf_unregister_net_hooks+0xcc/0x130 net/netfilter/core.c:571 nf_ct_netns_put+0x36c/0x510 nf_conncount_destroy+0x42/0x150 net/netfilter/nf_conncount.c:579 ovs_ct_limit_exit net/openvswitch/conntrack.c:1912 [inline] ovs_ct_exit+0x95/0x200 net/openvswitch/conntrack.c:2311 ovs_exit_net+0xea/0x7c0 net/openvswitch/datapath.c:2626 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x6ce/0xb60 net/core/net_namespace.c:599 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff8880182eb680 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of 96-byte region [ffff8880182eb680, ffff8880182eb6e0) The buggy address belongs to the page: page:ffffea000060bac0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x182eb flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 dead000000000100 dead000000000122 ffff888017441780 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 2678689261, free_ts 2661632214 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5464 alloc_page_interleave+0x22/0x1c0 mm/mempolicy.c:2031 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] acpi_os_allocate_zeroed include/acpi/platform/aclinuxex.h:57 [inline] acpi_ut_evaluate_object+0x104/0x490 drivers/acpi/acpica/uteval.c:50 acpi_ut_execute_CLS+0xd8/0x630 drivers/acpi/acpica/utids.c:348 acpi_get_object_info+0x4a3/0x1210 drivers/acpi/acpica/nsxfname.c:317 acpi_set_pnp_ids drivers/acpi/scan.c:1326 [inline] acpi_init_device_object+0x704/0x2f70 drivers/acpi/scan.c:1746 acpi_add_single_object+0xf7/0x1c50 drivers/acpi/scan.c:1792 acpi_bus_check_add+0x354/0x940 drivers/acpi/scan.c:2051 acpi_ns_walk_namespace+0x28c/0x4e0 acpi_walk_namespace+0xe7/0x130 drivers/acpi/acpica/nsxfeval.c:606 acpi_bus_scan+0xd9/0x200 drivers/acpi/scan.c:2364 acpi_scan_init+0x263/0x7c0 drivers/acpi/scan.c:2546 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+0x95/0x2d0 mm/page_alloc.c:3396 free_slab mm/slub.c:2015 [inline] discard_slab mm/slub.c:2021 [inline] __unfreeze_partials+0x1b7/0x210 mm/slub.c:2507 unfreeze_partials mm/slub.c:2526 [inline] flush_cpu_slab+0x1f3/0x2c0 mm/slub.c:2666 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 process_scheduled_works kernel/workqueue.c:2373 [inline] worker_thread+0xd83/0x1280 kernel/workqueue.c:2462 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff8880182eb580: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff8880182eb600: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc >ffff8880182eb680: 00 00 00 00 00 00 00 00 00 06 fc fc fc fc fc fc ^ ffff8880182eb700: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff8880182eb780: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ==================================================================