[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.10.59' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 29.718275] ================================================================== [ 29.725729] BUG: KASAN: slab-out-of-bounds in hfs_asc2mac+0x62a/0x680 [ 29.732288] Write of size 1 at addr ffff8880b36d63ce by task syz-executor725/7960 [ 29.743266] [ 29.744876] CPU: 0 PID: 7960 Comm: syz-executor725 Not tainted 4.14.302-syzkaller #0 [ 29.752729] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 29.762151] Call Trace: [ 29.764723] dump_stack+0x1b2/0x281 [ 29.768340] print_address_description.cold+0x54/0x1d3 [ 29.773597] kasan_report_error.cold+0x8a/0x191 [ 29.778259] ? hfs_asc2mac+0x62a/0x680 [ 29.782125] __asan_report_store1_noabort+0x68/0x70 [ 29.787125] ? uni2char+0xc1/0x110 [ 29.790639] ? hfs_asc2mac+0x62a/0x680 [ 29.794521] hfs_asc2mac+0x62a/0x680 [ 29.798360] ? hfs_mac2asc+0x490/0x490 [ 29.802229] ? __kmalloc+0x3a4/0x400 [ 29.805919] ? hfs_find_init+0x91/0x220 [ 29.809873] hfs_cat_build_key+0xbe/0x1a0 [ 29.814007] hfs_lookup+0x18c/0x2b0 [ 29.817665] ? hfs_rename+0x1e0/0x1e0 [ 29.821442] ? lock_acquire+0x170/0x3f0 [ 29.825534] ? __d_lookup_rcu+0x640/0x640 [ 29.829687] ? mark_held_locks+0xa6/0xf0 [ 29.833744] ? d_lookup+0x172/0x220 [ 29.837375] ? d_lookup+0x156/0x220 [ 29.840981] ? hfs_rename+0x1e0/0x1e0 [ 29.844763] lookup_open+0x5c4/0x1750 [ 29.848547] ? vfs_mkdir+0x6e0/0x6e0 [ 29.852242] path_openat+0x14bb/0x2970 [ 29.856111] ? path_lookupat+0x780/0x780 [ 29.860197] ? trace_hardirqs_on+0x10/0x10 [ 29.864435] ? __might_fault+0x104/0x1b0 [ 29.868482] do_filp_open+0x179/0x3c0 [ 29.872259] ? may_open_dev+0xe0/0xe0 [ 29.876133] ? lock_downgrade+0x740/0x740 [ 29.880271] ? do_raw_spin_unlock+0x164/0x220 [ 29.884757] ? _raw_spin_unlock+0x29/0x40 [ 29.888883] ? __alloc_fd+0x1be/0x490 [ 29.892858] ? is_prefetch.part.0+0x1ab/0x2f0 [ 29.897333] do_sys_open+0x296/0x410 [ 29.901029] ? filp_open+0x60/0x60 [ 29.904644] ? __do_page_fault+0x159/0xad0 [ 29.908865] ? do_syscall_64+0x4c/0x640 [ 29.912816] ? SyS_open+0x30/0x30 [ 29.916247] do_syscall_64+0x1d5/0x640 [ 29.920204] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 29.925462] RIP: 0033:0x7fb4596f3219 [ 29.929149] RSP: 002b:00007ffd6ffc9d08 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 29.936918] RAX: ffffffffffffffda RBX: 00007ffd6ffc9d18 RCX: 00007fb4596f3219 [ 29.945812] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 00000000ffffff9c [ 29.953066] RBP: 00007ffd6ffc9d10 R08: 00007ffd6ffc9d10 R09: 00007fb4596b0540 [ 29.960315] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 29.967654] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.974903] [ 29.976509] Allocated by task 7960: [ 29.980121] kasan_kmalloc+0xeb/0x160 [ 29.983983] __kmalloc+0x15a/0x400 [ 29.987511] hfs_find_init+0x91/0x220 [ 29.991676] hfs_lookup+0xea/0x2b0 [ 29.995207] lookup_open+0x5c4/0x1750 [ 29.998993] path_openat+0x14bb/0x2970 [ 30.002861] do_filp_open+0x179/0x3c0 [ 30.006637] do_sys_open+0x296/0x410 [ 30.010327] do_syscall_64+0x1d5/0x640 [ 30.014193] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 30.019467] [ 30.021074] Freed by task 6118: [ 30.024343] kasan_slab_free+0xc3/0x1a0 [ 30.028304] kfree+0xc9/0x250 [ 30.031390] apparmor_file_free_security+0x7e/0xb0 [ 30.036304] security_file_free+0x42/0x80 [ 30.040461] __fput+0x26c/0x7a0 [ 30.043717] task_work_run+0x11f/0x190 [ 30.047585] exit_to_usermode_loop+0x1ad/0x200 [ 30.052140] do_syscall_64+0x4a3/0x640 [ 30.056002] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 30.061163] [ 30.062775] The buggy address belongs to the object at ffff8880b36d6380 [ 30.062775] which belongs to the cache kmalloc-96 of size 96 [ 30.075533] The buggy address is located 78 bytes inside of [ 30.075533] 96-byte region [ffff8880b36d6380, ffff8880b36d63e0) [ 30.087217] The buggy address belongs to the page: [ 30.092214] page:ffffea0002cdb580 count:1 mapcount:0 mapping:ffff8880b36d6000 index:0x0 [ 30.100332] flags: 0xfff00000000100(slab) [ 30.104465] raw: 00fff00000000100 ffff8880b36d6000 0000000000000000 0000000100000020 [ 30.112319] raw: ffffea0002cd4fa0 ffffea00026ec2a0 ffff88813fe744c0 0000000000000000 [ 30.120171] page dumped because: kasan: bad access detected [ 30.125872] [ 30.127475] Memory state around the buggy address: [ 30.132378] ffff8880b36d6280: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 30.139737] ffff8880b36d6300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 30.147073] >ffff8880b36d6380: 00 00 00 00 00 00 00 00 00 06 fc fc fc fc fc fc [ 30.154404] ^ [ 30.160090] ffff8880b36d6400: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 30.167447] ffff8880b36d6480: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 30.175022] ================================================================== [ 30.182356] Disabling lock debugging due to kernel taint [ 30.188107] Kernel panic - not syncing: panic_on_warn set ... [ 30.188107] [ 30.195464] CPU: 0 PID: 7960 Comm: syz-executor725 Tainted: G B 4.14.302-syzkaller #0 [ 30.204549] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 30.213899] Call Trace: [ 30.216493] dump_stack+0x1b2/0x281 [ 30.220197] panic+0x1f9/0x42d [ 30.223377] ? add_taint.cold+0x16/0x16 [ 30.227330] ? ___preempt_schedule+0x16/0x18 [ 30.231715] kasan_end_report+0x43/0x49 [ 30.235672] kasan_report_error.cold+0xa7/0x191 [ 30.240324] ? hfs_asc2mac+0x62a/0x680 [ 30.244199] __asan_report_store1_noabort+0x68/0x70 [ 30.249195] ? uni2char+0xc1/0x110 [ 30.252704] ? hfs_asc2mac+0x62a/0x680 [ 30.256576] hfs_asc2mac+0x62a/0x680 [ 30.260276] ? hfs_mac2asc+0x490/0x490 [ 30.264143] ? __kmalloc+0x3a4/0x400 [ 30.267850] ? hfs_find_init+0x91/0x220 [ 30.271810] hfs_cat_build_key+0xbe/0x1a0 [ 30.275930] hfs_lookup+0x18c/0x2b0 [ 30.279540] ? hfs_rename+0x1e0/0x1e0 [ 30.283314] ? lock_acquire+0x170/0x3f0 [ 30.287268] ? __d_lookup_rcu+0x640/0x640 [ 30.291996] ? mark_held_locks+0xa6/0xf0 [ 30.296133] ? d_lookup+0x172/0x220 [ 30.299734] ? d_lookup+0x156/0x220 [ 30.303331] ? hfs_rename+0x1e0/0x1e0 [ 30.307105] lookup_open+0x5c4/0x1750 [ 30.310880] ? vfs_mkdir+0x6e0/0x6e0 [ 30.314660] path_openat+0x14bb/0x2970 [ 30.318526] ? path_lookupat+0x780/0x780 [ 30.322820] ? trace_hardirqs_on+0x10/0x10 [ 30.327043] ? __might_fault+0x104/0x1b0 [ 30.331085] do_filp_open+0x179/0x3c0 [ 30.334873] ? may_open_dev+0xe0/0xe0 [ 30.338657] ? lock_downgrade+0x740/0x740 [ 30.342786] ? do_raw_spin_unlock+0x164/0x220 [ 30.347292] ? _raw_spin_unlock+0x29/0x40 [ 30.351418] ? __alloc_fd+0x1be/0x490 [ 30.355204] ? is_prefetch.part.0+0x1ab/0x2f0 [ 30.359671] do_sys_open+0x296/0x410 [ 30.363357] ? filp_open+0x60/0x60 [ 30.366870] ? __do_page_fault+0x159/0xad0 [ 30.371083] ? do_syscall_64+0x4c/0x640 [ 30.375029] ? SyS_open+0x30/0x30 [ 30.378454] do_syscall_64+0x1d5/0x640 [ 30.382314] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 30.387486] RIP: 0033:0x7fb4596f3219 [ 30.391173] RSP: 002b:00007ffd6ffc9d08 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 30.398867] RAX: ffffffffffffffda RBX: 00007ffd6ffc9d18 RCX: 00007fb4596f3219 [ 30.406536] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 00000000ffffff9c [ 30.413786] RBP: 00007ffd6ffc9d10 R08: 00007ffd6ffc9d10 R09: 00007fb4596b0540 [ 30.421033] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 30.428414] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 30.436220] Kernel Offset: disabled [ 30.439917] Rebooting in 86400 seconds..