Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0xc7/0x180 fs/hfsplus/bnode.c:32 Write of size 3970 at addr ffff8801e7833600 by task syz-executor.0/3045 CPU: 1 PID: 3045 Comm: syz-executor.0 Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x10c/0x17a lib/dump_stack.c:113 print_address_description.cold.6+0x9/0x244 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x305 mm/kasan/report.c:396 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13c/0x1b0 mm/kasan/kasan.c:267 memcpy+0x37/0x50 mm/kasan/kasan.c:303 hfsplus_bnode_read+0xc7/0x180 fs/hfsplus/bnode.c:32 hfsplus_bnode_read_key+0x11b/0x1f0 fs/hfsplus/bnode.c:72 hfsplus_brec_insert+0x59e/0xc40 fs/hfsplus/brec.c:141 hfsplus_create_attr+0x306/0x3b0 fs/hfsplus/attributes.c:247 __hfsplus_setxattr+0x2b8/0x1fa0 fs/hfsplus/xattr.c:346 hfsplus_setxattr+0x94/0xd0 fs/hfsplus/xattr.c:435 hfsplus_security_setxattr+0x22/0x30 fs/hfsplus/xattr_security.c:30 __vfs_setxattr+0xdb/0x140 fs/xattr.c:149 __vfs_setxattr_noperm+0xe9/0x380 fs/xattr.c:180 vfs_setxattr+0xaa/0xe0 fs/xattr.c:223 setxattr+0x1af/0x280 fs/xattr.c:450 path_setxattr+0x144/0x160 fs/xattr.c:469 __do_sys_setxattr fs/xattr.c:484 [inline] __se_sys_setxattr fs/xattr.c:480 [inline] __x64_sys_setxattr+0xbf/0x150 fs/xattr.c:480 do_syscall_64+0xd0/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f0194b8fda9 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:00007f01947110c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f0194cbdf80 RCX: 00007f0194b8fda9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000240 RBP: 00007f0194bdc47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f0194cbdf80 R15: 00007ffc24adf938 Allocated by task 3045: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:553 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:538 __kmalloc+0x139/0x260 mm/slub.c:3751 kmalloc include/linux/slab.h:518 [inline] hfsplus_find_init+0x96/0x200 fs/hfsplus/bfind.c:21 hfsplus_create_attr+0x162/0x3b0 fs/hfsplus/attributes.c:216 __hfsplus_setxattr+0x2b8/0x1fa0 fs/hfsplus/xattr.c:346 hfsplus_setxattr+0x94/0xd0 fs/hfsplus/xattr.c:435 hfsplus_security_setxattr+0x22/0x30 fs/hfsplus/xattr_security.c:30 __vfs_setxattr+0xdb/0x140 fs/xattr.c:149 __vfs_setxattr_noperm+0xe9/0x380 fs/xattr.c:180 vfs_setxattr+0xaa/0xe0 fs/xattr.c:223 setxattr+0x1af/0x280 fs/xattr.c:450 path_setxattr+0x144/0x160 fs/xattr.c:469 __do_sys_setxattr fs/xattr.c:484 [inline] __se_sys_setxattr fs/xattr.c:480 [inline] __x64_sys_setxattr+0xbf/0x150 fs/xattr.c:480 do_syscall_64+0xd0/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 2394: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x167/0x240 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 slab_free_hook mm/slub.c:1371 [inline] slab_free_freelist_hook mm/slub.c:1398 [inline] slab_free mm/slub.c:2953 [inline] kfree+0x10c/0x280 mm/slub.c:3906 load_elf_binary+0x1b06/0x4c95 fs/binfmt_elf.c:1117 search_binary_handler fs/exec.c:1653 [inline] search_binary_handler+0x130/0x640 fs/exec.c:1631 exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.13+0xfca/0x1b90 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve+0x20/0x30 fs/exec.c:1883 call_usermodehelper_exec_async+0x43b/0x5c0 kernel/umh.c:107 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:413 The buggy address belongs to the object at ffff8801e7833600 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 0 bytes inside of 1024-byte region [ffff8801e7833600, ffff8801e7833a00) The buggy address belongs to the page: page:ffffea00079e0c00 count:1 mapcount:0 mapping:ffff8801f6802a00 index:0x0 compound_mapcount: 0 flags: 0x100000000008100(slab|head) raw: 0100000000008100 0000000000000000 0000000100000001 ffff8801f6802a00 raw: 0000000000000000 00000000800e000e 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page allocated via order 2, migratetype Unmovable, gfp_mask 0x152c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:1906 [inline] prep_new_page mm/page_alloc.c:1914 [inline] get_page_from_freelist+0x2c01/0x4060 mm/page_alloc.c:3345 __alloc_pages_nodemask+0x390/0x2300 mm/page_alloc.c:4370 alloc_pages_current+0xfd/0x290 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:509 [inline] alloc_slab_page mm/slub.c:1438 [inline] allocate_slab mm/slub.c:1583 [inline] new_slab+0x458/0x7d0 mm/slub.c:1654 new_slab_objects mm/slub.c:2417 [inline] ___slab_alloc+0x600/0x890 mm/slub.c:2569 __slab_alloc+0x2f/0x60 mm/slub.c:2609 slab_alloc_node mm/slub.c:2672 [inline] slab_alloc mm/slub.c:2714 [inline] __kmalloc+0x1f4/0x260 mm/slub.c:3747 kmalloc include/linux/slab.h:518 [inline] load_elf_phdrs+0x110/0x1a0 fs/binfmt_elf.c:441 load_elf_binary+0x79c/0x4c95 fs/binfmt_elf.c:838 search_binary_handler fs/exec.c:1653 [inline] search_binary_handler+0x130/0x640 fs/exec.c:1631 exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.13+0xfca/0x1b90 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve+0x20/0x30 fs/exec.c:1883 call_usermodehelper_exec_async+0x43b/0x5c0 kernel/umh.c:107 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:413 Memory state around the buggy address: ffff8801e7833700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801e7833780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801e7833800: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801e7833880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801e7833900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================