[....] Starting enhanced syslogd: rsyslogd[ 10.358502] audit: type=1400 audit(1513562153.391:5): avc: denied { syslog } for pid=2988 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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 13.345982] audit: type=1400 audit(1513562156.378:6): avc: denied { map } for pid=3127 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-4,10.128.15.209' (ECDSA) to the list of known hosts. executing program [ 31.413867] audit: type=1400 audit(1513562174.446:7): avc: denied { map } for pid=3145 comm="syzkaller281982" path="/root/syzkaller281982641" 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 [ 31.417389] ================================================================== [ 31.417402] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x1634/0x3270 [ 31.417407] Read of size 8192 at addr ffff8801ca6ae818 by task syzkaller281982/3145 [ 31.417408] [ 31.417414] CPU: 1 PID: 3145 Comm: syzkaller281982 Not tainted 4.15.0-rc3+ #156 [ 31.417416] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.417418] Call Trace: [ 31.417426] dump_stack+0x194/0x257 [ 31.417434] ? arch_local_irq_restore+0x53/0x53 [ 31.417441] ? show_regs_print_info+0x18/0x18 [ 31.417445] ? __lock_is_held+0xb6/0x140 [ 31.417454] ? pfkey_add+0x1634/0x3270 [ 31.417462] print_address_description+0x73/0x250 [ 31.417467] ? pfkey_add+0x1634/0x3270 [ 31.417472] kasan_report+0x25b/0x340 [ 31.417481] check_memory_region+0x137/0x190 [ 31.417487] memcpy+0x23/0x50 [ 31.417493] pfkey_add+0x1634/0x3270 [ 31.417508] ? set_ipsecrequest+0x310/0x310 [ 31.417515] ? lock_release+0xa40/0xa40 [ 31.417521] ? set_ipsecrequest+0x310/0x310 [ 31.417528] pfkey_process+0x60b/0x720 [ 31.417538] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 31.417542] ? kasan_check_write+0x14/0x20 [ 31.417566] ? dup_iter+0x252/0x260 [ 31.417577] pfkey_sendmsg+0x4d6/0x9f0 [ 31.417586] ? pfkey_spdget+0xb00/0xb00 [ 31.417596] ? selinux_socket_sendmsg+0x36/0x40 [ 31.417602] ? security_socket_sendmsg+0x89/0xb0 [ 31.417607] ? pfkey_spdget+0xb00/0xb00 [ 31.417615] sock_sendmsg+0xca/0x110 [ 31.417623] ___sys_sendmsg+0x755/0x890 [ 31.417633] ? copy_msghdr_from_user+0x590/0x590 [ 31.417645] ? __do_page_fault+0x5f7/0xc90 [ 31.417651] ? lock_downgrade+0x980/0x980 [ 31.417667] ? fget_raw+0x20/0x20 [ 31.417673] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 31.417678] ? vmacache_find+0x5f/0x280 [ 31.417690] ? up_read+0x1a/0x40 [ 31.417695] ? __do_page_fault+0x3d6/0xc90 [ 31.417699] ? get_unused_fd_flags+0x190/0x190 [ 31.417711] ? __fdget+0x18/0x20 [ 31.417722] __sys_sendmsg+0xe5/0x210 [ 31.417726] ? __sys_sendmsg+0xe5/0x210 [ 31.417733] ? SyS_shutdown+0x290/0x290 [ 31.417740] ? __do_page_fault+0xc90/0xc90 [ 31.417748] ? fd_install+0x4d/0x60 [ 31.417764] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.417775] SyS_sendmsg+0x2d/0x50 [ 31.417784] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 31.417788] RIP: 0033:0x43ff39 [ 31.417790] RSP: 002b:00007ffdd070bcb8 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 31.417795] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ff39 [ 31.417798] RDX: 0000000000000000 RSI: 0000000020cbd000 RDI: 0000000000000003 [ 31.417800] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 31.417803] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018a0 [ 31.417805] R13: 0000000000401930 R14: 0000000000000000 R15: 0000000000000000 [ 31.417822] [ 31.417824] Allocated by task 3145: [ 31.417829] save_stack+0x43/0xd0 [ 31.417832] kasan_kmalloc+0xad/0xe0 [ 31.417837] __kmalloc_node_track_caller+0x47/0x70 [ 31.417841] __kmalloc_reserve.isra.41+0x41/0xd0 [ 31.417844] __alloc_skb+0x13b/0x780 [ 31.417847] pfkey_sendmsg+0x20f/0x9f0 [ 31.417851] sock_sendmsg+0xca/0x110 [ 31.417854] ___sys_sendmsg+0x755/0x890 [ 31.417858] __sys_sendmsg+0xe5/0x210 [ 31.417862] SyS_sendmsg+0x2d/0x50 [ 31.417865] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 31.417866] [ 31.417868] Freed by task 1602: [ 31.417871] save_stack+0x43/0xd0 [ 31.417874] kasan_slab_free+0x71/0xc0 [ 31.417878] kfree+0xca/0x250 [ 31.417881] skb_free_head+0x74/0xb0 [ 31.417885] skb_release_data+0x58c/0x790 [ 31.417888] skb_release_all+0x4a/0x60 [ 31.417892] consume_skb+0x153/0x490 [ 31.417895] skb_free_datagram+0x1a/0xe0 [ 31.417900] unix_dgram_recvmsg+0xd12/0x1990 [ 31.417904] sock_recvmsg+0xc9/0x110 [ 31.417907] SYSC_recvfrom+0x2d6/0x570 [ 31.417911] SyS_recvfrom+0x40/0x50 [ 31.417914] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 31.417915] [ 31.417918] The buggy address belongs to the object at ffff8801ca6ae800 [ 31.417918] which belongs to the cache kmalloc-512 of size 512 [ 31.417922] The buggy address is located 24 bytes inside of [ 31.417922] 512-byte region [ffff8801ca6ae800, ffff8801ca6aea00) [ 31.417923] The buggy address belongs to the page: [ 31.417927] page:0000000061176427 count:1 mapcount:0 mapping:000000008fd19ee2 index:0x0 [ 31.417931] flags: 0x2fffc0000000100(slab) [ 31.417938] raw: 02fffc0000000100 ffff8801ca6ae080 0000000000000000 0000000100000006 [ 31.417942] raw: ffffea000729f4a0 ffffea00072724e0 ffff8801db000940 0000000000000000 [ 31.417944] page dumped because: kasan: bad access detected [ 31.417945] [ 31.417947] Memory state around the buggy address: [ 31.417950] ffff8801ca6ae900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.417953] ffff8801ca6ae980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.417956] >ffff8801ca6aea00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.417958] ^ [ 31.417966] ffff8801ca6aea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.417969] ffff8801ca6aeb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.417971] ================================================================== [ 31.417972] Disabling lock debugging due to kernel taint [ 31.417975] Kernel panic - not syncing: panic_on_warn set ... [ 31.417975] [ 31.417979] CPU: 1 PID: 3145 Comm: syzkaller281982 Tainted: G B 4.15.0-rc3+ #156 [ 31.417981] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.417982] Call Trace: [ 31.417986] dump_stack+0x194/0x257 [ 31.417992] ? arch_local_irq_restore+0x53/0x53 [ 31.417995] ? kasan_end_report+0x32/0x50 [ 31.418000] ? lock_downgrade+0x980/0x980 [ 31.418007] ? vsnprintf+0x1ed/0x1900 [ 31.418011] ? pfkey_add+0x1600/0x3270 [ 31.418016] panic+0x1e4/0x41c [ 31.418020] ? refcount_error_report+0x214/0x214 [ 31.418026] ? add_taint+0x40/0x50 [ 31.418030] ? add_taint+0x1c/0x50 [ 31.418035] ? pfkey_add+0x1634/0x3270 [ 31.418039] kasan_end_report+0x50/0x50 [ 31.418042] kasan_report+0x144/0x340 [ 31.418048] check_memory_region+0x137/0x190 [ 31.418052] memcpy+0x23/0x50 [ 31.418057] pfkey_add+0x1634/0x3270 [ 31.418066] ? set_ipsecrequest+0x310/0x310 [ 31.418071] ? lock_release+0xa40/0xa40 [ 31.418075] ? set_ipsecrequest+0x310/0x310 [ 31.418080] pfkey_process+0x60b/0x720 [ 31.418087] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 31.418090] ? kasan_check_write+0x14/0x20 [ 31.418103] ? dup_iter+0x252/0x260 [ 31.418110] pfkey_sendmsg+0x4d6/0x9f0 [ 31.418116] ? pfkey_spdget+0xb00/0xb00 [ 31.418121] ? selinux_socket_sendmsg+0x36/0x40 [ 31.418126] ? security_socket_sendmsg+0x89/0xb0 [ 31.418129] ? pfkey_spdget+0xb00/0xb00 [ 31.418134] sock_sendmsg+0xca/0x110 [ 31.418140] ___sys_sendmsg+0x755/0x890 [ 31.418147] ? copy_msghdr_from_user+0x590/0x590 [ 31.418153] ? __do_page_fault+0x5f7/0xc90 [ 31.418157] ? lock_downgrade+0x980/0x980 [ 31.418166] ? fget_raw+0x20/0x20 [ 31.418170] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 31.418174] ? vmacache_find+0x5f/0x280 [ 31.418181] ? up_read+0x1a/0x40 [ 31.418185] ? __do_page_fault+0x3d6/0xc90 [ 31.418189] ? get_unused_fd_flags+0x190/0x190 [ 31.418196] ? __fdget+0x18/0x20 [ 31.418203] __sys_sendmsg+0xe5/0x210 [ 31.418207] ? __sys_sendmsg+0xe5/0x210 [ 31.418212] ? SyS_shutdown+0x290/0x290 [ 31.418217] ? __do_page_fault+0xc90/0xc90 [ 31.418223] ? fd_install+0x4d/0x60 [ 31.418233] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.418240] SyS_sendmsg+0x2d/0x50 [ 31.418245] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 31.418248] RIP: 0033:0x43ff39 [ 31.418250] RSP: 002b:00007ffdd070bcb8 EFLAGS: 00000203 ORIG_RAX: 000000000000002e [ 31.418253] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ff39 [ 31.418256] RDX: 0000000000000000 RSI: 0000000020cbd000 RDI: 0000000000000003 [ 31.418258] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 31.418260] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004018a0 [ 31.418262] R13: 0000000000401930 R14: 0000000000000000 R15: 0000000000000000 [ 31.439754] Dumping ftrace buffer: [ 31.439757] (ftrace buffer empty) [ 31.439759] Kernel Offset: disabled [ 32.209167] Rebooting in 86400 seconds..