[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 40.321147] audit: type=1800 audit(1546750521.874:25): pid=7813 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 40.359508] audit: type=1800 audit(1546750521.874:26): pid=7813 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 40.404245] audit: type=1800 audit(1546750521.874:27): pid=7813 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 44.227724] sshd (7951) used greatest stack depth: 19848 bytes left Warning: Permanently added '10.128.10.46' (ECDSA) to the list of known hosts. [ 57.452501] IPVS: ftp: loaded support on port[0] = 21 [ 57.453156] IPVS: ftp: loaded support on port[0] = 21 [ 57.472071] IPVS: ftp: loaded support on port[0] = 21 [ 57.477715] IPVS: ftp: loaded support on port[0] = 21 [ 57.486236] IPVS: ftp: loaded support on port[0] = 21 [ 57.495085] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 57.854809] ================================================================== [ 57.862325] BUG: KASAN: use-after-free in __xfrm_policy_unlink+0x9ec/0xa00 [ 57.869350] Write of size 8 at addr ffff8880897cc910 by task syz-executor452/7993 [ 57.876983] [ 57.878608] CPU: 0 PID: 7993 Comm: syz-executor452 Not tainted 4.20.0+ #11 [ 57.885608] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.894943] Call Trace: [ 57.897520] dump_stack+0x1db/0x2d0 [ 57.901143] ? dump_stack_print_info.cold+0x20/0x20 [ 57.906147] ? lock_downgrade+0x910/0x910 [ 57.910289] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 57.914959] print_address_description.cold+0x7c/0x20d [ 57.920227] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 57.924898] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 57.929563] kasan_report.cold+0x1b/0x40 [ 57.933627] ? __sanitizer_cov_trace_const_cmp2+0x11/0x20 [ 57.939160] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 57.943836] __asan_report_store8_noabort+0x17/0x20 [ 57.948845] __xfrm_policy_unlink+0x9ec/0xa00 [ 57.953326] ? xfrm_policy_walk_done+0x360/0x360 [ 57.958067] ? xfrm_policy_byid+0x4a0/0x4a0 [ 57.962373] ? refcount_inc_checked+0x2b/0x70 [ 57.966855] ? __xfrm_policy_link+0x220/0x2f0 [ 57.971352] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 57.977224] xfrm_policy_insert+0x223/0x910 [ 57.981537] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 57.986728] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 57.991925] pfkey_spdadd+0x111a/0x19a0 [ 57.995896] ? pfkey_spddelete+0x1090/0x1090 [ 58.000299] ? pfkey_spddelete+0x1090/0x1090 [ 58.004697] pfkey_process+0x6d2/0x810 [ 58.008573] ? pfkey_send_new_mapping+0x11f0/0x11f0 [ 58.013580] ? copyin+0xb5/0x100 [ 58.016966] pfkey_sendmsg+0x5bb/0xfc0 [ 58.020845] ? pfkey_spdget+0xa50/0xa50 [ 58.024814] ? smack_socket_sendmsg+0xb1/0x1a0 [ 58.029425] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 58.034983] ? security_socket_sendmsg+0x93/0xc0 [ 58.039733] ? pfkey_spdget+0xa50/0xa50 [ 58.043707] sock_sendmsg+0xdd/0x130 [ 58.047437] ___sys_sendmsg+0x7ec/0x910 [ 58.051413] ? copy_msghdr_from_user+0x570/0x570 [ 58.056164] ? __handle_mm_fault+0x955/0x55a0 [ 58.060706] ? add_lock_to_list.isra.0+0x450/0x450 [ 58.065640] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 58.070480] ? check_preemption_disabled+0x48/0x290 [ 58.075486] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 58.081011] ? __fget_light+0x2db/0x420 [ 58.084975] ? fget_raw+0x20/0x20 [ 58.088446] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 58.093719] ? rcu_read_unlock_special+0x380/0x380 [ 58.098634] ? __fdget+0x1b/0x20 [ 58.101985] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 58.107508] ? sockfd_lookup_light+0xc2/0x160 [ 58.112003] __sys_sendmsg+0x112/0x270 [ 58.115888] ? __ia32_sys_shutdown+0x80/0x80 [ 58.120311] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.125660] ? trace_hardirqs_off_caller+0x300/0x300 [ 58.130764] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 58.135522] __x64_sys_sendmsg+0x78/0xb0 [ 58.139585] do_syscall_64+0x1a3/0x800 [ 58.143489] ? syscall_return_slowpath+0x5f0/0x5f0 [ 58.148413] ? prepare_exit_to_usermode+0x232/0x3b0 [ 58.153446] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 58.158279] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.163522] RIP: 0033:0x441cb9 [ 58.166716] Code: e8 dc e6 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 3b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 58.185604] RSP: 002b:00007ffc3b374f38 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 58.193319] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441cb9 [ 58.200582] RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 [ 58.207847] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 58.215099] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000000002 [ 58.222350] R13: 000000000000e1ac R14: 0000000000000000 R15: 0000000000000000 [ 58.229606] [ 58.231224] Allocated by task 7978: [ 58.234842] save_stack+0x45/0xd0 [ 58.238274] kasan_kmalloc+0xcf/0xe0 [ 58.241983] kmem_cache_alloc_trace+0x151/0x760 [ 58.246633] xfrm_policy_alloc+0xfb/0x530 [ 58.250783] pfkey_spdadd+0x24d/0x19a0 [ 58.254664] pfkey_process+0x6d2/0x810 [ 58.258542] pfkey_sendmsg+0x5bb/0xfc0 [ 58.262442] sock_sendmsg+0xdd/0x130 [ 58.266164] ___sys_sendmsg+0x7ec/0x910 [ 58.270136] __sys_sendmsg+0x112/0x270 [ 58.274007] __x64_sys_sendmsg+0x78/0xb0 [ 58.278163] do_syscall_64+0x1a3/0x800 [ 58.282057] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.287236] [ 58.288843] Freed by task 0: [ 58.291848] save_stack+0x45/0xd0 [ 58.295301] __kasan_slab_free+0x102/0x150 [ 58.299534] kasan_slab_free+0xe/0x10 [ 58.303324] kfree+0xcf/0x230 [ 58.306446] xfrm_policy_destroy_rcu+0x48/0x60 [ 58.311011] rcu_process_callbacks+0xc4a/0x1680 [ 58.315677] __do_softirq+0x30b/0xb11 [ 58.319486] [ 58.321095] The buggy address belongs to the object at ffff8880897cc900 [ 58.321095] which belongs to the cache kmalloc-1k of size 1024 [ 58.333731] The buggy address is located 16 bytes inside of [ 58.333731] 1024-byte region [ffff8880897cc900, ffff8880897ccd00) [ 58.345587] The buggy address belongs to the page: [ 58.350508] page:ffffea000225f300 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 58.360457] flags: 0x1fffc0000010200(slab|head) [ 58.365111] raw: 01fffc0000010200 ffffea0002696708 ffffea0002780c08 ffff88812c3f0ac0 [ 58.372984] raw: 0000000000000000 ffff8880897cc000 0000000100000007 0000000000000000 [ 58.380847] page dumped because: kasan: bad access detected [ 58.386532] [ 58.388144] Memory state around the buggy address: [ 58.393064] ffff8880897cc800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.400424] ffff8880897cc880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 58.407777] >ffff8880897cc900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.415122] ^ [ 58.419003] ffff8880897cc980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.426342] ffff8880897cca00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.433693] ================================================================== [ 58.441043] Disabling lock debugging due to kernel taint [ 58.446593] Kernel panic - not syncing: panic_on_warn set ... [ 58.452481] CPU: 0 PID: 7993 Comm: syz-executor452 Tainted: G B 4.20.0+ #11 [ 58.460877] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.470224] Call Trace: [ 58.472805] dump_stack+0x1db/0x2d0 [ 58.476438] ? dump_stack_print_info.cold+0x20/0x20 [ 58.481475] panic+0x2cb/0x65c [ 58.484652] ? add_taint.cold+0x16/0x16 [ 58.488627] ? trace_hardirqs_on+0xb4/0x310 [ 58.492947] ? trace_hardirqs_on+0xb4/0x310 [ 58.497250] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 58.501902] end_report+0x47/0x4f [ 58.505334] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 58.509982] kasan_report.cold+0xe/0x40 [ 58.513951] ? __sanitizer_cov_trace_const_cmp2+0x11/0x20 [ 58.519477] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 58.524127] __asan_report_store8_noabort+0x17/0x20 [ 58.529127] __xfrm_policy_unlink+0x9ec/0xa00 [ 58.533603] ? xfrm_policy_walk_done+0x360/0x360 [ 58.538341] ? xfrm_policy_byid+0x4a0/0x4a0 [ 58.542642] ? refcount_inc_checked+0x2b/0x70 [ 58.547118] ? __xfrm_policy_link+0x220/0x2f0 [ 58.551603] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 58.557478] xfrm_policy_insert+0x223/0x910 [ 58.561791] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 58.566973] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 58.572149] pfkey_spdadd+0x111a/0x19a0 [ 58.576150] ? pfkey_spddelete+0x1090/0x1090 [ 58.580563] ? pfkey_spddelete+0x1090/0x1090 [ 58.584971] pfkey_process+0x6d2/0x810 [ 58.588864] ? pfkey_send_new_mapping+0x11f0/0x11f0 [ 58.593913] ? copyin+0xb5/0x100 [ 58.597269] pfkey_sendmsg+0x5bb/0xfc0 [ 58.601136] ? pfkey_spdget+0xa50/0xa50 [ 58.605087] ? smack_socket_sendmsg+0xb1/0x1a0 [ 58.609649] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 58.615183] ? security_socket_sendmsg+0x93/0xc0 [ 58.619930] ? pfkey_spdget+0xa50/0xa50 [ 58.623885] sock_sendmsg+0xdd/0x130 [ 58.627580] ___sys_sendmsg+0x7ec/0x910 [ 58.631531] ? copy_msghdr_from_user+0x570/0x570 [ 58.636263] ? __handle_mm_fault+0x955/0x55a0 [ 58.640773] ? add_lock_to_list.isra.0+0x450/0x450 [ 58.645704] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 58.650528] ? check_preemption_disabled+0x48/0x290 [ 58.655526] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 58.661040] ? __fget_light+0x2db/0x420 [ 58.664995] ? fget_raw+0x20/0x20 [ 58.668434] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 58.673690] ? rcu_read_unlock_special+0x380/0x380 [ 58.678613] ? __fdget+0x1b/0x20 [ 58.681955] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 58.687641] ? sockfd_lookup_light+0xc2/0x160 [ 58.692116] __sys_sendmsg+0x112/0x270 [ 58.695983] ? __ia32_sys_shutdown+0x80/0x80 [ 58.700377] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.705719] ? trace_hardirqs_off_caller+0x300/0x300 [ 58.710801] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 58.715536] __x64_sys_sendmsg+0x78/0xb0 [ 58.719574] do_syscall_64+0x1a3/0x800 [ 58.723438] ? syscall_return_slowpath+0x5f0/0x5f0 [ 58.728342] ? prepare_exit_to_usermode+0x232/0x3b0 [ 58.733337] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 58.738157] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.743329] RIP: 0033:0x441cb9 [ 58.746505] Code: e8 dc e6 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 3b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 58.765382] RSP: 002b:00007ffc3b374f38 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 58.773156] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441cb9 [ 58.780400] RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 [ 58.787652] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 58.794900] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000000002 [ 58.802208] R13: 000000000000e1ac R14: 0000000000000000 R15: 0000000000000000 [ 58.810458] Kernel Offset: disabled [ 58.814076] Rebooting in 86400 seconds..