[....] Starting enhanced syslogd: rsyslogd[ 13.608569] audit: type=1400 audit(1513026909.447: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: [ 26.127912] audit: type=1400 audit(1513026921.966:6): avc: denied { map } for pid=3140 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-386-0,10.128.15.216' (ECDSA) to the list of known hosts. executing program [ 46.672939] audit: type=1400 audit(1513026942.511:7): avc: denied { map } for pid=3155 comm="syzkaller181759" path="/root/syzkaller181759957" 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 [ 46.676799] ================================================================== [ 46.676813] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x25a1/0x3270 [ 46.676818] Read of size 2048 at addr ffff8801c4300598 by task syzkaller181759/3155 [ 46.676821] [ 46.676827] CPU: 0 PID: 3155 Comm: syzkaller181759 Not tainted 4.15.0-rc3+ #127 [ 46.676831] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.676834] Call Trace: [ 46.676842] dump_stack+0x194/0x257 [ 46.676851] ? arch_local_irq_restore+0x53/0x53 [ 46.676859] ? show_regs_print_info+0x18/0x18 [ 46.676865] ? __lock_is_held+0xbc/0x140 [ 46.676876] ? pfkey_add+0x25a1/0x3270 [ 46.676885] print_address_description+0x73/0x250 [ 46.676891] ? pfkey_add+0x25a1/0x3270 [ 46.676898] kasan_report+0x25b/0x340 [ 46.676908] check_memory_region+0x137/0x190 [ 46.676914] memcpy+0x23/0x50 [ 46.676922] pfkey_add+0x25a1/0x3270 [ 46.676938] ? set_ipsecrequest+0x310/0x310 [ 46.676947] ? lock_release+0xda0/0xda0 [ 46.676953] ? set_ipsecrequest+0x310/0x310 [ 46.676962] pfkey_process+0x60b/0x720 [ 46.676974] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 46.676978] ? kasan_check_write+0x14/0x20 [ 46.677015] pfkey_sendmsg+0x4d6/0x9f0 [ 46.677025] ? pfkey_spdget+0xb00/0xb00 [ 46.677036] ? selinux_socket_sendmsg+0x36/0x40 [ 46.677043] ? security_socket_sendmsg+0x89/0xb0 [ 46.677049] ? pfkey_spdget+0xb00/0xb00 [ 46.677060] sock_sendmsg+0xca/0x110 [ 46.677069] ___sys_sendmsg+0x75b/0x8a0 [ 46.677080] ? copy_msghdr_from_user+0x590/0x590 [ 46.677090] ? check_noncircular+0x20/0x20 [ 46.677102] ? __pmd_alloc+0x4e0/0x4e0 [ 46.677110] ? find_held_lock+0x39/0x1d0 [ 46.677117] ? __fget_light+0x29d/0x390 [ 46.677125] ? fget_raw+0x20/0x20 [ 46.677137] ? find_held_lock+0x39/0x1d0 [ 46.677158] ? __fdget+0x18/0x20 [ 46.677168] __sys_sendmsg+0xe5/0x210 [ 46.677174] ? __sys_sendmsg+0xe5/0x210 [ 46.677182] ? SyS_shutdown+0x290/0x290 [ 46.677187] ? handle_mm_fault+0x410/0x8d0 [ 46.677194] ? __do_page_fault+0x32d/0xc90 [ 46.677201] ? __handle_mm_fault+0x3e20/0x3e20 [ 46.677207] ? vmacache_find+0x5f/0x280 [ 46.677237] compat_SyS_sendmsg+0x2a/0x40 [ 46.677243] ? compat_SyS_getsockopt+0x420/0x420 [ 46.677251] do_fast_syscall_32+0x3ee/0xf9d [ 46.677264] ? do_int80_syscall_32+0x9d0/0x9d0 [ 46.677270] ? kasan_check_read+0x11/0x20 [ 46.677278] ? syscall_return_slowpath+0x550/0x550 [ 46.677286] ? SyS_rt_sigaction+0x94/0x1b0 [ 46.677295] ? lockdep_sys_exit+0x47/0xf0 [ 46.677301] ? retint_user+0x18/0x18 [ 46.677312] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.677325] entry_SYSENTER_compat+0x51/0x60 [ 46.677330] RIP: 0023:0xf7f02c79 [ 46.677334] RSP: 002b:00000000ff8d80dc EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 46.677341] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000205f5000 [ 46.677345] RDX: 0000000000000000 RSI: 0000000000000167 RDI: 000000000000000f [ 46.677348] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 [ 46.677352] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 46.677355] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 46.677374] [ 46.677377] Allocated by task 3155: [ 46.677383] save_stack+0x43/0xd0 [ 46.677387] kasan_kmalloc+0xad/0xe0 [ 46.677393] __kmalloc_node_track_caller+0x47/0x70 [ 46.677399] __kmalloc_reserve.isra.41+0x41/0xd0 [ 46.677408] __alloc_skb+0x13b/0x780 [ 46.677412] pfkey_sendmsg+0x20f/0x9f0 [ 46.677417] sock_sendmsg+0xca/0x110 [ 46.677421] ___sys_sendmsg+0x75b/0x8a0 [ 46.677426] __sys_sendmsg+0xe5/0x210 [ 46.677430] compat_SyS_sendmsg+0x2a/0x40 [ 46.677435] do_fast_syscall_32+0x3ee/0xf9d [ 46.677440] entry_SYSENTER_compat+0x51/0x60 [ 46.677442] [ 46.677445] Freed by task 1647: [ 46.677449] save_stack+0x43/0xd0 [ 46.677453] kasan_slab_free+0x71/0xc0 [ 46.677458] kfree+0xca/0x250 [ 46.677464] kernfs_fop_release+0x13f/0x180 [ 46.677469] __fput+0x333/0x7f0 [ 46.677473] ____fput+0x15/0x20 [ 46.677479] task_work_run+0x199/0x270 [ 46.677484] exit_to_usermode_loop+0x296/0x310 [ 46.677489] syscall_return_slowpath+0x490/0x550 [ 46.677493] entry_SYSCALL_64_fastpath+0x94/0x96 [ 46.677495] [ 46.677500] The buggy address belongs to the object at ffff8801c4300580 [ 46.677500] which belongs to the cache kmalloc-512 of size 512 [ 46.677504] The buggy address is located 24 bytes inside of [ 46.677504] 512-byte region [ffff8801c4300580, ffff8801c4300780) [ 46.677507] The buggy address belongs to the page: [ 46.677512] page:00000000be42cb08 count:1 mapcount:0 mapping:00000000cbce278f index:0x0 [ 46.677519] flags: 0x2fffc0000000100(slab) [ 46.677527] raw: 02fffc0000000100 ffff8801c4300080 0000000000000000 0000000100000006 [ 46.677533] raw: ffffea000710bf60 ffffea0007107be0 ffff8801db000940 0000000000000000 [ 46.677536] page dumped because: kasan: bad access detected [ 46.677539] [ 46.677541] Memory state around the buggy address: [ 46.677546] ffff8801c4300680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 46.677550] ffff8801c4300700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 46.677555] >ffff8801c4300780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.677558] ^ [ 46.677562] ffff8801c4300800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.677567] ffff8801c4300880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.677569] ================================================================== [ 46.677572] Disabling lock debugging due to kernel taint [ 46.677599] Kernel panic - not syncing: panic_on_warn set ... [ 46.677599] [ 46.677603] CPU: 0 PID: 3155 Comm: syzkaller181759 Tainted: G B 4.15.0-rc3+ #127 [ 46.677605] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.677606] Call Trace: [ 46.677610] dump_stack+0x194/0x257 [ 46.677615] ? arch_local_irq_restore+0x53/0x53 [ 46.677620] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.677625] ? vsnprintf+0x1ed/0x1900 [ 46.677629] ? pfkey_add+0x24b0/0x3270 [ 46.677633] panic+0x1e4/0x41c [ 46.677637] ? refcount_error_report+0x214/0x214 [ 46.677643] ? add_taint+0x1c/0x50 [ 46.677647] ? add_taint+0x1c/0x50 [ 46.677652] ? pfkey_add+0x25a1/0x3270 [ 46.677656] kasan_end_report+0x50/0x50 [ 46.677660] kasan_report+0x144/0x340 [ 46.677665] check_memory_region+0x137/0x190 [ 46.677669] memcpy+0x23/0x50 [ 46.677674] pfkey_add+0x25a1/0x3270 [ 46.677683] ? set_ipsecrequest+0x310/0x310 [ 46.677688] ? lock_release+0xda0/0xda0 [ 46.677692] ? set_ipsecrequest+0x310/0x310 [ 46.677697] pfkey_process+0x60b/0x720 [ 46.677704] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 46.677707] ? kasan_check_write+0x14/0x20 [ 46.677724] pfkey_sendmsg+0x4d6/0x9f0 [ 46.677730] ? pfkey_spdget+0xb00/0xb00 [ 46.677736] ? selinux_socket_sendmsg+0x36/0x40 [ 46.677740] ? security_socket_sendmsg+0x89/0xb0 [ 46.677744] ? pfkey_spdget+0xb00/0xb00 [ 46.677749] sock_sendmsg+0xca/0x110 [ 46.677754] ___sys_sendmsg+0x75b/0x8a0 [ 46.677761] ? copy_msghdr_from_user+0x590/0x590 [ 46.677767] ? check_noncircular+0x20/0x20 [ 46.677773] ? __pmd_alloc+0x4e0/0x4e0 [ 46.677777] ? find_held_lock+0x39/0x1d0 [ 46.677782] ? __fget_light+0x29d/0x390 [ 46.677786] ? fget_raw+0x20/0x20 [ 46.677793] ? find_held_lock+0x39/0x1d0 [ 46.677804] ? __fdget+0x18/0x20 [ 46.677811] __sys_sendmsg+0xe5/0x210 [ 46.677814] ? __sys_sendmsg+0xe5/0x210 [ 46.677819] ? SyS_shutdown+0x290/0x290 [ 46.677822] ? handle_mm_fault+0x410/0x8d0 [ 46.677826] ? __do_page_fault+0x32d/0xc90 [ 46.677831] ? __handle_mm_fault+0x3e20/0x3e20 [ 46.677834] ? vmacache_find+0x5f/0x280 [ 46.677849] compat_SyS_sendmsg+0x2a/0x40 [ 46.677853] ? compat_SyS_getsockopt+0x420/0x420 [ 46.677857] do_fast_syscall_32+0x3ee/0xf9d [ 46.677864] ? do_int80_syscall_32+0x9d0/0x9d0 [ 46.677868] ? kasan_check_read+0x11/0x20 [ 46.677873] ? syscall_return_slowpath+0x550/0x550 [ 46.677878] ? SyS_rt_sigaction+0x94/0x1b0 [ 46.677883] ? lockdep_sys_exit+0x47/0xf0 [ 46.677886] ? retint_user+0x18/0x18 [ 46.677893] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.677900] entry_SYSENTER_compat+0x51/0x60 [ 46.677903] RIP: 0023:0xf7f02c79 [ 46.677905] RSP: 002b:00000000ff8d80dc EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 46.677909] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000205f5000 [ 46.677911] RDX: 0000000000000000 RSI: 0000000000000167 RDI: 000000000000000f [ 46.677913] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 [ 46.677915] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 46.677917] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 46.698818] Dumping ftrace buffer: [ 46.698822] (ftrace buffer empty) [ 46.698824] Kernel Offset: disabled [ 47.520941] Rebooting in 86400 seconds..