[....] Starting enhanced syslogd: rsyslogd[ 10.373305] audit: type=1400 audit(1513792948.536:5): avc: denied { syslog } for pid=2991 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: [ 13.088925] audit: type=1400 audit(1513792951.251:6): avc: denied { map } for pid=3130 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-2,10.128.15.208' (ECDSA) to the list of known hosts. executing program [ 35.063453] audit: type=1400 audit(1513792973.226:7): avc: denied { map } for pid=3149 comm="syzkaller060832" path="/root/syzkaller060832838" 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 [ 35.068495] ================================================================== [ 35.068510] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x259e/0x3270 [ 35.068514] Read of size 6144 at addr ffff8801ca9c1a58 by task syzkaller060832/3149 [ 35.068515] [ 35.068521] CPU: 0 PID: 3149 Comm: syzkaller060832 Not tainted 4.15.0-rc4+ #140 [ 35.068524] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.068526] Call Trace: [ 35.068534] dump_stack+0x194/0x257 [ 35.068542] ? arch_local_irq_restore+0x53/0x53 [ 35.068550] ? show_regs_print_info+0x18/0x18 [ 35.068555] ? __lock_is_held+0xb6/0x140 [ 35.068564] ? pfkey_add+0x259e/0x3270 [ 35.068572] print_address_description+0x73/0x250 [ 35.068577] ? pfkey_add+0x259e/0x3270 [ 35.068582] kasan_report+0x25b/0x340 [ 35.068591] check_memory_region+0x137/0x190 [ 35.068596] memcpy+0x23/0x50 [ 35.068603] pfkey_add+0x259e/0x3270 [ 35.068618] ? set_ipsecrequest+0x310/0x310 [ 35.068625] ? lock_release+0xa40/0xa40 [ 35.068630] ? set_ipsecrequest+0x310/0x310 [ 35.068637] pfkey_process+0x60b/0x720 [ 35.068648] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 35.068651] ? kasan_check_write+0x14/0x20 [ 35.068683] pfkey_sendmsg+0x4d6/0x9f0 [ 35.068691] ? pfkey_spdget+0xb00/0xb00 [ 35.068702] ? selinux_socket_sendmsg+0x36/0x40 [ 35.068707] ? security_socket_sendmsg+0x89/0xb0 [ 35.068712] ? pfkey_spdget+0xb00/0xb00 [ 35.068722] sock_sendmsg+0xca/0x110 [ 35.068729] ___sys_sendmsg+0x767/0x8b0 [ 35.068733] ? SyS_membarrier+0x600/0x600 [ 35.068742] ? copy_msghdr_from_user+0x590/0x590 [ 35.068745] ? check_noncircular+0x20/0x20 [ 35.068762] ? check_noncircular+0x20/0x20 [ 35.068767] ? __pmd_alloc+0x4e0/0x4e0 [ 35.068777] ? __fget_light+0x297/0x380 [ 35.068784] ? fget_raw+0x20/0x20 [ 35.068795] ? handle_mm_fault+0x248/0x8d0 [ 35.068803] ? find_held_lock+0x35/0x1d0 [ 35.068821] __sys_sendmsg+0xe5/0x210 [ 35.068825] ? __sys_sendmsg+0xe5/0x210 [ 35.068831] ? SyS_shutdown+0x290/0x290 [ 35.068835] ? handle_mm_fault+0x410/0x8d0 [ 35.068842] ? __do_page_fault+0x32d/0xc90 [ 35.068848] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 35.068853] ? vmacache_find+0x5f/0x280 [ 35.068882] compat_SyS_sendmsg+0x2a/0x40 [ 35.068887] ? compat_SyS_getsockopt+0x420/0x420 [ 35.068893] do_fast_syscall_32+0x3ee/0xf9d [ 35.068904] ? do_int80_syscall_32+0x9d0/0x9d0 [ 35.068909] ? kasan_check_read+0x11/0x20 [ 35.068916] ? syscall_return_slowpath+0x550/0x550 [ 35.068923] ? SyS_rt_sigaction+0x94/0x1b0 [ 35.068929] ? SyS_sigprocmask+0x4b0/0x4b0 [ 35.068934] ? SyS_read+0x184/0x220 [ 35.068940] ? retint_user+0x18/0x18 [ 35.068950] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.068961] entry_SYSENTER_compat+0x54/0x63 [ 35.068965] RIP: 0023:0xf7f45c79 [ 35.068968] RSP: 002b:00000000fff9350c EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 35.068973] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000205f5000 [ 35.068976] RDX: 0000000000000000 RSI: 0000000000000167 RDI: 000000000000000f [ 35.068978] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 [ 35.068981] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 35.068984] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.069004] [ 35.069006] Allocated by task 3149: [ 35.069010] save_stack+0x43/0xd0 [ 35.069013] kasan_kmalloc+0xad/0xe0 [ 35.069019] __kmalloc_node_track_caller+0x47/0x70 [ 35.069024] __kmalloc_reserve.isra.41+0x41/0xd0 [ 35.069027] __alloc_skb+0x13b/0x780 [ 35.069031] pfkey_sendmsg+0x20f/0x9f0 [ 35.069034] sock_sendmsg+0xca/0x110 [ 35.069037] ___sys_sendmsg+0x767/0x8b0 [ 35.069040] __sys_sendmsg+0xe5/0x210 [ 35.069043] compat_SyS_sendmsg+0x2a/0x40 [ 35.069046] do_fast_syscall_32+0x3ee/0xf9d [ 35.069050] entry_SYSENTER_compat+0x54/0x63 [ 35.069051] [ 35.069053] Freed by task 1638: [ 35.069056] save_stack+0x43/0xd0 [ 35.069059] kasan_slab_free+0x71/0xc0 [ 35.069062] kfree+0xd6/0x260 [ 35.069068] kernfs_fop_release+0x13f/0x180 [ 35.069071] __fput+0x327/0x7e0 [ 35.069074] ____fput+0x15/0x20 [ 35.069079] task_work_run+0x199/0x270 [ 35.069082] exit_to_usermode_loop+0x296/0x310 [ 35.069086] syscall_return_slowpath+0x490/0x550 [ 35.069089] entry_SYSCALL_64_fastpath+0x94/0x96 [ 35.069090] [ 35.069093] The buggy address belongs to the object at ffff8801ca9c1a40 [ 35.069093] which belongs to the cache kmalloc-512 of size 512 [ 35.069097] The buggy address is located 24 bytes inside of [ 35.069097] 512-byte region [ffff8801ca9c1a40, ffff8801ca9c1c40) [ 35.069098] The buggy address belongs to the page: [ 35.069102] page:000000000d93ec00 count:1 mapcount:0 mapping:0000000078192388 index:0xffff8801ca9c1cc0 [ 35.069107] flags: 0x2fffc0000000100(slab) [ 35.069113] raw: 02fffc0000000100 ffff8801ca9c1040 ffff8801ca9c1cc0 0000000100000005 [ 35.069117] raw: ffffea00073ce5a0 ffffea00072ed4e0 ffff8801db000940 0000000000000000 [ 35.069119] page dumped because: kasan: bad access detected [ 35.069120] [ 35.069121] Memory state around the buggy address: [ 35.069125] ffff8801ca9c1b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.069128] ffff8801ca9c1b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.069131] >ffff8801ca9c1c00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 35.069132] ^ [ 35.069135] ffff8801ca9c1c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.069138] ffff8801ca9c1d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.069140] ================================================================== [ 35.069141] Disabling lock debugging due to kernel taint [ 35.069155] Kernel panic - not syncing: panic_on_warn set ... [ 35.069155] [ 35.069159] CPU: 0 PID: 3149 Comm: syzkaller060832 Tainted: G B 4.15.0-rc4+ #140 [ 35.069161] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.069162] Call Trace: [ 35.069166] dump_stack+0x194/0x257 [ 35.069171] ? arch_local_irq_restore+0x53/0x53 [ 35.069176] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.069181] ? vsnprintf+0x1ed/0x1900 [ 35.069186] ? pfkey_add+0x2500/0x3270 [ 35.069191] panic+0x1e4/0x41c [ 35.069195] ? refcount_error_report+0x214/0x214 [ 35.069200] ? add_taint+0x1c/0x50 [ 35.069204] ? add_taint+0x1c/0x50 [ 35.069209] ? pfkey_add+0x259e/0x3270 [ 35.069213] kasan_end_report+0x50/0x50 [ 35.069217] kasan_report+0x144/0x340 [ 35.069222] check_memory_region+0x137/0x190 [ 35.069226] memcpy+0x23/0x50 [ 35.069231] pfkey_add+0x259e/0x3270 [ 35.069240] ? set_ipsecrequest+0x310/0x310 [ 35.069245] ? lock_release+0xa40/0xa40 [ 35.069249] ? set_ipsecrequest+0x310/0x310 [ 35.069254] pfkey_process+0x60b/0x720 [ 35.069261] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 35.069264] ? kasan_check_write+0x14/0x20 [ 35.069281] pfkey_sendmsg+0x4d6/0x9f0 [ 35.069287] ? pfkey_spdget+0xb00/0xb00 [ 35.069293] ? selinux_socket_sendmsg+0x36/0x40 [ 35.069297] ? security_socket_sendmsg+0x89/0xb0 [ 35.069300] ? pfkey_spdget+0xb00/0xb00 [ 35.069306] sock_sendmsg+0xca/0x110 [ 35.069310] ___sys_sendmsg+0x767/0x8b0 [ 35.069313] ? SyS_membarrier+0x600/0x600 [ 35.069319] ? copy_msghdr_from_user+0x590/0x590 [ 35.069322] ? check_noncircular+0x20/0x20 [ 35.069332] ? check_noncircular+0x20/0x20 [ 35.069335] ? __pmd_alloc+0x4e0/0x4e0 [ 35.069341] ? __fget_light+0x297/0x380 [ 35.069345] ? fget_raw+0x20/0x20 [ 35.069352] ? handle_mm_fault+0x248/0x8d0 [ 35.069358] ? find_held_lock+0x35/0x1d0 [ 35.069368] __sys_sendmsg+0xe5/0x210 [ 35.069371] ? __sys_sendmsg+0xe5/0x210 [ 35.069376] ? SyS_shutdown+0x290/0x290 [ 35.069379] ? handle_mm_fault+0x410/0x8d0 [ 35.069383] ? __do_page_fault+0x32d/0xc90 [ 35.069391] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 35.069394] ? vmacache_find+0x5f/0x280 [ 35.069411] compat_SyS_sendmsg+0x2a/0x40 [ 35.069415] ? compat_SyS_getsockopt+0x420/0x420 [ 35.069420] do_fast_syscall_32+0x3ee/0xf9d [ 35.069430] ? do_int80_syscall_32+0x9d0/0x9d0 [ 35.069434] ? kasan_check_read+0x11/0x20 [ 35.069439] ? syscall_return_slowpath+0x550/0x550 [ 35.069444] ? SyS_rt_sigaction+0x94/0x1b0 [ 35.069448] ? SyS_sigprocmask+0x4b0/0x4b0 [ 35.069451] ? SyS_read+0x184/0x220 [ 35.069455] ? retint_user+0x18/0x18 [ 35.069461] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.069469] entry_SYSENTER_compat+0x54/0x63 [ 35.069471] RIP: 0023:0xf7f45c79 [ 35.069474] RSP: 002b:00000000fff9350c EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 35.069478] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000205f5000 [ 35.069480] RDX: 0000000000000000 RSI: 0000000000000167 RDI: 000000000000000f [ 35.069482] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 [ 35.069484] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 35.069486] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.090073] Dumping ftrace buffer: [ 35.090076] (ftrace buffer empty) [ 35.090078] Kernel Offset: disabled [ 35.942330] Rebooting in 86400 seconds..