[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 18.513203] audit: type=1400 audit(1519581139.327:6): avc: denied { map } for pid=4232 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.55' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 24.795537] audit: type=1400 audit(1519581145.609:7): avc: denied { map } for pid=4246 comm="syzkaller056528" path="/root/syzkaller056528761" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 24.800324] ================================================================== [ 24.828805] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x259e/0x3270 [ 24.835354] Read of size 4096 at addr ffff8801b3844b00 by task syzkaller056528/4246 [ 24.843558] [ 24.845160] CPU: 1 PID: 4246 Comm: syzkaller056528 Not tainted 4.16.0-rc2+ #238 [ 24.852574] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.861897] Call Trace: [ 24.864457] dump_stack+0x194/0x24d [ 24.868075] ? arch_local_irq_restore+0x53/0x53 [ 24.872716] ? show_regs_print_info+0x18/0x18 [ 24.877183] ? __lock_is_held+0xb6/0x140 [ 24.881222] ? pfkey_add+0x259e/0x3270 [ 24.885085] print_address_description+0x73/0x250 [ 24.889899] ? pfkey_add+0x259e/0x3270 [ 24.893760] kasan_report+0x23b/0x360 [ 24.897546] check_memory_region+0x137/0x190 [ 24.901938] memcpy+0x23/0x50 [ 24.905030] pfkey_add+0x259e/0x3270 [ 24.908736] ? set_ipsecrequest+0x310/0x310 [ 24.913041] ? lock_release+0xa40/0xa40 [ 24.916995] ? set_ipsecrequest+0x310/0x310 [ 24.921297] pfkey_process+0x67e/0x740 [ 24.925164] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 24.930150] ? kasan_check_write+0x14/0x20 [ 24.934384] pfkey_sendmsg+0x4dc/0xa00 [ 24.938249] ? pfkey_spdget+0xb00/0xb00 [ 24.942197] ? selinux_socket_sendmsg+0x36/0x40 [ 24.946841] ? security_socket_sendmsg+0x89/0xb0 [ 24.951571] ? pfkey_spdget+0xb00/0xb00 [ 24.955522] sock_sendmsg+0xca/0x110 [ 24.959211] ___sys_sendmsg+0x767/0x8b0 [ 24.963165] ? SyS_membarrier+0x700/0x700 [ 24.967287] ? copy_msghdr_from_user+0x590/0x590 [ 24.972020] ? __handle_mm_fault+0x80e/0x3b60 [ 24.976491] ? __pmd_alloc+0x4e0/0x4e0 [ 24.980351] ? check_noncircular+0x20/0x20 [ 24.984564] ? __fget_light+0x2b2/0x3c0 [ 24.988512] ? fget_raw+0x20/0x20 [ 24.991949] ? find_held_lock+0x35/0x1d0 [ 24.995998] __sys_sendmsg+0xe5/0x210 [ 24.999771] ? __sys_sendmsg+0xe5/0x210 [ 25.003717] ? SyS_shutdown+0x290/0x290 [ 25.007669] ? __handle_mm_fault+0x3b60/0x3b60 [ 25.012222] ? vmacache_find+0x5f/0x280 [ 25.016193] compat_SyS_sendmsg+0x2a/0x40 [ 25.020315] ? compat_SyS_getsockopt+0x420/0x420 [ 25.025052] do_fast_syscall_32+0x3ec/0xf9f [ 25.029361] ? do_int80_syscall_32+0x9c0/0x9c0 [ 25.033914] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.038644] ? syscall_return_slowpath+0x550/0x550 [ 25.043547] ? syscall_return_slowpath+0x2ac/0x550 [ 25.048452] ? prepare_exit_to_usermode+0x350/0x350 [ 25.053444] ? retint_user+0x18/0x18 [ 25.057135] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.061956] entry_SYSENTER_compat+0x70/0x7f [ 25.066335] RIP: 0023:0xf7f54c99 [ 25.069668] RSP: 002b:00000000ffd9afec EFLAGS: 00000282 ORIG_RAX: 0000000000000172 [ 25.077348] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020196fe4 [ 25.084589] RDX: 0000000000000000 RSI: 0000000000000032 RDI: 00000000ffffffff [ 25.091831] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 25.099073] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.106316] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.113575] [ 25.115178] Allocated by task 4246: [ 25.118780] save_stack+0x43/0xd0 [ 25.122206] kasan_kmalloc+0xad/0xe0 [ 25.125889] __kmalloc_node_track_caller+0x47/0x70 [ 25.130791] __kmalloc_reserve.isra.39+0x41/0xd0 [ 25.135516] __alloc_skb+0x13b/0x780 [ 25.139203] pfkey_sendmsg+0x20f/0xa00 [ 25.143065] sock_sendmsg+0xca/0x110 [ 25.146750] ___sys_sendmsg+0x767/0x8b0 [ 25.150693] __sys_sendmsg+0xe5/0x210 [ 25.154467] compat_SyS_sendmsg+0x2a/0x40 [ 25.158585] do_fast_syscall_32+0x3ec/0xf9f [ 25.162877] entry_SYSENTER_compat+0x70/0x7f [ 25.167251] [ 25.168847] Freed by task 0: [ 25.171835] (stack is not available) [ 25.175515] [ 25.177115] The buggy address belongs to the object at ffff8801b3844ac0 [ 25.177115] which belongs to the cache kmalloc-512 of size 512 [ 25.189741] The buggy address is located 64 bytes inside of [ 25.189741] 512-byte region [ffff8801b3844ac0, ffff8801b3844cc0) [ 25.201498] The buggy address belongs to the page: [ 25.206397] page:ffffea0006ce1100 count:1 mapcount:0 mapping:ffff8801b38440c0 index:0x0 [ 25.214515] flags: 0x2fffc0000000100(slab) [ 25.218724] raw: 02fffc0000000100 ffff8801b38440c0 0000000000000000 0000000100000006 [ 25.226575] raw: ffffea0006c36c60 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.234425] page dumped because: kasan: bad access detected [ 25.240102] [ 25.241701] Memory state around the buggy address: [ 25.246602] ffff8801b3844b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.253930] ffff8801b3844c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.261262] >ffff8801b3844c80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.268590] ^ [ 25.274011] ffff8801b3844d00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.281340] ffff8801b3844d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.288667] ================================================================== [ 25.295993] Disabling lock debugging due to kernel taint [ 25.301578] Kernel panic - not syncing: panic_on_warn set ... [ 25.301578] [ 25.308923] CPU: 1 PID: 4246 Comm: syzkaller056528 Tainted: G B 4.16.0-rc2+ #238 [ 25.317639] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.326961] Call Trace: [ 25.329521] dump_stack+0x194/0x24d [ 25.333122] ? arch_local_irq_restore+0x53/0x53 [ 25.337761] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.342488] ? vsnprintf+0x1ed/0x1900 [ 25.346262] ? pfkey_add+0x2530/0x3270 [ 25.350121] panic+0x1e4/0x41c [ 25.353292] ? refcount_error_report+0x214/0x214 [ 25.358024] ? add_taint+0x1c/0x50 [ 25.361533] ? add_taint+0x1c/0x50 [ 25.365042] ? pfkey_add+0x259e/0x3270 [ 25.368900] kasan_end_report+0x50/0x50 [ 25.372842] kasan_report+0x148/0x360 [ 25.376617] check_memory_region+0x137/0x190 [ 25.380994] memcpy+0x23/0x50 [ 25.384076] pfkey_add+0x259e/0x3270 [ 25.387765] ? set_ipsecrequest+0x310/0x310 [ 25.392063] ? lock_release+0xa40/0xa40 [ 25.396016] ? set_ipsecrequest+0x310/0x310 [ 25.400313] pfkey_process+0x67e/0x740 [ 25.404175] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 25.409161] ? kasan_check_write+0x14/0x20 [ 25.413384] pfkey_sendmsg+0x4dc/0xa00 [ 25.417249] ? pfkey_spdget+0xb00/0xb00 [ 25.421196] ? selinux_socket_sendmsg+0x36/0x40 [ 25.425842] ? security_socket_sendmsg+0x89/0xb0 [ 25.430571] ? pfkey_spdget+0xb00/0xb00 [ 25.434525] sock_sendmsg+0xca/0x110 [ 25.438213] ___sys_sendmsg+0x767/0x8b0 [ 25.442164] ? SyS_membarrier+0x700/0x700 [ 25.446282] ? copy_msghdr_from_user+0x590/0x590 [ 25.451019] ? __handle_mm_fault+0x80e/0x3b60 [ 25.455490] ? __pmd_alloc+0x4e0/0x4e0 [ 25.459347] ? check_noncircular+0x20/0x20 [ 25.463555] ? __fget_light+0x2b2/0x3c0 [ 25.467501] ? fget_raw+0x20/0x20 [ 25.470931] ? find_held_lock+0x35/0x1d0 [ 25.474970] __sys_sendmsg+0xe5/0x210 [ 25.478744] ? __sys_sendmsg+0xe5/0x210 [ 25.482688] ? SyS_shutdown+0x290/0x290 [ 25.486633] ? __handle_mm_fault+0x3b60/0x3b60 [ 25.491184] ? vmacache_find+0x5f/0x280 [ 25.495151] compat_SyS_sendmsg+0x2a/0x40 [ 25.499270] ? compat_SyS_getsockopt+0x420/0x420 [ 25.503997] do_fast_syscall_32+0x3ec/0xf9f [ 25.508295] ? do_int80_syscall_32+0x9c0/0x9c0 [ 25.512844] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.517570] ? syscall_return_slowpath+0x550/0x550 [ 25.522471] ? syscall_return_slowpath+0x2ac/0x550 [ 25.527369] ? prepare_exit_to_usermode+0x350/0x350 [ 25.532358] ? retint_user+0x18/0x18 [ 25.536047] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.540861] entry_SYSENTER_compat+0x70/0x7f [ 25.545241] RIP: 0023:0xf7f54c99 [ 25.548573] RSP: 002b:00000000ffd9afec EFLAGS: 00000282 ORIG_RAX: 0000000000000172 [ 25.556252] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020196fe4 [ 25.563493] RDX: 0000000000000000 RSI: 0000000000000032 RDI: 00000000ffffffff [ 25.570732] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 25.577971] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.585211] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.592958] Dumping ftrace buffer: [ 25.596475] (ftrace buffer empty) [ 25.600153] Kernel Offset: disabled [ 25.603749] Rebooting in 86400 seconds..