[....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 16.999323] random: sshd: uninitialized urandom read (32 bytes read, 33 bits of entropy available) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 22.024070] random: sshd: uninitialized urandom read (32 bytes read, 38 bits of entropy available) [ 22.361358] random: sshd: uninitialized urandom read (32 bytes read, 40 bits of entropy available) [ 23.202275] random: sshd: uninitialized urandom read (32 bytes read, 102 bits of entropy available) [ 23.384727] random: sshd: uninitialized urandom read (32 bytes read, 107 bits of entropy available) Warning: Permanently added '10.128.0.62' (ECDSA) to the list of known hosts. [ 28.762668] random: sshd: uninitialized urandom read (32 bytes read, 114 bits of entropy available) executing program [ 28.863137] ================================================================== [ 28.870531] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x153f/0x3490 [ 28.877077] Read of size 8192 at addr ffff8800b4fc8518 by task syzkaller878019/3324 [ 28.884832] [ 28.886430] CPU: 0 PID: 3324 Comm: syzkaller878019 Not tainted 4.4.107-g610c835 #4 [ 28.894097] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.903417] 0000000000000000 a9db625c62654c95 ffff8801d17276f8 ffffffff81d0457d [ 28.911364] ffffea0002d3f200 ffff8800b4fc8518 0000000000000000 ffff8800b4fc8700 [ 28.919313] ffff8801d1727938 ffff8801d1727730 ffffffff814fbb23 ffff8800b4fc8518 [ 28.927259] Call Trace: [ 28.929815] [] dump_stack+0xc1/0x124 [ 28.935145] [] print_address_description+0x73/0x260 [ 28.941776] [] kasan_report+0x285/0x370 [ 28.947367] [] ? pfkey_add+0x153f/0x3490 [ 28.953951] [] check_memory_region+0x137/0x190 [ 28.960153] [] memcpy+0x23/0x50 [ 28.965051] [] pfkey_add+0x153f/0x3490 [ 28.970557] [] ? pfkey_delete+0x370/0x370 [ 28.976318] [] ? pfkey_add+0x3490/0x3490 [ 28.981995] [] ? __skb_clone+0x24a/0x7d0 [ 28.987672] [] ? pfkey_delete+0x370/0x370 [ 28.993435] [] pfkey_process+0x61e/0x730 [ 28.999119] [] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 29.005924] [] pfkey_sendmsg+0x3a9/0x760 [ 29.011601] [] ? pfkey_spdget+0x820/0x820 [ 29.017371] [] sock_sendmsg+0xca/0x110 [ 29.022881] [] ___sys_sendmsg+0x6c1/0x7c0 [ 29.028643] [] ? copy_msghdr_from_user+0x550/0x550 [ 29.035192] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 29.042201] [] ? __alloc_pages_direct_compact+0x250/0x250 [ 29.049360] [] ? __lock_is_held+0xa1/0xf0 [ 29.055126] [] ? check_preemption_disabled+0x3b/0x200 [ 29.061933] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 29.068650] [] ? __fget_light+0xa1/0x1e0 [ 29.074327] [] ? __fdget+0x18/0x20 [ 29.079483] [] ? sockfd_lookup_light+0x118/0x160 [ 29.085853] [] __sys_sendmsg+0xd3/0x190 [ 29.091444] [] ? SyS_shutdown+0x1b0/0x1b0 [ 29.097212] [] ? __do_page_fault+0x380/0xa00 [ 29.103251] [] compat_SyS_sendmsg+0x2a/0x40 [ 29.109187] [] ? compat_SyS_getsockopt+0x2a0/0x2a0 [ 29.115735] [] do_fast_syscall_32+0x314/0x890 [ 29.121850] [] sysenter_flags_fixed+0xd/0x17 [ 29.127870] [ 29.129465] Allocated by task 3324: [ 29.133056] [] save_stack_trace+0x26/0x50 [ 29.138937] [] save_stack+0x43/0xd0 [ 29.144294] [] kasan_kmalloc+0xad/0xe0 [ 29.149918] [] kasan_krealloc+0x64/0x80 [ 29.155623] [] ksize+0x92/0xf0 [ 29.160552] [] __alloc_skb+0x132/0x600 [ 29.166166] [] pfkey_sendmsg+0x135/0x760 [ 29.171957] [] sock_sendmsg+0xca/0x110 [ 29.177567] [] ___sys_sendmsg+0x6c1/0x7c0 [ 29.183441] [] __sys_sendmsg+0xd3/0x190 [ 29.189137] [] compat_SyS_sendmsg+0x2a/0x40 [ 29.195184] [] do_fast_syscall_32+0x314/0x890 [ 29.201410] [] sysenter_flags_fixed+0xd/0x17 [ 29.207548] [ 29.209140] Freed by task 1767: [ 29.212383] [] save_stack_trace+0x26/0x50 [ 29.218256] [] save_stack+0x43/0xd0 [ 29.223609] [] kasan_slab_free+0x72/0xc0 [ 29.229394] [] kfree+0xfc/0x300 [ 29.234400] [] skb_release_data+0x2ed/0x3b0 [ 29.240444] [] skb_release_all+0x4a/0x60 [ 29.246228] [] consume_skb+0xf3/0x3d0 [ 29.251752] [] skb_free_datagram+0x1a/0xe0 [ 29.257712] [] netlink_recvmsg+0x60b/0xe10 [ 29.263674] [] sock_recvmsg+0x8c/0xc0 [ 29.269198] [] ___sys_recvmsg+0x26d/0x560 [ 29.275071] [] __sys_recvmsg+0xd3/0x190 [ 29.280772] [] SyS_recvmsg+0x2d/0x50 [ 29.286211] [] entry_SYSCALL_64_fastpath+0x16/0x76 [ 29.292882] [ 29.294476] The buggy address belongs to the object at ffff8800b4fc8500 [ 29.294476] which belongs to the cache kmalloc-512 of size 512 [ 29.307097] The buggy address is located 24 bytes inside of [ 29.307097] 512-byte region [ffff8800b4fc8500, ffff8800b4fc8700) [ 29.318846] The buggy address belongs to the page: [ 30.762119] PANIC: double fault, error_code: 0x0 [ 30.766901] CPU: 0 PID: 3324 Comm: syzkaller878019 Not tainted 4.4.107-g610c835 #4 [ 30.774569] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.783890] task: ffff8801d33f0000 task.stack: ffff8801d1720000 [ 30.789921] RIP: 0010:[] [] dump_page_badflags+0xd/0x250 [ 30.798675] RSP: 0018:ffff880100000000 EFLAGS: 00010046 [ 30.804090] RAX: ffff8801d33f0000 RBX: ffffea0002d3f200 RCX: ffffffff8148e4e0 [ 30.811325] RDX: 0000000000000000 RSI: ffffffff838a7f60 RDI: ffffea0002d3f200 [ 30.818558] RBP: ffff880100000018 R08: 0000000000000001 R09: 0000000000000000 [ 30.825793] R10: 0000000000000002 R11: fffffbfff0ad641e R12: 0000000000000000 [ 30.833028] R13: ffffffff838a7f60 R14: 0000000000000000 R15: 0000000000000000 [ 30.840266] FS: 0000000000000000(0000) GS:ffff8801db200000(0063) knlGS:0000000009c61840 [ 30.848459] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 [ 30.854306] CR2: ffff8800fffffff8 CR3: 00000000bb2db000 CR4: 00000000001406f0 [ 30.861553] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 30.868790] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 30.876025] Stack: [ 30.878139] [ 30.879729] Call Trace: [ 30.882282] [ 30.884307] Code: ff e8 38 de 06 00 e9 50 fd ff ff e8 2e de 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 b1 f7 ec ff 48 8d 7b [ 30.911039] Kernel panic - not syncing: Machine halted. [ 30.916370] CPU: 0 PID: 3324 Comm: syzkaller878019 Not tainted 4.4.107-g610c835 #4 [ 30.924041] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.933362] 0000000000000000 a9db625c62654c95 ffff8801db209e38 ffffffff81d0457d [ 30.941311] ffffffff83836620 ffff8801db209f10 ffffffff83808040 ffff880100000000 [ 30.949258] 0000000000000000 ffff8801db209f00 ffffffff8141774a 0000000041b58ab3 [ 30.957209] Call Trace: [ 30.959754] <#DF> [] dump_stack+0xc1/0x124 [ 30.965818] [] panic+0x1aa/0x388 [ 30.971684] [] ? percpu_up_read.constprop.45+0xe1/0xe1 [ 30.978579] [] ? vprintk_emit+0x242/0x850 [ 30.984352] [] ? dump_page_badflags+0x22/0x250 [ 30.990549] [] ? vprintk_emit+0x242/0x850 [ 30.996323] [] df_debug+0x2d/0x30 [ 31.001391] [] do_double_fault+0x10b/0x210 [ 31.007238] [] double_fault+0x2d/0x40 [ 31.012654] [] ? dump_page_badflags+0x180/0x250 [ 31.018937] [] ? dump_page_badflags+0xd/0x250 [ 31.025052] <> [ 31.028122] Dumping ftrace buffer: [ 31.031960] (ftrace buffer empty) [ 31.035637] Kernel Offset: disabled [ 31.039251] Rebooting in 86400 seconds..