[....] Starting enhanced syslogd: rsyslogd[ 12.906189] audit: type=1400 audit(1513323345.553:5): avc: denied { syslog } for pid=2999 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 18.771931] audit: type=1400 audit(1513323351.418:6): avc: denied { map } for pid=3138 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-net-kasan-gce-9,10.128.0.17' (ECDSA) to the list of known hosts. executing program [ 25.048125] audit: type=1400 audit(1513323357.694:7): avc: denied { map } for pid=3152 comm="syzkaller914290" path="/root/syzkaller914290815" 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 [ 25.053199] ================================================================== [ 25.053218] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x1634/0x3270 [ 25.053226] Read of size 8192 at addr ffff8801c54f8058 by task syzkaller914290/3152 [ 25.053230] [ 25.053239] CPU: 0 PID: 3152 Comm: syzkaller914290 Not tainted 4.15.0-rc2+ #153 [ 25.053245] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.053250] Call Trace: [ 25.053262] dump_stack+0x194/0x257 [ 25.053277] ? arch_local_irq_restore+0x53/0x53 [ 25.053289] ? show_regs_print_info+0x18/0x18 [ 25.053297] ? __lock_is_held+0xbc/0x140 [ 25.053315] ? pfkey_add+0x1634/0x3270 [ 25.053328] print_address_description+0x73/0x250 [ 25.053338] ? pfkey_add+0x1634/0x3270 [ 25.053350] kasan_report+0x25b/0x340 [ 25.053366] check_memory_region+0x137/0x190 [ 25.053376] memcpy+0x23/0x50 [ 25.053389] pfkey_add+0x1634/0x3270 [ 25.053415] ? set_ipsecrequest+0x310/0x310 [ 25.053429] ? lock_release+0xda0/0xda0 [ 25.053440] ? set_ipsecrequest+0x310/0x310 [ 25.053453] pfkey_process+0x60b/0x720 [ 25.053473] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 25.053480] ? kasan_check_write+0x14/0x20 [ 25.053521] ? dup_iter+0x1c2/0x260 [ 25.053542] pfkey_sendmsg+0x4d6/0x9f0 [ 25.053559] ? pfkey_spdget+0xb00/0xb00 [ 25.053574] ? selinux_socket_sendmsg+0x36/0x40 [ 25.053585] ? security_socket_sendmsg+0x89/0xb0 [ 25.053595] ? pfkey_spdget+0xb00/0xb00 [ 25.053609] sock_sendmsg+0xca/0x110 [ 25.053624] ___sys_sendmsg+0x75b/0x8a0 [ 25.053642] ? copy_msghdr_from_user+0x590/0x590 [ 25.053654] ? lock_downgrade+0x980/0x980 [ 25.053691] ? fget_raw+0x20/0x20 [ 25.053702] ? __handle_mm_fault+0x3e20/0x3e20 [ 25.053711] ? vmacache_find+0x5f/0x280 [ 25.053732] ? up_read+0x1a/0x40 [ 25.053744] ? __do_page_fault+0x3d6/0xc90 [ 25.053752] ? get_unused_fd_flags+0x190/0x190 [ 25.053773] ? __fdget+0x18/0x20 [ 25.053791] __sys_sendmsg+0xe5/0x210 [ 25.053799] ? __sys_sendmsg+0xe5/0x210 [ 25.053813] ? SyS_shutdown+0x290/0x290 [ 25.053826] ? __do_page_fault+0xc90/0xc90 [ 25.053842] ? fd_install+0x4d/0x60 [ 25.053870] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.053890] SyS_sendmsg+0x2d/0x50 [ 25.053904] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.053912] RIP: 0033:0x43ff59 [ 25.053918] RSP: 002b:00007ffcc870db58 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 25.053934] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ff59 [ 25.053941] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 25.053946] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 25.053952] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 25.053958] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 25.053989] [ 25.053994] Allocated by task 3152: [ 25.054005] save_stack+0x43/0xd0 [ 25.054012] kasan_kmalloc+0xad/0xe0 [ 25.054022] __kmalloc_node_track_caller+0x47/0x70 [ 25.054031] __kmalloc_reserve.isra.41+0x41/0xd0 [ 25.054038] __alloc_skb+0x13b/0x780 [ 25.054045] pfkey_sendmsg+0x20f/0x9f0 [ 25.054053] sock_sendmsg+0xca/0x110 [ 25.054060] ___sys_sendmsg+0x75b/0x8a0 [ 25.054068] __sys_sendmsg+0xe5/0x210 [ 25.054076] SyS_sendmsg+0x2d/0x50 [ 25.054084] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.054087] [ 25.054092] Freed by task 1637: [ 25.054099] save_stack+0x43/0xd0 [ 25.054106] kasan_slab_free+0x71/0xc0 [ 25.054113] kfree+0xca/0x250 [ 25.054121] skb_free_head+0x74/0xb0 [ 25.054129] skb_release_data+0x58c/0x790 [ 25.054136] skb_release_all+0x4a/0x60 [ 25.054143] kfree_skb+0x15d/0x4c0 [ 25.054153] unix_stream_connect+0x876/0x1580 [ 25.054160] SYSC_connect+0x20a/0x480 [ 25.054168] SyS_connect+0x24/0x30 [ 25.054176] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.054179] [ 25.054186] The buggy address belongs to the object at ffff8801c54f8040 [ 25.054186] which belongs to the cache kmalloc-512 of size 512 [ 25.054194] The buggy address is located 24 bytes inside of [ 25.054194] 512-byte region [ffff8801c54f8040, ffff8801c54f8240) [ 25.054198] The buggy address belongs to the page: [ 25.054206] page:0000000040d6f30a count:1 mapcount:0 mapping:00000000b4b58df4 index:0x0 [ 25.054217] flags: 0x2fffc0000000100(slab) [ 25.054229] raw: 02fffc0000000100 ffff8801c54f8040 0000000000000000 0000000100000006 [ 25.054238] raw: ffffea0007154f20 ffffea0007155420 ffff8801db000940 0000000000000000 [ 25.054243] page dumped because: kasan: bad access detected [ 25.054247] [ 25.054251] Memory state around the buggy address: [ 25.054258] ffff8801c54f8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.054266] ffff8801c54f8180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.054276] >ffff8801c54f8200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.054280] ^ [ 25.054288] ffff8801c54f8280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.054295] ffff8801c54f8300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.054299] ================================================================== [ 25.054302] Disabling lock debugging due to kernel taint [ 25.054316] Kernel panic - not syncing: panic_on_warn set ... [ 25.054316] [ 25.054322] CPU: 0 PID: 3152 Comm: syzkaller914290 Tainted: G B 4.15.0-rc2+ #153 [ 25.054325] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.054327] Call Trace: [ 25.054333] dump_stack+0x194/0x257 [ 25.054341] ? arch_local_irq_restore+0x53/0x53 [ 25.054350] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.054358] ? vsnprintf+0x1ed/0x1900 [ 25.054364] ? pfkey_add+0x1600/0x3270 [ 25.054371] panic+0x1e4/0x41c [ 25.054378] ? refcount_error_report+0x214/0x214 [ 25.054386] ? add_taint+0x1c/0x50 [ 25.054393] ? add_taint+0x1c/0x50 [ 25.054401] ? pfkey_add+0x1634/0x3270 [ 25.054407] kasan_end_report+0x50/0x50 [ 25.054415] kasan_report+0x144/0x340 [ 25.054427] check_memory_region+0x137/0x190 [ 25.054433] memcpy+0x23/0x50 [ 25.054440] pfkey_add+0x1634/0x3270 [ 25.054461] ? set_ipsecrequest+0x310/0x310 [ 25.054469] ? lock_release+0xda0/0xda0 [ 25.054476] ? set_ipsecrequest+0x310/0x310 [ 25.054484] pfkey_process+0x60b/0x720 [ 25.054494] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 25.054501] ? kasan_check_write+0x14/0x20 [ 25.054523] ? dup_iter+0x1c2/0x260 [ 25.054535] pfkey_sendmsg+0x4d6/0x9f0 [ 25.054544] ? pfkey_spdget+0xb00/0xb00 [ 25.054553] ? selinux_socket_sendmsg+0x36/0x40 [ 25.054560] ? security_socket_sendmsg+0x89/0xb0 [ 25.054566] ? pfkey_spdget+0xb00/0xb00 [ 25.054574] sock_sendmsg+0xca/0x110 [ 25.054582] ___sys_sendmsg+0x75b/0x8a0 [ 25.054595] ? copy_msghdr_from_user+0x590/0x590 [ 25.054602] ? lock_downgrade+0x980/0x980 [ 25.054621] ? fget_raw+0x20/0x20 [ 25.054627] ? __handle_mm_fault+0x3e20/0x3e20 [ 25.054633] ? vmacache_find+0x5f/0x280 [ 25.054644] ? up_read+0x1a/0x40 [ 25.054650] ? __do_page_fault+0x3d6/0xc90 [ 25.054656] ? get_unused_fd_flags+0x190/0x190 [ 25.054668] ? __fdget+0x18/0x20 [ 25.054678] __sys_sendmsg+0xe5/0x210 [ 25.054684] ? __sys_sendmsg+0xe5/0x210 [ 25.054692] ? SyS_shutdown+0x290/0x290 [ 25.054700] ? __do_page_fault+0xc90/0xc90 [ 25.054709] ? fd_install+0x4d/0x60 [ 25.054724] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.054735] SyS_sendmsg+0x2d/0x50 [ 25.054743] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.054747] RIP: 0033:0x43ff59 [ 25.054750] RSP: 002b:00007ffcc870db58 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 25.054756] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ff59 [ 25.054759] RDX: 0000000000000000 RSI: 00000000205f5000 RDI: 0000000000000003 [ 25.054763] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 25.054766] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018c0 [ 25.054769] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 25.074454] Dumping ftrace buffer: [ 25.074457] (ftrace buffer empty) [ 25.074460] Kernel Offset: disabled [ 25.826080] Rebooting in 86400 seconds..