[....] Starting enhanced syslogd: rsyslogd[ 13.426816] audit: type=1400 audit(1513178408.476:5): avc: denied { syslog } for pid=2992 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: [ 20.386860] audit: type=1400 audit(1513178415.436:6): avc: denied { map } for pid=3132 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-4,10.128.0.9' (ECDSA) to the list of known hosts. executing program [ 26.737105] audit: type=1400 audit(1513178421.786:7): avc: denied { map } for pid=3146 comm="syzkaller732096" path="/root/syzkaller732096003" 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.741387] ================================================================== [ 26.741403] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x1634/0x3270 [ 26.741409] Read of size 8192 at addr ffff8801c5289018 by task syzkaller732096/3146 [ 26.741412] [ 26.741418] CPU: 0 PID: 3146 Comm: syzkaller732096 Not tainted 4.15.0-rc3+ #219 [ 26.741423] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.741426] Call Trace: [ 26.741434] dump_stack+0x194/0x257 [ 26.741444] ? arch_local_irq_restore+0x53/0x53 [ 26.741452] ? show_regs_print_info+0x18/0x18 [ 26.741458] ? __lock_is_held+0xbc/0x140 [ 26.741469] ? pfkey_add+0x1634/0x3270 [ 26.741478] print_address_description+0x73/0x250 [ 26.741484] ? pfkey_add+0x1634/0x3270 [ 26.741491] kasan_report+0x25b/0x340 [ 26.741501] check_memory_region+0x137/0x190 [ 26.741508] memcpy+0x23/0x50 [ 26.741515] pfkey_add+0x1634/0x3270 [ 26.741532] ? set_ipsecrequest+0x310/0x310 [ 26.741540] ? lock_release+0xda0/0xda0 [ 26.741547] ? set_ipsecrequest+0x310/0x310 [ 26.741555] pfkey_process+0x60b/0x720 [ 26.741567] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 26.741572] ? kasan_check_write+0x14/0x20 [ 26.741598] ? dup_iter+0x1e2/0x260 [ 26.741611] pfkey_sendmsg+0x4d6/0x9f0 [ 26.741621] ? pfkey_spdget+0xb00/0xb00 [ 26.741631] ? selinux_socket_sendmsg+0x36/0x40 [ 26.741639] ? security_socket_sendmsg+0x89/0xb0 [ 26.741645] ? pfkey_spdget+0xb00/0xb00 [ 26.741655] sock_sendmsg+0xca/0x110 [ 26.741664] ___sys_sendmsg+0x75b/0x8a0 [ 26.741676] ? copy_msghdr_from_user+0x590/0x590 [ 26.741683] ? lock_downgrade+0x980/0x980 [ 26.741707] ? fget_raw+0x20/0x20 [ 26.741715] ? __handle_mm_fault+0x3e20/0x3e20 [ 26.741721] ? vmacache_find+0x5f/0x280 [ 26.741734] ? up_read+0x1a/0x40 [ 26.741742] ? __do_page_fault+0x3d6/0xc90 [ 26.741747] ? get_unused_fd_flags+0x190/0x190 [ 26.741760] ? __fdget+0x18/0x20 [ 26.741771] __sys_sendmsg+0xe5/0x210 [ 26.741776] ? __sys_sendmsg+0xe5/0x210 [ 26.741785] ? SyS_shutdown+0x290/0x290 [ 26.741793] ? __do_page_fault+0xc90/0xc90 [ 26.741803] ? fd_install+0x4d/0x60 [ 26.741825] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.741837] SyS_sendmsg+0x2d/0x50 [ 26.741847] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.741853] RIP: 0033:0x43ff59 [ 26.741856] RSP: 002b:00007ffc1d4b96e8 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 26.741864] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ff59 [ 26.741868] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 26.741871] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 26.741875] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 26.741879] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 26.741899] [ 26.741903] Allocated by task 3146: [ 26.741908] save_stack+0x43/0xd0 [ 26.741912] kasan_kmalloc+0xad/0xe0 [ 26.741919] __kmalloc_node_track_caller+0x47/0x70 [ 26.741925] __kmalloc_reserve.isra.41+0x41/0xd0 [ 26.741929] __alloc_skb+0x13b/0x780 [ 26.741934] pfkey_sendmsg+0x20f/0x9f0 [ 26.741939] sock_sendmsg+0xca/0x110 [ 26.741944] ___sys_sendmsg+0x75b/0x8a0 [ 26.741948] __sys_sendmsg+0xe5/0x210 [ 26.741953] SyS_sendmsg+0x2d/0x50 [ 26.741958] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.741960] [ 26.741963] Freed by task 1662: [ 26.741968] save_stack+0x43/0xd0 [ 26.741972] kasan_slab_free+0x71/0xc0 [ 26.741977] kfree+0xca/0x250 [ 26.741981] skb_free_head+0x74/0xb0 [ 26.741986] skb_release_data+0x58c/0x790 [ 26.741991] skb_release_all+0x4a/0x60 [ 26.741995] kfree_skb+0x15d/0x4c0 [ 26.742005] unix_stream_connect+0x876/0x1580 [ 26.742009] SYSC_connect+0x20a/0x480 [ 26.742014] SyS_connect+0x24/0x30 [ 26.742019] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.742021] [ 26.742025] The buggy address belongs to the object at ffff8801c5289000 [ 26.742025] which belongs to the cache kmalloc-512 of size 512 [ 26.742030] The buggy address is located 24 bytes inside of [ 26.742030] 512-byte region [ffff8801c5289000, ffff8801c5289200) [ 26.742033] The buggy address belongs to the page: [ 26.742038] page:000000009916021d count:1 mapcount:0 mapping:000000003d9808b9 index:0x0 [ 26.742045] flags: 0x2fffc0000000100(slab) [ 26.742052] raw: 02fffc0000000100 ffff8801c5289000 0000000000000000 0000000100000006 [ 26.742058] raw: ffffea000715bae0 ffffea000714a4a0 ffff8801db000940 0000000000000000 [ 26.742061] page dumped because: kasan: bad access detected [ 26.742063] [ 26.742066] Memory state around the buggy address: [ 26.742071] ffff8801c5289100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.742075] ffff8801c5289180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.742080] >ffff8801c5289200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.742082] ^ [ 26.742087] ffff8801c5289280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.742091] ffff8801c5289300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.742093] ================================================================== [ 26.742095] Disabling lock debugging due to kernel taint [ 26.742113] Kernel panic - not syncing: panic_on_warn set ... [ 26.742113] [ 26.742117] CPU: 0 PID: 3146 Comm: syzkaller732096 Tainted: G B 4.15.0-rc3+ #219 [ 26.742119] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.742120] Call Trace: [ 26.742125] dump_stack+0x194/0x257 [ 26.742130] ? arch_local_irq_restore+0x53/0x53 [ 26.742137] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.742142] ? vsnprintf+0x1ed/0x1900 [ 26.742146] ? pfkey_add+0x15b0/0x3270 [ 26.742150] panic+0x1e4/0x41c [ 26.742154] ? refcount_error_report+0x214/0x214 [ 26.742160] ? add_taint+0x1c/0x50 [ 26.742164] ? add_taint+0x1c/0x50 [ 26.742168] ? pfkey_add+0x1634/0x3270 [ 26.742172] kasan_end_report+0x50/0x50 [ 26.742176] kasan_report+0x144/0x340 [ 26.742181] check_memory_region+0x137/0x190 [ 26.742185] memcpy+0x23/0x50 [ 26.742190] pfkey_add+0x1634/0x3270 [ 26.742198] ? set_ipsecrequest+0x310/0x310 [ 26.742203] ? lock_release+0xda0/0xda0 [ 26.742207] ? set_ipsecrequest+0x310/0x310 [ 26.742212] pfkey_process+0x60b/0x720 [ 26.742219] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 26.742222] ? kasan_check_write+0x14/0x20 [ 26.742234] ? dup_iter+0x1e2/0x260 [ 26.742241] pfkey_sendmsg+0x4d6/0x9f0 [ 26.742247] ? pfkey_spdget+0xb00/0xb00 [ 26.742253] ? selinux_socket_sendmsg+0x36/0x40 [ 26.742257] ? security_socket_sendmsg+0x89/0xb0 [ 26.742260] ? pfkey_spdget+0xb00/0xb00 [ 26.742265] sock_sendmsg+0xca/0x110 [ 26.742270] ___sys_sendmsg+0x75b/0x8a0 [ 26.742277] ? copy_msghdr_from_user+0x590/0x590 [ 26.742281] ? lock_downgrade+0x980/0x980 [ 26.742293] ? fget_raw+0x20/0x20 [ 26.742297] ? __handle_mm_fault+0x3e20/0x3e20 [ 26.742300] ? vmacache_find+0x5f/0x280 [ 26.742307] ? up_read+0x1a/0x40 [ 26.742312] ? __do_page_fault+0x3d6/0xc90 [ 26.742315] ? get_unused_fd_flags+0x190/0x190 [ 26.742322] ? __fdget+0x18/0x20 [ 26.742329] __sys_sendmsg+0xe5/0x210 [ 26.742332] ? __sys_sendmsg+0xe5/0x210 [ 26.742337] ? SyS_shutdown+0x290/0x290 [ 26.742342] ? __do_page_fault+0xc90/0xc90 [ 26.742348] ? fd_install+0x4d/0x60 [ 26.742357] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.742364] SyS_sendmsg+0x2d/0x50 [ 26.742369] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.742371] RIP: 0033:0x43ff59 [ 26.742373] RSP: 002b:00007ffc1d4b96e8 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 26.742377] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ff59 [ 26.742379] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 26.742381] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 26.742383] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 26.742385] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 26.763348] Dumping ftrace buffer: [ 26.763351] (ftrace buffer empty) [ 26.763353] Kernel Offset: disabled [ 27.514099] Rebooting in 86400 seconds..