INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?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.0.28' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 36.455842] ================================================================== [ 36.463273] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x275e/0x3210 [ 36.469828] Read of size 8192 at addr ffff8801d13b5300 by task syzkaller910473/4466 [ 36.477593] [ 36.479202] CPU: 0 PID: 4466 Comm: syzkaller910473 Not tainted 4.16.0+ #2 [ 36.486099] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.495428] Call Trace: [ 36.497999] dump_stack+0x1b9/0x294 [ 36.501607] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.506782] ? printk+0x9e/0xba [ 36.510042] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.514781] ? kasan_check_write+0x14/0x20 [ 36.518995] print_address_description+0x6c/0x20b [ 36.523820] ? pfkey_add+0x275e/0x3210 [ 36.527684] kasan_report.cold.7+0xac/0x2f5 [ 36.532003] check_memory_region+0x13e/0x1b0 [ 36.536386] memcpy+0x23/0x50 [ 36.539469] pfkey_add+0x275e/0x3210 [ 36.543164] ? pfkey_acquire+0x270/0x270 [ 36.547203] ? iov_iter_advance+0x2e4/0x14c0 [ 36.551592] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 36.556758] ? pfkey_acquire+0x270/0x270 [ 36.560798] pfkey_process+0x7cc/0x8a0 [ 36.564665] ? pfkey_send_new_mapping+0x1260/0x1260 [ 36.569670] pfkey_sendmsg+0x5f4/0x1050 [ 36.573624] ? _copy_from_user+0xdf/0x150 [ 36.577753] ? pfkey_spdget+0xb10/0xb10 [ 36.581707] ? security_socket_sendmsg+0x94/0xc0 [ 36.586439] ? pfkey_spdget+0xb10/0xb10 [ 36.590392] sock_sendmsg+0xd5/0x120 [ 36.594083] ___sys_sendmsg+0x805/0x940 [ 36.598034] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.603549] ? copy_msghdr_from_user+0x560/0x560 [ 36.608285] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 36.613019] ? graph_lock+0x170/0x170 [ 36.616809] ? graph_lock+0x170/0x170 [ 36.620593] ? find_held_lock+0x36/0x1c0 [ 36.624634] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.630148] ? __fget_light+0x2ef/0x430 [ 36.634099] ? fget_raw+0x20/0x20 [ 36.637528] ? find_held_lock+0x36/0x1c0 [ 36.641568] ? lock_downgrade+0x8e0/0x8e0 [ 36.645693] ? handle_mm_fault+0x8c0/0xc70 [ 36.649906] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.655421] ? sockfd_lookup_light+0xc5/0x160 [ 36.659895] __sys_sendmsg+0x115/0x270 [ 36.663760] ? SyS_shutdown+0x30/0x30 [ 36.667540] ? __do_page_fault+0x441/0xe40 [ 36.671756] ? fd_install+0x4d/0x60 [ 36.675368] SyS_sendmsg+0x29/0x30 [ 36.678885] ? __sys_sendmsg+0x270/0x270 [ 36.682923] do_syscall_64+0x29e/0x9d0 [ 36.686787] ? vmalloc_sync_all+0x30/0x30 [ 36.690912] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.695647] ? syscall_return_slowpath+0x5c0/0x5c0 [ 36.700553] ? syscall_return_slowpath+0x30f/0x5c0 [ 36.705461] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.710975] ? retint_user+0x18/0x18 [ 36.714670] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.719493] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.724662] RIP: 0033:0x43fd19 [ 36.727829] RSP: 002b:00007fff267b8028 EFLAGS: 00000213 ORIG_RAX: 000000000000002e [ 36.735516] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fd19 [ 36.742762] RDX: 0000000000000000 RSI: 0000000020196fe4 RDI: 0000000000000003 [ 36.750008] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 36.757256] R10: 00000000004002c8 R11: 0000000000000213 R12: 0000000000401640 [ 36.764499] R13: 00000000004016d0 R14: 0000000000000000 R15: 0000000000000000 [ 36.771757] [ 36.773363] Allocated by task 4466: [ 36.776968] save_stack+0x43/0xd0 [ 36.780399] kasan_kmalloc+0xc4/0xe0 [ 36.784090] __kmalloc_node_track_caller+0x47/0x70 [ 36.789000] __kmalloc_reserve.isra.38+0x3a/0xe0 [ 36.793733] __alloc_skb+0x14d/0x780 [ 36.797429] pfkey_sendmsg+0x250/0x1050 [ 36.801377] sock_sendmsg+0xd5/0x120 [ 36.805065] ___sys_sendmsg+0x805/0x940 [ 36.809016] __sys_sendmsg+0x115/0x270 [ 36.812879] SyS_sendmsg+0x29/0x30 [ 36.816395] do_syscall_64+0x29e/0x9d0 [ 36.820261] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.825422] [ 36.827024] Freed by task 0: [ 36.830013] (stack is not available) [ 36.833697] [ 36.835300] The buggy address belongs to the object at ffff8801d13b52c0 [ 36.835300] which belongs to the cache kmalloc-512 of size 512 [ 36.847934] The buggy address is located 64 bytes inside of [ 36.847934] 512-byte region [ffff8801d13b52c0, ffff8801d13b54c0) [ 36.859694] The buggy address belongs to the page: [ 36.864608] page:ffffea000744ed40 count:1 mapcount:0 mapping:ffff8801d13b5040 index:0x0 [ 36.872727] flags: 0x2fffc0000000100(slab) [ 36.876943] raw: 02fffc0000000100 ffff8801d13b5040 0000000000000000 0000000100000006 [ 36.884802] raw: ffffea0006cde8e0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 36.892655] page dumped because: kasan: bad access detected [ 36.898343] [ 36.899944] Memory state around the buggy address: [ 36.904847] ffff8801d13b5380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.912182] ffff8801d13b5400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.919516] >ffff8801d13b5480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 36.926850] ^ [ 36.932276] ffff8801d13b5500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.939610] ffff8801d13b5580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.946941] ================================================================== [ 36.954271] Disabling lock debugging due to kernel taint [ 36.959778] Kernel panic - not syncing: panic_on_warn set ... [ 36.959778] [ 36.967126] CPU: 0 PID: 4466 Comm: syzkaller910473 Tainted: G B 4.16.0+ #2 [ 36.975416] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.984744] Call Trace: [ 36.987310] dump_stack+0x1b9/0x294 [ 36.990915] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.996082] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.000817] ? pfkey_add+0x2660/0x3210 [ 37.004681] panic+0x22f/0x4de [ 37.007849] ? add_taint.cold.5+0x16/0x16 [ 37.011973] ? do_raw_spin_unlock+0x9e/0x2e0 [ 37.016357] ? do_raw_spin_unlock+0x9e/0x2e0 [ 37.020742] ? pfkey_add+0x275e/0x3210 [ 37.024607] kasan_end_report+0x47/0x4f [ 37.028557] kasan_report.cold.7+0xc9/0x2f5 [ 37.032858] check_memory_region+0x13e/0x1b0 [ 37.037242] memcpy+0x23/0x50 [ 37.040323] pfkey_add+0x275e/0x3210 [ 37.044015] ? pfkey_acquire+0x270/0x270 [ 37.048050] ? iov_iter_advance+0x2e4/0x14c0 [ 37.052436] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 37.057600] ? pfkey_acquire+0x270/0x270 [ 37.061635] pfkey_process+0x7cc/0x8a0 [ 37.065500] ? pfkey_send_new_mapping+0x1260/0x1260 [ 37.070498] pfkey_sendmsg+0x5f4/0x1050 [ 37.074446] ? _copy_from_user+0xdf/0x150 [ 37.078573] ? pfkey_spdget+0xb10/0xb10 [ 37.082525] ? security_socket_sendmsg+0x94/0xc0 [ 37.087255] ? pfkey_spdget+0xb10/0xb10 [ 37.091203] sock_sendmsg+0xd5/0x120 [ 37.094891] ___sys_sendmsg+0x805/0x940 [ 37.098841] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.104353] ? copy_msghdr_from_user+0x560/0x560 [ 37.109083] ? vm_insert_mixed_mkwrite+0x40/0x40 [ 37.113814] ? graph_lock+0x170/0x170 [ 37.117588] ? graph_lock+0x170/0x170 [ 37.121362] ? find_held_lock+0x36/0x1c0 [ 37.125401] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.130914] ? __fget_light+0x2ef/0x430 [ 37.134865] ? fget_raw+0x20/0x20 [ 37.138293] ? find_held_lock+0x36/0x1c0 [ 37.142329] ? lock_downgrade+0x8e0/0x8e0 [ 37.146451] ? handle_mm_fault+0x8c0/0xc70 [ 37.150660] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.156174] ? sockfd_lookup_light+0xc5/0x160 [ 37.160645] __sys_sendmsg+0x115/0x270 [ 37.164506] ? SyS_shutdown+0x30/0x30 [ 37.168284] ? __do_page_fault+0x441/0xe40 [ 37.172493] ? fd_install+0x4d/0x60 [ 37.176097] SyS_sendmsg+0x29/0x30 [ 37.179613] ? __sys_sendmsg+0x270/0x270 [ 37.183649] do_syscall_64+0x29e/0x9d0 [ 37.187510] ? vmalloc_sync_all+0x30/0x30 [ 37.191634] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.196364] ? syscall_return_slowpath+0x5c0/0x5c0 [ 37.201269] ? syscall_return_slowpath+0x30f/0x5c0 [ 37.206173] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.211684] ? retint_user+0x18/0x18 [ 37.215375] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.220206] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 37.225369] RIP: 0033:0x43fd19 [ 37.228532] RSP: 002b:00007fff267b8028 EFLAGS: 00000213 ORIG_RAX: 000000000000002e [ 37.236217] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fd19 [ 37.243461] RDX: 0000000000000000 RSI: 0000000020196fe4 RDI: 0000000000000003 [ 37.250705] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 37.257949] R10: 00000000004002c8 R11: 0000000000000213 R12: 0000000000401640 [ 37.265191] R13: 00000000004016d0 R14: 0000000000000000 R15: 0000000000000000 [ 37.272806] Dumping ftrace buffer: [ 37.276316] (ftrace buffer empty) [ 37.280000] Kernel Offset: disabled [ 37.283599] Rebooting in 86400 seconds..