[....] Starting enhanced syslogd: rsyslogd[ 13.793277] audit: type=1400 audit(1513025813.844:5): avc: denied { syslog } for pid=2995 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 27.086320] audit: type=1400 audit(1513025827.136:6): avc: denied { map } for pid=3136 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 'ci-upstream-net-kasan-gce-9,10.128.15.196' (ECDSA) to the list of known hosts. executing program [ 49.028748] audit: type=1400 audit(1513025849.079:7): avc: denied { map } for pid=3151 comm="syzkaller644689" path="/root/syzkaller644689347" 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 [ 49.033105] ================================================================== [ 49.033120] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x25a1/0x3270 [ 49.033126] Read of size 2048 at addr ffff8801c4fff058 by task syzkaller644689/3151 [ 49.033128] [ 49.033134] CPU: 1 PID: 3151 Comm: syzkaller644689 Not tainted 4.15.0-rc2+ #149 [ 49.033138] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.033141] Call Trace: [ 49.033149] dump_stack+0x194/0x257 [ 49.033159] ? arch_local_irq_restore+0x53/0x53 [ 49.033167] ? show_regs_print_info+0x18/0x18 [ 49.033173] ? __lock_is_held+0xbc/0x140 [ 49.033184] ? pfkey_add+0x25a1/0x3270 [ 49.033193] print_address_description+0x73/0x250 [ 49.033199] ? pfkey_add+0x25a1/0x3270 [ 49.033206] kasan_report+0x25b/0x340 [ 49.033220] check_memory_region+0x137/0x190 [ 49.033227] memcpy+0x23/0x50 [ 49.033234] pfkey_add+0x25a1/0x3270 [ 49.033250] ? set_ipsecrequest+0x310/0x310 [ 49.033259] ? lock_release+0xda0/0xda0 [ 49.033266] ? set_ipsecrequest+0x310/0x310 [ 49.033274] pfkey_process+0x60b/0x720 [ 49.033286] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 49.033291] ? kasan_check_write+0x14/0x20 [ 49.033317] ? dup_iter+0x1d2/0x260 [ 49.033330] pfkey_sendmsg+0x4d6/0x9f0 [ 49.033340] ? pfkey_spdget+0xb00/0xb00 [ 49.033351] ? selinux_socket_sendmsg+0x36/0x40 [ 49.033358] ? security_socket_sendmsg+0x89/0xb0 [ 49.033364] ? pfkey_spdget+0xb00/0xb00 [ 49.033374] sock_sendmsg+0xca/0x110 [ 49.033383] ___sys_sendmsg+0x75b/0x8a0 [ 49.033394] ? copy_msghdr_from_user+0x590/0x590 [ 49.033401] ? lock_downgrade+0x980/0x980 [ 49.033425] ? fget_raw+0x20/0x20 [ 49.033433] ? __handle_mm_fault+0x3e20/0x3e20 [ 49.033440] ? vmacache_find+0x5f/0x280 [ 49.033453] ? up_read+0x1a/0x40 [ 49.033462] ? __do_page_fault+0x3d6/0xc90 [ 49.033467] ? get_unused_fd_flags+0x190/0x190 [ 49.033480] ? __fdget+0x18/0x20 [ 49.033492] __sys_sendmsg+0xe5/0x210 [ 49.033497] ? __sys_sendmsg+0xe5/0x210 [ 49.033505] ? SyS_shutdown+0x290/0x290 [ 49.033513] ? __do_page_fault+0xc90/0xc90 [ 49.033523] ? fd_install+0x4d/0x60 [ 49.033541] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.033553] SyS_sendmsg+0x2d/0x50 [ 49.033562] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 49.033567] RIP: 0033:0x43ff59 [ 49.033571] RSP: 002b:00007ffef5e5e988 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 49.033579] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff59 [ 49.033583] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 49.033586] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 49.033590] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 49.033593] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 49.033613] [ 49.033616] Allocated by task 3151: [ 49.033621] save_stack+0x43/0xd0 [ 49.033625] kasan_kmalloc+0xad/0xe0 [ 49.033631] __kmalloc_node_track_caller+0x47/0x70 [ 49.033636] __kmalloc_reserve.isra.41+0x41/0xd0 [ 49.033640] __alloc_skb+0x13b/0x780 [ 49.033645] pfkey_sendmsg+0x20f/0x9f0 [ 49.033649] sock_sendmsg+0xca/0x110 [ 49.033654] ___sys_sendmsg+0x75b/0x8a0 [ 49.033658] __sys_sendmsg+0xe5/0x210 [ 49.033663] SyS_sendmsg+0x2d/0x50 [ 49.033668] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 49.033670] [ 49.033673] Freed by task 1635: [ 49.033677] save_stack+0x43/0xd0 [ 49.033682] kasan_slab_free+0x71/0xc0 [ 49.033686] kfree+0xca/0x250 [ 49.033692] kernfs_fop_release+0x13f/0x180 [ 49.033696] __fput+0x333/0x7f0 [ 49.033700] ____fput+0x15/0x20 [ 49.033706] task_work_run+0x199/0x270 [ 49.033713] exit_to_usermode_loop+0x296/0x310 [ 49.033717] syscall_return_slowpath+0x490/0x550 [ 49.033722] entry_SYSCALL_64_fastpath+0x94/0x96 [ 49.033724] [ 49.033728] The buggy address belongs to the object at ffff8801c4fff040 [ 49.033728] which belongs to the cache kmalloc-512 of size 512 [ 49.033733] The buggy address is located 24 bytes inside of [ 49.033733] 512-byte region [ffff8801c4fff040, ffff8801c4fff240) [ 49.033736] The buggy address belongs to the page: [ 49.033741] page:000000004c296518 count:1 mapcount:0 mapping:00000000637077f2 index:0x0 [ 49.033748] flags: 0x2fffc0000000100(slab) [ 49.033755] raw: 02fffc0000000100 ffff8801c4fff040 0000000000000000 0000000100000006 [ 49.033760] raw: ffffea000713ee20 ffffea000713f0a0 ffff8801db000940 0000000000000000 [ 49.033763] page dumped because: kasan: bad access detected [ 49.033766] [ 49.033768] Memory state around the buggy address: [ 49.033773] ffff8801c4fff100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 49.033777] ffff8801c4fff180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 49.033781] >ffff8801c4fff200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 49.033784] ^ [ 49.033788] ffff8801c4fff280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 49.033792] ffff8801c4fff300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.033795] ================================================================== [ 49.033797] Disabling lock debugging due to kernel taint [ 49.033799] Kernel panic - not syncing: panic_on_warn set ... [ 49.033799] [ 49.033803] CPU: 1 PID: 3151 Comm: syzkaller644689 Tainted: G B 4.15.0-rc2+ #149 [ 49.033805] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.033807] Call Trace: [ 49.033810] dump_stack+0x194/0x257 [ 49.033815] ? arch_local_irq_restore+0x53/0x53 [ 49.033821] ? vprintk_default+0x28/0x30 [ 49.033825] ? vsnprintf+0x1ed/0x1900 [ 49.033829] ? pfkey_add+0x24b0/0x3270 [ 49.033835] panic+0x1e4/0x41c [ 49.033839] ? refcount_error_report+0x214/0x214 [ 49.033845] ? add_taint+0x40/0x50 [ 49.033848] ? add_taint+0x1c/0x50 [ 49.033853] ? pfkey_add+0x25a1/0x3270 [ 49.033857] kasan_end_report+0x50/0x50 [ 49.033860] kasan_report+0x144/0x340 [ 49.033866] check_memory_region+0x137/0x190 [ 49.033870] memcpy+0x23/0x50 [ 49.033874] pfkey_add+0x25a1/0x3270 [ 49.033883] ? set_ipsecrequest+0x310/0x310 [ 49.033888] ? lock_release+0xda0/0xda0 [ 49.033892] ? set_ipsecrequest+0x310/0x310 [ 49.033896] pfkey_process+0x60b/0x720 [ 49.033903] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 49.033906] ? kasan_check_write+0x14/0x20 [ 49.033918] ? dup_iter+0x1d2/0x260 [ 49.033925] pfkey_sendmsg+0x4d6/0x9f0 [ 49.033931] ? pfkey_spdget+0xb00/0xb00 [ 49.033936] ? selinux_socket_sendmsg+0x36/0x40 [ 49.033941] ? security_socket_sendmsg+0x89/0xb0 [ 49.033944] ? pfkey_spdget+0xb00/0xb00 [ 49.033949] sock_sendmsg+0xca/0x110 [ 49.033954] ___sys_sendmsg+0x75b/0x8a0 [ 49.033961] ? copy_msghdr_from_user+0x590/0x590 [ 49.033965] ? lock_downgrade+0x980/0x980 [ 49.033977] ? fget_raw+0x20/0x20 [ 49.033981] ? __handle_mm_fault+0x3e20/0x3e20 [ 49.033984] ? vmacache_find+0x5f/0x280 [ 49.033991] ? up_read+0x1a/0x40 [ 49.033995] ? __do_page_fault+0x3d6/0xc90 [ 49.033999] ? get_unused_fd_flags+0x190/0x190 [ 49.034009] ? __fdget+0x18/0x20 [ 49.034015] __sys_sendmsg+0xe5/0x210 [ 49.034018] ? __sys_sendmsg+0xe5/0x210 [ 49.034023] ? SyS_shutdown+0x290/0x290 [ 49.034028] ? __do_page_fault+0xc90/0xc90 [ 49.034034] ? fd_install+0x4d/0x60 [ 49.034044] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.034050] SyS_sendmsg+0x2d/0x50 [ 49.034055] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 49.034058] RIP: 0033:0x43ff59 [ 49.034060] RSP: 002b:00007ffef5e5e988 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 49.034063] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff59 [ 49.034065] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 49.034067] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 49.034069] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 49.034071] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 49.054652] Dumping ftrace buffer: [ 49.054655] (ftrace buffer empty) [ 49.054657] Kernel Offset: disabled [ 49.803937] Rebooting in 86400 seconds..