[....] Starting enhanced syslogd: rsyslogd[ 15.852161] audit: type=1400 audit(1519580772.816:5): avc: denied { syslog } for pid=3936 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?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. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 20.078587] audit: type=1400 audit(1519580777.043:6): avc: denied { map } for pid=4074 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 Warning: Permanently added '10.128.15.212' (ECDSA) to the list of known hosts. executing program [ 26.398821] audit: type=1400 audit(1519580783.363:7): avc: denied { map } for pid=4088 comm="syzkaller578649" path="/root/syzkaller578649668" 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 [ 26.404760] ================================================================== [ 26.433095] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x259e/0x3270 [ 26.439662] Read of size 4096 at addr ffff8801ccfd1800 by task syzkaller578649/4088 [ 26.447427] [ 26.449049] CPU: 1 PID: 4088 Comm: syzkaller578649 Not tainted 4.16.0-rc2+ #241 [ 26.456566] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.465897] Call Trace: [ 26.468470] dump_stack+0x194/0x24d [ 26.472089] ? arch_local_irq_restore+0x53/0x53 [ 26.476736] ? show_regs_print_info+0x18/0x18 [ 26.481203] ? __lock_is_held+0xb6/0x140 [ 26.485244] ? pfkey_add+0x259e/0x3270 [ 26.489114] print_address_description+0x73/0x250 [ 26.493934] ? pfkey_add+0x259e/0x3270 [ 26.497800] kasan_report+0x23b/0x360 [ 26.501585] check_memory_region+0x137/0x190 [ 26.505986] memcpy+0x23/0x50 [ 26.509075] pfkey_add+0x259e/0x3270 [ 26.512777] ? set_ipsecrequest+0x310/0x310 [ 26.517087] ? lock_release+0xa40/0xa40 [ 26.521049] ? set_ipsecrequest+0x310/0x310 [ 26.525354] pfkey_process+0x67e/0x740 [ 26.529219] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 26.534220] ? kasan_check_write+0x14/0x20 [ 26.538454] ? dup_iter+0x212/0x260 [ 26.542069] pfkey_sendmsg+0x4dc/0xa00 [ 26.545947] ? pfkey_spdget+0xb00/0xb00 [ 26.549922] ? selinux_socket_sendmsg+0x36/0x40 [ 26.554587] ? security_socket_sendmsg+0x89/0xb0 [ 26.559321] ? pfkey_spdget+0xb00/0xb00 [ 26.563275] sock_sendmsg+0xca/0x110 [ 26.566964] ___sys_sendmsg+0x767/0x8b0 [ 26.570942] ? SyS_membarrier+0x700/0x700 [ 26.575084] ? copy_msghdr_from_user+0x590/0x590 [ 26.579837] ? __pmd_alloc+0x4e0/0x4e0 [ 26.583721] ? check_noncircular+0x20/0x20 [ 26.587939] ? find_held_lock+0x35/0x1d0 [ 26.591990] ? __fget_light+0x2b2/0x3c0 [ 26.595945] ? fget_raw+0x20/0x20 [ 26.599381] ? find_held_lock+0x35/0x1d0 [ 26.603431] ? __do_page_fault+0x5f7/0xc90 [ 26.607653] ? lock_downgrade+0x980/0x980 [ 26.611792] __sys_sendmsg+0xe5/0x210 [ 26.615579] ? __sys_sendmsg+0xe5/0x210 [ 26.619549] ? SyS_shutdown+0x290/0x290 [ 26.623510] ? __do_page_fault+0x3d6/0xc90 [ 26.627734] ? move_addr_to_kernel+0x60/0x60 [ 26.632132] ? __sys_sendmsg+0x210/0x210 [ 26.636178] SyS_sendmsg+0x2d/0x50 [ 26.639714] do_syscall_64+0x280/0x940 [ 26.643594] ? __do_page_fault+0xc90/0xc90 [ 26.647832] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.652581] ? syscall_return_slowpath+0x550/0x550 [ 26.657501] ? syscall_return_slowpath+0x2ac/0x550 [ 26.662434] ? prepare_exit_to_usermode+0x350/0x350 [ 26.667433] ? retint_user+0x18/0x18 [ 26.671139] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.675967] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.681130] RIP: 0033:0x43ffe9 [ 26.684298] RSP: 002b:00007ffd86300998 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 26.691979] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ffe9 [ 26.699485] RDX: 0000000000000000 RSI: 0000000020196fe4 RDI: 0000000000000003 [ 26.706731] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 26.713979] R10: 00000000004002c8 R11: 0000000000000203 R12: 0000000000401910 [ 26.721230] R13: 00000000004019a0 R14: 0000000000000000 R15: 0000000000000000 [ 26.728495] [ 26.730096] Allocated by task 4088: [ 26.733703] save_stack+0x43/0xd0 [ 26.737159] kasan_kmalloc+0xad/0xe0 [ 26.740847] __kmalloc_node_track_caller+0x47/0x70 [ 26.745752] __kmalloc_reserve.isra.39+0x41/0xd0 [ 26.750476] __alloc_skb+0x13b/0x780 [ 26.754160] pfkey_sendmsg+0x20f/0xa00 [ 26.758016] sock_sendmsg+0xca/0x110 [ 26.761704] ___sys_sendmsg+0x767/0x8b0 [ 26.765646] __sys_sendmsg+0xe5/0x210 [ 26.769503] SyS_sendmsg+0x2d/0x50 [ 26.773014] do_syscall_64+0x280/0x940 [ 26.776873] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.782045] [ 26.783641] Freed by task 0: [ 26.786626] (stack is not available) [ 26.790309] [ 26.791907] The buggy address belongs to the object at ffff8801ccfd17c0 [ 26.791907] which belongs to the cache kmalloc-512 of size 512 [ 26.804532] The buggy address is located 64 bytes inside of [ 26.804532] 512-byte region [ffff8801ccfd17c0, ffff8801ccfd19c0) [ 26.816472] The buggy address belongs to the page: [ 26.821372] page:ffffea000733f440 count:1 mapcount:0 mapping:ffff8801ccfd1040 index:0x0 [ 26.829485] flags: 0x2fffc0000000100(slab) [ 26.833691] raw: 02fffc0000000100 ffff8801ccfd1040 0000000000000000 0000000100000006 [ 26.841648] raw: ffffea00073299e0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 26.849499] page dumped because: kasan: bad access detected [ 26.855178] [ 26.856778] Memory state around the buggy address: [ 26.861677] ffff8801ccfd1880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.869005] ffff8801ccfd1900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.876347] >ffff8801ccfd1980: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 26.883682] ^ [ 26.889191] ffff8801ccfd1a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.896528] ffff8801ccfd1a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.903860] ================================================================== [ 26.911324] Disabling lock debugging due to kernel taint [ 26.917024] Kernel panic - not syncing: panic_on_warn set ... [ 26.917024] [ 26.924374] CPU: 1 PID: 4088 Comm: syzkaller578649 Tainted: G B 4.16.0-rc2+ #241 [ 26.933101] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.942430] Call Trace: [ 26.945000] dump_stack+0x194/0x24d [ 26.948612] ? arch_local_irq_restore+0x53/0x53 [ 26.953258] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.957989] ? vsnprintf+0x1ed/0x1900 [ 26.961776] ? pfkey_add+0x2520/0x3270 [ 26.965648] panic+0x1e4/0x41c [ 26.968822] ? refcount_error_report+0x214/0x214 [ 26.973555] ? add_taint+0x1c/0x50 [ 26.977068] ? add_taint+0x1c/0x50 [ 26.980584] ? pfkey_add+0x259e/0x3270 [ 26.984444] kasan_end_report+0x50/0x50 [ 26.988387] kasan_report+0x148/0x360 [ 26.992165] check_memory_region+0x137/0x190 [ 26.996556] memcpy+0x23/0x50 [ 26.999646] pfkey_add+0x259e/0x3270 [ 27.003342] ? set_ipsecrequest+0x310/0x310 [ 27.007642] ? lock_release+0xa40/0xa40 [ 27.011593] ? set_ipsecrequest+0x310/0x310 [ 27.015888] pfkey_process+0x67e/0x740 [ 27.019753] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 27.024749] ? kasan_check_write+0x14/0x20 [ 27.028970] ? dup_iter+0x212/0x260 [ 27.032570] pfkey_sendmsg+0x4dc/0xa00 [ 27.036428] ? pfkey_spdget+0xb00/0xb00 [ 27.040376] ? selinux_socket_sendmsg+0x36/0x40 [ 27.045017] ? security_socket_sendmsg+0x89/0xb0 [ 27.049744] ? pfkey_spdget+0xb00/0xb00 [ 27.053689] sock_sendmsg+0xca/0x110 [ 27.057375] ___sys_sendmsg+0x767/0x8b0 [ 27.061321] ? SyS_membarrier+0x700/0x700 [ 27.065443] ? copy_msghdr_from_user+0x590/0x590 [ 27.070182] ? __pmd_alloc+0x4e0/0x4e0 [ 27.074043] ? check_noncircular+0x20/0x20 [ 27.078247] ? find_held_lock+0x35/0x1d0 [ 27.082284] ? __fget_light+0x2b2/0x3c0 [ 27.086233] ? fget_raw+0x20/0x20 [ 27.089660] ? find_held_lock+0x35/0x1d0 [ 27.093697] ? __do_page_fault+0x5f7/0xc90 [ 27.097916] ? lock_downgrade+0x980/0x980 [ 27.102041] __sys_sendmsg+0xe5/0x210 [ 27.105816] ? __sys_sendmsg+0xe5/0x210 [ 27.109765] ? SyS_shutdown+0x290/0x290 [ 27.113714] ? __do_page_fault+0x3d6/0xc90 [ 27.117924] ? move_addr_to_kernel+0x60/0x60 [ 27.122310] ? __sys_sendmsg+0x210/0x210 [ 27.126346] SyS_sendmsg+0x2d/0x50 [ 27.129861] do_syscall_64+0x280/0x940 [ 27.133720] ? __do_page_fault+0xc90/0xc90 [ 27.137926] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.142654] ? syscall_return_slowpath+0x550/0x550 [ 27.147556] ? syscall_return_slowpath+0x2ac/0x550 [ 27.152455] ? prepare_exit_to_usermode+0x350/0x350 [ 27.157446] ? retint_user+0x18/0x18 [ 27.161138] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.165959] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 27.171118] RIP: 0033:0x43ffe9 [ 27.174279] RSP: 002b:00007ffd86300998 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 27.181960] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ffe9 [ 27.189206] RDX: 0000000000000000 RSI: 0000000020196fe4 RDI: 0000000000000003 [ 27.196447] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 27.203694] R10: 00000000004002c8 R11: 0000000000000203 R12: 0000000000401910 [ 27.210935] R13: 00000000004019a0 R14: 0000000000000000 R15: 0000000000000000 [ 27.218809] Dumping ftrace buffer: [ 27.222320] (ftrace buffer empty) [ 27.226009] Kernel Offset: disabled [ 27.229608] Rebooting in 86400 seconds..