[....] Starting enhanced syslogd: rsyslogd[ 12.308467] audit: type=1400 audit(1513030666.535:5): avc: denied { syslog } for pid=2998 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: [ 35.109852] audit: type=1400 audit(1513030689.336:6): avc: denied { map } for pid=3142 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-next-kasan-gce-4,10.128.15.241' (ECDSA) to the list of known hosts. executing program [ 48.265625] audit: type=1400 audit(1513030702.492:7): avc: denied { map } for pid=3154 comm="syzkaller513044" path="/root/syzkaller513044650" 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 [ 48.270265] ================================================================== [ 48.270289] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x25a1/0x3270 [ 48.270295] Read of size 2048 at addr ffff8801c58fb098 by task syzkaller513044/3154 [ 48.270297] [ 48.270304] CPU: 0 PID: 3154 Comm: syzkaller513044 Not tainted 4.15.0-rc2-next-20171211+ #64 [ 48.270308] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.270311] Call Trace: [ 48.270323] dump_stack+0x194/0x257 [ 48.270333] ? arch_local_irq_restore+0x53/0x53 [ 48.270344] ? show_regs_print_info+0x18/0x18 [ 48.270350] ? __lock_is_held+0xbc/0x140 [ 48.270362] ? pfkey_add+0x25a1/0x3270 [ 48.270372] print_address_description+0x73/0x250 [ 48.270381] ? pfkey_add+0x25a1/0x3270 [ 48.270389] kasan_report+0x25b/0x340 [ 48.270400] check_memory_region+0x137/0x190 [ 48.270407] memcpy+0x23/0x50 [ 48.270415] pfkey_add+0x25a1/0x3270 [ 48.270432] ? set_ipsecrequest+0x310/0x310 [ 48.270441] ? lock_release+0xda0/0xda0 [ 48.270448] ? set_ipsecrequest+0x310/0x310 [ 48.270457] pfkey_process+0x60b/0x720 [ 48.270470] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 48.270474] ? kasan_check_write+0x14/0x20 [ 48.270502] ? dup_iter+0x242/0x260 [ 48.270515] pfkey_sendmsg+0x4d6/0x9f0 [ 48.270526] ? pfkey_spdget+0xb00/0xb00 [ 48.270539] ? selinux_socket_sendmsg+0x36/0x40 [ 48.270546] ? security_socket_sendmsg+0x89/0xb0 [ 48.270553] ? pfkey_spdget+0xb00/0xb00 [ 48.270563] sock_sendmsg+0xca/0x110 [ 48.270572] ___sys_sendmsg+0x75b/0x8a0 [ 48.270583] ? copy_msghdr_from_user+0x590/0x590 [ 48.270591] ? lock_downgrade+0x980/0x980 [ 48.270617] ? fget_raw+0x20/0x20 [ 48.270626] ? __handle_mm_fault+0x3dd0/0x3dd0 [ 48.270633] ? vmacache_find+0x5f/0x280 [ 48.270647] ? up_read+0x1a/0x40 [ 48.270657] ? __do_page_fault+0x3d6/0xc90 [ 48.270662] ? get_unused_fd_flags+0x190/0x190 [ 48.270676] ? __fdget+0x18/0x20 [ 48.270687] __sys_sendmsg+0xe5/0x210 [ 48.270692] ? __sys_sendmsg+0xe5/0x210 [ 48.270700] ? SyS_shutdown+0x290/0x290 [ 48.270708] ? __do_page_fault+0xc90/0xc90 [ 48.270719] ? fd_install+0x4d/0x60 [ 48.270736] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.270748] SyS_sendmsg+0x2d/0x50 [ 48.270759] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 48.270764] RIP: 0033:0x43ff59 [ 48.270768] RSP: 002b:00007ffcfb5d9378 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 48.270775] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff59 [ 48.270779] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 48.270782] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 48.270786] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 48.270789] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 48.270809] [ 48.270812] Allocated by task 3154: [ 48.270818] save_stack+0x43/0xd0 [ 48.270822] kasan_kmalloc+0xad/0xe0 [ 48.270829] __kmalloc_node_track_caller+0x47/0x70 [ 48.270833] __kmalloc_reserve.isra.41+0x41/0xd0 [ 48.270838] __alloc_skb+0x13b/0x780 [ 48.270842] pfkey_sendmsg+0x20f/0x9f0 [ 48.270846] sock_sendmsg+0xca/0x110 [ 48.270850] ___sys_sendmsg+0x75b/0x8a0 [ 48.270855] __sys_sendmsg+0xe5/0x210 [ 48.270859] SyS_sendmsg+0x2d/0x50 [ 48.270864] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 48.270867] [ 48.270870] Freed by task 1632: [ 48.270874] save_stack+0x43/0xd0 [ 48.270878] kasan_slab_free+0x71/0xc0 [ 48.270883] kfree+0xca/0x250 [ 48.270887] skb_free_head+0x74/0xb0 [ 48.270891] skb_release_data+0x58c/0x790 [ 48.270895] skb_release_all+0x4a/0x60 [ 48.270899] kfree_skb+0x15d/0x4c0 [ 48.270908] unix_stream_connect+0x876/0x1580 [ 48.270912] SYSC_connect+0x20a/0x480 [ 48.270916] SyS_connect+0x24/0x30 [ 48.270921] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 48.270924] [ 48.270928] The buggy address belongs to the object at ffff8801c58fb080 [ 48.270928] which belongs to the cache kmalloc-512 of size 512 [ 48.270932] The buggy address is located 24 bytes inside of [ 48.270932] 512-byte region [ffff8801c58fb080, ffff8801c58fb280) [ 48.270935] The buggy address belongs to the page: [ 48.270940] page:00000000ff9481f1 count:1 mapcount:0 mapping:000000001b6afd22 index:0x0 [ 48.270947] flags: 0x2fffc0000000100(slab) [ 48.270956] raw: 02fffc0000000100 ffff8801c58fb080 0000000000000000 0000000100000006 [ 48.270961] raw: ffffea0007164960 ffffea00071641a0 ffff8801dac00940 0000000000000000 [ 48.270964] page dumped because: kasan: bad access detected [ 48.270967] [ 48.270969] Memory state around the buggy address: [ 48.270974] ffff8801c58fb180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 48.270978] ffff8801c58fb200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 48.270982] >ffff8801c58fb280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 48.270985] ^ [ 48.270989] ffff8801c58fb300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.270993] ffff8801c58fb380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.270996] ================================================================== [ 48.270998] Disabling lock debugging due to kernel taint [ 48.271004] Kernel panic - not syncing: panic_on_warn set ... [ 48.271004] [ 48.271008] CPU: 0 PID: 3154 Comm: syzkaller513044 Tainted: G B 4.15.0-rc2-next-20171211+ #64 [ 48.271010] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.271011] Call Trace: [ 48.271016] dump_stack+0x194/0x257 [ 48.271023] ? arch_local_irq_restore+0x53/0x53 [ 48.271028] ? vprintk_default+0x28/0x30 [ 48.271034] ? vsnprintf+0x1ed/0x1900 [ 48.271039] ? pfkey_add+0x2510/0x3270 [ 48.271045] panic+0x1e4/0x41c [ 48.271049] ? refcount_error_report+0x214/0x214 [ 48.271055] ? add_taint+0x40/0x50 [ 48.271059] ? add_taint+0x1c/0x50 [ 48.271064] ? pfkey_add+0x25a1/0x3270 [ 48.271068] kasan_end_report+0x50/0x50 [ 48.271072] kasan_report+0x144/0x340 [ 48.271077] check_memory_region+0x137/0x190 [ 48.271081] memcpy+0x23/0x50 [ 48.271086] pfkey_add+0x25a1/0x3270 [ 48.271097] ? set_ipsecrequest+0x310/0x310 [ 48.271102] ? lock_release+0xda0/0xda0 [ 48.271107] ? set_ipsecrequest+0x310/0x310 [ 48.271112] pfkey_process+0x60b/0x720 [ 48.271119] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 48.271122] ? kasan_check_write+0x14/0x20 [ 48.271135] ? dup_iter+0x242/0x260 [ 48.271143] pfkey_sendmsg+0x4d6/0x9f0 [ 48.271149] ? pfkey_spdget+0xb00/0xb00 [ 48.271155] ? selinux_socket_sendmsg+0x36/0x40 [ 48.271159] ? security_socket_sendmsg+0x89/0xb0 [ 48.271163] ? pfkey_spdget+0xb00/0xb00 [ 48.271167] sock_sendmsg+0xca/0x110 [ 48.271172] ___sys_sendmsg+0x75b/0x8a0 [ 48.271179] ? copy_msghdr_from_user+0x590/0x590 [ 48.271183] ? lock_downgrade+0x980/0x980 [ 48.271195] ? fget_raw+0x20/0x20 [ 48.271199] ? __handle_mm_fault+0x3dd0/0x3dd0 [ 48.271203] ? vmacache_find+0x5f/0x280 [ 48.271210] ? up_read+0x1a/0x40 [ 48.271214] ? __do_page_fault+0x3d6/0xc90 [ 48.271218] ? get_unused_fd_flags+0x190/0x190 [ 48.271230] ? __fdget+0x18/0x20 [ 48.271236] __sys_sendmsg+0xe5/0x210 [ 48.271240] ? __sys_sendmsg+0xe5/0x210 [ 48.271244] ? SyS_shutdown+0x290/0x290 [ 48.271249] ? __do_page_fault+0xc90/0xc90 [ 48.271255] ? fd_install+0x4d/0x60 [ 48.271265] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.271272] SyS_sendmsg+0x2d/0x50 [ 48.271277] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 48.271280] RIP: 0033:0x43ff59 [ 48.271289] RSP: 002b:00007ffcfb5d9378 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 48.271293] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff59 [ 48.271295] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 48.271300] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 48.271302] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 48.271304] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 48.291518] Dumping ftrace buffer: [ 48.291522] (ftrace buffer empty) [ 48.291524] Kernel Offset: disabled [ 49.042973] Rebooting in 86400 seconds..