[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 20.828230] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.937531] random: sshd: uninitialized urandom read (32 bytes read) [ 25.534152] random: sshd: uninitialized urandom read (32 bytes read) [ 26.287510] random: sshd: uninitialized urandom read (32 bytes read) [ 27.142582] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.29' (ECDSA) to the list of known hosts. [ 32.552368] random: sshd: uninitialized urandom read (32 bytes read) 2018/04/26 20:44:27 parsed 1 programs 2018/04/26 20:44:27 executed programs: 0 [ 33.005502] IPVS: ftp: loaded support on port[0] = 21 [ 33.053041] ================================================================== [ 33.060618] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x272d/0x3210 [ 33.067229] Read of size 8192 at addr ffff8801ae0e0b00 by task syz-executor0/4567 [ 33.074831] [ 33.076449] CPU: 0 PID: 4567 Comm: syz-executor0 Not tainted 4.17.0-rc2+ #43 [ 33.083616] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.092957] Call Trace: [ 33.095540] dump_stack+0x1b9/0x294 [ 33.099185] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.104368] ? printk+0x9e/0xba [ 33.107631] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.112373] ? kasan_check_write+0x14/0x20 [ 33.116591] print_address_description+0x6c/0x20b [ 33.121416] ? pfkey_add+0x272d/0x3210 [ 33.125286] kasan_report.cold.7+0x242/0x2fe [ 33.129683] check_memory_region+0x13e/0x1b0 [ 33.136054] memcpy+0x23/0x50 [ 33.139155] pfkey_add+0x272d/0x3210 [ 33.142857] ? pfkey_acquire+0x270/0x270 [ 33.146900] ? iov_iter_advance+0x2e4/0x14c0 [ 33.151308] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 33.156481] ? pfkey_acquire+0x270/0x270 [ 33.160529] pfkey_process+0x7cc/0x8a0 [ 33.164403] ? pfkey_send_new_mapping+0x1260/0x1260 [ 33.169425] pfkey_sendmsg+0x5f4/0x1050 [ 33.173395] ? pfkey_spdget+0xb10/0xb10 [ 33.177443] ? compat_mc_getsockopt+0xb20/0xb20 [ 33.182113] ? security_socket_sendmsg+0x94/0xc0 [ 33.186855] ? pfkey_spdget+0xb10/0xb10 [ 33.190815] sock_sendmsg+0xd5/0x120 [ 33.194512] ___sys_sendmsg+0x805/0x940 [ 33.198480] ? do_raw_spin_lock+0xc1/0x200 [ 33.202703] ? copy_msghdr_from_user+0x560/0x560 [ 33.207449] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 33.212211] ? graph_lock+0x170/0x170 [ 33.216003] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.221535] ? __fget_light+0x2ef/0x430 [ 33.225495] ? fget_raw+0x20/0x20 [ 33.228936] ? find_held_lock+0x36/0x1c0 [ 33.232990] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.238517] ? sockfd_lookup_light+0xc5/0x160 [ 33.243002] __sys_sendmsg+0x115/0x270 [ 33.246900] ? __ia32_sys_shutdown+0x80/0x80 [ 33.251310] ? __ia32_compat_sys_futex+0x3de/0x5e0 [ 33.256230] ? mm_fault_error+0x380/0x380 [ 33.260368] __ia32_compat_sys_sendmsg+0x7a/0xb0 [ 33.265128] do_fast_syscall_32+0x345/0xf9b [ 33.269461] ? do_int80_syscall_32+0x880/0x880 [ 33.274039] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.278790] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.284322] ? syscall_return_slowpath+0x30f/0x5c0 [ 33.289239] ? sysret32_from_system_call+0x5/0x46 [ 33.294078] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.298911] entry_SYSENTER_compat+0x70/0x7f [ 33.303302] RIP: 0023:0xf7f7ecb9 [ 33.306649] RSP: 002b:00000000ff8f3d6c EFLAGS: 00000282 ORIG_RAX: 0000000000000172 [ 33.314338] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020196fe4 [ 33.321590] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 33.328845] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 33.336114] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 33.343380] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 33.350642] [ 33.352251] Allocated by task 4567: [ 33.355869] save_stack+0x43/0xd0 [ 33.359304] kasan_kmalloc+0xc4/0xe0 [ 33.363001] __kmalloc_node_track_caller+0x47/0x70 [ 33.367925] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 33.372665] __alloc_skb+0x14d/0x780 [ 33.376362] pfkey_sendmsg+0x250/0x1050 [ 33.380321] sock_sendmsg+0xd5/0x120 [ 33.384024] ___sys_sendmsg+0x805/0x940 [ 33.388001] __sys_sendmsg+0x115/0x270 [ 33.391883] __ia32_compat_sys_sendmsg+0x7a/0xb0 [ 33.396623] do_fast_syscall_32+0x345/0xf9b [ 33.400927] entry_SYSENTER_compat+0x70/0x7f [ 33.405311] [ 33.406924] Freed by task 0: [ 33.410002] (stack is not available) [ 33.413698] [ 33.415306] The buggy address belongs to the object at ffff8801ae0e0ac0 [ 33.415306] which belongs to the cache kmalloc-512 of size 512 [ 33.427957] The buggy address is located 64 bytes inside of [ 33.427957] 512-byte region [ffff8801ae0e0ac0, ffff8801ae0e0cc0) [ 33.439727] The buggy address belongs to the page: [ 33.444657] page:ffffea0006b83800 count:1 mapcount:0 mapping:ffff8801ae0e00c0 index:0x0 [ 33.453061] flags: 0x2fffc0000000100(slab) [ 33.457280] raw: 02fffc0000000100 ffff8801ae0e00c0 0000000000000000 0000000100000006 [ 33.465150] raw: ffffea0006b8da20 ffffea0006c3d5a0 ffff8801da800940 0000000000000000 [ 33.473027] page dumped because: kasan: bad access detected [ 33.478724] [ 33.480331] Memory state around the buggy address: [ 33.485240] ffff8801ae0e0b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.492582] ffff8801ae0e0c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.499936] >ffff8801ae0e0c80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 33.507283] ^ [ 33.512737] ffff8801ae0e0d00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.520096] ffff8801ae0e0d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.527437] ================================================================== [ 33.534782] Disabling lock debugging due to kernel taint [ 33.540292] Kernel panic - not syncing: panic_on_warn set ... [ 33.540292] [ 33.547658] CPU: 0 PID: 4567 Comm: syz-executor0 Tainted: G B 4.17.0-rc2+ #43 [ 33.556226] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.565561] Call Trace: [ 33.568141] dump_stack+0x1b9/0x294 [ 33.571754] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.576933] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.581671] ? pfkey_add+0x26e0/0x3210 [ 33.585545] panic+0x22f/0x4de [ 33.588725] ? add_taint.cold.5+0x16/0x16 [ 33.592868] ? do_raw_spin_unlock+0x9e/0x2e0 [ 33.597259] ? do_raw_spin_unlock+0x9e/0x2e0 [ 33.601737] ? pfkey_add+0x272d/0x3210 [ 33.605627] kasan_end_report+0x47/0x4f [ 33.609588] kasan_report.cold.7+0x76/0x2fe [ 33.613893] check_memory_region+0x13e/0x1b0 [ 33.618299] memcpy+0x23/0x50 [ 33.621396] pfkey_add+0x272d/0x3210 [ 33.625095] ? pfkey_acquire+0x270/0x270 [ 33.629137] ? iov_iter_advance+0x2e4/0x14c0 [ 33.633533] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 33.638703] ? pfkey_acquire+0x270/0x270 [ 33.642748] pfkey_process+0x7cc/0x8a0 [ 33.646620] ? pfkey_send_new_mapping+0x1260/0x1260 [ 33.651619] pfkey_sendmsg+0x5f4/0x1050 [ 33.655576] ? pfkey_spdget+0xb10/0xb10 [ 33.659538] ? compat_mc_getsockopt+0xb20/0xb20 [ 33.664198] ? security_socket_sendmsg+0x94/0xc0 [ 33.668951] ? pfkey_spdget+0xb10/0xb10 [ 33.672929] sock_sendmsg+0xd5/0x120 [ 33.676623] ___sys_sendmsg+0x805/0x940 [ 33.680585] ? do_raw_spin_lock+0xc1/0x200 [ 33.684801] ? copy_msghdr_from_user+0x560/0x560 [ 33.689542] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 33.694286] ? graph_lock+0x170/0x170 [ 33.698078] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.703608] ? __fget_light+0x2ef/0x430 [ 33.707566] ? fget_raw+0x20/0x20 [ 33.711003] ? find_held_lock+0x36/0x1c0 [ 33.715062] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.720587] ? sockfd_lookup_light+0xc5/0x160 [ 33.725070] __sys_sendmsg+0x115/0x270 [ 33.729294] ? __ia32_sys_shutdown+0x80/0x80 [ 33.733686] ? __ia32_compat_sys_futex+0x3de/0x5e0 [ 33.738604] ? mm_fault_error+0x380/0x380 [ 33.742740] __ia32_compat_sys_sendmsg+0x7a/0xb0 [ 33.747483] do_fast_syscall_32+0x345/0xf9b [ 33.751788] ? do_int80_syscall_32+0x880/0x880 [ 33.756358] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.761104] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.766629] ? syscall_return_slowpath+0x30f/0x5c0 [ 33.771551] ? sysret32_from_system_call+0x5/0x46 [ 33.776390] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.781233] entry_SYSENTER_compat+0x70/0x7f [ 33.785622] RIP: 0023:0xf7f7ecb9 [ 33.788963] RSP: 002b:00000000ff8f3d6c EFLAGS: 00000282 ORIG_RAX: 0000000000000172 [ 33.796654] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020196fe4 [ 33.803905] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 33.811160] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 33.818411] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 33.825672] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 33.833426] Dumping ftrace buffer: [ 33.836946] (ftrace buffer empty) [ 33.840636] Kernel Offset: disabled [ 33.844248] Rebooting in 86400 seconds..