================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff8880230ee40c by task syz-executor741/5190 CPU: 0 PID: 5190 Comm: syz-executor741 Not tainted 6.10.0-rc1-syzkaller-00104-gd8ec19857b09 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_readdir+0x87b/0x1000 fs/hfsplus/dir.c:207 iterate_dir+0x53e/0xb60 fs/readdir.c:110 __do_sys_getdents64 fs/readdir.c:409 [inline] __se_sys_getdents64 fs/readdir.c:394 [inline] __x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:394 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fce2f9ee649 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe42fb67a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007ffe42fb6978 RCX: 00007fce2f9ee649 RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003 RBP: 00007fce2fa61610 R08: 0000000000000651 R09: 00007ffe42fb6978 R10: 00007ffe42fb6660 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffe42fb6968 R14: 0000000000000001 R15: 0000000000000001 Allocated by task 5190: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4121 [inline] __kmalloc_noprof+0x1ec/0x410 mm/slub.c:4134 kmalloc_noprof include/linux/slab.h:664 [inline] hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21 hfsplus_readdir+0x266/0x1000 fs/hfsplus/dir.c:144 iterate_dir+0x53e/0xb60 fs/readdir.c:110 __do_sys_getdents64 fs/readdir.c:409 [inline] __se_sys_getdents64 fs/readdir.c:394 [inline] __x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:394 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880230ee000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 0 bytes to the right of allocated 1036-byte region [ffff8880230ee000, ffff8880230ee40c) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x230e8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888015442f00 dead000000000100 dead000000000122 raw: 0000000000000000 0000000080080008 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015442f00 dead000000000100 dead000000000122 head: 0000000000000000 0000000080080008 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea00008c3a01 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 10286113885, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1468 prep_new_page mm/page_alloc.c:1476 [inline] get_page_from_freelist+0x136a/0x2df0 mm/page_alloc.c:3402 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4660 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x56/0x110 mm/slub.c:2264 allocate_slab mm/slub.c:2427 [inline] new_slab+0x84/0x260 mm/slub.c:2480 ___slab_alloc+0xdac/0x1870 mm/slub.c:3666 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3756 __slab_alloc_node mm/slub.c:3809 [inline] slab_alloc_node mm/slub.c:3988 [inline] __do_kmalloc_node mm/slub.c:4120 [inline] kmalloc_node_track_caller_noprof+0x355/0x430 mm/slub.c:4141 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:597 __alloc_skb+0x164/0x380 net/core/skbuff.c:666 alloc_skb include/linux/skbuff.h:1308 [inline] nlmsg_new include/net/netlink.h:1015 [inline] rtmsg_ifinfo_build_skb+0x81/0x280 net/core/rtnetlink.c:4064 rtmsg_ifinfo_event net/core/rtnetlink.c:4107 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4097 [inline] rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4116 register_netdevice+0x1710/0x1cb0 net/core/dev.c:10421 register_netdev+0x2f/0x50 net/core/dev.c:10511 eql_init_module+0x5f/0xa0 drivers/net/eql.c:596 do_one_initcall+0x128/0x700 init/main.c:1267 page_owner free stack trace missing Memory state around the buggy address: ffff8880230ee300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880230ee380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880230ee400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880230ee480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880230ee500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================