================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x576/0x11f0 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff888025186218 by task syz-executor.4/4760 CPU: 1 PID: 4760 Comm: syz-executor.4 Not tainted 5.15.156-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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 hfsplus_uni2asc+0x576/0x11f0 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x70a/0xf00 fs/hfsplus/xattr.c:736 vfs_listxattr fs/xattr.c:448 [inline] listxattr+0x282/0x2e0 fs/xattr.c:783 path_listxattr fs/xattr.c:807 [inline] __do_sys_llistxattr fs/xattr.c:825 [inline] __se_sys_llistxattr fs/xattr.c:822 [inline] __x64_sys_llistxattr+0x16f/0x230 fs/xattr.c:822 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:0x7f8c4db65ea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8c4c0d80c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3 RAX: ffffffffffffffda RBX: 00007f8c4dc93f80 RCX: 00007f8c4db65ea9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200003c0 RBP: 00007f8c4dbb24a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f8c4dc93f80 R15: 00007ffc72df2e08 Allocated by task 4760: 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] hfsplus_find_init+0x81/0x1c0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x3bd/0xf00 fs/hfsplus/xattr.c:696 vfs_listxattr fs/xattr.c:448 [inline] listxattr+0x282/0x2e0 fs/xattr.c:783 path_listxattr fs/xattr.c:807 [inline] __do_sys_llistxattr fs/xattr.c:825 [inline] __se_sys_llistxattr fs/xattr.c:822 [inline] __x64_sys_llistxattr+0x16f/0x230 fs/xattr.c:822 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 The buggy address belongs to the object at ffff888025186000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 536 bytes inside of 1024-byte region [ffff888025186000, ffff888025186400) The buggy address belongs to the page: page:ffffea0000946000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x25180 head:ffffea0000946000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff80000010200(slab|head|node=0|zone=1|lastcpupid=0xfff) raw: 00fff80000010200 ffffea0001e5a200 0000000200000002 ffff888011c41dc0 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3563, ts 57056216742, free_ts 56683661401 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423 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] __kmalloc_node_track_caller+0x1f6/0x390 mm/slub.c:4958 kmalloc_reserve net/core/skbuff.c:356 [inline] __alloc_skb+0x12c/0x590 net/core/skbuff.c:427 alloc_skb include/linux/skbuff.h:1167 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_rt_notify+0xdc/0x280 net/ipv6/route.c:6178 fib6_add_rt2node net/ipv6/ip6_fib.c:1251 [inline] fib6_add+0x1db2/0x3c80 net/ipv6/ip6_fib.c:1480 __ip6_ins_rt net/ipv6/route.c:1302 [inline] ip6_ins_rt+0x102/0x170 net/ipv6/route.c:1312 __ipv6_ifa_notify+0x5b9/0x11d0 net/ipv6/addrconf.c:6174 ipv6_ifa_notify net/ipv6/addrconf.c:6213 [inline] addrconf_dad_completed+0x18a/0xc40 net/ipv6/addrconf.c:4238 addrconf_dad_work+0xdd0/0x1720 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:300 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 put_cpu_partial+0x132/0x1a0 mm/slub.c:2587 do_slab_free mm/slub.c:3487 [inline] ___cache_free+0xe3/0x100 mm/slub.c:3506 qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x53/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] __kernfs_new_node+0xdb/0x750 fs/kernfs/dir.c:593 kernfs_new_node+0x136/0x230 fs/kernfs/dir.c:669 kernfs_create_link+0xa1/0x1f0 fs/kernfs/symlink.c:39 sysfs_do_create_link_sd+0x85/0x100 fs/sysfs/symlink.c:44 device_add_class_symlinks drivers/base/core.c:3131 [inline] device_add+0x610/0xfd0 drivers/base/core.c:3357 device_create_groups_vargs drivers/base/core.c:4073 [inline] device_create+0x253/0x2e0 drivers/base/core.c:4115 Memory state around the buggy address: ffff888025186100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888025186180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888025186200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888025186280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888025186300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================