[....] Starting enhanced syslogd: rsyslogd[ 11.991807] audit: type=1400 audit(1514506939.477:5): avc: denied { syslog } for pid=3000 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: [ 16.606959] audit: type=1400 audit(1514506944.092:6): avc: denied { map } for pid=3139 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.245' (ECDSA) to the list of known hosts. executing program [ 22.794929] audit: type=1400 audit(1514506950.280:7): avc: denied { map } for pid=3153 comm="syzkaller586394" path="/root/syzkaller586394583" 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 [ 22.799430] ================================================================== [ 22.799445] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x259e/0x3270 [ 22.799450] Read of size 8192 at addr ffff8801caa0b298 by task syzkaller586394/3153 [ 22.799451] [ 22.799457] CPU: 1 PID: 3153 Comm: syzkaller586394 Not tainted 4.15.0-rc5+ #149 [ 22.799459] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.799461] Call Trace: [ 22.799469] dump_stack+0x194/0x257 [ 22.799477] ? arch_local_irq_restore+0x53/0x53 [ 22.799485] ? show_regs_print_info+0x18/0x18 [ 22.799489] ? __lock_is_held+0xb6/0x140 [ 22.799499] ? pfkey_add+0x259e/0x3270 [ 22.799507] print_address_description+0x73/0x250 [ 22.799512] ? pfkey_add+0x259e/0x3270 [ 22.799517] kasan_report+0x25b/0x340 [ 22.799526] check_memory_region+0x137/0x190 [ 22.799531] memcpy+0x23/0x50 [ 22.799538] pfkey_add+0x259e/0x3270 [ 22.799552] ? set_ipsecrequest+0x310/0x310 [ 22.799559] ? lock_release+0xa40/0xa40 [ 22.799565] ? set_ipsecrequest+0x310/0x310 [ 22.799572] pfkey_process+0x60b/0x720 [ 22.799583] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 22.799586] ? kasan_check_write+0x14/0x20 [ 22.799617] pfkey_sendmsg+0x4d6/0x9f0 [ 22.799626] ? pfkey_spdget+0xb00/0xb00 [ 22.799637] ? selinux_socket_sendmsg+0x36/0x40 [ 22.799642] ? security_socket_sendmsg+0x89/0xb0 [ 22.799652] ? pfkey_spdget+0xb00/0xb00 [ 22.799661] sock_sendmsg+0xca/0x110 [ 22.799668] ___sys_sendmsg+0x767/0x8b0 [ 22.799672] ? SyS_membarrier+0x600/0x600 [ 22.799681] ? copy_msghdr_from_user+0x590/0x590 [ 22.799684] ? check_noncircular+0x20/0x20 [ 22.799701] ? check_noncircular+0x20/0x20 [ 22.799706] ? __pmd_alloc+0x4e0/0x4e0 [ 22.799715] ? __fget_light+0x297/0x380 [ 22.799722] ? fget_raw+0x20/0x20 [ 22.799733] ? handle_mm_fault+0x248/0x8d0 [ 22.799741] ? find_held_lock+0x35/0x1d0 [ 22.799759] __sys_sendmsg+0xe5/0x210 [ 22.799763] ? __sys_sendmsg+0xe5/0x210 [ 22.799769] ? SyS_shutdown+0x290/0x290 [ 22.799773] ? handle_mm_fault+0x410/0x8d0 [ 22.799779] ? __do_page_fault+0x32d/0xc90 [ 22.799785] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.799790] ? vmacache_find+0x5f/0x280 [ 22.799818] compat_SyS_sendmsg+0x2a/0x40 [ 22.799823] ? compat_SyS_getsockopt+0x420/0x420 [ 22.799830] do_fast_syscall_32+0x3ee/0xf9d [ 22.799841] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.799845] ? kasan_check_read+0x11/0x20 [ 22.799852] ? syscall_return_slowpath+0x550/0x550 [ 22.799859] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.799865] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.799869] ? SyS_read+0x184/0x220 [ 22.799874] ? retint_user+0x18/0x18 [ 22.799884] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.799896] entry_SYSENTER_compat+0x54/0x63 [ 22.799899] RIP: 0023:0xf7f20c79 [ 22.799902] RSP: 002b:00000000ffc64b4c EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 22.799907] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000205f5000 [ 22.799909] RDX: 0000000000000000 RSI: 0000000000000167 RDI: 000000000000000f [ 22.799912] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 [ 22.799914] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.799916] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.799933] [ 22.799935] Allocated by task 3153: [ 22.799939] save_stack+0x43/0xd0 [ 22.799942] kasan_kmalloc+0xad/0xe0 [ 22.799946] __kmalloc_node_track_caller+0x47/0x70 [ 22.799950] __kmalloc_reserve.isra.41+0x41/0xd0 [ 22.799954] __alloc_skb+0x13b/0x780 [ 22.799957] pfkey_sendmsg+0x20f/0x9f0 [ 22.799960] sock_sendmsg+0xca/0x110 [ 22.799963] ___sys_sendmsg+0x767/0x8b0 [ 22.799966] __sys_sendmsg+0xe5/0x210 [ 22.799969] compat_SyS_sendmsg+0x2a/0x40 [ 22.799973] do_fast_syscall_32+0x3ee/0xf9d [ 22.799977] entry_SYSENTER_compat+0x54/0x63 [ 22.799978] [ 22.799979] Freed by task 1605: [ 22.799983] save_stack+0x43/0xd0 [ 22.799986] kasan_slab_free+0x71/0xc0 [ 22.799989] kfree+0xd6/0x260 [ 22.799992] skb_free_head+0x74/0xb0 [ 22.799995] skb_release_data+0x58c/0x790 [ 22.799999] skb_release_all+0x4a/0x60 [ 22.800006] consume_skb+0x153/0x490 [ 22.800009] skb_free_datagram+0x1a/0xe0 [ 22.800014] unix_dgram_recvmsg+0xd12/0x1990 [ 22.800018] sock_recvmsg+0xc9/0x110 [ 22.800022] SYSC_recvfrom+0x2e5/0x5a0 [ 22.800025] SyS_recvfrom+0x40/0x50 [ 22.800028] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.800029] [ 22.800032] The buggy address belongs to the object at ffff8801caa0b280 [ 22.800032] which belongs to the cache kmalloc-512 of size 512 [ 22.800036] The buggy address is located 24 bytes inside of [ 22.800036] 512-byte region [ffff8801caa0b280, ffff8801caa0b480) [ 22.800037] The buggy address belongs to the page: [ 22.800041] page:00000000bb3aca4d count:1 mapcount:0 mapping:00000000aa303d72 index:0x0 [ 22.800050] flags: 0x2fffc0000000100(slab) [ 22.800056] raw: 02fffc0000000100 ffff8801caa0b000 0000000000000000 0000000100000006 [ 22.800060] raw: ffffea0007278da0 ffffea0007244960 ffff8801db000940 0000000000000000 [ 22.800062] page dumped because: kasan: bad access detected [ 22.800063] [ 22.800064] Memory state around the buggy address: [ 22.800068] ffff8801caa0b380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.800071] ffff8801caa0b400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.800074] >ffff8801caa0b480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.800075] ^ [ 22.800078] ffff8801caa0b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.800081] ffff8801caa0b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.800082] ================================================================== [ 22.800084] Disabling lock debugging due to kernel taint [ 22.800100] Kernel panic - not syncing: panic_on_warn set ... [ 22.800100] [ 22.800104] CPU: 1 PID: 3153 Comm: syzkaller586394 Tainted: G B 4.15.0-rc5+ #149 [ 22.800106] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.800107] Call Trace: [ 22.800111] dump_stack+0x194/0x257 [ 22.800116] ? arch_local_irq_restore+0x53/0x53 [ 22.800121] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.800126] ? vsnprintf+0x1ed/0x1900 [ 22.800131] ? pfkey_add+0x2550/0x3270 [ 22.800136] panic+0x1e4/0x41c [ 22.800139] ? refcount_error_report+0x214/0x214 [ 22.800145] ? add_taint+0x1c/0x50 [ 22.800149] ? add_taint+0x1c/0x50 [ 22.800154] ? pfkey_add+0x259e/0x3270 [ 22.800158] kasan_end_report+0x50/0x50 [ 22.800162] kasan_report+0x144/0x340 [ 22.800167] check_memory_region+0x137/0x190 [ 22.800171] memcpy+0x23/0x50 [ 22.800176] pfkey_add+0x259e/0x3270 [ 22.800185] ? set_ipsecrequest+0x310/0x310 [ 22.800190] ? lock_release+0xa40/0xa40 [ 22.800194] ? set_ipsecrequest+0x310/0x310 [ 22.800199] pfkey_process+0x60b/0x720 [ 22.800206] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 22.800209] ? kasan_check_write+0x14/0x20 [ 22.800226] pfkey_sendmsg+0x4d6/0x9f0 [ 22.800232] ? pfkey_spdget+0xb00/0xb00 [ 22.800237] ? selinux_socket_sendmsg+0x36/0x40 [ 22.800242] ? security_socket_sendmsg+0x89/0xb0 [ 22.800245] ? pfkey_spdget+0xb00/0xb00 [ 22.800250] sock_sendmsg+0xca/0x110 [ 22.800255] ___sys_sendmsg+0x767/0x8b0 [ 22.800258] ? SyS_membarrier+0x600/0x600 [ 22.800264] ? copy_msghdr_from_user+0x590/0x590 [ 22.800267] ? check_noncircular+0x20/0x20 [ 22.800277] ? check_noncircular+0x20/0x20 [ 22.800280] ? __pmd_alloc+0x4e0/0x4e0 [ 22.800286] ? __fget_light+0x297/0x380 [ 22.800290] ? fget_raw+0x20/0x20 [ 22.800298] ? handle_mm_fault+0x248/0x8d0 [ 22.800303] ? find_held_lock+0x35/0x1d0 [ 22.800313] __sys_sendmsg+0xe5/0x210 [ 22.800316] ? __sys_sendmsg+0xe5/0x210 [ 22.800321] ? SyS_shutdown+0x290/0x290 [ 22.800324] ? handle_mm_fault+0x410/0x8d0 [ 22.800328] ? __do_page_fault+0x32d/0xc90 [ 22.800332] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.800336] ? vmacache_find+0x5f/0x280 [ 22.800350] compat_SyS_sendmsg+0x2a/0x40 [ 22.800354] ? compat_SyS_getsockopt+0x420/0x420 [ 22.800358] do_fast_syscall_32+0x3ee/0xf9d [ 22.800366] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.800369] ? kasan_check_read+0x11/0x20 [ 22.800374] ? syscall_return_slowpath+0x550/0x550 [ 22.800379] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.800384] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.800386] ? SyS_read+0x184/0x220 [ 22.800390] ? retint_user+0x18/0x18 [ 22.800397] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.800404] entry_SYSENTER_compat+0x54/0x63 [ 22.800407] RIP: 0023:0xf7f20c79 [ 22.800409] RSP: 002b:00000000ffc64b4c EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 22.800412] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000205f5000 [ 22.800414] RDX: 0000000000000000 RSI: 0000000000000167 RDI: 000000000000000f [ 22.800416] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 [ 22.800418] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.800420] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.820818] Dumping ftrace buffer: [ 22.820821] (ftrace buffer empty) [ 22.820824] Kernel Offset: disabled [ 23.674910] Rebooting in 86400 seconds..