[ 5.757158] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller syzkaller login: [ 22.554604] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 22.557513] syz-executor (2093) used greatest stack depth: 24352 bytes left [ 22.600369] IPVS: ftp: loaded support on port[0] = 21 [ 24.325972] syz-executor.0 (2096) used greatest stack depth: 21768 bytes left Warning: Permanently added '10.128.10.0' (ED25519) to the list of known hosts. 2024/02/04 00:12:53 ignoring optional flag "sandboxArg"="0" 2024/02/04 00:12:53 parsed 1 programs 2024/02/04 00:12:55 executed programs: 0 [ 44.758028] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 44.805375] IPVS: ftp: loaded support on port[0] = 21 [ 46.543661] ================================================================== [ 46.551122] BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0xc7/0x180 [ 46.558406] Write of size 3970 at addr ffff8801e7833600 by task syz-executor.0/3045 [ 46.567292] [ 46.569474] CPU: 1 PID: 3045 Comm: syz-executor.0 Not tainted 4.19.0-syzkaller #0 [ 46.578209] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 46.587812] Call Trace: [ 46.590400] dump_stack+0x10c/0x17a [ 46.594270] print_address_description.cold.6+0x9/0x244 [ 46.599951] kasan_report.cold.7+0x242/0x305 [ 46.604492] ? hfsplus_bnode_read+0xc7/0x180 [ 46.609092] check_memory_region+0x13c/0x1b0 [ 46.613576] memcpy+0x37/0x50 [ 46.617050] hfsplus_bnode_read+0xc7/0x180 [ 46.621942] ? unlock_page_memcg+0x2c/0x40 [ 46.626246] hfsplus_bnode_read_key+0x11b/0x1f0 [ 46.631325] ? hfsplus_bnode_read_u8+0x90/0x90 [ 46.636079] ? hfsplus_bnode_write+0xcf/0x190 [ 46.641252] hfsplus_brec_insert+0x59e/0xc40 [ 46.646166] ? hfsplus_brec_keylen+0x2d0/0x2d0 [ 46.651026] hfsplus_create_attr+0x306/0x3b0 [ 46.655537] ? hfsplus_attr_exists+0x1f0/0x1f0 [ 46.660482] ? mutex_lock_nested+0x16/0x20 [ 46.665351] ? mutex_lock_nested+0x16/0x20 [ 46.670280] __hfsplus_setxattr+0x2b8/0x1fa0 [ 46.675511] ? do_raw_spin_unlock+0x172/0x260 [ 46.680254] ? copy_name+0x80/0x80 [ 46.683936] ? kmem_cache_alloc_trace+0x11c/0x220 [ 46.689136] ? hfsplus_setxattr+0x59/0xd0 [ 46.693466] ? hfsplus_security_setxattr+0x22/0x30 [ 46.698550] ? __vfs_setxattr+0xdb/0x140 [ 46.702685] ? __vfs_setxattr_noperm+0xe9/0x380 [ 46.707391] ? vfs_setxattr+0xaa/0xe0 [ 46.711266] ? setxattr+0x1af/0x280 [ 46.715126] ? path_setxattr+0x144/0x160 [ 46.719339] ? __x64_sys_setxattr+0xbf/0x150 [ 46.723814] ? do_syscall_64+0xd0/0x340 [ 46.728281] ? entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 46.733808] ? kasan_check_write+0x14/0x20 [ 46.739295] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 46.745333] ? lock_downgrade+0x590/0x590 [ 46.749492] ? kasan_check_write+0x14/0x20 [ 46.754079] ? __lock_acquire.isra.10+0x116/0x1870 [ 46.759442] ? kasan_check_write+0x14/0x20 [ 46.764024] ? ___slab_alloc+0x14c/0x890 [ 46.768070] ? hfsplus_setxattr+0x59/0xd0 [ 46.772467] ? kasan_unpoison_shadow+0x35/0x50 [ 46.777194] ? kasan_kmalloc+0xaf/0xc0 [ 46.781204] ? kmem_cache_alloc_trace+0x11c/0x220 [ 46.786200] hfsplus_setxattr+0x94/0xd0 [ 46.790169] hfsplus_security_setxattr+0x22/0x30 [ 46.794945] __vfs_setxattr+0xdb/0x140 [ 46.799006] ? xattr_resolve_name+0x4f0/0x4f0 [ 46.803529] ? posix_xattr_acl+0xd/0x60 [ 46.808763] ? evm_protect_xattr.isra.2+0x113/0x330 [ 46.814132] __vfs_setxattr_noperm+0xe9/0x380 [ 46.819896] vfs_setxattr+0xaa/0xe0 [ 46.823788] setxattr+0x1af/0x280 [ 46.828108] ? vfs_setxattr+0xe0/0xe0 [ 46.833617] ? lock_acquire+0x177/0x310 [ 46.838976] ? mnt_want_write+0x3c/0xa0 [ 46.843404] ? __sb_start_write+0x137/0x1e0 [ 46.849100] ? mnt_want_write+0x3c/0xa0 [ 46.854028] path_setxattr+0x144/0x160 [ 46.858200] ? __se_sys_fsetxattr+0x160/0x160 [ 46.862954] __x64_sys_setxattr+0xbf/0x150 [ 46.867622] do_syscall_64+0xd0/0x340 [ 46.872801] ? prepare_exit_to_usermode+0xec/0x130 [ 46.879305] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 46.885103] RIP: 0033:0x7f0194b8fda9 [ 46.888987] 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 [ 46.909643] RSP: 002b:00007f01947110c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc [ 46.918695] RAX: ffffffffffffffda RBX: 00007f0194cbdf80 RCX: 00007f0194b8fda9 [ 46.926591] RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000240 [ 46.934560] RBP: 00007f0194bdc47a R08: 0000000000000000 R09: 0000000000000000 [ 46.942133] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 46.949672] R13: 0000000000000006 R14: 00007f0194cbdf80 R15: 00007ffc24adf938 [ 46.957146] [ 46.959023] Allocated by task 3045: [ 46.962640] kasan_kmalloc.part.1+0x62/0xf0 [ 46.967386] kasan_kmalloc+0xaf/0xc0 [ 46.971606] __kmalloc+0x139/0x260 [ 46.975232] hfsplus_find_init+0x96/0x200 [ 46.979616] hfsplus_create_attr+0x162/0x3b0 [ 46.984287] __hfsplus_setxattr+0x2b8/0x1fa0 [ 46.989127] hfsplus_setxattr+0x94/0xd0 [ 46.993522] hfsplus_security_setxattr+0x22/0x30 [ 46.998459] __vfs_setxattr+0xdb/0x140 [ 47.002504] __vfs_setxattr_noperm+0xe9/0x380 [ 47.007155] vfs_setxattr+0xaa/0xe0 [ 47.010934] setxattr+0x1af/0x280 [ 47.014549] path_setxattr+0x144/0x160 [ 47.018702] __x64_sys_setxattr+0xbf/0x150 [ 47.023354] do_syscall_64+0xd0/0x340 [ 47.027243] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 47.032635] [ 47.034241] Freed by task 2394: [ 47.037608] __kasan_slab_free+0x167/0x240 [ 47.041999] kasan_slab_free+0xe/0x10 [ 47.045772] kfree+0x10c/0x280 [ 47.049121] load_elf_binary+0x1b06/0x4c95 [ 47.054033] search_binary_handler+0x130/0x640 [ 47.058932] __do_execve_file.isra.13+0xfca/0x1b90 [ 47.064111] do_execve+0x20/0x30 [ 47.067458] call_usermodehelper_exec_async+0x43b/0x5c0 [ 47.072885] ret_from_fork+0x35/0x40 [ 47.076915] [ 47.078638] The buggy address belongs to the object at ffff8801e7833600 [ 47.078638] which belongs to the cache kmalloc-1024 of size 1024 [ 47.091632] The buggy address is located 0 bytes inside of [ 47.091632] 1024-byte region [ffff8801e7833600, ffff8801e7833a00) [ 47.104505] The buggy address belongs to the page: [ 47.109775] page:ffffea00079e0c00 count:1 mapcount:0 mapping:ffff8801f6802a00 index:0x0 compound_mapcount: 0 [ 47.120063] flags: 0x100000000008100(slab|head) [ 47.124974] raw: 0100000000008100 0000000000000000 0000000100000001 ffff8801f6802a00 [ 47.132999] raw: 0000000000000000 00000000800e000e 00000001ffffffff 0000000000000000 [ 47.141636] page dumped because: kasan: bad access detected [ 47.147323] page allocated via order 2, migratetype Unmovable, gfp_mask 0x152c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC) [ 47.161990] get_page_from_freelist+0x2c01/0x4060 [ 47.167188] __alloc_pages_nodemask+0x390/0x2300 [ 47.172378] alloc_pages_current+0xfd/0x290 [ 47.176939] new_slab+0x458/0x7d0 [ 47.180720] ___slab_alloc+0x600/0x890 [ 47.184608] __slab_alloc+0x2f/0x60 [ 47.188508] __kmalloc+0x1f4/0x260 [ 47.193743] load_elf_phdrs+0x110/0x1a0 [ 47.198333] load_elf_binary+0x79c/0x4c95 [ 47.202662] search_binary_handler+0x130/0x640 [ 47.207408] __do_execve_file.isra.13+0xfca/0x1b90 [ 47.212430] do_execve+0x20/0x30 [ 47.215788] call_usermodehelper_exec_async+0x43b/0x5c0 [ 47.221854] ret_from_fork+0x35/0x40 [ 47.225722] [ 47.227331] Memory state around the buggy address: [ 47.232580] ffff8801e7833700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 47.240183] ffff8801e7833780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 47.248082] >ffff8801e7833800: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.255968] ^ [ 47.260359] ffff8801e7833880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.267877] ffff8801e7833900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.275390] ================================================================== [ 47.283779] Disabling lock debugging due to kernel taint [ 47.291366] Kernel panic - not syncing: panic_on_warn set ... [ 47.291366] [ 47.299947] Kernel Offset: disabled [ 47.304191] Rebooting in 86400 seconds..