[ 48.132909] audit: type=1800 audit(1547575662.588:30): pid=8259 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?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: [ 54.221542] kauditd_printk_skb: 4 callbacks suppressed [ 54.221555] audit: type=1400 audit(1547575668.718:35): avc: denied { map } for pid=8434 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.70' (ECDSA) to the list of known hosts. [ 61.148485] audit: type=1400 audit(1547575675.638:36): avc: denied { map } for pid=8446 comm="syz-executor204" path="/root/syz-executor204556144" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 61.174534] IPVS: ftp: loaded support on port[0] = 21 [ 61.184938] IPVS: ftp: loaded support on port[0] = 21 [ 61.186064] IPVS: ftp: loaded support on port[0] = 21 [ 61.197645] IPVS: ftp: loaded support on port[0] = 21 [ 61.198383] IPVS: ftp: loaded support on port[0] = 21 [ 61.204102] 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 [ 61.775812] ================================================================== [ 61.783495] BUG: KASAN: use-after-free in __xfrm_policy_unlink+0x9ec/0xa00 [ 61.790516] Write of size 8 at addr ffff888080e72d90 by task syz-executor204/8604 [ 61.798131] [ 61.799770] CPU: 1 PID: 8604 Comm: syz-executor204 Not tainted 5.0.0-rc2+ #27 [ 61.807043] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.816398] Call Trace: [ 61.819012] dump_stack+0x1db/0x2d0 [ 61.822651] ? dump_stack_print_info.cold+0x20/0x20 [ 61.827706] ? find_held_lock+0x35/0x120 [ 61.831780] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 61.836468] print_address_description.cold+0x7c/0x20d [ 61.841762] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 61.846441] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 61.851150] kasan_report.cold+0x1b/0x40 [ 61.855242] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 61.859928] __asan_report_store8_noabort+0x17/0x20 [ 61.864954] __xfrm_policy_unlink+0x9ec/0xa00 [ 61.869468] ? xfrm_policy_walk_done+0x360/0x360 [ 61.874236] ? __fib6_clean_all+0x300/0x430 [ 61.878569] ? xfrm_policy_byid+0x4a0/0x4a0 [ 61.882903] ? fib6_clean_tree+0x340/0x340 [ 61.887151] ? ipv6_route_yield+0x220/0x220 [ 61.891485] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 61.897387] xfrm_policy_insert+0x223/0x910 [ 61.901730] ? __fib6_clean_all+0x430/0x430 [ 61.906064] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 61.911270] ? copy_from_user_policy+0x110/0x2b0 [ 61.916037] ? xfrm_policy_construct+0x471/0x660 [ 61.920806] xfrm_add_policy+0x2a1/0x6c0 [ 61.924893] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 61.930448] ? xfrm_policy_construct+0x660/0x660 [ 61.935218] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 61.940768] ? __nla_parse+0x12a/0x340 [ 61.944674] ? nla_parse+0x45/0x60 [ 61.948243] ? xfrm_policy_construct+0x660/0x660 [ 61.953013] xfrm_user_rcv_msg+0x458/0x8d0 [ 61.957264] ? xfrm_dump_sa_done+0xf0/0xf0 [ 61.961513] ? xfrm_netlink_rcv+0x61/0x90 [ 61.965678] ? __mutex_lock+0x622/0x1670 [ 61.969803] netlink_rcv_skb+0x17d/0x410 [ 61.973888] ? xfrm_dump_sa_done+0xf0/0xf0 [ 61.978140] ? netlink_ack+0xba0/0xba0 [ 61.982040] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 61.987342] xfrm_netlink_rcv+0x70/0x90 [ 61.991333] netlink_unicast+0x574/0x770 [ 61.995413] ? netlink_attachskb+0x980/0x980 [ 61.999855] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.005410] netlink_sendmsg+0xa05/0xf90 [ 62.009497] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 62.015056] ? netlink_unicast+0x770/0x770 [ 62.019311] ? selinux_socket_sendmsg+0x36/0x40 [ 62.023994] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.029543] ? security_socket_sendmsg+0x93/0xc0 [ 62.034309] ? netlink_unicast+0x770/0x770 [ 62.038558] sock_sendmsg+0xdd/0x130 [ 62.042302] ___sys_sendmsg+0x7ec/0x910 [ 62.046290] ? copy_msghdr_from_user+0x570/0x570 [ 62.051055] ? __handle_mm_fault+0x955/0x55a0 [ 62.055565] ? add_lock_to_list.isra.0+0x450/0x450 [ 62.060522] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 62.065372] ? check_preemption_disabled+0x48/0x290 [ 62.070407] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.075959] ? __fget_light+0x2db/0x420 [ 62.079948] ? fget_raw+0x20/0x20 [ 62.083424] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 62.088726] ? rcu_read_unlock_special+0x380/0x380 [ 62.093677] ? __fdget+0x1b/0x20 [ 62.097068] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 62.102622] ? sockfd_lookup_light+0xc2/0x160 [ 62.107133] __sys_sendmsg+0x112/0x270 [ 62.111040] ? __ia32_sys_shutdown+0x80/0x80 [ 62.115453] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.121092] ? vmacache_update+0x114/0x140 [ 62.125357] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.130741] ? trace_hardirqs_off_caller+0x300/0x300 [ 62.135864] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.140639] __x64_sys_sendmsg+0x78/0xb0 [ 62.144726] do_syscall_64+0x1a3/0x800 [ 62.148630] ? syscall_return_slowpath+0x5f0/0x5f0 [ 62.153573] ? prepare_exit_to_usermode+0x232/0x3b0 [ 62.158623] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 62.163735] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.168915] RIP: 0033:0x442a39 [ 62.172094] 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 [ 62.190997] RSP: 002b:00007fff8d7fcc98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 62.198695] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442a39 [ 62.205950] RDX: 0000000000000000 RSI: 000000002014f000 RDI: 0000000000000003 [ 62.213199] RBP: 0000000000000000 R08: 0000000000000018 R09: 0000000000000018 [ 62.220452] R10: 0000000000000018 R11: 0000000000000246 R12: 0000000000000017 [ 62.227703] R13: 000000000000f12a R14: 0000000000000000 R15: 0000000000000000 [ 62.234965] [ 62.236573] Allocated by task 8593: [ 62.240190] save_stack+0x45/0xd0 [ 62.243625] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 62.248534] kasan_kmalloc+0x9/0x10 [ 62.252140] kmem_cache_alloc_trace+0x151/0x760 [ 62.256792] xfrm_policy_alloc+0xfb/0x530 [ 62.260923] xfrm_policy_construct+0x30/0x660 [ 62.265411] xfrm_add_policy+0x20a/0x6c0 [ 62.269455] xfrm_user_rcv_msg+0x458/0x8d0 [ 62.273676] netlink_rcv_skb+0x17d/0x410 [ 62.277726] xfrm_netlink_rcv+0x70/0x90 [ 62.281686] netlink_unicast+0x574/0x770 [ 62.285738] netlink_sendmsg+0xa05/0xf90 [ 62.289793] sock_sendmsg+0xdd/0x130 [ 62.293490] ___sys_sendmsg+0x7ec/0x910 [ 62.297447] __sys_sendmsg+0x112/0x270 [ 62.301323] __x64_sys_sendmsg+0x78/0xb0 [ 62.305371] do_syscall_64+0x1a3/0x800 [ 62.309250] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.314418] [ 62.316031] Freed by task 9: [ 62.319038] save_stack+0x45/0xd0 [ 62.322472] __kasan_slab_free+0x102/0x150 [ 62.326695] kasan_slab_free+0xe/0x10 [ 62.330476] kfree+0xcf/0x230 [ 62.333563] xfrm_policy_destroy_rcu+0x48/0x60 [ 62.338129] rcu_process_callbacks+0xc4a/0x1680 [ 62.342782] __do_softirq+0x30b/0xb11 [ 62.346555] [ 62.348165] The buggy address belongs to the object at ffff888080e72d80 [ 62.348165] which belongs to the cache kmalloc-1k of size 1024 [ 62.360844] The buggy address is located 16 bytes inside of [ 62.360844] 1024-byte region [ffff888080e72d80, ffff888080e73180) [ 62.372705] The buggy address belongs to the page: [ 62.377620] page:ffffea0002039c80 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 62.387569] flags: 0x1fffc0000010200(slab|head) [ 62.392225] raw: 01fffc0000010200 ffffea00024ede88 ffffea0002500c08 ffff88812c3f0ac0 [ 62.400202] raw: 0000000000000000 ffff888080e72000 0000000100000007 0000000000000000 [ 62.408064] page dumped because: kasan: bad access detected [ 62.413748] [ 62.415353] Memory state around the buggy address: [ 62.420266] ffff888080e72c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.427610] ffff888080e72d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 62.434951] >ffff888080e72d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.442284] ^ [ 62.446152] ffff888080e72e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.453503] ffff888080e72e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.460843] ================================================================== [ 62.468309] Disabling lock debugging due to kernel taint executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 62.473814] Kernel panic - not syncing: panic_on_warn set ... [ 62.479694] CPU: 1 PID: 8604 Comm: syz-executor204 Tainted: G B 5.0.0-rc2+ #27 [ 62.488527] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.497863] Call Trace: [ 62.500441] dump_stack+0x1db/0x2d0 [ 62.504048] ? dump_stack_print_info.cold+0x20/0x20 [ 62.509052] panic+0x2cb/0x65c [ 62.512224] ? add_taint.cold+0x16/0x16 [ 62.516183] ? trace_hardirqs_on+0xb4/0x310 [ 62.520492] ? trace_hardirqs_on+0xb4/0x310 [ 62.524916] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 62.529582] end_report+0x47/0x4f [ 62.533027] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 62.537674] kasan_report.cold+0xe/0x40 [ 62.541633] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 62.546281] __asan_report_store8_noabort+0x17/0x20 [ 62.551279] __xfrm_policy_unlink+0x9ec/0xa00 [ 62.555760] ? xfrm_policy_walk_done+0x360/0x360 [ 62.560510] ? __fib6_clean_all+0x300/0x430 [ 62.564811] ? xfrm_policy_byid+0x4a0/0x4a0 [ 62.569114] ? fib6_clean_tree+0x340/0x340 [ 62.573337] ? ipv6_route_yield+0x220/0x220 [ 62.577642] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 62.583512] xfrm_policy_insert+0x223/0x910 [ 62.587817] ? __fib6_clean_all+0x430/0x430 [ 62.592120] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 62.597290] ? copy_from_user_policy+0x110/0x2b0 [ 62.602025] ? xfrm_policy_construct+0x471/0x660 [ 62.606764] xfrm_add_policy+0x2a1/0x6c0 [ 62.610806] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.616322] ? xfrm_policy_construct+0x660/0x660 [ 62.621058] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.626708] ? __nla_parse+0x12a/0x340 [ 62.630581] ? nla_parse+0x45/0x60 [ 62.634103] ? xfrm_policy_construct+0x660/0x660 [ 62.638841] xfrm_user_rcv_msg+0x458/0x8d0 [ 62.643059] ? xfrm_dump_sa_done+0xf0/0xf0 [ 62.647280] ? xfrm_netlink_rcv+0x61/0x90 [ 62.651424] ? __mutex_lock+0x622/0x1670 [ 62.655484] netlink_rcv_skb+0x17d/0x410 [ 62.659554] ? xfrm_dump_sa_done+0xf0/0xf0 [ 62.663816] ? netlink_ack+0xba0/0xba0 [ 62.667730] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 62.673029] xfrm_netlink_rcv+0x70/0x90 [ 62.677018] netlink_unicast+0x574/0x770 [ 62.681096] ? netlink_attachskb+0x980/0x980 [ 62.685514] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.691063] netlink_sendmsg+0xa05/0xf90 [ 62.695132] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 62.700700] ? netlink_unicast+0x770/0x770 [ 62.704950] ? selinux_socket_sendmsg+0x36/0x40 [ 62.709625] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.715186] ? security_socket_sendmsg+0x93/0xc0 [ 62.719973] ? netlink_unicast+0x770/0x770 [ 62.724242] sock_sendmsg+0xdd/0x130 [ 62.727969] ___sys_sendmsg+0x7ec/0x910 [ 62.731959] ? copy_msghdr_from_user+0x570/0x570 [ 62.736726] ? __handle_mm_fault+0x955/0x55a0 [ 62.741242] ? add_lock_to_list.isra.0+0x450/0x450 [ 62.746181] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 62.751040] ? check_preemption_disabled+0x48/0x290 [ 62.756097] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.761641] ? __fget_light+0x2db/0x420 [ 62.765636] ? fget_raw+0x20/0x20 [ 62.769114] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 62.774419] ? rcu_read_unlock_special+0x380/0x380 [ 62.779366] ? __fdget+0x1b/0x20 [ 62.782782] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 62.788329] ? sockfd_lookup_light+0xc2/0x160 [ 62.792841] __sys_sendmsg+0x112/0x270 [ 62.796740] ? __ia32_sys_shutdown+0x80/0x80 [ 62.801156] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 62.806720] ? vmacache_update+0x114/0x140 [ 62.810976] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.816363] ? trace_hardirqs_off_caller+0x300/0x300 [ 62.821478] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.826246] __x64_sys_sendmsg+0x78/0xb0 [ 62.830408] do_syscall_64+0x1a3/0x800 [ 62.834304] ? syscall_return_slowpath+0x5f0/0x5f0 [ 62.839246] ? prepare_exit_to_usermode+0x232/0x3b0 [ 62.844273] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 62.849135] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.854328] RIP: 0033:0x442a39 [ 62.857527] 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 [ 62.876437] RSP: 002b:00007fff8d7fcc98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 62.884146] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442a39 [ 62.891430] RDX: 0000000000000000 RSI: 000000002014f000 RDI: 0000000000000003 [ 62.898717] RBP: 0000000000000000 R08: 0000000000000018 R09: 0000000000000018 [ 62.905993] R10: 0000000000000018 R11: 0000000000000246 R12: 0000000000000017 [ 62.913261] R13: 000000000000f12a R14: 0000000000000000 R15: 0000000000000000 [ 62.921566] Kernel Offset: disabled [ 62.925189] Rebooting in 86400 seconds..