[....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 21.086222] random: sshd: uninitialized urandom read (32 bytes read, 35 bits of entropy available) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.361402] random: sshd: uninitialized urandom read (32 bytes read, 39 bits of entropy available) [ 24.718724] random: sshd: uninitialized urandom read (32 bytes read, 39 bits of entropy available) [ 25.699252] random: sshd: uninitialized urandom read (32 bytes read, 111 bits of entropy available) [ 25.869552] random: sshd: uninitialized urandom read (32 bytes read, 114 bits of entropy available) Warning: Permanently added '10.128.0.57' (ECDSA) to the list of known hosts. [ 31.327241] random: sshd: uninitialized urandom read (32 bytes read, 120 bits of entropy available) executing program [ 31.425994] ================================================================== [ 31.433375] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x270e/0x3490 [ 31.439922] Read of size 4096 at addr ffff8801cc5f6f40 by task syzkaller299773/3785 [ 31.447679] [ 31.449280] CPU: 0 PID: 3785 Comm: syzkaller299773 Not tainted 4.4.120-gd63fdf6 #28 [ 31.457036] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.466359] 0000000000000000 ef478501ff0e9318 ffff8801c566f778 ffffffff81d0408d [ 31.474322] ffffea0007317d80 ffff8801cc5f6f40 0000000000000000 ffff8801cc5f7100 [ 31.482283] ffff8801c566f9b8 ffff8801c566f7b0 ffffffff814fe143 ffff8801cc5f6f40 [ 31.490244] Call Trace: [ 31.492805] [] dump_stack+0xc1/0x124 [ 31.498137] [] print_address_description+0x73/0x260 [ 31.504776] [] kasan_report+0x285/0x370 [ 31.510372] [] ? pfkey_add+0x270e/0x3490 [ 31.516069] [] check_memory_region+0x137/0x190 [ 31.522278] [] memcpy+0x23/0x50 [ 31.527183] [] pfkey_add+0x270e/0x3490 [ 31.532694] [] ? pfkey_delete+0x370/0x370 [ 31.538461] [] ? pfkey_add+0x3490/0x3490 [ 31.544141] [] ? __skb_clone+0x24a/0x7d0 [ 31.549829] [] ? pfkey_delete+0x370/0x370 [ 31.555593] [] pfkey_process+0x68b/0x750 [ 31.561273] [] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 31.568082] [] pfkey_sendmsg+0x3a9/0x760 [ 31.573758] [] ? pfkey_spdget+0x820/0x820 [ 31.579612] [] sock_sendmsg+0xca/0x110 [ 31.585114] [] ___sys_sendmsg+0x6c1/0x7c0 [ 31.590878] [] ? copy_msghdr_from_user+0x550/0x550 [ 31.597425] [] ? check_preemption_disabled+0x3b/0x200 [ 31.604243] [] ? do_huge_pmd_anonymous_page+0x549/0xa10 [ 31.611224] [] ? _raw_spin_unlock+0x2c/0x50 [ 31.617165] [] ? do_huge_pmd_anonymous_page+0x3dd/0xa10 [ 31.624155] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 31.630876] [] ? __fget_light+0xa3/0x1e0 [ 31.636562] [] ? __fdget+0x18/0x20 [ 31.641722] [] __sys_sendmsg+0xd3/0x190 [ 31.647324] [] ? SyS_shutdown+0x1b0/0x1b0 [ 31.653091] [] ? __do_page_fault+0x380/0xa00 [ 31.659118] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 31.665923] [] SyS_sendmsg+0x2d/0x50 [ 31.671255] [] entry_SYSCALL_64_fastpath+0x1c/0x98 [ 31.677797] [ 31.679393] Allocated by task 3785: [ 31.682985] [] save_stack_trace+0x26/0x50 [ 31.688870] [] save_stack+0x43/0xd0 [ 31.694232] [] kasan_kmalloc+0xad/0xe0 [ 31.699853] [] kasan_krealloc+0x64/0x80 [ 31.705558] [] ksize+0x92/0xf0 [ 31.710483] [] __alloc_skb+0x132/0x600 [ 31.716103] [] pfkey_sendmsg+0x135/0x760 [ 31.721894] [] sock_sendmsg+0xca/0x110 [ 31.727514] [] ___sys_sendmsg+0x6c1/0x7c0 [ 31.733392] [] __sys_sendmsg+0xd3/0x190 [ 31.739096] [] SyS_sendmsg+0x2d/0x50 [ 31.744541] [] entry_SYSCALL_64_fastpath+0x1c/0x98 [ 31.751199] [ 31.752797] Freed by task 0: [ 31.755779] (stack is not available) [ 31.759454] [ 31.761053] The buggy address belongs to the object at ffff8801cc5f6f00 [ 31.761053] which belongs to the cache kmalloc-512 of size 512 [ 31.773674] The buggy address is located 64 bytes inside of [ 31.773674] 512-byte region [ffff8801cc5f6f00, ffff8801cc5f7100) [ 31.785436] The buggy address belongs to the page: [ 33.098340] PANIC: double fault, error_code: 0x0 [ 33.103109] CPU: 0 PID: 3785 Comm: syzkaller299773 Not tainted 4.4.120-gd63fdf6 #28 [ 33.110878] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.120211] task: ffff8800bbaa6000 task.stack: ffff8801c5668000 [ 33.126236] RIP: 0010:[] [] dump_page_badflags+0xd/0x250 [ 33.134988] RSP: 0018:ffff880100000000 EFLAGS: 00010046 [ 33.140405] RAX: ffff8800bbaa6000 RBX: ffffea0007317d80 RCX: ffffffff814909b0 [ 33.147642] RDX: 0000000000000000 RSI: ffffffff838a9060 RDI: ffffea0007317d80 [ 33.154881] RBP: ffff880100000018 R08: 0000000000000001 R09: 0000000000000000 [ 33.162118] R10: 0000000000000002 R11: fffffbfff0ad7e1e R12: 0000000000000000 [ 33.169371] R13: ffffffff838a9060 R14: 0000000000000000 R15: 0000000000000000 [ 33.176610] FS: 0000000000b45880(0063) GS:ffff8801db200000(0000) knlGS:0000000000000000 [ 33.184801] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 33.190652] CR2: ffff8800fffffff8 CR3: 00000001d9648000 CR4: 0000000000160670 [ 33.197893] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 33.205138] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 33.212383] Stack: [ 33.214498] [ 33.216092] Call Trace: [ 33.218642] [ 33.220672] 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 [ 33.247623] Kernel panic - not syncing: Machine halted. [ 33.252958] CPU: 0 PID: 3785 Comm: syzkaller299773 Not tainted 4.4.120-gd63fdf6 #28 [ 33.260717] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.270050] 0000000000000000 ef478501ff0e9318 ffff8801db20ce38 ffffffff81d0408d [ 33.278013] ffffffff838373a0 ffff8801db20cf10 ffffffff83808040 ffff880100000000 [ 33.285970] 0000000000000000 ffff8801db20cf00 ffffffff8141ab2a 0000000041b58ab3 [ 33.293929] Call Trace: [ 33.296477] <#DF> [] dump_stack+0xc1/0x124 [ 33.302546] [] panic+0x1aa/0x388 [ 33.307529] [] ? percpu_up_read.constprop.45+0xe1/0xe1 [ 33.314424] [] ? vprintk_emit+0x242/0x850 [ 33.320190] [] ? dump_page_badflags+0x22/0x250 [ 33.326389] [] ? vprintk_emit+0x242/0x850 [ 33.332159] [] df_debug+0x2d/0x30 [ 33.337234] [] do_double_fault+0x10b/0x210 [ 33.343089] [] double_fault+0x2d/0x40 [ 33.348505] [] ? dump_page_badflags+0x180/0x250 [ 33.354789] [] ? dump_page_badflags+0xd/0x250 [ 33.360899] <> [ 33.364360] Dumping ftrace buffer: [ 33.368208] (ftrace buffer empty) [ 33.371886] Kernel Offset: disabled [ 33.375490] Rebooting in 86400 seconds..