[ 21.141741] random: sshd: uninitialized urandom read (32 bytes read, 35 bits of entropy available) [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.502256] random: sshd: uninitialized urandom read (32 bytes read, 39 bits of entropy available) [ 25.902797] random: sshd: uninitialized urandom read (32 bytes read, 41 bits of entropy available) [ 26.842970] random: sshd: uninitialized urandom read (32 bytes read, 111 bits of entropy available) [ 27.011875] random: sshd: uninitialized urandom read (32 bytes read, 114 bits of entropy available) Warning: Permanently added '10.128.0.53' (ECDSA) to the list of known hosts. [ 32.964670] random: sshd: uninitialized urandom read (32 bytes read, 122 bits of entropy available) executing program [ 33.059612] ================================================================== [ 33.066984] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x153f/0x3490 [ 33.073528] Read of size 2368 at addr ffff8801cc31d1c0 by task syzkaller835260/3794 [ 33.081283] [ 33.082879] CPU: 0 PID: 3794 Comm: syzkaller835260 Not tainted 4.4.120-gd63fdf6 #28 [ 33.090637] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.099955] 0000000000000000 201a8aa742c29580 ffff8801c4aa7778 ffffffff81d0408d [ 33.107921] ffffea000730c700 ffff8801cc31d1c0 0000000000000000 ffff8801cc31d380 [ 33.115890] ffff8801c4aa79b8 ffff8801c4aa77b0 ffffffff814fe143 ffff8801cc31d1c0 [ 33.123849] Call Trace: [ 33.126408] [] dump_stack+0xc1/0x124 [ 33.131738] [] print_address_description+0x73/0x260 [ 33.138368] [] kasan_report+0x285/0x370 [ 33.143962] [] ? pfkey_add+0x153f/0x3490 [ 33.149638] [] check_memory_region+0x137/0x190 [ 33.155837] [] memcpy+0x23/0x50 [ 33.160731] [] pfkey_add+0x153f/0x3490 [ 33.166232] [] ? pfkey_delete+0x370/0x370 [ 33.171994] [] ? pfkey_add+0x3490/0x3490 [ 33.177672] [] ? __skb_clone+0x24a/0x7d0 [ 33.183347] [] ? pfkey_delete+0x370/0x370 [ 33.189108] [] pfkey_process+0x68b/0x750 [ 33.194785] [] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 33.201588] [] pfkey_sendmsg+0x3a9/0x760 [ 33.207263] [] ? pfkey_spdget+0x820/0x820 [ 33.213026] [] sock_sendmsg+0xca/0x110 [ 33.218530] [] ___sys_sendmsg+0x6c1/0x7c0 [ 33.224295] [] ? copy_msghdr_from_user+0x550/0x550 [ 33.230843] [] ? check_preemption_disabled+0x3b/0x200 [ 33.237649] [] ? do_huge_pmd_anonymous_page+0x549/0xa10 [ 33.244628] [] ? _raw_spin_unlock+0x2c/0x50 [ 33.250566] [] ? do_huge_pmd_anonymous_page+0x3dd/0xa10 [ 33.257544] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 33.264263] [] ? __fget_light+0xa3/0x1e0 [ 33.269939] [] ? __fdget+0x18/0x20 [ 33.275095] [] __sys_sendmsg+0xd3/0x190 [ 33.280686] [] ? SyS_shutdown+0x1b0/0x1b0 [ 33.286452] [] ? __do_page_fault+0x380/0xa00 [ 33.292478] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 33.299283] [] SyS_sendmsg+0x2d/0x50 [ 33.304616] [] entry_SYSCALL_64_fastpath+0x1c/0x98 [ 33.311159] [ 33.312757] Allocated by task 3794: [ 33.316348] [] save_stack_trace+0x26/0x50 [ 33.322231] [] save_stack+0x43/0xd0 [ 33.327589] [] kasan_kmalloc+0xad/0xe0 [ 33.333208] [] kasan_krealloc+0x64/0x80 [ 33.338910] [] ksize+0x92/0xf0 [ 33.343832] [] __alloc_skb+0x132/0x600 [ 33.349455] [] pfkey_sendmsg+0x135/0x760 [ 33.355254] [] sock_sendmsg+0xca/0x110 [ 33.360874] [] ___sys_sendmsg+0x6c1/0x7c0 [ 33.366753] [] __sys_sendmsg+0xd3/0x190 [ 33.372458] [] SyS_sendmsg+0x2d/0x50 [ 33.377901] [] entry_SYSCALL_64_fastpath+0x1c/0x98 [ 33.384562] [ 33.386159] Freed by task 0: [ 33.389142] (stack is not available) [ 33.392819] [ 33.394418] The buggy address belongs to the object at ffff8801cc31d180 [ 33.394418] which belongs to the cache kmalloc-512 of size 512 [ 33.407037] The buggy address is located 64 bytes inside of [ 33.407037] 512-byte region [ffff8801cc31d180, ffff8801cc31d380) [ 33.418789] The buggy address belongs to the page: [ 34.904238] PANIC: double fault, error_code: 0x0 [ 34.909016] CPU: 0 PID: 3794 Comm: syzkaller835260 Not tainted 4.4.120-gd63fdf6 #28 [ 34.916777] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.926099] task: ffff8801d8e4c800 task.stack: ffff8801c4aa0000 [ 34.932128] RIP: 0010:[] [] dump_page_badflags+0xd/0x250 [ 34.940885] RSP: 0018:ffff880100000000 EFLAGS: 00010046 [ 34.946301] RAX: ffff8801d8e4c800 RBX: ffffea000730c700 RCX: ffffffff814909b0 [ 34.953538] RDX: 0000000000000000 RSI: ffffffff838a9060 RDI: ffffea000730c700 [ 34.960776] RBP: ffff880100000018 R08: 0000000000000001 R09: 0000000000000000 [ 34.968012] R10: 0000000000000002 R11: fffffbfff0ad7e1e R12: 0000000000000000 [ 34.975251] R13: ffffffff838a9060 R14: 0000000000000000 R15: 0000000000000000 [ 34.982494] FS: 0000000002345880(0063) GS:ffff8801db200000(0000) knlGS:0000000000000000 [ 34.990688] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 34.997022] CR2: ffff8800fffffff8 CR3: 00000001c964a000 CR4: 0000000000160670 [ 35.004267] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 35.011504] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 35.018739] Stack: [ 35.020852] [ 35.022445] Call Trace: [ 35.024995] [ 35.027022] Code: ff e8 88 df 06 00 e9 50 fd ff ff e8 7e df 06 00 e9 1d fd ff ff 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 49 89 f5 <41> 54 49 89 d4 53 48 89 fb 48 83 ec 08 e8 01 05 ed ff 48 8d 7b [ 35.053899] Kernel panic - not syncing: Machine halted. [ 35.059233] CPU: 0 PID: 3794 Comm: syzkaller835260 Not tainted 4.4.120-gd63fdf6 #28 [ 35.066990] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.076311] 0000000000000000 201a8aa742c29580 ffff8801db20ce38 ffffffff81d0408d [ 35.084268] ffffffff838373a0 ffff8801db20cf10 ffffffff83808040 ffff880100000000 [ 35.092221] 0000000000000000 ffff8801db20cf00 ffffffff8141ab2a 0000000041b58ab3 [ 35.100177] Call Trace: [ 35.102739] <#DF> [] dump_stack+0xc1/0x124 [ 35.108811] [] panic+0x1aa/0x388 [ 35.113794] [] ? percpu_up_read.constprop.45+0xe1/0xe1 [ 35.120694] [] ? vprintk_emit+0x242/0x850 [ 35.126457] [] ? dump_page_badflags+0x22/0x250 [ 35.132654] [] ? vprintk_emit+0x242/0x850 [ 35.138417] [] df_debug+0x2d/0x30 [ 35.143486] [] do_double_fault+0x10b/0x210 [ 35.149343] [] double_fault+0x2d/0x40 [ 35.154761] [] ? dump_page_badflags+0x180/0x250 [ 35.161047] [] ? dump_page_badflags+0xd/0x250 [ 35.167156] <> [ 35.170643] Dumping ftrace buffer: [ 35.174470] (ftrace buffer empty) [ 35.178146] Kernel Offset: disabled [ 35.181750] Rebooting in 86400 seconds..