syz-executor253[5032]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set loop0: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x57a/0x11f0 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88814b33fa18 by task syz-executor253/5032 CPU: 0 PID: 5032 Comm: syz-executor253 Not tainted 6.6.0-rc2-syzkaller-00386-g3aba70aed91f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 hfsplus_uni2asc+0x57a/0x11f0 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x70e/0xf00 fs/hfsplus/xattr.c:736 vfs_listxattr fs/xattr.c:494 [inline] listxattr+0x103/0x280 fs/xattr.c:841 path_listxattr fs/xattr.c:865 [inline] __do_sys_llistxattr fs/xattr.c:883 [inline] __se_sys_llistxattr fs/xattr.c:880 [inline] __x64_sys_llistxattr+0x173/0x230 fs/xattr.c:880 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f72b42765b9 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:00007fff934c1808 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3 RAX: ffffffffffffffda RBX: 00007fff934c19e8 RCX: 00007f72b42765b9 RDX: 0000000000000019 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f72b42e9610 R08: 0000000000000603 R09: 0000000000000000 R10: 00007fff934c16d0 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff934c19d8 R14: 0000000000000001 R15: 0000000000000001 Allocated by task 5032: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1023 [inline] __kmalloc+0xb9/0x230 mm/slab_common.c:1036 kmalloc include/linux/slab.h:603 [inline] hfsplus_find_init+0x85/0x1c0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x3c1/0xf00 fs/hfsplus/xattr.c:695 vfs_listxattr fs/xattr.c:494 [inline] listxattr+0x103/0x280 fs/xattr.c:841 path_listxattr fs/xattr.c:865 [inline] __do_sys_llistxattr fs/xattr.c:883 [inline] __se_sys_llistxattr fs/xattr.c:880 [inline] __x64_sys_llistxattr+0x173/0x230 fs/xattr.c:880 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88814b33f800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes to the right of allocated 536-byte region [ffff88814b33f800, ffff88814b33fa18) The buggy address belongs to the physical page: page:ffffea00052cce00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14b338 head:ffffea00052cce00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x57ff00000000840(slab|head|node=1|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 057ff00000000840 ffff888012841dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 20669870131, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170 __alloc_pages+0x255/0x670 mm/page_alloc.c:4426 alloc_page_interleave+0x22/0x1d0 mm/mempolicy.c:2131 alloc_slab_page+0x6a/0x160 mm/slub.c:1870 allocate_slab mm/slub.c:2017 [inline] new_slab+0x84/0x2f0 mm/slub.c:2070 ___slab_alloc+0xc85/0x1310 mm/slub.c:3223 __slab_alloc mm/slub.c:3322 [inline] __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0x1af/0x270 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1022 [inline] __kmalloc_node_track_caller+0xa5/0x230 mm/slab_common.c:1043 __do_krealloc mm/slab_common.c:1411 [inline] krealloc+0x79/0x110 mm/slab_common.c:1444 add_sysfs_param+0xca/0x7f0 kernel/params.c:652 kernel_add_sysfs_param+0xb0/0x130 kernel/params.c:813 param_sysfs_builtin+0x16e/0x1f0 kernel/params.c:852 param_sysfs_builtin_init+0x2d/0x30 kernel/params.c:986 do_one_initcall+0x23d/0x7d0 init/main.c:1232 do_initcall_level+0x157/0x210 init/main.c:1294 page_owner free stack trace missing Memory state around the buggy address: ffff88814b33f900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88814b33f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88814b33fa00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88814b33fa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88814b33fb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================