random: sshd: uninitialized urandom read (32 bytes read, 107 bits of entropy available) ================================================================== BUG: KASAN: slab-out-of-bounds in pfkey_msg2xfrm_state net/key/af_key.c:1180 [inline] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x270e/0x3490 net/key/af_key.c:1498 Read of size 2048 at addr ffff8800b52bc298 by task syzkaller439206/3315 CPU: 0 PID: 3315 Comm: syzkaller439206 Not tainted 4.4.107-g610c835 #12 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 890f529b5f5428c7 ffff8801d1eef778 ffffffff81d0457d ffffea0002d4af00 ffff8800b52bc298 0000000000000000 ffff8800b52bc480 ffff8801d1eef9b8 ffff8801d1eef7b0 ffffffff814fbb23 ffff8800b52bc298 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x73/0x260 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report+0x285/0x370 mm/kasan/report.c:408 [] check_memory_region_inline mm/kasan/kasan.c:325 [inline] [] check_memory_region+0x137/0x190 mm/kasan/kasan.c:332 [] memcpy+0x23/0x50 mm/kasan/kasan.c:367 [] pfkey_msg2xfrm_state net/key/af_key.c:1180 [inline] [] pfkey_add+0x270e/0x3490 net/key/af_key.c:1498 [] pfkey_process+0x61e/0x730 net/key/af_key.c:2826 [] pfkey_sendmsg+0x3a9/0x760 net/key/af_key.c:3670 [] sock_sendmsg_nosec net/socket.c:625 [inline] [] sock_sendmsg+0xca/0x110 net/socket.c:635 [] ___sys_sendmsg+0x6c1/0x7c0 net/socket.c:1962 [] __sys_sendmsg+0xd3/0x190 net/socket.c:1996 [] SYSC_sendmsg net/socket.c:2007 [inline] [] SyS_sendmsg+0x2d/0x50 net/socket.c:2003 [] entry_SYSCALL_64_fastpath+0x16/0x76 Allocated by task 3315: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:616 [] kasan_krealloc+0x64/0x80 mm/kasan/kasan.c:654 [] ksize+0x92/0xf0 mm/slub.c:3727 [] __alloc_skb+0x132/0x600 net/core/skbuff.c:237 [] alloc_skb include/linux/skbuff.h:815 [inline] [] pfkey_sendmsg+0x135/0x760 net/key/af_key.c:3657 [] sock_sendmsg_nosec net/socket.c:625 [inline] [] sock_sendmsg+0xca/0x110 net/socket.c:635 [] ___sys_sendmsg+0x6c1/0x7c0 net/socket.c:1962 [] __sys_sendmsg+0xd3/0x190 net/socket.c:1996 [] SYSC_sendmsg net/socket.c:2007 [inline] [] SyS_sendmsg+0x2d/0x50 net/socket.c:2003 [] entry_SYSCALL_64_fastpath+0x16/0x76 Freed by task 1857: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:589 [] slab_free_hook mm/slub.c:1383 [inline] [] slab_free_freelist_hook mm/slub.c:1405 [inline] [] slab_free mm/slub.c:2859 [inline] [] kfree+0xfc/0x300 mm/slub.c:3749 [] load_elf_binary+0x1fc7/0x4b30 fs/binfmt_elf.c:1075 [] search_binary_handler+0x142/0x6b0 fs/exec.c:1471 [] exec_binprm fs/exec.c:1513 [inline] [] do_execveat_common.isra.36+0x1492/0x1e60 fs/exec.c:1635 [] do_execve fs/exec.c:1679 [inline] [] SYSC_execve fs/exec.c:1760 [inline] [] SyS_execve+0x42/0x50 fs/exec.c:1755 [] return_from_execve+0x0/0x23 The buggy address belongs to the object at ffff8800b52bc280 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 24 bytes inside of 512-byte region [ffff8800b52bc280, ffff8800b52bc480) The buggy address belongs to the page: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.107-g610c835 #12 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801da2997c0 task.stack: ffff8801da2a8000 RIP: 0010:[] [] slab_alloc_node mm/slub.c:2600 [inline] RIP: 0010:[] [] slab_alloc mm/slub.c:2623 [inline] RIP: 0010:[] [] kmem_cache_alloc+0x7b/0x290 mm/slub.c:2628 RSP: 0018:ffff8801db307418 EFLAGS: 00010246 RAX: 4f5f4755425f4d56 RBX: 0000000000000000 RCX: 0000000000024840 RDX: 0000000000059dc1 RSI: 0000000000059dc1 RDI: 0000000000024840 RBP: ffff8801db307448 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 1ffff1003b660e5c R12: 0000000002080020 R13: ffffffff82e097a2 R14: 4f5f4755425f4d56 R15: ffff8801da2f2640 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e6b5669110 CR3: 00000001d2d87000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 0000000000000000 ffff8800b66f2fe0 ffff8800b623dbc0 0000000002080020 dffffc0000000000 ffff8800b7e0c400 ffff8801db307478 ffffffff82e097a2 0000000000000000 ffff8800b7e0cb80 0000000000000000 dffffc0000000000 Call Trace: [] skb_clone+0x142/0x2c0 net/core/skbuff.c:956 [] dev_queue_xmit_nit net/core/dev.c:1882 [inline] [] xmit_one net/core/dev.c:2748 [inline] [] dev_hard_start_xmit+0x32c/0x1220 net/core/dev.c:2768 [] sch_direct_xmit+0x2c1/0x760 net/sched/sch_generic.c:165 [] __dev_xmit_skb net/core/dev.c:2939 [inline] [] __dev_queue_xmit+0x1368/0x1a70 net/core/dev.c:3157 PANIC: double fault, error_code: 0x0 CPU: 0 PID: 3315 Comm: syzkaller439206 Not tainted 4.4.107-g610c835 #12 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b51d2f80 task.stack: ffff8801d1ee8000 RIP: 0010:[] [] dump_page_badflags+0xd/0x250 mm/debug.c:84 RSP: 0018:ffff880100000000 EFLAGS: 00010046 RAX: ffff8800b51d2f80 RBX: ffffea0002d4af00 RCX: ffffffff8148e4e0 RDX: 0000000000000000 RSI: ffffffff838a7f60 RDI: ffffea0002d4af00 RBP: ffff880100000018 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000002 R11: fffffbfff0ad641e R12: 0000000000000000 R13: ffffffff838a7f60 R14: 0000000000000000 R15: 0000000000000000 FS: 00000000016d7880(0063) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8800fffffff8 CR3: 00000000b44aa000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: Call Trace: 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