Warning: Permanently added '10.128.0.62' (ECDSA) to the list of known hosts. [ 35.615547] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.732899] kauditd_printk_skb: 10 callbacks suppressed [ 35.732908] audit: type=1400 audit(1569024560.385:36): avc: denied { map } for pid=6836 comm="syz-executor894" path="/root/syz-executor894061929" 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 [ 35.767485] ================================================================== [ 35.775126] BUG: KASAN: use-after-free in tcp_init_tso_segs+0x1ae/0x200 [ 35.781872] Read of size 2 at addr ffff88809f872530 by task syz-executor894/6836 [ 35.789415] [ 35.791027] CPU: 0 PID: 6836 Comm: syz-executor894 Not tainted 4.14.145 #0 [ 35.798015] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.807349] Call Trace: [ 35.809922] dump_stack+0x138/0x197 [ 35.813531] ? tcp_init_tso_segs+0x1ae/0x200 [ 35.817919] print_address_description.cold+0x7c/0x1dc [ 35.823172] ? tcp_init_tso_segs+0x1ae/0x200 [ 35.827782] kasan_report.cold+0xa9/0x2af [ 35.831932] __asan_report_load2_noabort+0x14/0x20 [ 35.836853] tcp_init_tso_segs+0x1ae/0x200 [ 35.841068] ? tcp_tso_segs+0x7d/0x1c0 [ 35.844935] tcp_write_xmit+0x15e/0x4960 [ 35.848976] ? tcp_v6_md5_lookup+0x23/0x30 [ 35.853191] ? tcp_established_options+0x2c5/0x420 [ 35.858103] ? tcp_current_mss+0x1dc/0x2f0 [ 35.862320] ? __alloc_skb+0x3ee/0x500 [ 35.866194] __tcp_push_pending_frames+0xa6/0x260 [ 35.872076] tcp_send_fin+0x17e/0xc40 [ 35.875961] tcp_close+0xcc8/0xfb0 [ 35.879484] ? lock_acquire+0x16f/0x430 [ 35.883438] ? ip_mc_drop_socket+0x1d6/0x230 [ 35.887830] inet_release+0xec/0x1c0 [ 35.891577] inet6_release+0x53/0x80 [ 35.895269] __sock_release+0xce/0x2b0 [ 35.899188] ? __sock_release+0x2b0/0x2b0 [ 35.903313] sock_close+0x1b/0x30 [ 35.906747] __fput+0x275/0x7a0 [ 35.910005] ____fput+0x16/0x20 [ 35.913269] task_work_run+0x114/0x190 [ 35.917132] do_exit+0x7df/0x2c10 [ 35.920580] ? mm_update_next_owner+0x5d0/0x5d0 [ 35.925255] ? up_read+0x1a/0x40 [ 35.928619] ? __do_page_fault+0x358/0xb80 [ 35.932841] do_group_exit+0x111/0x330 [ 35.936715] SyS_exit_group+0x1d/0x20 [ 35.940492] ? do_group_exit+0x330/0x330 [ 35.944544] do_syscall_64+0x1e8/0x640 [ 35.948409] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.953232] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 35.958398] RIP: 0033:0x43ee58 [ 35.961575] RSP: 002b:00007ffefc3b9248 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.969289] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee58 [ 35.976536] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.983784] RBP: 00000000004be668 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.991031] R10: 0000000020008011 R11: 0000000000000246 R12: 0000000000000001 [ 35.998295] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.005563] [ 36.007196] Allocated by task 6836: [ 36.010807] save_stack_trace+0x16/0x20 [ 36.014769] save_stack+0x45/0xd0 [ 36.018198] kasan_kmalloc+0xce/0xf0 [ 36.021890] kasan_slab_alloc+0xf/0x20 [ 36.025752] kmem_cache_alloc_node+0x144/0x780 [ 36.030324] __alloc_skb+0x9c/0x500 [ 36.033926] sk_stream_alloc_skb+0xb3/0x780 [ 36.038220] tcp_sendmsg_locked+0xf61/0x3200 [ 36.042617] tcp_sendmsg+0x30/0x50 [ 36.046133] inet_sendmsg+0x122/0x500 [ 36.049921] sock_sendmsg+0xce/0x110 [ 36.053634] SYSC_sendto+0x206/0x310 [ 36.057327] SyS_sendto+0x40/0x50 [ 36.060758] do_syscall_64+0x1e8/0x640 [ 36.064629] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.069792] [ 36.071398] Freed by task 6836: [ 36.074656] save_stack_trace+0x16/0x20 [ 36.078608] save_stack+0x45/0xd0 [ 36.082039] kasan_slab_free+0x75/0xc0 [ 36.085902] kmem_cache_free+0x83/0x2b0 [ 36.090215] kfree_skbmem+0x8d/0x120 [ 36.093911] __kfree_skb+0x1e/0x30 [ 36.097573] tcp_remove_empty_skb.part.0+0x231/0x2e0 [ 36.102661] tcp_sendmsg_locked+0x1ced/0x3200 [ 36.107136] tcp_sendmsg+0x30/0x50 [ 36.110669] inet_sendmsg+0x122/0x500 [ 36.114460] sock_sendmsg+0xce/0x110 [ 36.118178] SYSC_sendto+0x206/0x310 [ 36.121884] SyS_sendto+0x40/0x50 [ 36.125320] do_syscall_64+0x1e8/0x640 [ 36.129189] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.134363] [ 36.135980] The buggy address belongs to the object at ffff88809f872500 [ 36.135980] which belongs to the cache skbuff_fclone_cache of size 472 [ 36.149309] The buggy address is located 48 bytes inside of [ 36.149309] 472-byte region [ffff88809f872500, ffff88809f8726d8) [ 36.161073] The buggy address belongs to the page: [ 36.165995] page:ffffea00027e1c80 count:1 mapcount:0 mapping:ffff88809f872000 index:0x0 [ 36.174116] flags: 0x1fffc0000000100(slab) [ 36.178331] raw: 01fffc0000000100 ffff88809f872000 0000000000000000 0000000100000006 [ 36.186188] raw: ffffea000210f020 ffff8880a9e1bd48 ffff8880a9e19a80 0000000000000000 [ 36.194041] page dumped because: kasan: bad access detected [ 36.199725] [ 36.201414] Memory state around the buggy address: [ 36.206317] ffff88809f872400: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc [ 36.213650] ffff88809f872480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.220986] >ffff88809f872500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.228328] ^ [ 36.233236] ffff88809f872580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.240580] ffff88809f872600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.247925] ================================================================== [ 36.255279] Disabling lock debugging due to kernel taint [ 36.261542] Kernel panic - not syncing: panic_on_warn set ... [ 36.261542] [ 36.269048] CPU: 0 PID: 6836 Comm: syz-executor894 Tainted: G B 4.14.145 #0 [ 36.277260] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.286592] Call Trace: [ 36.289164] dump_stack+0x138/0x197 [ 36.292793] ? tcp_init_tso_segs+0x1ae/0x200 [ 36.297188] panic+0x1f2/0x426 [ 36.300443] ? add_taint.cold+0x16/0x16 [ 36.304395] ? ___preempt_schedule+0x16/0x18 [ 36.308788] kasan_end_report+0x47/0x4f [ 36.312782] kasan_report.cold+0x130/0x2af [ 36.317022] __asan_report_load2_noabort+0x14/0x20 [ 36.321941] tcp_init_tso_segs+0x1ae/0x200 [ 36.326158] ? tcp_tso_segs+0x7d/0x1c0 [ 36.330032] tcp_write_xmit+0x15e/0x4960 [ 36.334089] ? tcp_v6_md5_lookup+0x23/0x30 [ 36.338312] ? tcp_established_options+0x2c5/0x420 [ 36.343218] ? tcp_current_mss+0x1dc/0x2f0 [ 36.347428] ? __alloc_skb+0x3ee/0x500 [ 36.352433] __tcp_push_pending_frames+0xa6/0x260 [ 36.357253] tcp_send_fin+0x17e/0xc40 [ 36.361033] tcp_close+0xcc8/0xfb0 [ 36.364550] ? lock_acquire+0x16f/0x430 [ 36.368524] ? ip_mc_drop_socket+0x1d6/0x230 [ 36.372907] inet_release+0xec/0x1c0 [ 36.376604] inet6_release+0x53/0x80 [ 36.380294] __sock_release+0xce/0x2b0 [ 36.384154] ? __sock_release+0x2b0/0x2b0 [ 36.388274] sock_close+0x1b/0x30 [ 36.391731] __fput+0x275/0x7a0 [ 36.394989] ____fput+0x16/0x20 [ 36.398244] task_work_run+0x114/0x190 [ 36.402115] do_exit+0x7df/0x2c10 [ 36.405545] ? mm_update_next_owner+0x5d0/0x5d0 [ 36.410188] ? up_read+0x1a/0x40 [ 36.413543] ? __do_page_fault+0x358/0xb80 [ 36.417752] do_group_exit+0x111/0x330 [ 36.421614] SyS_exit_group+0x1d/0x20 [ 36.425396] ? do_group_exit+0x330/0x330 [ 36.429433] do_syscall_64+0x1e8/0x640 [ 36.433382] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.438344] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.443520] RIP: 0033:0x43ee58 [ 36.446690] RSP: 002b:00007ffefc3b9248 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.454386] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee58 [ 36.461636] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.468913] RBP: 00000000004be668 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.476168] R10: 0000000020008011 R11: 0000000000000246 R12: 0000000000000001 [ 36.483412] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.492506] Kernel Offset: disabled [ 36.496131] Rebooting in 86400 seconds..