Warning: Permanently added '10.128.0.50' (ECDSA) to the list of known hosts. [ 46.910485] random: sshd: uninitialized urandom read (32 bytes read) [ 47.001554] audit: type=1400 audit(1569079048.386:8): avc: denied { map } for pid=1791 comm="syz-executor337" path="/root/syz-executor337932787" 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 executing program [ 47.730644] ================================================================== [ 47.738066] BUG: KASAN: use-after-free in tcp_init_tso_segs+0x19d/0x1f0 [ 47.744802] Read of size 2 at addr ffff8881da222530 by task syz-executor337/1792 [ 47.752330] [ 47.753937] CPU: 1 PID: 1792 Comm: syz-executor337 Not tainted 4.14.145+ #0 [ 47.761011] Call Trace: [ 47.763580] dump_stack+0xca/0x134 [ 47.767101] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.771487] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.775875] print_address_description+0x60/0x226 [ 47.780694] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.785080] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.789475] __kasan_report.cold+0x1a/0x41 [ 47.793693] ? kvm_guest_cpu_init+0x220/0x220 [ 47.798163] ? tcp_init_tso_segs+0x19d/0x1f0 [ 47.802565] tcp_init_tso_segs+0x19d/0x1f0 [ 47.806798] ? tcp_tso_segs+0x7b/0x1c0 [ 47.810679] tcp_write_xmit+0x15a/0x4730 [ 47.814816] ? memset+0x20/0x40 [ 47.818081] __tcp_push_pending_frames+0xa0/0x230 [ 47.822905] tcp_send_fin+0x154/0xbc0 [ 47.826686] tcp_close+0xc62/0xf40 [ 47.830210] inet_release+0xe9/0x1c0 [ 47.833904] __sock_release+0xd2/0x2c0 [ 47.837769] ? __sock_release+0x2c0/0x2c0 [ 47.841892] sock_close+0x15/0x20 [ 47.845322] __fput+0x25e/0x710 [ 47.848585] task_work_run+0x125/0x1a0 [ 47.852454] do_exit+0x9cb/0x2a20 [ 47.855890] ? mm_update_next_owner+0x610/0x610 [ 47.860563] do_group_exit+0x100/0x2e0 [ 47.864478] SyS_exit_group+0x19/0x20 [ 47.868266] ? do_group_exit+0x2e0/0x2e0 [ 47.872305] do_syscall_64+0x19b/0x520 [ 47.876175] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.881355] RIP: 0033:0x440618 [ 47.884522] RSP: 002b:00007fffa61a1858 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 47.892207] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440618 [ 47.899451] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 [ 47.906709] RBP: 00000000004c6970 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 47.913957] R10: 0000000020000802 R11: 0000000000000246 R12: 0000000000000001 [ 47.921204] R13: 00000000006d95e0 R14: 0000000000000000 R15: 0000000000000000 [ 47.928475] [ 47.930083] Allocated by task 1792: [ 47.933690] __kasan_kmalloc.part.0+0x53/0xc0 [ 47.938162] kmem_cache_alloc+0xee/0x360 [ 47.942205] __alloc_skb+0xea/0x5c0 [ 47.945807] sk_stream_alloc_skb+0xf4/0x8a0 [ 47.950102] tcp_sendmsg_locked+0xf11/0x2f50 [ 47.954485] tcp_sendmsg+0x2b/0x40 [ 47.958003] inet_sendmsg+0x15b/0x520 [ 47.961781] sock_sendmsg+0xb7/0x100 [ 47.965473] SyS_sendto+0x1de/0x2f0 [ 47.969075] do_syscall_64+0x19b/0x520 [ 47.972940] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.978104] 0xffffffffffffffff [ 47.981371] [ 47.982988] Freed by task 1792: [ 47.986255] __kasan_slab_free+0x164/0x210 [ 47.990467] kmem_cache_free+0xd7/0x3b0 [ 47.994418] kfree_skbmem+0x84/0x110 [ 47.998107] tcp_remove_empty_skb+0x264/0x320 [ 48.002578] tcp_sendmsg_locked+0x1c09/0x2f50 [ 48.007047] tcp_sendmsg+0x2b/0x40 [ 48.010563] inet_sendmsg+0x15b/0x520 [ 48.014337] sock_sendmsg+0xb7/0x100 [ 48.018038] SyS_sendto+0x1de/0x2f0 [ 48.021640] do_syscall_64+0x19b/0x520 [ 48.025509] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.030673] 0xffffffffffffffff [ 48.033924] [ 48.035532] The buggy address belongs to the object at ffff8881da222500 [ 48.035532] which belongs to the cache skbuff_fclone_cache of size 456 [ 48.048870] The buggy address is located 48 bytes inside of [ 48.048870] 456-byte region [ffff8881da222500, ffff8881da2226c8) [ 48.060633] The buggy address belongs to the page: [ 48.065542] page:ffffea0007688880 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 48.075488] flags: 0x4000000000010200(slab|head) [ 48.080222] raw: 4000000000010200 0000000000000000 0000000000000000 00000001800c000c [ 48.088084] raw: dead000000000100 dead000000000200 ffff8881dab70400 0000000000000000 [ 48.095938] page dumped because: kasan: bad access detected [ 48.101621] [ 48.103222] Memory state around the buggy address: [ 48.108127] ffff8881da222400: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 48.115462] ffff8881da222480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 48.122815] >ffff8881da222500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.130148] ^ [ 48.135053] ffff8881da222580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.142388] ffff8881da222600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.149719] ================================================================== [ 48.157053] Disabling lock debugging due to kernel taint [ 48.164475] Kernel panic - not syncing: panic_on_warn set ... [ 48.164475] [ 48.171849] CPU: 1 PID: 1792 Comm: syz-executor337 Tainted: G B 4.14.145+ #0 [ 48.180138] Call Trace: [ 48.182705] dump_stack+0xca/0x134 [ 48.186236] panic+0x1ea/0x3d3 [ 48.189405] ? add_taint.cold+0x16/0x16 [ 48.193367] ? tcp_init_tso_segs+0x19d/0x1f0 [ 48.197753] ? ___preempt_schedule+0x16/0x18 [ 48.202137] ? tcp_init_tso_segs+0x19d/0x1f0 [ 48.206521] end_report+0x43/0x49 [ 48.209963] ? tcp_init_tso_segs+0x19d/0x1f0 [ 48.214356] __kasan_report.cold+0xd/0x41 [ 48.218481] ? kvm_guest_cpu_init+0x220/0x220 [ 48.222949] ? tcp_init_tso_segs+0x19d/0x1f0 [ 48.227334] tcp_init_tso_segs+0x19d/0x1f0 [ 48.231542] ? tcp_tso_segs+0x7b/0x1c0 [ 48.235403] tcp_write_xmit+0x15a/0x4730 [ 48.239442] ? memset+0x20/0x40 [ 48.242703] __tcp_push_pending_frames+0xa0/0x230 [ 48.247523] tcp_send_fin+0x154/0xbc0 [ 48.251300] tcp_close+0xc62/0xf40 [ 48.254831] inet_release+0xe9/0x1c0 [ 48.258536] __sock_release+0xd2/0x2c0 [ 48.262401] ? __sock_release+0x2c0/0x2c0 [ 48.266522] sock_close+0x15/0x20 [ 48.269953] __fput+0x25e/0x710 [ 48.273224] task_work_run+0x125/0x1a0 [ 48.277100] do_exit+0x9cb/0x2a20 [ 48.280531] ? mm_update_next_owner+0x610/0x610 [ 48.285183] do_group_exit+0x100/0x2e0 [ 48.289047] SyS_exit_group+0x19/0x20 [ 48.292838] ? do_group_exit+0x2e0/0x2e0 [ 48.296874] do_syscall_64+0x19b/0x520 [ 48.300740] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.305917] RIP: 0033:0x440618 [ 48.309081] RSP: 002b:00007fffa61a1858 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 48.316765] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440618 [ 48.324009] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 [ 48.331253] RBP: 00000000004c6970 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 48.338499] R10: 0000000020000802 R11: 0000000000000246 R12: 0000000000000001 [ 48.345758] R13: 00000000006d95e0 R14: 0000000000000000 R15: 0000000000000000 [ 48.353673] Kernel Offset: 0x11200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 48.364571] Rebooting in 86400 seconds..