[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 18.870153] audit: type=1400 audit(1519580676.518:6): avc: denied { map } for pid=4220 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.9' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 28.378173] audit: type=1400 audit(1519580686.026:7): avc: denied { map } for pid=4235 comm="syzkaller035489" path="/root/syzkaller035489845" 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 [ 28.383015] ================================================================== [ 28.411514] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x259e/0x3270 [ 28.418069] Read of size 4096 at addr ffff8801b027b300 by task syzkaller035489/4235 [ 28.425830] [ 28.427436] CPU: 0 PID: 4235 Comm: syzkaller035489 Not tainted 4.16.0-rc2+ #328 [ 28.434854] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.444178] Call Trace: [ 28.446740] dump_stack+0x194/0x24d [ 28.450343] ? arch_local_irq_restore+0x53/0x53 [ 28.454984] ? show_regs_print_info+0x18/0x18 [ 28.459450] ? __lock_is_held+0xb6/0x140 [ 28.463487] ? pfkey_add+0x259e/0x3270 [ 28.467349] print_address_description+0x73/0x250 [ 28.472165] ? pfkey_add+0x259e/0x3270 [ 28.476031] kasan_report+0x23b/0x360 [ 28.479816] check_memory_region+0x137/0x190 [ 28.484200] memcpy+0x23/0x50 [ 28.487279] pfkey_add+0x259e/0x3270 [ 28.490973] ? set_ipsecrequest+0x310/0x310 [ 28.495271] ? lock_release+0xa40/0xa40 [ 28.499216] ? set_ipsecrequest+0x310/0x310 [ 28.503510] pfkey_process+0x67e/0x740 [ 28.507381] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 28.512370] ? kasan_check_write+0x14/0x20 [ 28.516595] ? dup_iter+0x212/0x260 [ 28.520202] pfkey_sendmsg+0x4dc/0xa00 [ 28.524073] ? pfkey_spdget+0xb00/0xb00 [ 28.528033] ? selinux_socket_sendmsg+0x36/0x40 [ 28.532683] ? security_socket_sendmsg+0x89/0xb0 [ 28.537412] ? pfkey_spdget+0xb00/0xb00 [ 28.541364] sock_sendmsg+0xca/0x110 [ 28.545313] ___sys_sendmsg+0x767/0x8b0 [ 28.549266] ? SyS_membarrier+0x700/0x700 [ 28.553391] ? copy_msghdr_from_user+0x590/0x590 [ 28.558124] ? __pmd_alloc+0x4e0/0x4e0 [ 28.561989] ? check_noncircular+0x20/0x20 [ 28.566195] ? find_held_lock+0x35/0x1d0 [ 28.570233] ? __fget_light+0x2b2/0x3c0 [ 28.574183] ? fget_raw+0x20/0x20 [ 28.577628] ? find_held_lock+0x35/0x1d0 [ 28.581694] ? __do_page_fault+0x5f7/0xc90 [ 28.585924] ? lock_downgrade+0x980/0x980 [ 28.590070] __sys_sendmsg+0xe5/0x210 [ 28.593848] ? __sys_sendmsg+0xe5/0x210 [ 28.597795] ? SyS_shutdown+0x290/0x290 [ 28.601752] ? __do_page_fault+0x3d6/0xc90 [ 28.605967] ? move_addr_to_kernel+0x60/0x60 [ 28.610352] ? __sys_sendmsg+0x210/0x210 [ 28.614385] SyS_sendmsg+0x2d/0x50 [ 28.617901] do_syscall_64+0x280/0x940 [ 28.621760] ? __do_page_fault+0xc90/0xc90 [ 28.625968] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.630698] ? syscall_return_slowpath+0x550/0x550 [ 28.635601] ? syscall_return_slowpath+0x2ac/0x550 [ 28.640500] ? prepare_exit_to_usermode+0x350/0x350 [ 28.645490] ? retint_user+0x18/0x18 [ 28.649179] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.653999] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 28.659166] RIP: 0033:0x43ffe9 [ 28.662328] RSP: 002b:00007fff069de6f8 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 28.670007] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ffe9 [ 28.677269] RDX: 0000000000000000 RSI: 0000000020196fe4 RDI: 0000000000000003 [ 28.684512] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 28.691753] R10: 00000000004002c8 R11: 0000000000000203 R12: 0000000000401910 [ 28.698993] R13: 00000000004019a0 R14: 0000000000000000 R15: 0000000000000000 [ 28.706262] [ 28.707862] Allocated by task 4235: [ 28.711465] save_stack+0x43/0xd0 [ 28.714889] kasan_kmalloc+0xad/0xe0 [ 28.718573] __kmalloc_node_track_caller+0x47/0x70 [ 28.723473] __kmalloc_reserve.isra.39+0x41/0xd0 [ 28.728196] __alloc_skb+0x13b/0x780 [ 28.731879] pfkey_sendmsg+0x20f/0xa00 [ 28.735737] sock_sendmsg+0xca/0x110 [ 28.739430] ___sys_sendmsg+0x767/0x8b0 [ 28.743372] __sys_sendmsg+0xe5/0x210 [ 28.747141] SyS_sendmsg+0x2d/0x50 [ 28.750654] do_syscall_64+0x280/0x940 [ 28.754513] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 28.759671] [ 28.761271] Freed by task 0: [ 28.764256] (stack is not available) [ 28.767936] [ 28.769537] The buggy address belongs to the object at ffff8801b027b2c0 [ 28.769537] which belongs to the cache kmalloc-512 of size 512 [ 28.782162] The buggy address is located 64 bytes inside of [ 28.782162] 512-byte region [ffff8801b027b2c0, ffff8801b027b4c0) [ 28.793915] The buggy address belongs to the page: [ 28.798815] page:ffffea0006c09ec0 count:1 mapcount:0 mapping:ffff8801b027b040 index:0x0 [ 28.806929] flags: 0x2fffc0000000100(slab) [ 28.811138] raw: 02fffc0000000100 ffff8801b027b040 0000000000000000 0000000100000006 [ 28.818992] raw: ffffea0006c0fc20 ffffea0006c0e720 ffff8801dac00940 0000000000000000 [ 28.826849] page dumped because: kasan: bad access detected [ 28.832526] [ 28.834133] Memory state around the buggy address: [ 28.839032] ffff8801b027b380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.846362] ffff8801b027b400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.853697] >ffff8801b027b480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 28.861026] ^ [ 28.866446] ffff8801b027b500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 28.873773] ffff8801b027b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.881099] ================================================================== [ 28.888424] Disabling lock debugging due to kernel taint [ 28.894046] Kernel panic - not syncing: panic_on_warn set ... [ 28.894046] [ 28.901395] CPU: 0 PID: 4235 Comm: syzkaller035489 Tainted: G B 4.16.0-rc2+ #328 [ 28.910109] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.919444] Call Trace: [ 28.922004] dump_stack+0x194/0x24d [ 28.925609] ? arch_local_irq_restore+0x53/0x53 [ 28.930250] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.934979] ? vsnprintf+0x1ed/0x1900 [ 28.938750] ? pfkey_add+0x2530/0x3270 [ 28.942608] panic+0x1e4/0x41c [ 28.945784] ? refcount_error_report+0x214/0x214 [ 28.950513] ? add_taint+0x1c/0x50 [ 28.954025] ? add_taint+0x1c/0x50 [ 28.957538] ? pfkey_add+0x259e/0x3270 [ 28.961394] kasan_end_report+0x50/0x50 [ 28.965339] kasan_report+0x148/0x360 [ 28.969118] check_memory_region+0x137/0x190 [ 28.973504] memcpy+0x23/0x50 [ 28.976578] pfkey_add+0x259e/0x3270 [ 28.980265] ? set_ipsecrequest+0x310/0x310 [ 28.984557] ? lock_release+0xa40/0xa40 [ 28.988507] ? set_ipsecrequest+0x310/0x310 [ 28.992797] pfkey_process+0x67e/0x740 [ 28.996657] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 29.001641] ? kasan_check_write+0x14/0x20 [ 29.005856] ? dup_iter+0x212/0x260 [ 29.009456] pfkey_sendmsg+0x4dc/0xa00 [ 29.013314] ? pfkey_spdget+0xb00/0xb00 [ 29.017258] ? selinux_socket_sendmsg+0x36/0x40 [ 29.021899] ? security_socket_sendmsg+0x89/0xb0 [ 29.026629] ? pfkey_spdget+0xb00/0xb00 [ 29.030575] sock_sendmsg+0xca/0x110 [ 29.034260] ___sys_sendmsg+0x767/0x8b0 [ 29.038203] ? SyS_membarrier+0x700/0x700 [ 29.042330] ? copy_msghdr_from_user+0x590/0x590 [ 29.047061] ? __pmd_alloc+0x4e0/0x4e0 [ 29.050919] ? check_noncircular+0x20/0x20 [ 29.055130] ? find_held_lock+0x35/0x1d0 [ 29.059162] ? __fget_light+0x2b2/0x3c0 [ 29.063107] ? fget_raw+0x20/0x20 [ 29.066532] ? find_held_lock+0x35/0x1d0 [ 29.070568] ? __do_page_fault+0x5f7/0xc90 [ 29.074781] ? lock_downgrade+0x980/0x980 [ 29.078903] __sys_sendmsg+0xe5/0x210 [ 29.082672] ? __sys_sendmsg+0xe5/0x210 [ 29.086616] ? SyS_shutdown+0x290/0x290 [ 29.090566] ? __do_page_fault+0x3d6/0xc90 [ 29.094775] ? move_addr_to_kernel+0x60/0x60 [ 29.099154] ? __sys_sendmsg+0x210/0x210 [ 29.103184] SyS_sendmsg+0x2d/0x50 [ 29.106695] do_syscall_64+0x280/0x940 [ 29.110554] ? __do_page_fault+0xc90/0xc90 [ 29.114758] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.119485] ? syscall_return_slowpath+0x550/0x550 [ 29.124383] ? syscall_return_slowpath+0x2ac/0x550 [ 29.129282] ? prepare_exit_to_usermode+0x350/0x350 [ 29.134270] ? retint_user+0x18/0x18 [ 29.137957] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.142774] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 29.147931] RIP: 0033:0x43ffe9 [ 29.151091] RSP: 002b:00007fff069de6f8 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 29.158767] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ffe9 [ 29.166009] RDX: 0000000000000000 RSI: 0000000020196fe4 RDI: 0000000000000003 [ 29.173255] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 29.180493] R10: 00000000004002c8 R11: 0000000000000203 R12: 0000000000401910 [ 29.187730] R13: 00000000004019a0 R14: 0000000000000000 R15: 0000000000000000 [ 29.195467] Dumping ftrace buffer: [ 29.198977] (ftrace buffer empty) [ 29.202655] Kernel Offset: disabled [ 29.206250] Rebooting in 86400 seconds..