loop0: detected capacity change from 0 to 1024 hfsplus: request for non-existent node 393216 in B*Tree hfsplus: request for non-existent node 393216 in B*Tree ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0xc9/0x200 fs/hfsplus/bnode.c:32 Read of size 8 at addr ffff888017837bc0 by task syz-executor268/3632 CPU: 0 PID: 3632 Comm: syz-executor268 Not tainted 6.1.0-rc6-syzkaller-00315-gfaf68e3523c2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x1f0 mm/kasan/report.c:395 kasan_report+0xcd/0x100 mm/kasan/report.c:495 hfsplus_bnode_read+0xc9/0x200 fs/hfsplus/bnode.c:32 hfsplus_bnode_read_u16 fs/hfsplus/bnode.c:45 [inline] hfsplus_bnode_dump+0x29a/0x530 fs/hfsplus/bnode.c:321 hfsplus_brec_remove+0x430/0x4f0 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x219/0x3d0 fs/hfsplus/attributes.c:299 hfsplus_delete_all_attrs+0x292/0x430 fs/hfsplus/attributes.c:378 hfsplus_delete_cat+0xa64/0xe90 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x342/0x7d0 fs/hfsplus/dir.c:385 vfs_unlink+0x357/0x5f0 fs/namei.c:4252 do_unlinkat+0x484/0x940 fs/namei.c:4320 __do_sys_unlink fs/namei.c:4368 [inline] __se_sys_unlink fs/namei.c:4366 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4366 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f0cfeb0e809 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc5e1884c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0cfeb0e809 RDX: 00007f0cfeacce83 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f0cfeace0a0 R08: 00000000000005f2 R09: 0000000000000000 R10: 00007ffc5e188390 R11: 0000000000000246 R12: 00007f0cfeace130 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 3632: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x3d/0x60 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:955 [inline] __kmalloc+0xaf/0x1a0 mm/slab_common.c:968 kmalloc include/linux/slab.h:558 [inline] kzalloc include/linux/slab.h:689 [inline] __hfs_bnode_create+0xec/0x7f0 fs/hfsplus/bnode.c:409 hfsplus_bnode_find+0x23d/0xd80 fs/hfsplus/bnode.c:486 hfsplus_brec_find+0x145/0x520 fs/hfsplus/bfind.c:183 hfsplus_find_attr fs/hfsplus/attributes.c:160 [inline] hfsplus_delete_all_attrs+0x269/0x430 fs/hfsplus/attributes.c:371 hfsplus_delete_cat+0xa64/0xe90 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x342/0x7d0 fs/hfsplus/dir.c:385 vfs_unlink+0x357/0x5f0 fs/namei.c:4252 do_unlinkat+0x484/0x940 fs/namei.c:4320 __do_sys_unlink fs/namei.c:4368 [inline] __se_sys_unlink fs/namei.c:4366 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4366 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x2b/0x50 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:481 insert_work+0x54/0x3e0 kernel/workqueue.c:1358 __queue_work+0xaaa/0xd60 kernel/workqueue.c:1517 queue_work_on+0x11b/0x200 kernel/workqueue.c:1545 inet6addr_event+0xe8/0x150 drivers/infiniband/core/roce_gid_mgmt.c:883 notifier_call_chain kernel/notifier.c:87 [inline] atomic_notifier_call_chain+0x157/0x260 kernel/notifier.c:225 ipv6_del_addr+0x747/0xbf0 net/ipv6/addrconf.c:1310 inet6_addr_del+0x434/0x5f0 net/ipv6/addrconf.c:3031 inet6_rtm_deladdr+0x2dc/0x3c0 net/ipv6/addrconf.c:4689 rtnetlink_rcv_msg+0x772/0xe60 net/core/rtnetlink.c:6091 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2540 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7e7/0x9c0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x9b3/0xcd0 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] ____sys_sendmsg+0x5be/0x9b0 net/socket.c:2482 ___sys_sendmsg net/socket.c:2536 [inline] __sys_sendmsg+0x23e/0x340 net/socket.c:2565 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888017837b00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes to the right of 192-byte region [ffff888017837b00, ffff888017837bc0) The buggy address belongs to the physical page: page:ffffea00005e0dc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888017837f00 pfn:0x17837 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea00005e11c0 dead000000000003 ffff888012841a00 raw: ffff888017837f00 000000008010000f 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, tgid 1 (swapper/0), ts 1913293158, free_ts 0 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4291 __alloc_pages+0x259/0x560 mm/page_alloc.c:5558 alloc_page_interleave+0x22/0x1c0 mm/mempolicy.c:2118 alloc_slab_page+0x70/0xf0 mm/slub.c:1794 allocate_slab+0x5e/0x4b0 mm/slub.c:1939 new_slab mm/slub.c:1992 [inline] ___slab_alloc+0x782/0xe20 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x252/0x310 mm/slub.c:3437 kmalloc_trace+0x26/0x60 mm/slab_common.c:1045 kmalloc include/linux/slab.h:553 [inline] kzalloc include/linux/slab.h:689 [inline] call_usermodehelper_setup+0x8a/0x260 kernel/umh.c:366 kobject_uevent_env+0x7c1/0x8e0 lib/kobject_uevent.c:614 device_add+0xa56/0xf90 drivers/base/core.c:3498 __add_memory_block drivers/base/memory.c:632 [inline] add_memory_block+0x2c8/0x520 drivers/base/memory.c:754 memory_dev_init+0x101/0x1a8 drivers/base/memory.c:922 driver_init+0x43/0x4d drivers/base/init.c:39 do_basic_setup+0x16/0x81 init/main.c:1408 kernel_init_freeable+0x428/0x5d5 init/main.c:1631 page_owner free stack trace missing Memory state around the buggy address: ffff888017837a80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888017837b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888017837b80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888017837c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888017837c80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================