[ 38.876591] audit: type=1800 audit(1546748409.296:25): pid=7781 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 38.915435] audit: type=1800 audit(1546748409.306:26): pid=7781 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 38.945517] audit: type=1800 audit(1546748409.306:27): pid=7781 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 38.971358] audit: type=1800 audit(1546748409.306:28): pid=7781 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 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.10.17' (ECDSA) to the list of known hosts. syzkaller login: [ 49.379032] IPVS: ftp: loaded support on port[0] = 21 [ 49.384101] IPVS: ftp: loaded support on port[0] = 21 [ 49.392747] IPVS: ftp: loaded support on port[0] = 21 [ 49.397094] IPVS: ftp: loaded support on port[0] = 21 [ 49.404430] IPVS: ftp: loaded support on port[0] = 21 [ 49.404959] 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 [ 50.312985] ================================================================== [ 50.320562] BUG: KASAN: use-after-free in __xfrm_policy_unlink+0x9ec/0xa00 [ 50.327589] Write of size 8 at addr ffff8880a46d44d0 by task syz-executor346/8025 [ 50.335193] [ 50.336821] CPU: 1 PID: 8025 Comm: syz-executor346 Not tainted 4.20.0+ #11 [ 50.343822] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.353151] Call Trace: [ 50.355729] dump_stack+0x1db/0x2d0 [ 50.359360] ? dump_stack_print_info.cold+0x20/0x20 [ 50.364376] ? lock_downgrade+0x910/0x910 [ 50.368506] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 50.373167] print_address_description.cold+0x7c/0x20d [ 50.378436] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 50.383098] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 50.387768] kasan_report.cold+0x1b/0x40 [ 50.391829] ? __sanitizer_cov_trace_const_cmp2+0x11/0x20 [ 50.397366] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 50.402036] __asan_report_store8_noabort+0x17/0x20 [ 50.407032] __xfrm_policy_unlink+0x9ec/0xa00 [ 50.411536] ? xfrm_policy_walk_done+0x360/0x360 [ 50.416284] ? xfrm_policy_byid+0x4a0/0x4a0 [ 50.420624] ? refcount_inc_checked+0x2b/0x70 [ 50.425103] ? __xfrm_policy_link+0x220/0x2f0 [ 50.429617] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 50.435503] xfrm_policy_insert+0x223/0x910 [ 50.439810] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 50.445001] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 50.450190] pfkey_spdadd+0x111a/0x19a0 [ 50.454177] ? pfkey_spddelete+0x1090/0x1090 [ 50.458595] ? pfkey_spddelete+0x1090/0x1090 [ 50.462997] pfkey_process+0x6d2/0x810 [ 50.466897] ? pfkey_send_new_mapping+0x11f0/0x11f0 [ 50.471904] ? copyin+0xb5/0x100 [ 50.475294] ? aa_sk_perm+0x234/0x8e0 [ 50.479084] pfkey_sendmsg+0x5bb/0xfc0 [ 50.482964] ? pfkey_spdget+0xa50/0xa50 [ 50.486951] ? apparmor_socket_sendmsg+0x2a/0x30 [ 50.491724] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 50.497268] ? security_socket_sendmsg+0x93/0xc0 [ 50.502016] ? pfkey_spdget+0xa50/0xa50 [ 50.505983] sock_sendmsg+0xdd/0x130 [ 50.509698] ___sys_sendmsg+0x7ec/0x910 [ 50.513678] ? copy_msghdr_from_user+0x570/0x570 [ 50.518444] ? __handle_mm_fault+0x955/0x55a0 [ 50.522961] ? add_lock_to_list.isra.0+0x450/0x450 [ 50.527908] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 50.532759] ? check_preemption_disabled+0x48/0x290 [ 50.537769] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 50.543298] ? __fget_light+0x2db/0x420 [ 50.547298] ? fget_raw+0x20/0x20 [ 50.550740] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 50.556000] ? rcu_read_unlock_special+0x380/0x380 [ 50.560912] ? __fdget+0x1b/0x20 [ 50.564269] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 50.569805] ? sockfd_lookup_light+0xc2/0x160 [ 50.574282] __sys_sendmsg+0x112/0x270 [ 50.578175] ? __ia32_sys_shutdown+0x80/0x80 [ 50.582585] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 50.587960] ? trace_hardirqs_off_caller+0x300/0x300 [ 50.593057] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 50.597818] __x64_sys_sendmsg+0x78/0xb0 [ 50.601858] do_syscall_64+0x1a3/0x800 [ 50.605777] ? syscall_return_slowpath+0x5f0/0x5f0 [ 50.610718] ? prepare_exit_to_usermode+0x232/0x3b0 [ 50.615727] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 50.620550] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 50.625719] RIP: 0033:0x441cb9 [ 50.628923] 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 [ 50.647873] RSP: 002b:00007ffc7bbf24f8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 50.655611] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441cb9 [ 50.662869] RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 [ 50.670130] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 50.677436] R10: 0000000000000000 R11: 0000000000000217 R12: 000000000000000e [ 50.684750] R13: 000000000000c429 R14: 0000000000000000 R15: 0000000000000000 [ 50.692021] [ 50.693634] Allocated by task 8012: [ 50.697259] save_stack+0x45/0xd0 [ 50.700705] kasan_kmalloc+0xcf/0xe0 [ 50.704407] kmem_cache_alloc_trace+0x151/0x760 [ 50.709067] xfrm_policy_alloc+0xfb/0x530 [ 50.713230] pfkey_spdadd+0x24d/0x19a0 [ 50.717124] pfkey_process+0x6d2/0x810 [ 50.721030] pfkey_sendmsg+0x5bb/0xfc0 [ 50.724912] sock_sendmsg+0xdd/0x130 [ 50.728625] ___sys_sendmsg+0x7ec/0x910 [ 50.732577] __sys_sendmsg+0x112/0x270 [ 50.736455] __x64_sys_sendmsg+0x78/0xb0 [ 50.740539] do_syscall_64+0x1a3/0x800 [ 50.744434] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 50.749620] [ 50.751269] Freed by task 0: [ 50.754295] save_stack+0x45/0xd0 [ 50.757754] __kasan_slab_free+0x102/0x150 [ 50.761998] kasan_slab_free+0xe/0x10 [ 50.765805] kfree+0xcf/0x230 [ 50.768891] xfrm_policy_destroy_rcu+0x48/0x60 [ 50.773455] rcu_process_callbacks+0xc4a/0x1680 [ 50.778142] __do_softirq+0x30b/0xb11 [ 50.781922] [ 50.783561] The buggy address belongs to the object at ffff8880a46d44c0 [ 50.783561] which belongs to the cache kmalloc-1k of size 1024 [ 50.796216] The buggy address is located 16 bytes inside of [ 50.796216] 1024-byte region [ffff8880a46d44c0, ffff8880a46d48c0) [ 50.808100] The buggy address belongs to the page: [ 50.813008] page:ffffea000291b500 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 50.822962] flags: 0x1fffc0000010200(slab|head) [ 50.827626] raw: 01fffc0000010200 ffffea0002a46088 ffffea0002910c08 ffff88812c3f0ac0 [ 50.835504] raw: 0000000000000000 ffff8880a46d4040 0000000100000007 0000000000000000 [ 50.843406] page dumped because: kasan: bad access detected [ 50.849105] [ 50.850708] Memory state around the buggy address: [ 50.855622] ffff8880a46d4380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.862991] ffff8880a46d4400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 50.870336] >ffff8880a46d4480: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 50.877689] ^ [ 50.883652] ffff8880a46d4500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.891000] ffff8880a46d4580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.898368] ================================================================== [ 50.905708] Disabling lock debugging due to kernel taint [ 50.911189] Kernel panic - not syncing: panic_on_warn set ... [ 50.917071] CPU: 1 PID: 8025 Comm: syz-executor346 Tainted: G B 4.20.0+ #11 [ 50.925447] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.934780] Call Trace: [ 50.937364] dump_stack+0x1db/0x2d0 [ 50.940985] ? dump_stack_print_info.cold+0x20/0x20 [ 50.946012] panic+0x2cb/0x65c [ 50.949228] ? add_taint.cold+0x16/0x16 [ 50.953197] ? trace_hardirqs_on+0xb4/0x310 [ 50.957520] ? trace_hardirqs_on+0xb4/0x310 [ 50.961833] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 50.966493] end_report+0x47/0x4f [ 50.969944] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 50.974592] kasan_report.cold+0xe/0x40 [ 50.978552] ? __sanitizer_cov_trace_const_cmp2+0x11/0x20 [ 50.984104] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 50.988777] __asan_report_store8_noabort+0x17/0x20 [ 50.993795] __xfrm_policy_unlink+0x9ec/0xa00 [ 50.998283] ? xfrm_policy_walk_done+0x360/0x360 [ 51.003021] ? xfrm_policy_byid+0x4a0/0x4a0 [ 51.007320] ? refcount_inc_checked+0x2b/0x70 [ 51.011837] ? __xfrm_policy_link+0x220/0x2f0 [ 51.016316] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 51.022192] xfrm_policy_insert+0x223/0x910 [ 51.026521] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 51.031702] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 51.036880] pfkey_spdadd+0x111a/0x19a0 [ 51.040838] ? pfkey_spddelete+0x1090/0x1090 [ 51.045227] ? pfkey_spddelete+0x1090/0x1090 [ 51.049618] pfkey_process+0x6d2/0x810 [ 51.053500] ? pfkey_send_new_mapping+0x11f0/0x11f0 [ 51.058514] ? copyin+0xb5/0x100 [ 51.061869] ? aa_sk_perm+0x234/0x8e0 [ 51.065653] pfkey_sendmsg+0x5bb/0xfc0 [ 51.069536] ? pfkey_spdget+0xa50/0xa50 [ 51.073506] ? apparmor_socket_sendmsg+0x2a/0x30 [ 51.078246] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.083783] ? security_socket_sendmsg+0x93/0xc0 [ 51.088534] ? pfkey_spdget+0xa50/0xa50 [ 51.092495] sock_sendmsg+0xdd/0x130 [ 51.096318] ___sys_sendmsg+0x7ec/0x910 [ 51.100289] ? copy_msghdr_from_user+0x570/0x570 [ 51.105024] ? __handle_mm_fault+0x955/0x55a0 [ 51.109511] ? add_lock_to_list.isra.0+0x450/0x450 [ 51.114443] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 51.119283] ? check_preemption_disabled+0x48/0x290 [ 51.124295] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.129827] ? __fget_light+0x2db/0x420 [ 51.133790] ? fget_raw+0x20/0x20 [ 51.137224] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 51.142496] ? rcu_read_unlock_special+0x380/0x380 [ 51.147416] ? __fdget+0x1b/0x20 [ 51.150762] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 51.156276] ? sockfd_lookup_light+0xc2/0x160 [ 51.160750] __sys_sendmsg+0x112/0x270 [ 51.164624] ? __ia32_sys_shutdown+0x80/0x80 [ 51.169030] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.174396] ? trace_hardirqs_off_caller+0x300/0x300 [ 51.179488] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.184240] __x64_sys_sendmsg+0x78/0xb0 [ 51.188318] do_syscall_64+0x1a3/0x800 [ 51.192184] ? syscall_return_slowpath+0x5f0/0x5f0 [ 51.197096] ? prepare_exit_to_usermode+0x232/0x3b0 [ 51.202109] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 51.206961] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.212129] RIP: 0033:0x441cb9 [ 51.215313] 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 [ 51.234193] RSP: 002b:00007ffc7bbf24f8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 51.241888] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441cb9 [ 51.249165] RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 [ 51.256409] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 51.263669] R10: 0000000000000000 R11: 0000000000000217 R12: 000000000000000e [ 51.270994] R13: 000000000000c429 R14: 0000000000000000 R15: 0000000000000000 [ 51.279124] Kernel Offset: disabled [ 51.282746] Rebooting in 86400 seconds..