[....] Starting enhanced syslogd: rsyslogd[ 12.346761] audit: type=1400 audit(1513021730.404: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 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: [ 19.687183] audit: type=1400 audit(1513021737.744:6): avc: denied { map } for pid=3135 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-1,10.128.0.37' (ECDSA) to the list of known hosts. executing program [ 25.997977] audit: type=1400 audit(1513021744.055:7): avc: denied { map } for pid=3149 comm="syzkaller428285" path="/root/syzkaller428285483" 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 [ 26.002934] ================================================================== [ 26.002954] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x1634/0x3270 [ 26.002962] Read of size 8192 at addr ffff8801c5197318 by task syzkaller428285/3149 [ 26.002966] [ 26.002976] CPU: 0 PID: 3149 Comm: syzkaller428285 Not tainted 4.15.0-rc3+ #127 [ 26.002982] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.002987] Call Trace: [ 26.002998] dump_stack+0x194/0x257 [ 26.003017] ? arch_local_irq_restore+0x53/0x53 [ 26.003029] ? show_regs_print_info+0x18/0x18 [ 26.003037] ? __lock_is_held+0xbc/0x140 [ 26.003055] ? pfkey_add+0x1634/0x3270 [ 26.003068] print_address_description+0x73/0x250 [ 26.003077] ? pfkey_add+0x1634/0x3270 [ 26.003088] kasan_report+0x25b/0x340 [ 26.003105] check_memory_region+0x137/0x190 [ 26.003116] memcpy+0x23/0x50 [ 26.003128] pfkey_add+0x1634/0x3270 [ 26.003154] ? set_ipsecrequest+0x310/0x310 [ 26.003169] ? lock_release+0xda0/0xda0 [ 26.003180] ? set_ipsecrequest+0x310/0x310 [ 26.003193] pfkey_process+0x60b/0x720 [ 26.003212] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 26.003220] ? kasan_check_write+0x14/0x20 [ 26.003275] pfkey_sendmsg+0x4d6/0x9f0 [ 26.003291] ? pfkey_spdget+0xb00/0xb00 [ 26.003307] ? selinux_socket_sendmsg+0x36/0x40 [ 26.003318] ? security_socket_sendmsg+0x89/0xb0 [ 26.003328] ? pfkey_spdget+0xb00/0xb00 [ 26.003342] sock_sendmsg+0xca/0x110 [ 26.003356] ___sys_sendmsg+0x75b/0x8a0 [ 26.003375] ? copy_msghdr_from_user+0x590/0x590 [ 26.003387] ? _raw_spin_unlock+0x22/0x30 [ 26.003398] ? check_noncircular+0x20/0x20 [ 26.003416] ? __pmd_alloc+0x4e0/0x4e0 [ 26.003428] ? find_held_lock+0x39/0x1d0 [ 26.003439] ? __fget_light+0x29d/0x390 [ 26.003452] ? fget_raw+0x20/0x20 [ 26.003472] ? find_held_lock+0x39/0x1d0 [ 26.003505] ? __fdget+0x18/0x20 [ 26.003523] __sys_sendmsg+0xe5/0x210 [ 26.003532] ? __sys_sendmsg+0xe5/0x210 [ 26.003546] ? SyS_shutdown+0x290/0x290 [ 26.003553] ? handle_mm_fault+0x410/0x8d0 [ 26.003563] ? __do_page_fault+0x32d/0xc90 [ 26.003575] ? __handle_mm_fault+0x3e20/0x3e20 [ 26.003583] ? vmacache_find+0x5f/0x280 [ 26.003631] compat_SyS_sendmsg+0x2a/0x40 [ 26.003642] ? compat_SyS_getsockopt+0x420/0x420 [ 26.003652] do_fast_syscall_32+0x3ee/0xf9d [ 26.003673] ? do_int80_syscall_32+0x9d0/0x9d0 [ 26.003683] ? kasan_check_read+0x11/0x20 [ 26.003702] ? syscall_return_slowpath+0x550/0x550 [ 26.003714] ? SyS_rt_sigaction+0x94/0x1b0 [ 26.003728] ? lockdep_sys_exit+0x47/0xf0 [ 26.003737] ? retint_user+0x18/0x18 [ 26.003755] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.003776] entry_SYSENTER_compat+0x51/0x60 [ 26.003784] RIP: 0023:0xf7fd4c79 [ 26.003790] RSP: 002b:00000000ff9d7c1c EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 26.003801] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000205f5000 [ 26.003807] RDX: 0000000000000000 RSI: 0000000000000167 RDI: 000000000000000f [ 26.003813] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 [ 26.003819] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 26.003824] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 26.003856] [ 26.003861] Allocated by task 3149: [ 26.003868] save_stack+0x43/0xd0 [ 26.003876] kasan_kmalloc+0xad/0xe0 [ 26.003885] __kmalloc_node_track_caller+0x47/0x70 [ 26.003894] __kmalloc_reserve.isra.41+0x41/0xd0 [ 26.003901] __alloc_skb+0x13b/0x780 [ 26.003908] pfkey_sendmsg+0x20f/0x9f0 [ 26.003916] sock_sendmsg+0xca/0x110 [ 26.003923] ___sys_sendmsg+0x75b/0x8a0 [ 26.003931] __sys_sendmsg+0xe5/0x210 [ 26.003938] compat_SyS_sendmsg+0x2a/0x40 [ 26.003945] do_fast_syscall_32+0x3ee/0xf9d [ 26.003953] entry_SYSENTER_compat+0x51/0x60 [ 26.003956] [ 26.003961] Freed by task 1636: [ 26.003968] save_stack+0x43/0xd0 [ 26.003975] kasan_slab_free+0x71/0xc0 [ 26.003983] kfree+0xca/0x250 [ 26.003991] kernfs_fop_release+0x13f/0x180 [ 26.003999] __fput+0x333/0x7f0 [ 26.004006] ____fput+0x15/0x20 [ 26.004014] task_work_run+0x199/0x270 [ 26.004021] exit_to_usermode_loop+0x296/0x310 [ 26.004029] syscall_return_slowpath+0x490/0x550 [ 26.004037] entry_SYSCALL_64_fastpath+0x94/0x96 [ 26.004040] [ 26.004047] The buggy address belongs to the object at ffff8801c5197300 [ 26.004047] which belongs to the cache kmalloc-512 of size 512 [ 26.004054] The buggy address is located 24 bytes inside of [ 26.004054] 512-byte region [ffff8801c5197300, ffff8801c5197500) [ 26.004059] The buggy address belongs to the page: [ 26.004066] page:00000000ea98bd6b count:1 mapcount:0 mapping:000000003ab76c13 index:0x0 [ 26.004077] flags: 0x2fffc0000000100(slab) [ 26.004088] raw: 02fffc0000000100 ffff8801c5197080 0000000000000000 0000000100000006 [ 26.004098] raw: ffffea0007146520 ffffea0007147960 ffff8801db000940 0000000000000000 [ 26.004103] page dumped because: kasan: bad access detected [ 26.004107] [ 26.004111] Memory state around the buggy address: [ 26.004118] ffff8801c5197400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.004125] ffff8801c5197480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.004133] >ffff8801c5197500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.004137] ^ [ 26.004144] ffff8801c5197580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.004151] ffff8801c5197600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.004156] ================================================================== [ 26.004159] Disabling lock debugging due to kernel taint [ 26.004175] Kernel panic - not syncing: panic_on_warn set ... [ 26.004175] [ 26.004181] CPU: 0 PID: 3149 Comm: syzkaller428285 Tainted: G B 4.15.0-rc3+ #127 [ 26.004184] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.004185] Call Trace: [ 26.004191] dump_stack+0x194/0x257 [ 26.004199] ? arch_local_irq_restore+0x53/0x53 [ 26.004206] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.004213] ? vsnprintf+0x1ed/0x1900 [ 26.004220] ? pfkey_add+0x15b0/0x3270 [ 26.004227] panic+0x1e4/0x41c [ 26.004233] ? refcount_error_report+0x214/0x214 [ 26.004242] ? add_taint+0x1c/0x50 [ 26.004249] ? add_taint+0x1c/0x50 [ 26.004256] ? pfkey_add+0x1634/0x3270 [ 26.004262] kasan_end_report+0x50/0x50 [ 26.004269] kasan_report+0x144/0x340 [ 26.004277] check_memory_region+0x137/0x190 [ 26.004284] memcpy+0x23/0x50 [ 26.004291] pfkey_add+0x1634/0x3270 [ 26.004305] ? set_ipsecrequest+0x310/0x310 [ 26.004312] ? lock_release+0xda0/0xda0 [ 26.004319] ? set_ipsecrequest+0x310/0x310 [ 26.004327] pfkey_process+0x60b/0x720 [ 26.004337] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 26.004342] ? kasan_check_write+0x14/0x20 [ 26.004369] pfkey_sendmsg+0x4d6/0x9f0 [ 26.004378] ? pfkey_spdget+0xb00/0xb00 [ 26.004387] ? selinux_socket_sendmsg+0x36/0x40 [ 26.004394] ? security_socket_sendmsg+0x89/0xb0 [ 26.004399] ? pfkey_spdget+0xb00/0xb00 [ 26.004407] sock_sendmsg+0xca/0x110 [ 26.004416] ___sys_sendmsg+0x75b/0x8a0 [ 26.004426] ? copy_msghdr_from_user+0x590/0x590 [ 26.004433] ? _raw_spin_unlock+0x22/0x30 [ 26.004440] ? check_noncircular+0x20/0x20 [ 26.004449] ? __pmd_alloc+0x4e0/0x4e0 [ 26.004456] ? find_held_lock+0x39/0x1d0 [ 26.004462] ? __fget_light+0x29d/0x390 [ 26.004470] ? fget_raw+0x20/0x20 [ 26.004481] ? find_held_lock+0x39/0x1d0 [ 26.004498] ? __fdget+0x18/0x20 [ 26.004508] __sys_sendmsg+0xe5/0x210 [ 26.004514] ? __sys_sendmsg+0xe5/0x210 [ 26.004522] ? SyS_shutdown+0x290/0x290 [ 26.004527] ? handle_mm_fault+0x410/0x8d0 [ 26.004533] ? __do_page_fault+0x32d/0xc90 [ 26.004540] ? __handle_mm_fault+0x3e20/0x3e20 [ 26.004545] ? vmacache_find+0x5f/0x280 [ 26.004569] compat_SyS_sendmsg+0x2a/0x40 [ 26.004575] ? compat_SyS_getsockopt+0x420/0x420 [ 26.004581] do_fast_syscall_32+0x3ee/0xf9d [ 26.004593] ? do_int80_syscall_32+0x9d0/0x9d0 [ 26.004599] ? kasan_check_read+0x11/0x20 [ 26.004607] ? syscall_return_slowpath+0x550/0x550 [ 26.004614] ? SyS_rt_sigaction+0x94/0x1b0 [ 26.004622] ? lockdep_sys_exit+0x47/0xf0 [ 26.004628] ? retint_user+0x18/0x18 [ 26.004638] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.004649] entry_SYSENTER_compat+0x51/0x60 [ 26.004653] RIP: 0023:0xf7fd4c79 [ 26.004656] RSP: 002b:00000000ff9d7c1c EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 26.004662] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000205f5000 [ 26.004665] RDX: 0000000000000000 RSI: 0000000000000167 RDI: 000000000000000f [ 26.004668] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 [ 26.004672] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 26.004675] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 26.024386] Dumping ftrace buffer: [ 26.024389] (ftrace buffer empty) [ 26.024393] Kernel Offset: disabled [ 26.854925] Rebooting in 86400 seconds..