[ 47.348253] audit: type=1800 audit(1546995297.257:30): pid=8298 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 periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 51.655444] kauditd_printk_skb: 4 callbacks suppressed [ 51.655459] audit: type=1400 audit(1546995301.587:35): avc: denied { map } for pid=8471 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.101' (ECDSA) to the list of known hosts. [ 58.475308] audit: type=1400 audit(1546995308.407:36): avc: denied { map } for pid=8483 comm="syz-executor510" path="/root/syz-executor510623448" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 58.513358] IPVS: ftp: loaded support on port[0] = 21 [ 58.515030] IPVS: ftp: loaded support on port[0] = 21 [ 58.531711] IPVS: ftp: loaded support on port[0] = 21 [ 58.535666] IPVS: ftp: loaded support on port[0] = 21 [ 58.542393] IPVS: ftp: loaded support on port[0] = 21 [ 58.545504] 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 [ 59.304691] ================================================================== [ 59.312208] BUG: KASAN: use-after-free in __xfrm_policy_unlink+0x9ec/0xa00 [ 59.319226] Write of size 8 at addr ffff88808d963b10 by task syz-executor510/8695 [ 59.326843] [ 59.328523] CPU: 1 PID: 8695 Comm: syz-executor510 Not tainted 5.0.0-rc1+ #15 [ 59.335796] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 59.345150] Call Trace: [ 59.347759] dump_stack+0x1db/0x2d0 executing program executing program executing program executing program executing program [ 59.351397] ? dump_stack_print_info.cold+0x20/0x20 [ 59.356468] ? find_held_lock+0x35/0x120 [ 59.360542] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 59.365243] print_address_description.cold+0x7c/0x20d [ 59.370533] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 59.375210] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 59.379889] kasan_report.cold+0x1b/0x40 [ 59.383966] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 59.388654] __asan_report_store8_noabort+0x17/0x20 [ 59.393674] __xfrm_policy_unlink+0x9ec/0xa00 [ 59.398183] ? xfrm_policy_walk_done+0x360/0x360 [ 59.402954] ? __fib6_clean_all+0x300/0x430 [ 59.407297] ? xfrm_policy_byid+0x4a0/0x4a0 [ 59.411630] ? fib6_clean_tree+0x340/0x340 [ 59.415878] ? ipv6_route_yield+0x220/0x220 [ 59.420212] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 59.426120] xfrm_policy_insert+0x223/0x910 [ 59.430475] ? __fib6_clean_all+0x430/0x430 [ 59.434804] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 59.440033] ? copy_from_user_policy+0x110/0x2b0 [ 59.444841] ? xfrm_policy_construct+0x471/0x660 [ 59.449607] xfrm_add_policy+0x2a1/0x6c0 [ 59.453680] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.459226] ? xfrm_policy_construct+0x660/0x660 [ 59.463988] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.469556] ? __nla_parse+0x12a/0x340 [ 59.473457] ? nla_parse+0x45/0x60 [ 59.477033] ? xfrm_policy_construct+0x660/0x660 [ 59.481813] xfrm_user_rcv_msg+0x458/0x8d0 [ 59.486067] ? xfrm_dump_sa_done+0xf0/0xf0 [ 59.490352] ? xfrm_netlink_rcv+0x61/0x90 [ 59.494546] ? __mutex_lock+0x622/0x1670 [ 59.498651] netlink_rcv_skb+0x17d/0x410 [ 59.502722] ? xfrm_dump_sa_done+0xf0/0xf0 [ 59.506970] ? netlink_ack+0xba0/0xba0 [ 59.510877] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 59.516181] xfrm_netlink_rcv+0x70/0x90 [ 59.520170] netlink_unicast+0x574/0x770 [ 59.524259] ? netlink_attachskb+0x980/0x980 [ 59.528678] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.534226] netlink_sendmsg+0xa05/0xf90 [ 59.538294] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 59.543849] ? netlink_unicast+0x770/0x770 [ 59.548101] ? selinux_socket_sendmsg+0x36/0x40 [ 59.552789] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.558337] ? security_socket_sendmsg+0x93/0xc0 [ 59.563099] ? netlink_unicast+0x770/0x770 [ 59.567350] sock_sendmsg+0xdd/0x130 [ 59.571081] ___sys_sendmsg+0x7ec/0x910 [ 59.575081] ? copy_msghdr_from_user+0x570/0x570 [ 59.579849] ? find_held_lock+0x35/0x120 [ 59.583942] ? __fd_install+0x2a0/0x8c0 [ 59.587929] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.593495] ? lock_downgrade+0x910/0x910 [ 59.597654] ? kasan_check_read+0x11/0x20 [ 59.601811] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.607357] ? __fget_light+0x2db/0x420 [ 59.611342] ? fget_raw+0x20/0x20 [ 59.614805] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.620363] ? __fdget+0x1b/0x20 [ 59.623751] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 59.629309] ? sockfd_lookup_light+0xc2/0x160 [ 59.633819] __sys_sendmsg+0x112/0x270 [ 59.637717] ? __ia32_sys_shutdown+0x80/0x80 [ 59.642152] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.647530] ? trace_hardirqs_off_caller+0x300/0x300 [ 59.652659] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 59.657432] __x64_sys_sendmsg+0x78/0xb0 [ 59.661505] do_syscall_64+0x1a3/0x800 [ 59.665417] ? syscall_return_slowpath+0x5f0/0x5f0 [ 59.670359] ? prepare_exit_to_usermode+0x232/0x3b0 [ 59.675393] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 59.680252] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.685465] RIP: 0033:0x442899 [ 59.688666] 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 [ 59.707569] RSP: 002b:00007ffc15826be8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 59.715423] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442899 [ 59.722711] RDX: 0000000000000000 RSI: 000000002014f000 RDI: 0000000000000004 [ 59.730011] RBP: 0000000000000000 R08: 0000000000000024 R09: 0000000000000024 [ 59.737296] R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000023 [ 59.744570] R13: 000000000000e776 R14: 0000000000000000 R15: 0000000000000000 [ 59.751853] [ 59.753488] Allocated by task 8684: [ 59.757129] save_stack+0x45/0xd0 [ 59.760603] kasan_kmalloc+0xcf/0xe0 [ 59.764323] kmem_cache_alloc_trace+0x151/0x760 [ 59.769011] xfrm_policy_alloc+0xfb/0x530 [ 59.773169] xfrm_policy_construct+0x30/0x660 [ 59.777674] xfrm_add_policy+0x20a/0x6c0 [ 59.781742] xfrm_user_rcv_msg+0x458/0x8d0 [ 59.785995] netlink_rcv_skb+0x17d/0x410 [ 59.790073] xfrm_netlink_rcv+0x70/0x90 [ 59.794058] netlink_unicast+0x574/0x770 [ 59.798131] netlink_sendmsg+0xa05/0xf90 [ 59.802200] sock_sendmsg+0xdd/0x130 [ 59.805917] ___sys_sendmsg+0x7ec/0x910 [ 59.809914] __sys_sendmsg+0x112/0x270 [ 59.814218] __x64_sys_sendmsg+0x78/0xb0 [ 59.818287] do_syscall_64+0x1a3/0x800 [ 59.822182] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.827388] [ 59.829037] Freed by task 8495: [ 59.832327] save_stack+0x45/0xd0 [ 59.835788] __kasan_slab_free+0x102/0x150 [ 59.840046] kasan_slab_free+0xe/0x10 [ 59.843865] kfree+0xcf/0x230 [ 59.847462] xfrm_policy_destroy_rcu+0x48/0x60 [ 59.852066] rcu_process_callbacks+0xc4a/0x1680 [ 59.856755] __do_softirq+0x30b/0xb11 [ 59.860548] [ 59.862197] The buggy address belongs to the object at ffff88808d963b00 [ 59.862197] which belongs to the cache kmalloc-1k of size 1024 [ 59.874872] The buggy address is located 16 bytes inside of [ 59.874872] 1024-byte region [ffff88808d963b00, ffff88808d963f00) [ 59.886752] The buggy address belongs to the page: [ 59.891703] page:ffffea0002365880 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 59.901684] flags: 0x1fffc0000010200(slab|head) [ 59.906373] raw: 01fffc0000010200 ffffea0002369888 ffffea0001f8f088 ffff88812c3f0ac0 [ 59.914261] raw: 0000000000000000 ffff88808d962000 0000000100000007 0000000000000000 [ 59.922140] page dumped because: kasan: bad access detected [ 59.927848] [ 59.929477] Memory state around the buggy address: [ 59.934416] ffff88808d963a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.941775] ffff88808d963a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 59.949140] >ffff88808d963b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.956495] ^ [ 59.960394] ffff88808d963b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.967755] ffff88808d963c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.975114] ================================================================== [ 59.982473] Disabling lock debugging due to kernel taint [ 59.987973] Kernel panic - not syncing: panic_on_warn set ... [ 59.993877] CPU: 1 PID: 8695 Comm: syz-executor510 Tainted: G B 5.0.0-rc1+ #15 [ 60.002539] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 60.011896] Call Trace: [ 60.014491] dump_stack+0x1db/0x2d0 [ 60.018135] ? dump_stack_print_info.cold+0x20/0x20 [ 60.023164] panic+0x2cb/0x65c [ 60.026384] ? add_taint.cold+0x16/0x16 [ 60.030384] ? trace_hardirqs_on+0xb4/0x310 [ 60.034707] ? trace_hardirqs_on+0xb4/0x310 [ 60.039050] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 60.043747] end_report+0x47/0x4f [ 60.047207] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 60.051881] kasan_report.cold+0xe/0x40 [ 60.055859] ? __xfrm_policy_unlink+0x9ec/0xa00 [ 60.060536] __asan_report_store8_noabort+0x17/0x20 [ 60.065558] __xfrm_policy_unlink+0x9ec/0xa00 [ 60.070071] ? xfrm_policy_walk_done+0x360/0x360 [ 60.074830] ? __fib6_clean_all+0x300/0x430 [ 60.079158] ? xfrm_policy_byid+0x4a0/0x4a0 [ 60.083485] ? fib6_clean_tree+0x340/0x340 [ 60.087729] ? ipv6_route_yield+0x220/0x220 [ 60.092057] ? xfrm_pol_inexact_addr_use_any_list+0x1f0/0x1f0 [ 60.097954] xfrm_policy_insert+0x223/0x910 [ 60.102295] ? __fib6_clean_all+0x430/0x430 [ 60.106636] ? xfrm_policy_inexact_insert+0xda0/0xda0 [ 60.111832] ? copy_from_user_policy+0x110/0x2b0 [ 60.116597] ? xfrm_policy_construct+0x471/0x660 [ 60.121372] xfrm_add_policy+0x2a1/0x6c0 [ 60.125442] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 60.130985] ? xfrm_policy_construct+0x660/0x660 [ 60.135773] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 60.141334] ? __nla_parse+0x12a/0x340 [ 60.145228] ? nla_parse+0x45/0x60 [ 60.148788] ? xfrm_policy_construct+0x660/0x660 [ 60.153553] xfrm_user_rcv_msg+0x458/0x8d0 [ 60.157792] ? xfrm_dump_sa_done+0xf0/0xf0 [ 60.162067] ? xfrm_netlink_rcv+0x61/0x90 [ 60.166224] ? __mutex_lock+0x622/0x1670 [ 60.170312] netlink_rcv_skb+0x17d/0x410 [ 60.174404] ? xfrm_dump_sa_done+0xf0/0xf0 [ 60.178644] ? netlink_ack+0xba0/0xba0 [ 60.182547] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 60.187835] xfrm_netlink_rcv+0x70/0x90 [ 60.191819] netlink_unicast+0x574/0x770 [ 60.195889] ? netlink_attachskb+0x980/0x980 [ 60.200304] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 60.205876] netlink_sendmsg+0xa05/0xf90 [ 60.209941] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 60.215488] ? netlink_unicast+0x770/0x770 [ 60.219754] ? selinux_socket_sendmsg+0x36/0x40 [ 60.224429] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 60.229971] ? security_socket_sendmsg+0x93/0xc0 [ 60.234744] ? netlink_unicast+0x770/0x770 [ 60.238981] sock_sendmsg+0xdd/0x130 [ 60.242715] ___sys_sendmsg+0x7ec/0x910 [ 60.246710] ? copy_msghdr_from_user+0x570/0x570 [ 60.251477] ? find_held_lock+0x35/0x120 [ 60.255548] ? __fd_install+0x2a0/0x8c0 [ 60.259551] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 60.265122] ? lock_downgrade+0x910/0x910 [ 60.269278] ? kasan_check_read+0x11/0x20 [ 60.273431] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 60.278971] ? __fget_light+0x2db/0x420 [ 60.282954] ? fget_raw+0x20/0x20 [ 60.286434] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 60.291979] ? __fdget+0x1b/0x20 [ 60.295397] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 60.300938] ? sockfd_lookup_light+0xc2/0x160 [ 60.305441] __sys_sendmsg+0x112/0x270 [ 60.309335] ? __ia32_sys_shutdown+0x80/0x80 [ 60.313759] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.319134] ? trace_hardirqs_off_caller+0x300/0x300 [ 60.324261] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 60.329056] __x64_sys_sendmsg+0x78/0xb0 [ 60.333120] do_syscall_64+0x1a3/0x800 [ 60.337028] ? syscall_return_slowpath+0x5f0/0x5f0 [ 60.341966] ? prepare_exit_to_usermode+0x232/0x3b0 [ 60.346998] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 60.351876] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.357103] RIP: 0033:0x442899 [ 60.360317] 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 [ 60.379216] RSP: 002b:00007ffc15826be8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 60.386940] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442899 [ 60.394213] RDX: 0000000000000000 RSI: 000000002014f000 RDI: 0000000000000004 [ 60.401533] RBP: 0000000000000000 R08: 0000000000000024 R09: 0000000000000024 [ 60.408823] R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000023 [ 60.416094] R13: 000000000000e776 R14: 0000000000000000 R15: 0000000000000000 [ 60.424324] Kernel Offset: disabled [ 60.427956] Rebooting in 86400 seconds..