[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 42.803951] audit: type=1800 audit(1547039682.877:25): pid=7990 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 42.839639] audit: type=1800 audit(1547039682.887:26): pid=7990 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 42.871881] audit: type=1800 audit(1547039682.887:27): pid=7990 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 Warning: Permanently added '10.128.15.204' (ECDSA) to the list of known hosts. syzkaller login: [ 69.856716] IPVS: ftp: loaded support on port[0] = 21 [ 69.860055] IPVS: ftp: loaded support on port[0] = 21 [ 69.873621] IPVS: ftp: loaded support on port[0] = 21 [ 69.873629] IPVS: ftp: loaded support on port[0] = 21 [ 69.879738] IPVS: ftp: loaded support on port[0] = 21 [ 69.887238] 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 [ 71.821150] ================================================================== [ 71.828649] BUG: KASAN: use-after-free in __xfrm_policy_unlink+0x9ec/0xa00 [ 71.835657] Write of size 8 at addr ffff88808a1afb50 by task syz-executor628/8387 [ 71.843264] [ 71.844908] CPU: 1 PID: 8387 Comm: syz-executor628 Not tainted 5.0.0-rc1+ #16 [ 71.852176] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 71.861512] Call Trace: [ 71.864086] dump_stack+0x1db/0x2d0 [ 71.867729] ? dump_stack_print_info.cold+0x20/0x20 [ 71.872747] ? lock_downgrade+0x910/0x910 [ 71.876884] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 71.881555] print_address_description.cold+0x7c/0x20d [ 71.886848] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 71.891515] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 71.896196] kasan_report.cold+0x1b/0x40 [ 71.900262] ? __sanitizer_cov_trace_cmp2+0x11/0x20 [ 71.905274] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 71.909944] __asan_report_store8_noabort+0x17/0x20 [ 71.914955] __xfrm_policy_unlink+0x9ec/0xa00 [ 71.919437] ? xfrm_policy_walk_done+0x360/0x360 [ 71.924207] ? xfrm_policy_byid+0x4a0/0x4a0 [ 71.928514] ? refcount_inc_checked+0x2b/0x70 [ 71.932996] ? __xfrm_policy_link+0x220/0x2f0 [ 71.937478] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 71.943352] xfrm_policy_insert+0x223/0x910 [ 71.947684] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 71.952872] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 71.958068] pfkey_spdadd+0x111a/0x19a0 [ 71.962051] ? pfkey_spddelete+0x1090/0x1090 [ 71.966467] ? pfkey_spddelete+0x1090/0x1090 [ 71.970893] pfkey_process+0x6d2/0x810 [ 71.974788] ? pfkey_send_new_mapping+0x11f0/0x11f0 [ 71.979789] ? copyin+0xb5/0x100 [ 71.983199] pfkey_sendmsg+0x5bb/0xfc0 [ 71.987089] ? pfkey_spdget+0xa50/0xa50 [ 71.991061] ? smack_socket_sendmsg+0xb1/0x1a0 [ 71.995642] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.001189] ? security_socket_sendmsg+0x93/0xc0 [ 72.005956] ? pfkey_spdget+0xa50/0xa50 [ 72.009927] sock_sendmsg+0xdd/0x130 [ 72.013644] ___sys_sendmsg+0x7ec/0x910 [ 72.017670] ? copy_msghdr_from_user+0x570/0x570 [ 72.022424] ? find_held_lock+0x35/0x120 [ 72.026471] ? __fd_install+0x2a0/0x8c0 [ 72.030429] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.035966] ? lock_downgrade+0x910/0x910 [ 72.040112] ? kasan_check_read+0x11/0x20 [ 72.044258] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.049790] ? __fget_light+0x2db/0x420 [ 72.053761] ? fget_raw+0x20/0x20 [ 72.057203] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.062729] ? __fdget+0x1b/0x20 [ 72.066080] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 72.071610] ? sockfd_lookup_light+0xc2/0x160 [ 72.076123] __sys_sendmsg+0x112/0x270 [ 72.080037] ? __ia32_sys_shutdown+0x80/0x80 [ 72.084467] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 72.089832] ? trace_hardirqs_off_caller+0x300/0x300 [ 72.094934] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 72.099692] __x64_sys_sendmsg+0x78/0xb0 [ 72.103757] do_syscall_64+0x1a3/0x800 [ 72.107661] ? syscall_return_slowpath+0x5f0/0x5f0 [ 72.112578] ? prepare_exit_to_usermode+0x232/0x3b0 [ 72.117581] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 72.122412] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 72.127587] RIP: 0033:0x441889 [ 72.130764] Code: e8 3c e7 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 9b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 72.149648] RSP: 002b:00007ffc94a35018 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 72.157352] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441889 [ 72.164609] RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004 [ 72.171922] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 72.179183] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000000027 [ 72.186435] R13: 0000000000011837 R14: 0000000000000000 R15: 0000000000000000 [ 72.193692] [ 72.195308] Allocated by task 8375: [ 72.199038] save_stack+0x45/0xd0 [ 72.202478] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 72.207392] kasan_kmalloc+0x9/0x10 [ 72.211019] kmem_cache_alloc_trace+0x151/0x760 [ 72.215689] xfrm_policy_alloc+0xfb/0x530 [ 72.219822] pfkey_spdadd+0x24d/0x19a0 [ 72.223693] pfkey_process+0x6d2/0x810 [ 72.227565] pfkey_sendmsg+0x5bb/0xfc0 [ 72.231448] sock_sendmsg+0xdd/0x130 [ 72.235164] ___sys_sendmsg+0x7ec/0x910 [ 72.239121] __sys_sendmsg+0x112/0x270 [ 72.243011] __x64_sys_sendmsg+0x78/0xb0 [ 72.247057] do_syscall_64+0x1a3/0x800 [ 72.250947] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 72.256134] [ 72.257748] Freed by task 0: [ 72.260769] save_stack+0x45/0xd0 [ 72.264218] __kasan_slab_free+0x102/0x150 [ 72.268436] kasan_slab_free+0xe/0x10 [ 72.272239] kfree+0xcf/0x230 [ 72.275350] xfrm_policy_destroy_rcu+0x48/0x60 [ 72.279921] rcu_process_callbacks+0xc4a/0x1680 [ 72.284599] __do_softirq+0x30b/0xb11 [ 72.288398] [ 72.290020] The buggy address belongs to the object at ffff88808a1afb40 [ 72.290020] which belongs to the cache kmalloc-1k of size 1024 [ 72.302657] The buggy address is located 16 bytes inside of [ 72.302657] 1024-byte region [ffff88808a1afb40, ffff88808a1aff40) [ 72.314536] The buggy address belongs to the page: [ 72.319468] page:ffffea0002286b80 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 72.329440] flags: 0x1fffc0000010200(slab|head) [ 72.334106] raw: 01fffc0000010200 ffffea0002934b08 ffffea00028cdf88 ffff88812c3f0ac0 [ 72.341986] raw: 0000000000000000 ffff88808a1ae040 0000000100000007 0000000000000000 [ 72.349865] page dumped because: kasan: bad access detected [ 72.355562] [ 72.357168] Memory state around the buggy address: [ 72.362080] ffff88808a1afa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.369431] ffff88808a1afa80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 72.376773] >ffff88808a1afb00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 72.384139] ^ [ 72.390124] ffff88808a1afb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.397480] ffff88808a1afc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.404817] ================================================================== [ 72.412163] Disabling lock debugging due to kernel taint [ 72.417645] Kernel panic - not syncing: panic_on_warn set ... executing program [ 72.424046] CPU: 1 PID: 8387 Comm: syz-executor628 Tainted: G B 5.0.0-rc1+ #16 [ 72.432709] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.442050] Call Trace: [ 72.444619] dump_stack+0x1db/0x2d0 [ 72.448229] ? dump_stack_print_info.cold+0x20/0x20 [ 72.453230] panic+0x2cb/0x65c [ 72.456421] ? add_taint.cold+0x16/0x16 [ 72.460409] ? trace_hardirqs_on+0xb4/0x310 [ 72.464710] ? trace_hardirqs_on+0xb4/0x310 [ 72.469011] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 72.473683] end_report+0x47/0x4f [ 72.477120] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 72.481775] kasan_report.cold+0xe/0x40 [ 72.485731] ? __sanitizer_cov_trace_cmp2+0x11/0x20 [ 72.490727] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 72.495377] __asan_report_store8_noabort+0x17/0x20 [ 72.500408] __xfrm_policy_unlink+0x9ec/0xa00 [ 72.504893] ? xfrm_policy_walk_done+0x360/0x360 [ 72.509649] ? xfrm_policy_byid+0x4a0/0x4a0 [ 72.513954] ? refcount_inc_checked+0x2b/0x70 [ 72.518434] ? __xfrm_policy_link+0x220/0x2f0 [ 72.522911] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 72.528777] xfrm_policy_insert+0x223/0x910 [ 72.533077] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 72.538259] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 72.543475] pfkey_spdadd+0x111a/0x19a0 [ 72.547439] ? pfkey_spddelete+0x1090/0x1090 [ 72.551833] ? pfkey_spddelete+0x1090/0x1090 [ 72.556232] pfkey_process+0x6d2/0x810 [ 72.560120] ? pfkey_send_new_mapping+0x11f0/0x11f0 [ 72.565136] ? copyin+0xb5/0x100 [ 72.568506] pfkey_sendmsg+0x5bb/0xfc0 [ 72.572390] ? pfkey_spdget+0xa50/0xa50 [ 72.576360] ? smack_socket_sendmsg+0xb1/0x1a0 [ 72.580921] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.586450] ? security_socket_sendmsg+0x93/0xc0 [ 72.591198] ? pfkey_spdget+0xa50/0xa50 [ 72.595169] sock_sendmsg+0xdd/0x130 [ 72.598905] ___sys_sendmsg+0x7ec/0x910 [ 72.602870] ? copy_msghdr_from_user+0x570/0x570 [ 72.607607] ? find_held_lock+0x35/0x120 [ 72.611659] ? __fd_install+0x2a0/0x8c0 [ 72.615615] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.621140] ? lock_downgrade+0x910/0x910 [ 72.625278] ? kasan_check_read+0x11/0x20 [ 72.629420] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.634938] ? __fget_light+0x2db/0x420 [ 72.638918] ? fget_raw+0x20/0x20 [ 72.642368] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 72.647910] ? __fdget+0x1b/0x20 [ 72.651271] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 72.656799] ? sockfd_lookup_light+0xc2/0x160 [ 72.661293] __sys_sendmsg+0x112/0x270 [ 72.665181] ? __ia32_sys_shutdown+0x80/0x80 [ 72.669576] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 72.674918] ? trace_hardirqs_off_caller+0x300/0x300 [ 72.680019] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 72.684768] __x64_sys_sendmsg+0x78/0xb0 [ 72.688822] do_syscall_64+0x1a3/0x800 [ 72.692710] ? syscall_return_slowpath+0x5f0/0x5f0 [ 72.697621] ? prepare_exit_to_usermode+0x232/0x3b0 [ 72.702639] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 72.707468] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 72.712651] RIP: 0033:0x441889 [ 72.715860] Code: e8 3c e7 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 9b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 72.734774] RSP: 002b:00007ffc94a35018 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 72.742461] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441889 [ 72.749723] RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004 [ 72.756972] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 72.764224] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000000027 [ 72.771470] R13: 0000000000011837 R14: 0000000000000000 R15: 0000000000000000 [ 72.779652] Kernel Offset: disabled [ 72.783271] Rebooting in 86400 seconds..