[....] Starting enhanced syslogd: rsyslogd[ 12.937762] audit: type=1400 audit(1513033696.396: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: [ 21.438999] audit: type=1400 audit(1513033704.897:6): avc: denied { map } for pid=3141 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-kasan-gce-6,10.128.0.49' (ECDSA) to the list of known hosts. executing program [ 27.720939] audit: type=1400 audit(1513033711.179:7): avc: denied { map } for pid=3155 comm="syzkaller593406" path="/root/syzkaller593406420" 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 [ 27.725661] ================================================================== [ 27.725675] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x25a1/0x3270 [ 27.725680] Read of size 2048 at addr ffff8801cca52058 by task syzkaller593406/3155 [ 27.725683] [ 27.725689] CPU: 0 PID: 3155 Comm: syzkaller593406 Not tainted 4.15.0-rc3+ #217 [ 27.725693] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.725696] Call Trace: [ 27.725703] dump_stack+0x194/0x257 [ 27.725713] ? arch_local_irq_restore+0x53/0x53 [ 27.725722] ? show_regs_print_info+0x18/0x18 [ 27.725727] ? __lock_is_held+0xbc/0x140 [ 27.725738] ? pfkey_add+0x25a1/0x3270 [ 27.725748] print_address_description+0x73/0x250 [ 27.725754] ? pfkey_add+0x25a1/0x3270 [ 27.725761] kasan_report+0x25b/0x340 [ 27.725776] check_memory_region+0x137/0x190 [ 27.725782] memcpy+0x23/0x50 [ 27.725790] pfkey_add+0x25a1/0x3270 [ 27.725806] ? set_ipsecrequest+0x310/0x310 [ 27.725815] ? lock_release+0xda0/0xda0 [ 27.725822] ? set_ipsecrequest+0x310/0x310 [ 27.725830] pfkey_process+0x60b/0x720 [ 27.725842] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 27.725846] ? kasan_check_write+0x14/0x20 [ 27.725873] ? dup_iter+0x192/0x260 [ 27.725886] pfkey_sendmsg+0x4d6/0x9f0 [ 27.725896] ? pfkey_spdget+0xb00/0xb00 [ 27.725907] ? selinux_socket_sendmsg+0x36/0x40 [ 27.725914] ? security_socket_sendmsg+0x89/0xb0 [ 27.725920] ? pfkey_spdget+0xb00/0xb00 [ 27.725931] sock_sendmsg+0xca/0x110 [ 27.725940] ___sys_sendmsg+0x75b/0x8a0 [ 27.725951] ? copy_msghdr_from_user+0x590/0x590 [ 27.725958] ? lock_downgrade+0x980/0x980 [ 27.725983] ? fget_raw+0x20/0x20 [ 27.725991] ? __handle_mm_fault+0x3e20/0x3e20 [ 27.725997] ? vmacache_find+0x5f/0x280 [ 27.726013] ? up_read+0x1a/0x40 [ 27.726022] ? __do_page_fault+0x3d6/0xc90 [ 27.726027] ? get_unused_fd_flags+0x190/0x190 [ 27.726041] ? __fdget+0x18/0x20 [ 27.726052] __sys_sendmsg+0xe5/0x210 [ 27.726057] ? __sys_sendmsg+0xe5/0x210 [ 27.726065] ? SyS_shutdown+0x290/0x290 [ 27.726073] ? __do_page_fault+0xc90/0xc90 [ 27.726083] ? fd_install+0x4d/0x60 [ 27.726101] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.726113] SyS_sendmsg+0x2d/0x50 [ 27.726122] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.726127] RIP: 0033:0x43ff59 [ 27.726131] RSP: 002b:00007fff985dbcd8 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 27.726138] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff59 [ 27.726142] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 27.726145] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 27.726149] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 27.726153] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 27.726172] [ 27.726175] Allocated by task 3155: [ 27.726180] save_stack+0x43/0xd0 [ 27.726184] kasan_kmalloc+0xad/0xe0 [ 27.726190] __kmalloc_node_track_caller+0x47/0x70 [ 27.726195] __kmalloc_reserve.isra.41+0x41/0xd0 [ 27.726200] __alloc_skb+0x13b/0x780 [ 27.726204] pfkey_sendmsg+0x20f/0x9f0 [ 27.726208] sock_sendmsg+0xca/0x110 [ 27.726213] ___sys_sendmsg+0x75b/0x8a0 [ 27.726218] __sys_sendmsg+0xe5/0x210 [ 27.726223] SyS_sendmsg+0x2d/0x50 [ 27.726227] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.726229] [ 27.726232] Freed by task 1601: [ 27.726237] save_stack+0x43/0xd0 [ 27.726241] kasan_slab_free+0x71/0xc0 [ 27.726245] kfree+0xca/0x250 [ 27.726250] skb_free_head+0x74/0xb0 [ 27.726255] skb_release_data+0x58c/0x790 [ 27.726260] skb_release_all+0x4a/0x60 [ 27.726264] consume_skb+0x153/0x490 [ 27.726269] skb_free_datagram+0x1a/0xe0 [ 27.726275] netlink_recvmsg+0x5c6/0x1300 [ 27.726280] sock_recvmsg+0xc9/0x110 [ 27.726284] ___sys_recvmsg+0x29b/0x630 [ 27.726289] __sys_recvmsg+0xe2/0x210 [ 27.726294] SyS_recvmsg+0x2d/0x50 [ 27.726298] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.726301] [ 27.726305] The buggy address belongs to the object at ffff8801cca52040 [ 27.726305] which belongs to the cache kmalloc-512 of size 512 [ 27.726309] The buggy address is located 24 bytes inside of [ 27.726309] 512-byte region [ffff8801cca52040, ffff8801cca52240) [ 27.726312] The buggy address belongs to the page: [ 27.726317] page:0000000031619420 count:1 mapcount:0 mapping:00000000e904df31 index:0x0 [ 27.726324] flags: 0x2fffc0000000100(slab) [ 27.726332] raw: 02fffc0000000100 ffff8801cca52040 0000000000000000 0000000100000006 [ 27.726338] raw: ffffea000732a4e0 ffffea0007315c20 ffff8801db000940 0000000000000000 [ 27.726341] page dumped because: kasan: bad access detected [ 27.726343] [ 27.726346] Memory state around the buggy address: [ 27.726350] ffff8801cca52100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.726355] ffff8801cca52180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.726359] >ffff8801cca52200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 27.726362] ^ [ 27.726367] ffff8801cca52280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 27.726371] ffff8801cca52300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.726374] ================================================================== [ 27.726376] Disabling lock debugging due to kernel taint [ 27.726392] Kernel panic - not syncing: panic_on_warn set ... [ 27.726392] [ 27.726396] CPU: 0 PID: 3155 Comm: syzkaller593406 Tainted: G B 4.15.0-rc3+ #217 [ 27.726398] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.726399] Call Trace: [ 27.726403] dump_stack+0x194/0x257 [ 27.726408] ? arch_local_irq_restore+0x53/0x53 [ 27.726414] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.726419] ? vsnprintf+0x1ed/0x1900 [ 27.726423] ? pfkey_add+0x24b0/0x3270 [ 27.726428] panic+0x1e4/0x41c [ 27.726432] ? refcount_error_report+0x214/0x214 [ 27.726437] ? add_taint+0x1c/0x50 [ 27.726441] ? add_taint+0x1c/0x50 [ 27.726446] ? pfkey_add+0x25a1/0x3270 [ 27.726450] kasan_end_report+0x50/0x50 [ 27.726453] kasan_report+0x144/0x340 [ 27.726459] check_memory_region+0x137/0x190 [ 27.726463] memcpy+0x23/0x50 [ 27.726467] pfkey_add+0x25a1/0x3270 [ 27.726476] ? set_ipsecrequest+0x310/0x310 [ 27.726481] ? lock_release+0xda0/0xda0 [ 27.726485] ? set_ipsecrequest+0x310/0x310 [ 27.726490] pfkey_process+0x60b/0x720 [ 27.726496] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 27.726499] ? kasan_check_write+0x14/0x20 [ 27.726512] ? dup_iter+0x192/0x260 [ 27.726519] pfkey_sendmsg+0x4d6/0x9f0 [ 27.726524] ? pfkey_spdget+0xb00/0xb00 [ 27.726530] ? selinux_socket_sendmsg+0x36/0x40 [ 27.726534] ? security_socket_sendmsg+0x89/0xb0 [ 27.726538] ? pfkey_spdget+0xb00/0xb00 [ 27.726542] sock_sendmsg+0xca/0x110 [ 27.726548] ___sys_sendmsg+0x75b/0x8a0 [ 27.726554] ? copy_msghdr_from_user+0x590/0x590 [ 27.726559] ? lock_downgrade+0x980/0x980 [ 27.726570] ? fget_raw+0x20/0x20 [ 27.726574] ? __handle_mm_fault+0x3e20/0x3e20 [ 27.726578] ? vmacache_find+0x5f/0x280 [ 27.726584] ? up_read+0x1a/0x40 [ 27.726589] ? __do_page_fault+0x3d6/0xc90 [ 27.726592] ? get_unused_fd_flags+0x190/0x190 [ 27.726599] ? __fdget+0x18/0x20 [ 27.726606] __sys_sendmsg+0xe5/0x210 [ 27.726609] ? __sys_sendmsg+0xe5/0x210 [ 27.726614] ? SyS_shutdown+0x290/0x290 [ 27.726619] ? __do_page_fault+0xc90/0xc90 [ 27.726625] ? fd_install+0x4d/0x60 [ 27.726634] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.726641] SyS_sendmsg+0x2d/0x50 [ 27.726646] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.726649] RIP: 0033:0x43ff59 [ 27.726651] RSP: 002b:00007fff985dbcd8 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 27.726654] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff59 [ 27.726656] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 27.726658] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 27.726661] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 27.726663] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 27.746853] Dumping ftrace buffer: [ 27.746855] (ftrace buffer empty) [ 27.746857] Kernel Offset: disabled [ 28.509993] Rebooting in 86400 seconds..