[....] 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. [ 27.406632] kauditd_printk_skb: 8 callbacks suppressed [ 27.406666] audit: type=1800 audit(1538219148.587:29): pid=5242 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 27.442102] audit: type=1800 audit(1538219148.597:30): pid=5242 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.24' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 49.632873] raw_sendmsg: syz-executor487 forgot to set AF_INET. Fix it! executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 53.900299] ================================================================== [ 53.907791] BUG: KASAN: use-after-free in ip_cmsg_recv_offset+0x12be/0x1390 [ 53.915017] Read of size 4 at addr ffff8801be9c7ae0 by task syz-executor487/5649 [ 53.922680] [ 53.924319] CPU: 1 PID: 5649 Comm: syz-executor487 Not tainted 4.19.0-rc5+ #236 [ 53.931942] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.941300] Call Trace: [ 53.943917] dump_stack+0x1c4/0x2b4 [ 53.947554] ? dump_stack_print_info.cold.2+0x52/0x52 [ 53.952943] ? printk+0xa7/0xcf [ 53.956224] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 53.960987] print_address_description.cold.8+0x9/0x1ff [ 53.966830] kasan_report.cold.9+0x242/0x309 [ 53.971710] ? ip_cmsg_recv_offset+0x12be/0x1390 [ 53.976474] __asan_report_load4_noabort+0x14/0x20 [ 53.981406] ip_cmsg_recv_offset+0x12be/0x1390 [ 53.985993] ? ip_send_unicast_reply+0x1770/0x1770 [ 53.991047] ? _copy_to_iter+0x1540/0x1540 [ 53.995295] ? rcu_lockdep_current_cpu_online+0x1f0/0x2d0 [ 54.001168] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 54.006458] ? rcu_pm_notify+0xc0/0xc0 [ 54.010620] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.016324] ? skb_copy_datagram_iter+0x26e/0xc10 [ 54.021173] ? __sk_queue_drop_skb+0x1f0/0x1f0 [ 54.025768] ? rcu_read_unlock_special.part.39+0x11f0/0x11f0 [ 54.031734] ? kasan_check_read+0x11/0x20 [ 54.035889] raw_recvmsg+0x71d/0x8b0 [ 54.039690] ? raw_abort+0xa0/0xa0 [ 54.043285] ? aa_file_perm+0x490/0x1060 [ 54.047356] inet_recvmsg+0x181/0x6d0 [ 54.051300] ? aa_path_link+0x5e0/0x5e0 [ 54.055416] ? inet_sendpage+0x740/0x740 [ 54.059502] ? aa_sock_msg_perm.isra.12+0xba/0x160 [ 54.064439] ? apparmor_socket_recvmsg+0x29/0x30 [ 54.069199] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.074955] ? security_socket_recvmsg+0x9c/0xc0 [ 54.079885] ? inet_sendpage+0x740/0x740 [ 54.084122] sock_recvmsg+0xd0/0x110 [ 54.088167] sock_read_iter+0x39b/0x570 [ 54.092159] ? sock_recvmsg+0x110/0x110 [ 54.096151] do_iter_readv_writev+0x77c/0xa80 [ 54.100653] ? vfs_dedupe_file_range+0x670/0x670 [ 54.105421] ? rw_verify_area+0x118/0x360 [ 54.109736] do_iter_read+0x26e/0x650 [ 54.113744] ? dup_iter+0x270/0x270 [ 54.117381] vfs_readv+0x175/0x1c0 [ 54.120949] ? compat_rw_copy_check_uvector+0x440/0x440 [ 54.126316] ? __ia32_sys_getpeername+0xb0/0xb0 [ 54.131005] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.136551] ? __fdget_pos+0xde/0x200 [ 54.140502] ? __fdget_raw+0x20/0x20 [ 54.144233] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.149775] ? fput+0x130/0x1a0 [ 54.153064] do_readv+0x11a/0x310 [ 54.156524] ? vfs_readv+0x1c0/0x1c0 [ 54.160249] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 54.165745] __x64_sys_readv+0x75/0xb0 [ 54.169641] do_syscall_64+0x1b9/0x820 [ 54.173536] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 54.179256] ? syscall_return_slowpath+0x5e0/0x5e0 [ 54.184385] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.189396] ? trace_hardirqs_on_caller+0x310/0x310 [ 54.194418] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 54.199439] ? prepare_exit_to_usermode+0x291/0x3b0 [ 54.204588] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.209724] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.214941] RIP: 0033:0x446469 [ 54.218136] Code: e8 2c b3 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 54.237379] RSP: 002b:00007fe1554d6da8 EFLAGS: 00000293 ORIG_RAX: 0000000000000013 [ 54.245355] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446469 [ 54.252641] RDX: 0000000000000001 RSI: 0000000020000500 RDI: 0000000000000003 [ 54.259940] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 54.267210] R10: 000000000000006e R11: 0000000000000293 R12: 00000000006dbc2c [ 54.274481] R13: 00000000004ae560 R14: 0000000020001300 R15: 00000000006dbd2c [ 54.281763] [ 54.283387] Allocated by task 5649: [ 54.287163] save_stack+0x43/0xd0 [ 54.290622] kasan_kmalloc+0xc7/0xe0 [ 54.294598] __kmalloc_node_track_caller+0x47/0x70 [ 54.299778] __kmalloc_reserve.isra.39+0x41/0xe0 [ 54.304657] __alloc_skb+0x155/0x770 [ 54.308610] __ip_append_data.isra.48+0x21d6/0x29b0 [ 54.313629] ip_append_data.part.49+0xef/0x170 [ 54.318585] ip_append_data+0x6d/0x90 [ 54.322385] raw_sendmsg+0x1220/0x4380 [ 54.326279] inet_sendmsg+0x1a1/0x690 [ 54.330251] sock_sendmsg+0xd5/0x120 [ 54.333967] __sys_sendto+0x3d7/0x670 [ 54.337770] __x64_sys_sendto+0xe1/0x1a0 [ 54.341831] do_syscall_64+0x1b9/0x820 [ 54.345971] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.351159] [ 54.352783] Freed by task 5649: [ 54.356067] save_stack+0x43/0xd0 [ 54.359692] __kasan_slab_free+0x102/0x150 [ 54.363950] kasan_slab_free+0xe/0x10 [ 54.367943] kfree+0xcf/0x230 [ 54.371152] skb_free_head+0x99/0xc0 [ 54.375049] pskb_expand_head+0x3bb/0x10f0 [ 54.379388] __pskb_pull_tail+0x156/0x1890 [ 54.383636] ip_cmsg_recv_offset+0x113b/0x1390 [ 54.388220] raw_recvmsg+0x71d/0x8b0 [ 54.392062] inet_recvmsg+0x181/0x6d0 [ 54.395870] sock_recvmsg+0xd0/0x110 [ 54.399772] sock_read_iter+0x39b/0x570 [ 54.403751] do_iter_readv_writev+0x77c/0xa80 [ 54.408400] do_iter_read+0x26e/0x650 [ 54.412202] vfs_readv+0x175/0x1c0 [ 54.415746] do_readv+0x11a/0x310 [ 54.419199] __x64_sys_readv+0x75/0xb0 [ 54.423370] do_syscall_64+0x1b9/0x820 [ 54.427274] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.432624] [ 54.434254] The buggy address belongs to the object at ffff8801be9c7ac0 [ 54.434254] which belongs to the cache kmalloc-512 of size 512 [ 54.447038] The buggy address is located 32 bytes inside of [ 54.447038] 512-byte region [ffff8801be9c7ac0, ffff8801be9c7cc0) [ 54.459237] The buggy address belongs to the page: [ 54.464354] page:ffffea0006fa71c0 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 [ 54.472506] flags: 0x2fffc0000000100(slab) [ 54.476879] raw: 02fffc0000000100 ffffea0007083bc8 ffffea000754b488 ffff8801da800940 [ 54.484962] raw: 0000000000000000 ffff8801be9c70c0 0000000100000006 0000000000000000 [ 54.492990] page dumped because: kasan: bad access detected [ 54.498694] [ 54.500317] Memory state around the buggy address: [ 54.505244] ffff8801be9c7980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.512612] ffff8801be9c7a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 54.520091] >ffff8801be9c7a80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 54.527578] ^ [ 54.534194] ffff8801be9c7b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.541715] ffff8801be9c7b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.549084] ================================================================== [ 54.556581] Disabling lock debugging due to kernel taint [ 54.562566] Kernel panic - not syncing: panic_on_warn set ... [ 54.562566] [ 54.570070] CPU: 1 PID: 5649 Comm: syz-executor487 Tainted: G B 4.19.0-rc5+ #236 [ 54.579154] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.588510] Call Trace: [ 54.591106] dump_stack+0x1c4/0x2b4 [ 54.594741] ? dump_stack_print_info.cold.2+0x52/0x52 [ 54.600081] panic+0x238/0x4e7 [ 54.603286] ? add_taint.cold.5+0x16/0x16 [ 54.607601] ? preempt_schedule+0x4d/0x60 [ 54.611758] ? ___preempt_schedule+0x16/0x18 [ 54.616172] ? trace_hardirqs_on+0xb4/0x310 [ 54.620679] kasan_end_report+0x47/0x4f [ 54.624777] kasan_report.cold.9+0x76/0x309 [ 54.629123] ? ip_cmsg_recv_offset+0x12be/0x1390 [ 54.633890] __asan_report_load4_noabort+0x14/0x20 [ 54.638853] ip_cmsg_recv_offset+0x12be/0x1390 [ 54.644007] ? ip_send_unicast_reply+0x1770/0x1770 [ 54.649342] ? _copy_to_iter+0x1540/0x1540 [ 54.653858] ? rcu_lockdep_current_cpu_online+0x1f0/0x2d0 [ 54.659401] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 54.664822] ? rcu_pm_notify+0xc0/0xc0 [ 54.669132] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.674676] ? skb_copy_datagram_iter+0x26e/0xc10 [ 54.679654] ? __sk_queue_drop_skb+0x1f0/0x1f0 [ 54.684520] ? rcu_read_unlock_special.part.39+0x11f0/0x11f0 [ 54.690322] ? kasan_check_read+0x11/0x20 [ 54.694950] raw_recvmsg+0x71d/0x8b0 [ 54.698689] ? raw_abort+0xa0/0xa0 [ 54.702236] ? aa_file_perm+0x490/0x1060 [ 54.706474] inet_recvmsg+0x181/0x6d0 [ 54.710283] ? aa_path_link+0x5e0/0x5e0 [ 54.714549] ? inet_sendpage+0x740/0x740 [ 54.718616] ? aa_sock_msg_perm.isra.12+0xba/0x160 [ 54.723937] ? apparmor_socket_recvmsg+0x29/0x30 [ 54.729048] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.734606] ? security_socket_recvmsg+0x9c/0xc0 [ 54.739365] ? inet_sendpage+0x740/0x740 [ 54.743730] sock_recvmsg+0xd0/0x110 [ 54.747711] sock_read_iter+0x39b/0x570 [ 54.751694] ? sock_recvmsg+0x110/0x110 [ 54.755962] do_iter_readv_writev+0x77c/0xa80 [ 54.760464] ? vfs_dedupe_file_range+0x670/0x670 [ 54.765362] ? rw_verify_area+0x118/0x360 [ 54.769527] do_iter_read+0x26e/0x650 [ 54.773474] ? dup_iter+0x270/0x270 [ 54.777288] vfs_readv+0x175/0x1c0 [ 54.780830] ? compat_rw_copy_check_uvector+0x440/0x440 [ 54.786414] ? __ia32_sys_getpeername+0xb0/0xb0 [ 54.791103] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.796783] ? __fdget_pos+0xde/0x200 [ 54.800664] ? __fdget_raw+0x20/0x20 [ 54.804592] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.810228] ? fput+0x130/0x1a0 [ 54.813670] do_readv+0x11a/0x310 [ 54.817244] ? vfs_readv+0x1c0/0x1c0 [ 54.821013] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 54.826693] __x64_sys_readv+0x75/0xb0 [ 54.830612] do_syscall_64+0x1b9/0x820 [ 54.834630] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 54.840010] ? syscall_return_slowpath+0x5e0/0x5e0 [ 54.845059] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.850156] ? trace_hardirqs_on_caller+0x310/0x310 [ 54.855324] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 54.860353] ? prepare_exit_to_usermode+0x291/0x3b0 [ 54.865625] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.870730] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.876069] RIP: 0033:0x446469 [ 54.879410] Code: e8 2c b3 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 54.898647] RSP: 002b:00007fe1554d6da8 EFLAGS: 00000293 ORIG_RAX: 0000000000000013 [ 54.906634] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446469 [ 54.914117] RDX: 0000000000000001 RSI: 0000000020000500 RDI: 0000000000000003 [ 54.921726] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 54.929099] R10: 000000000000006e R11: 0000000000000293 R12: 00000000006dbc2c [ 54.936567] R13: 00000000004ae560 R14: 0000000020001300 R15: 00000000006dbd2c [ 54.945275] Kernel Offset: disabled [ 54.949040] Rebooting in 86400 seconds..