[....] Starting enhanced syslogd: rsyslogd[ 10.608965] audit: type=1400 audit(1515667274.478:4): avc: denied { syslog } for pid=3169 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 Warning: Permanently added '10.128.15.223' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 25.394577] ================================================================== [ 25.395664] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x2702/0x3470 [ 25.396526] Read of size 8192 at addr ffff8801c8f8a518 by task syzkaller346979/3325 [ 25.397542] [ 25.397773] CPU: 0 PID: 3325 Comm: syzkaller346979 Not tainted 4.9.76-g9154940 #20 [ 25.398779] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.400065] ffff8801c84f7718 ffffffff81d93149 ffffea000723e280 ffff8801c8f8a518 [ 25.401194] 0000000000000000 ffff8801c8f8a700 ffff8801c84f7958 ffff8801c84f7750 [ 25.402340] ffffffff8153cb43 ffff8801c8f8a518 0000000000002000 0000000000000000 [ 25.403469] Call Trace: [ 25.403826] [] dump_stack+0xc1/0x128 [ 25.404536] [] print_address_description+0x73/0x280 [ 25.405429] [] kasan_report+0x275/0x360 [ 25.406172] [] ? pfkey_add+0x2702/0x3470 [ 25.406935] [] check_memory_region+0x137/0x190 [ 25.407754] [] memcpy+0x23/0x50 [ 25.408407] [] pfkey_add+0x2702/0x3470 [ 25.409154] [] ? pfkey_delete+0x360/0x360 [ 25.409917] [] ? pfkey_seq_stop+0x80/0x80 [ 25.410681] [] ? __skb_clone+0x24a/0x7d0 [ 25.411432] [] ? pfkey_delete+0x360/0x360 [ 25.412216] [] pfkey_process+0x61e/0x730 [ 25.412967] [] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 25.413895] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 25.414822] [] pfkey_sendmsg+0x3a9/0x760 [ 25.420496] [] ? pfkey_spdget+0x820/0x820 [ 25.426256] [] sock_sendmsg+0xca/0x110 [ 25.431757] [] ___sys_sendmsg+0x6d1/0x7e0 [ 25.437532] [] ? copy_msghdr_from_user+0x550/0x550 [ 25.444080] [] ? __lru_cache_add+0x187/0x250 [ 25.450105] [] ? do_huge_pmd_anonymous_page+0xb05/0x10d0 [ 25.457173] [] ? _raw_spin_unlock+0x2c/0x50 [ 25.463110] [] ? do_huge_pmd_anonymous_page+0x2d4/0x10d0 [ 25.470184] [] ? handle_mm_fault+0x6ee/0x2530 [ 25.476294] [] ? __fget_light+0x158/0x1e0 [ 25.482057] [] ? __fdget+0x18/0x20 [ 25.487211] [] ? sockfd_lookup_light+0x118/0x160 [ 25.493582] [] __sys_sendmsg+0xd6/0x190 [ 25.499174] [] ? SyS_shutdown+0x1b0/0x1b0 [ 25.504937] [] ? __do_page_fault+0x5ec/0xd40 [ 25.510960] [] compat_SyS_sendmsg+0x2a/0x40 [ 25.516896] [] ? compat_SyS_getsockopt+0x2a0/0x2a0 [ 25.523452] [] do_fast_syscall_32+0x2f7/0x890 [ 25.529561] [] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.536199] [] entry_SYSENTER_compat+0x74/0x83 [ 25.542393] [ 25.543987] Allocated by task 3325: [ 25.547577] save_stack_trace+0x16/0x20 [ 25.551513] save_stack+0x43/0xd0 [ 25.554930] kasan_kmalloc+0xad/0xe0 [ 25.558614] kasan_slab_alloc+0x12/0x20 [ 25.562552] __kmalloc_track_caller+0xda/0x2b0 [ 25.567097] __kmalloc_reserve.isra.37+0x33/0xc0 [ 25.571823] __alloc_skb+0x119/0x600 [ 25.575498] pfkey_sendmsg+0x135/0x760 [ 25.579355] sock_sendmsg+0xca/0x110 [ 25.583031] ___sys_sendmsg+0x6d1/0x7e0 [ 25.586969] __sys_sendmsg+0xd6/0x190 [ 25.590733] compat_SyS_sendmsg+0x2a/0x40 [ 25.594843] do_fast_syscall_32+0x2f7/0x890 [ 25.599136] entry_SYSENTER_compat+0x74/0x83 [ 25.603506] [ 25.605096] Freed by task 1801: [ 25.608339] save_stack_trace+0x16/0x20 [ 25.612275] save_stack+0x43/0xd0 [ 25.615691] kasan_slab_free+0x72/0xc0 [ 25.619543] kfree+0x103/0x300 [ 25.622699] skb_free_head+0x74/0xb0 [ 25.626376] skb_release_data+0x315/0x3f0 [ 25.630486] skb_release_all+0x4a/0x60 [ 25.634335] __kfree_skb+0x15/0x20 [ 25.637837] kfree_skb+0xcc/0x330 [ 25.641256] unix_stream_connect+0x722/0x1160 [ 25.645716] SYSC_connect+0x1b6/0x310 [ 25.649479] SyS_connect+0x24/0x30 [ 25.652983] entry_SYSCALL_64_fastpath+0x23/0xe2 [ 25.657708] [ 25.659300] The buggy address belongs to the object at ffff8801c8f8a500 [ 25.659300] which belongs to the cache kmalloc-512 of size 512 [ 25.671921] The buggy address is located 24 bytes inside of [ 25.671921] 512-byte region [ffff8801c8f8a500, ffff8801c8f8a700) [ 25.683670] The buggy address belongs to the page: [ 25.688563] page:ffffea000723e280 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 25.698713] flags: 0x8000000000004080(slab|head) [ 25.703430] page dumped because: kasan: bad access detected [ 25.709101] [ 25.710694] Memory state around the buggy address: [ 25.715586] ffff8801c8f8a600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.722909] ffff8801c8f8a680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.730231] >ffff8801c8f8a700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.737550] ^ [ 25.740878] ffff8801c8f8a780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.748199] ffff8801c8f8a800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.755521] ================================================================== [ 25.762840] Disabling lock debugging due to kernel taint [ 25.768427] Kernel panic - not syncing: panic_on_warn set ... [ 25.768427] [ 25.775760] CPU: 0 PID: 3325 Comm: syzkaller346979 Tainted: G B 4.9.76-g9154940 #20 [ 25.784646] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.793969] ffff8801c84f7670 ffffffff81d93149 ffffffff84195c17 ffff8801c84f7748 [ 25.801911] 0000000000000000 ffff8801c8f8a700 ffff8801c84f7958 ffff8801c84f7738 [ 25.809857] ffffffff8142e371 0000000041b58ab3 ffffffff84189678 ffffffff8142e1b5 [ 25.817811] Call Trace: [ 25.820365] [] dump_stack+0xc1/0x128 [ 25.825695] [] panic+0x1bc/0x3a8 [ 25.830676] [] ? percpu_up_read_preempt_enable.constprop.53+0xd7/0xd7 [ 25.838869] [] ? preempt_schedule+0x25/0x30 [ 25.844810] [] ? ___preempt_schedule+0x16/0x18 [ 25.851012] [] kasan_end_report+0x50/0x50 [ 25.856775] [] kasan_report+0x167/0x360 [ 25.862367] [] ? pfkey_add+0x2702/0x3470 [ 25.868040] [] check_memory_region+0x137/0x190 [ 25.874233] [] memcpy+0x23/0x50 [ 25.879128] [] pfkey_add+0x2702/0x3470 [ 25.884627] [] ? pfkey_delete+0x360/0x360 [ 25.890391] [] ? pfkey_seq_stop+0x80/0x80 [ 25.896164] [] ? __skb_clone+0x24a/0x7d0 [ 25.901838] [] ? pfkey_delete+0x360/0x360 [ 25.907602] [] pfkey_process+0x61e/0x730 [ 25.913279] [] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 25.920083] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 25.926886] [] pfkey_sendmsg+0x3a9/0x760 [ 25.932560] [] ? pfkey_spdget+0x820/0x820 [ 25.938329] [] sock_sendmsg+0xca/0x110 [ 25.943839] [] ___sys_sendmsg+0x6d1/0x7e0 [ 25.949600] [] ? copy_msghdr_from_user+0x550/0x550 [ 25.956150] [] ? __lru_cache_add+0x187/0x250 [ 25.962172] [] ? do_huge_pmd_anonymous_page+0xb05/0x10d0 [ 25.969251] [] ? _raw_spin_unlock+0x2c/0x50 [ 25.975189] [] ? do_huge_pmd_anonymous_page+0x2d4/0x10d0 [ 25.982252] [] ? handle_mm_fault+0x6ee/0x2530 [ 25.988361] [] ? __fget_light+0x158/0x1e0 [ 25.994121] [] ? __fdget+0x18/0x20 [ 25.999274] [] ? sockfd_lookup_light+0x118/0x160 [ 26.005642] [] __sys_sendmsg+0xd6/0x190 [ 26.011228] [] ? SyS_shutdown+0x1b0/0x1b0 [ 26.016991] [] ? __do_page_fault+0x5ec/0xd40 [ 26.023014] [] compat_SyS_sendmsg+0x2a/0x40 [ 26.028947] [] ? compat_SyS_getsockopt+0x2a0/0x2a0 [ 26.035495] [] do_fast_syscall_32+0x2f7/0x890 [ 26.041604] [] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.048234] [] entry_SYSENTER_compat+0x74/0x83 [ 26.054465] Dumping ftrace buffer: [ 26.057969] (ftrace buffer empty) [ 26.061646] Kernel Offset: disabled [ 26.065236] Rebooting in 86400 seconds..