Warning: Permanently added '10.128.0.181' (ECDSA) to the list of known hosts. [ 41.382153] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 41.474483] audit: type=1400 audit(1569012989.823:7): avc: denied { map } for pid=1789 comm="syz-executor561" path="/root/syz-executor561043737" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 41.484344] ================================================================== [ 41.508469] BUG: KASAN: use-after-free in tcp_init_tso_segs+0x19d/0x1f0 [ 41.515214] Read of size 2 at addr ffff8881d070b6b0 by task syz-executor561/1789 [ 41.522903] [ 41.524525] CPU: 0 PID: 1789 Comm: syz-executor561 Not tainted 4.14.145+ #0 [ 41.531600] Call Trace: [ 41.534174] dump_stack+0xca/0x134 [ 41.537692] ? tcp_init_tso_segs+0x19d/0x1f0 [ 41.542083] ? tcp_init_tso_segs+0x19d/0x1f0 [ 41.546469] print_address_description+0x60/0x226 [ 41.551305] ? tcp_init_tso_segs+0x19d/0x1f0 [ 41.555695] ? tcp_init_tso_segs+0x19d/0x1f0 [ 41.560102] __kasan_report.cold+0x1a/0x41 [ 41.564331] ? kvm_guest_cpu_init+0x220/0x220 [ 41.568818] ? tcp_init_tso_segs+0x19d/0x1f0 [ 41.573216] tcp_init_tso_segs+0x19d/0x1f0 [ 41.577433] ? tcp_tso_segs+0x7b/0x1c0 [ 41.581301] tcp_write_xmit+0x15a/0x4730 [ 41.585352] ? ip6_mtu+0x206/0x330 [ 41.588872] ? lock_downgrade+0x5d0/0x5d0 [ 41.593015] ? lock_acquire+0x12b/0x360 [ 41.596974] __tcp_push_pending_frames+0xa0/0x230 [ 41.601811] tcp_send_fin+0x154/0xbc0 [ 41.605604] tcp_close+0xc62/0xf40 [ 41.609129] ? lock_acquire+0x12b/0x360 [ 41.613094] ? __sock_release+0x86/0x2c0 [ 41.617137] inet_release+0xe9/0x1c0 [ 41.620834] inet6_release+0x4c/0x70 [ 41.624528] __sock_release+0xd2/0x2c0 [ 41.628393] ? __sock_release+0x2c0/0x2c0 [ 41.633487] sock_close+0x15/0x20 [ 41.636920] __fput+0x25e/0x710 [ 41.640201] task_work_run+0x125/0x1a0 [ 41.644081] do_exit+0x9cb/0x2a20 [ 41.647515] ? mm_update_next_owner+0x610/0x610 [ 41.652184] ? SyS_socket+0x143/0x1e0 [ 41.655984] do_group_exit+0x100/0x2e0 [ 41.659852] SyS_exit_group+0x19/0x20 [ 41.663637] ? do_group_exit+0x2e0/0x2e0 [ 41.667675] do_syscall_64+0x19b/0x520 [ 41.671553] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 41.676722] RIP: 0033:0x43ee88 [ 41.679886] RSP: 002b:00007ffcb6c98098 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 41.687586] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee88 [ 41.694847] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 41.702224] RBP: 00000000004be688 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 41.709471] R10: 0000000020000004 R11: 0000000000000246 R12: 0000000000000001 [ 41.716717] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 41.723977] [ 41.725582] Allocated by task 1789: [ 41.729197] __kasan_kmalloc.part.0+0x53/0xc0 [ 41.733682] kmem_cache_alloc+0xee/0x360 [ 41.737722] __alloc_skb+0xea/0x5c0 [ 41.741335] sk_stream_alloc_skb+0xf4/0x8a0 [ 41.745632] tcp_sendmsg_locked+0xf11/0x2f50 [ 41.750046] tcp_sendmsg+0x2b/0x40 [ 41.753572] inet_sendmsg+0x15b/0x520 [ 41.757351] sock_sendmsg+0xb7/0x100 [ 41.761043] SyS_sendto+0x1de/0x2f0 [ 41.764662] do_syscall_64+0x19b/0x520 [ 41.768529] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 41.773697] 0xffffffffffffffff [ 41.776993] [ 41.778594] Freed by task 1789: [ 41.781868] __kasan_slab_free+0x164/0x210 [ 41.786078] kmem_cache_free+0xd7/0x3b0 [ 41.790031] kfree_skbmem+0x84/0x110 [ 41.793743] tcp_remove_empty_skb+0x264/0x320 [ 41.798215] tcp_sendmsg_locked+0x1c09/0x2f50 [ 41.802688] tcp_sendmsg+0x2b/0x40 [ 41.806218] inet_sendmsg+0x15b/0x520 [ 41.810002] sock_sendmsg+0xb7/0x100 [ 41.813698] SyS_sendto+0x1de/0x2f0 [ 41.817312] do_syscall_64+0x19b/0x520 [ 41.821182] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 41.826591] 0xffffffffffffffff [ 41.829857] [ 41.831475] The buggy address belongs to the object at ffff8881d070b680 [ 41.831475] which belongs to the cache skbuff_fclone_cache of size 456 [ 41.844809] The buggy address is located 48 bytes inside of [ 41.844809] 456-byte region [ffff8881d070b680, ffff8881d070b848) [ 41.856580] The buggy address belongs to the page: [ 41.861488] page:ffffea000741c280 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 41.871432] flags: 0x4000000000010200(slab|head) [ 41.876168] raw: 4000000000010200 0000000000000000 0000000000000000 00000001800c000c [ 41.884043] raw: dead000000000100 dead000000000200 ffff8881dab70400 0000000000000000 [ 41.891908] page dumped because: kasan: bad access detected [ 41.897710] [ 41.897713] Memory state around the buggy address: [ 41.897721] ffff8881d070b580: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 41.897726] ffff8881d070b600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.897731] >ffff8881d070b680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.897735] ^ [ 41.897743] ffff8881d070b700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.938574] ffff8881d070b780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.938577] ================================================================== [ 41.938580] Disabling lock debugging due to kernel taint [ 41.941227] Kernel panic - not syncing: panic_on_warn set ... [ 41.941227] [ 41.966108] CPU: 0 PID: 1789 Comm: syz-executor561 Tainted: G B 4.14.145+ #0 [ 41.966111] Call Trace: [ 41.966125] dump_stack+0xca/0x134 [ 41.966136] panic+0x1ea/0x3d3 [ 41.983823] ? add_taint.cold+0x16/0x16 [ 41.983833] ? tcp_init_tso_segs+0x19d/0x1f0 [ 41.983840] ? ___preempt_schedule+0x16/0x18 [ 41.983849] ? tcp_init_tso_segs+0x19d/0x1f0 [ 42.001135] end_report+0x43/0x49 [ 42.001144] ? tcp_init_tso_segs+0x19d/0x1f0 [ 42.001152] __kasan_report.cold+0xd/0x41 [ 42.013123] ? kvm_guest_cpu_init+0x220/0x220 [ 42.013133] ? tcp_init_tso_segs+0x19d/0x1f0 [ 42.022003] tcp_init_tso_segs+0x19d/0x1f0 [ 42.026230] ? tcp_tso_segs+0x7b/0x1c0 [ 42.030118] tcp_write_xmit+0x15a/0x4730 [ 42.034261] ? ip6_mtu+0x206/0x330 [ 42.037777] ? lock_downgrade+0x5d0/0x5d0 [ 42.042340] ? lock_acquire+0x12b/0x360 [ 42.046296] __tcp_push_pending_frames+0xa0/0x230 [ 42.051129] tcp_send_fin+0x154/0xbc0 [ 42.054909] tcp_close+0xc62/0xf40 [ 42.058436] ? lock_acquire+0x12b/0x360 [ 42.062394] ? __sock_release+0x86/0x2c0 [ 42.066435] inet_release+0xe9/0x1c0 [ 42.070129] inet6_release+0x4c/0x70 [ 42.073817] __sock_release+0xd2/0x2c0 [ 42.077679] ? __sock_release+0x2c0/0x2c0 [ 42.081800] sock_close+0x15/0x20 [ 42.085231] __fput+0x25e/0x710 [ 42.088488] task_work_run+0x125/0x1a0 [ 42.092355] do_exit+0x9cb/0x2a20 [ 42.095786] ? mm_update_next_owner+0x610/0x610 [ 42.100435] ? SyS_socket+0x143/0x1e0 [ 42.104226] do_group_exit+0x100/0x2e0 [ 42.108099] SyS_exit_group+0x19/0x20 [ 42.111878] ? do_group_exit+0x2e0/0x2e0 [ 42.115913] do_syscall_64+0x19b/0x520 [ 42.119782] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.124959] RIP: 0033:0x43ee88 [ 42.128156] RSP: 002b:00007ffcb6c98098 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 42.135844] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee88 [ 42.143110] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 42.150361] RBP: 00000000004be688 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 42.157609] R10: 0000000020000004 R11: 0000000000000246 R12: 0000000000000001 [ 42.164855] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 42.173305] Kernel Offset: 0xd400000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 42.184124] Rebooting in 86400 seconds..