Warning: Permanently added '10.128.0.155' (ECDSA) to the list of known hosts. [ 35.387018] random: sshd: uninitialized urandom read (32 bytes read) [ 35.486356] audit: type=1400 audit(1569014643.611:7): avc: denied { map } for pid=1786 comm="syz-executor803" path="/root/syz-executor803020462" 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 [ 36.351189] ================================================================== [ 36.358659] BUG: KASAN: use-after-free in tcp_init_tso_segs+0x19d/0x1f0 [ 36.365667] Read of size 2 at addr ffff8881cfea4a30 by task syz-executor803/1787 [ 36.373808] [ 36.375445] CPU: 0 PID: 1787 Comm: syz-executor803 Not tainted 4.14.145+ #0 [ 36.383084] Call Trace: [ 36.385788] dump_stack+0xca/0x134 [ 36.389312] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.393790] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.398195] print_address_description+0x60/0x226 [ 36.403026] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.407592] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.412028] __kasan_report.cold+0x1a/0x41 [ 36.416385] ? kvm_guest_cpu_init+0x220/0x220 [ 36.421055] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.425454] tcp_init_tso_segs+0x19d/0x1f0 [ 36.429681] ? tcp_tso_segs+0x7b/0x1c0 [ 36.433652] tcp_write_xmit+0x15a/0x4730 [ 36.437754] ? memset+0x20/0x40 [ 36.441044] __tcp_push_pending_frames+0xa0/0x230 [ 36.445901] tcp_send_fin+0x154/0xbc0 [ 36.449706] tcp_close+0xc62/0xf40 [ 36.453259] inet_release+0xe9/0x1c0 [ 36.456978] __sock_release+0xd2/0x2c0 [ 36.461036] ? __sock_release+0x2c0/0x2c0 [ 36.465187] sock_close+0x15/0x20 [ 36.468626] __fput+0x25e/0x710 [ 36.471929] task_work_run+0x125/0x1a0 [ 36.475923] do_exit+0x9cb/0x2a20 [ 36.479377] ? mm_update_next_owner+0x610/0x610 [ 36.484064] do_group_exit+0x100/0x2e0 [ 36.487971] SyS_exit_group+0x19/0x20 [ 36.491770] ? do_group_exit+0x2e0/0x2e0 [ 36.495817] do_syscall_64+0x19b/0x520 [ 36.499695] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.504952] RIP: 0033:0x440b48 [ 36.508123] RSP: 002b:00007ffcab5a28a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.516039] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440b48 [ 36.523572] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 [ 36.530846] RBP: 00000000004c6fd0 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.538106] R10: 0000000020000800 R11: 0000000000000246 R12: 0000000000000001 [ 36.545522] R13: 00000000006d95e0 R14: 0000000000000000 R15: 0000000000000000 [ 36.553493] [ 36.555138] Allocated by task 1787: [ 36.558772] __kasan_kmalloc.part.0+0x53/0xc0 [ 36.563266] kmem_cache_alloc+0xee/0x360 [ 36.567310] __alloc_skb+0xea/0x5c0 [ 36.572138] sk_stream_alloc_skb+0xf4/0x8a0 [ 36.576454] tcp_sendmsg_locked+0xf11/0x2f50 [ 36.580991] tcp_sendmsg+0x2b/0x40 [ 36.584522] inet_sendmsg+0x15b/0x520 [ 36.588314] sock_sendmsg+0xb7/0x100 [ 36.592009] SyS_sendto+0x1de/0x2f0 [ 36.595618] do_syscall_64+0x19b/0x520 [ 36.599491] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.604661] 0xffffffffffffffff [ 36.607916] [ 36.609538] Freed by task 1787: [ 36.612845] __kasan_slab_free+0x164/0x210 [ 36.617074] kmem_cache_free+0xd7/0x3b0 [ 36.621124] kfree_skbmem+0x84/0x110 [ 36.624832] tcp_remove_empty_skb+0x264/0x320 [ 36.629370] tcp_sendmsg_locked+0x1c09/0x2f50 [ 36.633893] tcp_sendmsg+0x2b/0x40 [ 36.637421] inet_sendmsg+0x15b/0x520 [ 36.641200] sock_sendmsg+0xb7/0x100 [ 36.644895] SyS_sendto+0x1de/0x2f0 [ 36.648513] do_syscall_64+0x19b/0x520 [ 36.652394] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.657564] 0xffffffffffffffff [ 36.660823] [ 36.662431] The buggy address belongs to the object at ffff8881cfea4a00 [ 36.662431] which belongs to the cache skbuff_fclone_cache of size 456 [ 36.676056] The buggy address is located 48 bytes inside of [ 36.676056] 456-byte region [ffff8881cfea4a00, ffff8881cfea4bc8) [ 36.688420] The buggy address belongs to the page: [ 36.693532] page:ffffea00073fa900 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 36.703498] flags: 0x4000000000010200(slab|head) [ 36.708336] raw: 4000000000010200 0000000000000000 0000000000000000 00000001800c000c [ 36.716216] raw: dead000000000100 dead000000000200 ffff8881dab70400 0000000000000000 [ 36.724344] page dumped because: kasan: bad access detected [ 36.730035] [ 36.731640] Memory state around the buggy address: [ 36.736550] ffff8881cfea4900: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 36.743892] ffff8881cfea4980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.752362] >ffff8881cfea4a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.759718] ^ [ 36.764649] ffff8881cfea4a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.772012] ffff8881cfea4b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.779713] ================================================================== [ 36.787085] Disabling lock debugging due to kernel taint [ 36.792698] Kernel panic - not syncing: panic_on_warn set ... [ 36.792698] [ 36.800080] CPU: 0 PID: 1787 Comm: syz-executor803 Tainted: G B 4.14.145+ #0 [ 36.808386] Call Trace: [ 36.810968] dump_stack+0xca/0x134 [ 36.814542] panic+0x1ea/0x3d3 [ 36.818034] ? add_taint.cold+0x16/0x16 [ 36.822489] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.827576] ? ___preempt_schedule+0x16/0x18 [ 36.832056] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.836575] end_report+0x43/0x49 [ 36.840167] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.844717] __kasan_report.cold+0xd/0x41 [ 36.848930] ? kvm_guest_cpu_init+0x220/0x220 [ 36.853437] ? tcp_init_tso_segs+0x19d/0x1f0 [ 36.857854] tcp_init_tso_segs+0x19d/0x1f0 [ 36.862983] ? tcp_tso_segs+0x7b/0x1c0 [ 36.867003] tcp_write_xmit+0x15a/0x4730 [ 36.871436] ? memset+0x20/0x40 [ 36.874708] __tcp_push_pending_frames+0xa0/0x230 [ 36.880051] tcp_send_fin+0x154/0xbc0 [ 36.884043] tcp_close+0xc62/0xf40 [ 36.888124] inet_release+0xe9/0x1c0 [ 36.892341] __sock_release+0xd2/0x2c0 [ 36.896582] ? __sock_release+0x2c0/0x2c0 [ 36.900783] sock_close+0x15/0x20 [ 36.904249] __fput+0x25e/0x710 [ 36.907742] task_work_run+0x125/0x1a0 [ 36.911630] do_exit+0x9cb/0x2a20 [ 36.915202] ? mm_update_next_owner+0x610/0x610 [ 36.919876] do_group_exit+0x100/0x2e0 [ 36.923757] SyS_exit_group+0x19/0x20 [ 36.927667] ? do_group_exit+0x2e0/0x2e0 [ 36.931876] do_syscall_64+0x19b/0x520 [ 36.935994] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.941256] RIP: 0033:0x440b48 [ 36.944449] RSP: 002b:00007ffcab5a28a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.952328] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440b48 [ 36.959601] RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 [ 36.966983] RBP: 00000000004c6fd0 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.974514] R10: 0000000020000800 R11: 0000000000000246 R12: 0000000000000001 [ 36.982721] R13: 00000000006d95e0 R14: 0000000000000000 R15: 0000000000000000 [ 36.991285] Kernel Offset: 0x1f600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 37.002320] Rebooting in 86400 seconds..