[ 32.824250] audit: type=1800 audit(1568998663.599:33): pid=6833 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 32.851431] audit: type=1800 audit(1568998663.599:34): pid=6833 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 38.242680] random: sshd: uninitialized urandom read (32 bytes read) [ 38.627656] audit: type=1400 audit(1568998669.399:35): avc: denied { map } for pid=7007 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 [ 38.678574] random: sshd: uninitialized urandom read (32 bytes read) [ 39.239419] random: sshd: uninitialized urandom read (32 bytes read) [ 39.433289] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.1.18' (ECDSA) to the list of known hosts. [ 45.009369] random: sshd: uninitialized urandom read (32 bytes read) [ 45.137866] audit: type=1400 audit(1568998675.909:36): avc: denied { map } for pid=7019 comm="syz-executor004" path="/root/syz-executor004573542" 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 [ 45.371072] IPVS: ftp: loaded support on port[0] = 21 [ 46.233759] chnl_net:caif_netlink_parms(): no params data found [ 46.268141] bridge0: port 1(bridge_slave_0) entered blocking state [ 46.276120] bridge0: port 1(bridge_slave_0) entered disabled state [ 46.284732] device bridge_slave_0 entered promiscuous mode [ 46.293715] bridge0: port 2(bridge_slave_1) entered blocking state [ 46.302167] bridge0: port 2(bridge_slave_1) entered disabled state [ 46.311561] device bridge_slave_1 entered promiscuous mode [ 46.328222] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 46.338278] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 46.357355] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 46.365480] team0: Port device team_slave_0 added [ 46.371103] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 46.378189] team0: Port device team_slave_1 added [ 46.383597] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready [ 46.391258] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready [ 46.472160] device hsr_slave_0 entered promiscuous mode [ 46.520523] device hsr_slave_1 entered promiscuous mode [ 46.590742] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready [ 46.597785] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready [ 46.612930] bridge0: port 2(bridge_slave_1) entered blocking state [ 46.619357] bridge0: port 2(bridge_slave_1) entered forwarding state [ 46.626437] bridge0: port 1(bridge_slave_0) entered blocking state [ 46.632856] bridge0: port 1(bridge_slave_0) entered forwarding state [ 46.662257] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 46.668368] 8021q: adding VLAN 0 to HW filter on device bond0 [ 46.677534] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 46.686838] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 46.705634] bridge0: port 1(bridge_slave_0) entered disabled state [ 46.713061] bridge0: port 2(bridge_slave_1) entered disabled state [ 46.724955] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 46.731359] 8021q: adding VLAN 0 to HW filter on device team0 [ 46.739848] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 46.748288] bridge0: port 1(bridge_slave_0) entered blocking state [ 46.754681] bridge0: port 1(bridge_slave_0) entered forwarding state [ 46.770444] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 46.778191] bridge0: port 2(bridge_slave_1) entered blocking state [ 46.784614] bridge0: port 2(bridge_slave_1) entered forwarding state [ 46.792244] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 46.801328] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 46.809822] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 46.819786] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 46.829959] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 46.839203] IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready [ 46.846665] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 46.859626] IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready executing program [ 46.870636] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 46.971398] ================================================================== [ 46.979156] BUG: KASAN: use-after-free in tcp_init_tso_segs+0x1ae/0x200 [ 46.985904] Read of size 2 at addr ffff8880904127f0 by task syz-executor004/7020 [ 46.993420] [ 46.995035] CPU: 0 PID: 7020 Comm: syz-executor004 Not tainted 4.14.145 #0 [ 47.002031] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.011390] Call Trace: [ 47.013987] dump_stack+0x138/0x197 [ 47.017616] ? tcp_init_tso_segs+0x1ae/0x200 [ 47.022019] print_address_description.cold+0x7c/0x1dc [ 47.027323] ? tcp_init_tso_segs+0x1ae/0x200 [ 47.031746] kasan_report.cold+0xa9/0x2af [ 47.036137] __asan_report_load2_noabort+0x14/0x20 [ 47.041064] tcp_init_tso_segs+0x1ae/0x200 [ 47.045291] ? tcp_tso_segs+0x7d/0x1c0 [ 47.049165] tcp_write_xmit+0x15e/0x4960 [ 47.053224] ? tcp_v4_md5_lookup+0x23/0x30 [ 47.057454] ? tcp_established_options+0x2c5/0x420 [ 47.062383] ? tcp_current_mss+0x1dc/0x2f0 [ 47.066618] ? __alloc_skb+0x3ee/0x500 [ 47.070491] __tcp_push_pending_frames+0xa6/0x260 [ 47.075404] tcp_send_fin+0x17e/0xc40 [ 47.079205] tcp_close+0xcc8/0xfb0 [ 47.082727] ? __sock_release+0x89/0x2b0 [ 47.087816] ? ip_mc_drop_socket+0x1d6/0x230 [ 47.093686] inet_release+0xec/0x1c0 [ 47.097388] __sock_release+0xce/0x2b0 [ 47.101256] ? __sock_release+0x2b0/0x2b0 [ 47.105413] sock_close+0x1b/0x30 [ 47.108846] __fput+0x275/0x7a0 [ 47.112116] ____fput+0x16/0x20 [ 47.115379] task_work_run+0x114/0x190 [ 47.119249] do_exit+0x7df/0x2c10 [ 47.122697] ? mm_update_next_owner+0x5d0/0x5d0 [ 47.127504] ? up_read+0x1a/0x40 [ 47.130872] ? __do_page_fault+0x358/0xb80 [ 47.135460] do_group_exit+0x111/0x330 [ 47.139365] SyS_exit_group+0x1d/0x20 [ 47.143154] ? do_group_exit+0x330/0x330 [ 47.147205] do_syscall_64+0x1e8/0x640 [ 47.151110] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.155948] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.161118] RIP: 0033:0x440618 [ 47.164290] RSP: 002b:00007ffd407503b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 47.171981] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440618 [ 47.179242] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 [ 47.186759] RBP: 00000000004c6970 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 47.194023] R10: 0000000020000802 R11: 0000000000000246 R12: 0000000000000001 [ 47.201280] R13: 00000000006d95e0 R14: 0000000000000000 R15: 0000000000000000 [ 47.208546] [ 47.210162] Allocated by task 7020: [ 47.213783] save_stack_trace+0x16/0x20 [ 47.217741] save_stack+0x45/0xd0 [ 47.221176] kasan_kmalloc+0xce/0xf0 [ 47.224866] kasan_slab_alloc+0xf/0x20 [ 47.228732] kmem_cache_alloc_node+0x144/0x780 [ 47.233300] __alloc_skb+0x9c/0x500 [ 47.236909] sk_stream_alloc_skb+0xb3/0x780 [ 47.241321] tcp_sendmsg_locked+0xf61/0x3200 [ 47.245724] tcp_sendmsg+0x30/0x50 [ 47.249258] inet_sendmsg+0x122/0x500 [ 47.253061] sock_sendmsg+0xce/0x110 [ 47.256755] SYSC_sendto+0x206/0x310 [ 47.261076] SyS_sendto+0x40/0x50 [ 47.264528] do_syscall_64+0x1e8/0x640 [ 47.268415] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.273607] [ 47.275242] Freed by task 7020: [ 47.278532] save_stack_trace+0x16/0x20 [ 47.282517] save_stack+0x45/0xd0 [ 47.286023] kasan_slab_free+0x75/0xc0 [ 47.289944] kmem_cache_free+0x83/0x2b0 [ 47.293920] kfree_skbmem+0x8d/0x120 [ 47.297633] __kfree_skb+0x1e/0x30 [ 47.301162] tcp_remove_empty_skb.part.0+0x231/0x2e0 [ 47.306284] tcp_sendmsg_locked+0x1ced/0x3200 [ 47.310799] tcp_sendmsg+0x30/0x50 [ 47.314399] inet_sendmsg+0x122/0x500 [ 47.318328] sock_sendmsg+0xce/0x110 [ 47.322100] SYSC_sendto+0x206/0x310 [ 47.325800] SyS_sendto+0x40/0x50 [ 47.329256] do_syscall_64+0x1e8/0x640 [ 47.333139] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.338312] [ 47.339948] The buggy address belongs to the object at ffff8880904127c0 [ 47.339948] which belongs to the cache skbuff_fclone_cache of size 472 [ 47.353289] The buggy address is located 48 bytes inside of [ 47.353289] 472-byte region [ffff8880904127c0, ffff888090412998) [ 47.365068] The buggy address belongs to the page: [ 47.370105] page:ffffea0002410480 count:1 mapcount:0 mapping:ffff888090412040 index:0x0 [ 47.378238] flags: 0x1fffc0000000100(slab) [ 47.382460] raw: 01fffc0000000100 ffff888090412040 0000000000000000 0000000100000006 [ 47.390412] raw: ffffea0002950ba0 ffff8880a9e1ce48 ffff88821b75f3c0 0000000000000000 [ 47.398793] page dumped because: kasan: bad access detected [ 47.404586] [ 47.406199] Memory state around the buggy address: [ 47.411132] ffff888090412680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.418491] ffff888090412700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.425855] >ffff888090412780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 47.433224] ^ [ 47.440242] ffff888090412800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.447597] ffff888090412880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.454945] ================================================================== [ 47.462306] Disabling lock debugging due to kernel taint [ 47.468091] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 47.475672] Kernel panic - not syncing: panic_on_warn set ... [ 47.475672] [ 47.483205] CPU: 1 PID: 7020 Comm: syz-executor004 Tainted: G B 4.14.145 #0 [ 47.491419] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.500756] Call Trace: [ 47.503332] dump_stack+0x138/0x197 [ 47.508767] ? tcp_init_tso_segs+0x1ae/0x200 [ 47.513187] panic+0x1f2/0x426 [ 47.516383] ? add_taint.cold+0x16/0x16 [ 47.520349] ? ___preempt_schedule+0x16/0x18 [ 47.524758] kasan_end_report+0x47/0x4f [ 47.528716] kasan_report.cold+0x130/0x2af [ 47.532949] __asan_report_load2_noabort+0x14/0x20 [ 47.537863] tcp_init_tso_segs+0x1ae/0x200 [ 47.542096] ? tcp_tso_segs+0x7d/0x1c0 [ 47.545963] tcp_write_xmit+0x15e/0x4960 [ 47.550784] ? tcp_v4_md5_lookup+0x23/0x30 [ 47.555003] ? tcp_established_options+0x2c5/0x420 [ 47.559941] ? tcp_current_mss+0x1dc/0x2f0 [ 47.564169] ? __alloc_skb+0x3ee/0x500 [ 47.568384] __tcp_push_pending_frames+0xa6/0x260 [ 47.573230] tcp_send_fin+0x17e/0xc40 [ 47.577021] tcp_close+0xcc8/0xfb0 [ 47.580555] ? __sock_release+0x89/0x2b0 [ 47.584598] ? ip_mc_drop_socket+0x1d6/0x230 [ 47.588992] inet_release+0xec/0x1c0 [ 47.592714] __sock_release+0xce/0x2b0 [ 47.596589] ? __sock_release+0x2b0/0x2b0 [ 47.600817] sock_close+0x1b/0x30 [ 47.604261] __fput+0x275/0x7a0 [ 47.607543] ____fput+0x16/0x20 [ 47.610806] task_work_run+0x114/0x190 [ 47.614673] do_exit+0x7df/0x2c10 [ 47.618106] ? mm_update_next_owner+0x5d0/0x5d0 [ 47.622772] ? up_read+0x1a/0x40 [ 47.626682] ? __do_page_fault+0x358/0xb80 [ 47.630949] do_group_exit+0x111/0x330 [ 47.634873] SyS_exit_group+0x1d/0x20 [ 47.638660] ? do_group_exit+0x330/0x330 [ 47.642707] do_syscall_64+0x1e8/0x640 [ 47.646590] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.651416] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.656588] RIP: 0033:0x440618 [ 47.659760] RSP: 002b:00007ffd407503b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 47.667471] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440618 [ 47.674725] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 [ 47.682038] RBP: 00000000004c6970 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 47.689290] R10: 0000000020000802 R11: 0000000000000246 R12: 0000000000000001 [ 47.696543] R13: 00000000006d95e0 R14: 0000000000000000 R15: 0000000000000000 [ 47.705647] Kernel Offset: disabled [ 47.709299] Rebooting in 86400 seconds..