Warning: Permanently added '10.128.1.20' (ECDSA) to the list of known hosts. [ 46.526865] random: sshd: uninitialized urandom read (32 bytes read) [ 46.634015] audit: type=1400 audit(1569022540.938:7): avc: denied { map } for pid=1793 comm="syz-executor794" path="/root/syz-executor794635907" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program [ 47.421281] ================================================================== [ 47.428759] BUG: KASAN: use-after-free in tcp_init_tso_segs+0x19d/0x1f0 [ 47.435499] Read of size 2 at addr ffff8881cf1022b0 by task syz-executor794/1794 [ 47.443096] [ 47.444725] CPU: 1 PID: 1794 Comm: syz-executor794 Not tainted 4.14.145+ #0 [ 47.451799] Call Trace: [ 47.454383] dump_stack+0xca/0x134 [ 47.457919] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.462318] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.466726] print_address_description+0x60/0x226 [ 47.471553] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.475956] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.480353] __kasan_report.cold+0x1a/0x41 [ 47.484583] ? kvm_guest_cpu_init+0x220/0x220 [ 47.489055] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.493489] tcp_init_tso_segs+0x19d/0x1f0 [ 47.497723] ? tcp_tso_segs+0x7b/0x1c0 [ 47.501600] tcp_write_xmit+0x15a/0x4730 [ 47.505646] ? memset+0x20/0x40 [ 47.508914] __tcp_push_pending_frames+0xa0/0x230 [ 47.513792] tcp_send_fin+0x154/0xbc0 [ 47.517632] tcp_close+0xc62/0xf40 [ 47.521330] inet_release+0xe9/0x1c0 [ 47.525030] __sock_release+0xd2/0x2c0 [ 47.528957] ? __sock_release+0x2c0/0x2c0 [ 47.533087] sock_close+0x15/0x20 [ 47.536532] __fput+0x25e/0x710 [ 47.539824] task_work_run+0x125/0x1a0 [ 47.543702] do_exit+0x9cb/0x2a20 [ 47.547144] ? mm_update_next_owner+0x610/0x610 [ 47.551804] do_group_exit+0x100/0x2e0 [ 47.555685] SyS_exit_group+0x19/0x20 [ 47.559476] ? do_group_exit+0x2e0/0x2e0 [ 47.563524] do_syscall_64+0x19b/0x520 [ 47.567404] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.572584] RIP: 0033:0x440618 [ 47.575814] RSP: 002b:00007fff861f7b98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 47.583652] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440618 [ 47.590912] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 [ 47.598175] RBP: 00000000004c6970 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 47.605438] R10: 0000000020000802 R11: 0000000000000246 R12: 0000000000000001 [ 47.612698] R13: 00000000006d95e0 R14: 0000000000000000 R15: 0000000000000000 [ 47.619978] [ 47.621588] Allocated by task 1794: [ 47.625299] __kasan_kmalloc.part.0+0x53/0xc0 [ 47.629775] kmem_cache_alloc+0xee/0x360 [ 47.634292] __alloc_skb+0xea/0x5c0 [ 47.637900] sk_stream_alloc_skb+0xf4/0x8a0 [ 47.642213] tcp_sendmsg_locked+0xf11/0x2f50 [ 47.646612] tcp_sendmsg+0x2b/0x40 [ 47.650147] inet_sendmsg+0x15b/0x520 [ 47.653943] sock_sendmsg+0xb7/0x100 [ 47.657654] SyS_sendto+0x1de/0x2f0 [ 47.661260] do_syscall_64+0x19b/0x520 [ 47.665127] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.670305] 0xffffffffffffffff [ 47.673564] [ 47.675269] Freed by task 1794: [ 47.678552] __kasan_slab_free+0x164/0x210 [ 47.682860] kmem_cache_free+0xd7/0x3b0 [ 47.686815] kfree_skbmem+0x84/0x110 [ 47.690688] tcp_remove_empty_skb+0x264/0x320 [ 47.695171] tcp_sendmsg_locked+0x1c09/0x2f50 [ 47.699655] tcp_sendmsg+0x2b/0x40 [ 47.703176] inet_sendmsg+0x15b/0x520 [ 47.707042] sock_sendmsg+0xb7/0x100 [ 47.710734] SyS_sendto+0x1de/0x2f0 [ 47.714351] do_syscall_64+0x19b/0x520 [ 47.718238] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.723424] 0xffffffffffffffff [ 47.726685] [ 47.728354] The buggy address belongs to the object at ffff8881cf102280 [ 47.728354] which belongs to the cache skbuff_fclone_cache of size 456 [ 47.741879] The buggy address is located 48 bytes inside of [ 47.741879] 456-byte region [ffff8881cf102280, ffff8881cf102448) [ 47.753658] The buggy address belongs to the page: [ 47.758639] page:ffffea00073c4080 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 47.768594] flags: 0x4000000000010200(slab|head) [ 47.773509] raw: 4000000000010200 0000000000000000 0000000000000000 00000001800c000c [ 47.782121] raw: dead000000000100 dead000000000200 ffff8881dab70400 0000000000000000 [ 47.790111] page dumped because: kasan: bad access detected [ 47.795994] [ 47.797616] Memory state around the buggy address: [ 47.802661] ffff8881cf102180: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 47.810141] ffff8881cf102200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.817548] >ffff8881cf102280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.824922] ^ [ 47.829848] ffff8881cf102300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.837203] ffff8881cf102380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.844551] ================================================================== [ 47.851888] Disabling lock debugging due to kernel taint [ 47.859261] Kernel panic - not syncing: panic_on_warn set ... [ 47.859261] [ 47.866655] CPU: 1 PID: 1794 Comm: syz-executor794 Tainted: G B 4.14.145+ #0 [ 47.875152] Call Trace: [ 47.877814] dump_stack+0xca/0x134 [ 47.881341] panic+0x1ea/0x3d3 [ 47.884523] ? add_taint.cold+0x16/0x16 [ 47.888476] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.892873] ? ___preempt_schedule+0x16/0x18 [ 47.897257] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.901734] end_report+0x43/0x49 [ 47.905169] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.909641] __kasan_report.cold+0xd/0x41 [ 47.913768] ? kvm_guest_cpu_init+0x220/0x220 [ 47.918244] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.922646] tcp_init_tso_segs+0x19d/0x1f0 [ 47.926857] ? tcp_tso_segs+0x7b/0x1c0 [ 47.930738] tcp_write_xmit+0x15a/0x4730 [ 47.934781] ? memset+0x20/0x40 [ 47.938063] __tcp_push_pending_frames+0xa0/0x230 [ 47.942899] tcp_send_fin+0x154/0xbc0 [ 47.946682] tcp_close+0xc62/0xf40 [ 47.950219] inet_release+0xe9/0x1c0 [ 47.953917] __sock_release+0xd2/0x2c0 [ 47.957781] ? __sock_release+0x2c0/0x2c0 [ 47.961906] sock_close+0x15/0x20 [ 47.965361] __fput+0x25e/0x710 [ 47.968620] task_work_run+0x125/0x1a0 [ 47.972493] do_exit+0x9cb/0x2a20 [ 47.975927] ? mm_update_next_owner+0x610/0x610 [ 47.980580] do_group_exit+0x100/0x2e0 [ 47.984540] SyS_exit_group+0x19/0x20 [ 47.988339] ? do_group_exit+0x2e0/0x2e0 [ 47.992379] do_syscall_64+0x19b/0x520 [ 47.996247] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.001430] RIP: 0033:0x440618 [ 48.004599] RSP: 002b:00007fff861f7b98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 48.012545] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440618 [ 48.019892] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 [ 48.027151] RBP: 00000000004c6970 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 48.034415] R10: 0000000020000802 R11: 0000000000000246 R12: 0000000000000001 [ 48.041801] R13: 00000000006d95e0 R14: 0000000000000000 R15: 0000000000000000 [ 48.049923] Kernel Offset: 0xbc00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 48.060758] Rebooting in 86400 seconds..