[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 37.417527] audit: type=1800 audit(1538219170.685:25): pid=5682 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 37.456544] audit: type=1800 audit(1538219170.685:26): pid=5682 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 37.488100] audit: type=1800 audit(1538219170.685:27): pid=5682 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [....] 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.10.42' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 71.098338] raw_sendmsg: syz-executor182 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 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 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 [ 81.455801] ================================================================== [ 81.463212] BUG: KASAN: use-after-free in ip_cmsg_recv_offset+0x12be/0x1390 [ 81.470299] Read of size 4 at addr ffff8801d8d4f7e0 by task syz-executor182/6458 [ 81.477813] [ 81.479426] CPU: 0 PID: 6458 Comm: syz-executor182 Not tainted 4.19.0-rc5+ #121 [ 81.487830] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 81.497242] Call Trace: [ 81.499834] dump_stack+0x1c4/0x2b4 [ 81.503450] ? dump_stack_print_info.cold.2+0x52/0x52 [ 81.508630] ? printk+0xa7/0xcf [ 81.511896] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 81.516650] print_address_description.cold.8+0x9/0x1ff [ 81.522054] kasan_report.cold.9+0x242/0x309 [ 81.526468] ? ip_cmsg_recv_offset+0x12be/0x1390 [ 81.531215] __asan_report_load4_noabort+0x14/0x20 [ 81.537457] ip_cmsg_recv_offset+0x12be/0x1390 [ 81.543251] ? ip_send_unicast_reply+0x1770/0x1770 [ 81.549530] ? _copy_to_iter+0x1540/0x1540 [ 81.553850] ? __skb_recv_datagram+0x262/0x300 [ 81.558424] ? get_futex_value_locked+0xcb/0xf0 [ 81.563335] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 81.568360] ? futex_wait_setup+0x266/0x3e0 [ 81.572689] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 81.578216] ? skb_copy_datagram_iter+0x26e/0xc10 [ 81.583140] ? __sk_queue_drop_skb+0x1f0/0x1f0 [ 81.587730] ? rcu_read_unlock_special.part.39+0x11f0/0x11f0 [ 81.593522] raw_recvmsg+0x71d/0x8b0 [ 81.597229] ? raw_abort+0xa0/0xa0 [ 81.600837] ? aa_file_perm+0x490/0x1060 [ 81.604999] inet_recvmsg+0x181/0x6d0 [ 81.608869] ? aa_path_link+0x5e0/0x5e0 [ 81.612906] ? inet_sendpage+0x740/0x740 [ 81.616959] ? aa_sock_msg_perm.isra.12+0xba/0x160 [ 81.621885] ? apparmor_socket_recvmsg+0x29/0x30 [ 81.626635] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 81.632169] ? security_socket_recvmsg+0x9c/0xc0 [ 81.636911] ? inet_sendpage+0x740/0x740 [ 81.640957] sock_recvmsg+0xd0/0x110 [ 81.644667] sock_read_iter+0x39b/0x570 [ 81.648682] ? sock_recvmsg+0x110/0x110 [ 81.653509] do_iter_readv_writev+0x77c/0xa80 [ 81.658064] ? vfs_dedupe_file_range+0x670/0x670 [ 81.662815] ? rw_verify_area+0x118/0x360 [ 81.667048] do_iter_read+0x26e/0x650 [ 81.670852] ? dup_iter+0x270/0x270 [ 81.674466] vfs_readv+0x175/0x1c0 [ 81.678009] ? compat_rw_copy_check_uvector+0x440/0x440 [ 81.683365] ? __ia32_sys_getpeername+0xb0/0xb0 [ 81.688023] ? __do_page_fault+0x67d/0xed0 [ 81.692254] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 81.697781] ? __fdget_pos+0xde/0x200 [ 81.701609] ? __fdget_raw+0x20/0x20 [ 81.705316] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 81.711258] ? fput+0x130/0x1a0 [ 81.714974] do_readv+0x11a/0x310 [ 81.718569] ? vfs_readv+0x1c0/0x1c0 [ 81.722278] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 81.727740] __x64_sys_readv+0x75/0xb0 [ 81.731618] do_syscall_64+0x1b9/0x820 [ 81.735492] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 81.740894] ? syscall_return_slowpath+0x5e0/0x5e0 [ 81.745815] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 81.750668] ? trace_hardirqs_on_caller+0x310/0x310 [ 81.755671] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 81.760774] ? prepare_exit_to_usermode+0x291/0x3b0 [ 81.765886] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 81.770725] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 81.775899] RIP: 0033:0x446469 [ 81.779076] 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 [ 81.800507] RSP: 002b:00007f15c0ed6da8 EFLAGS: 00000293 ORIG_RAX: 0000000000000013 [ 81.809536] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446469 [ 81.816797] RDX: 0000000000000001 RSI: 0000000020000500 RDI: 0000000000000003 [ 81.824068] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 81.831422] R10: 000000000000006e R11: 0000000000000293 R12: 00000000006dbc2c [ 81.838693] R13: 00000000004ae560 R14: 0000000020001300 R15: 00000000006dbd2c [ 81.845951] [ 81.847612] Allocated by task 6458: [ 81.851232] save_stack+0x43/0xd0 [ 81.854792] kasan_kmalloc+0xc7/0xe0 [ 81.858546] __kmalloc_node_track_caller+0x47/0x70 [ 81.863462] __kmalloc_reserve.isra.39+0x41/0xe0 [ 81.868224] __alloc_skb+0x155/0x770 [ 81.871922] __ip_append_data.isra.47+0x21d6/0x29b0 [ 81.877513] ip_append_data.part.48+0xef/0x170 [ 81.882081] ip_append_data+0x6d/0x90 [ 81.885868] raw_sendmsg+0x1220/0x4380 [ 81.889877] inet_sendmsg+0x1a1/0x690 [ 81.893758] sock_sendmsg+0xd5/0x120 [ 81.897461] __sys_sendto+0x3d7/0x670 [ 81.901251] __x64_sys_sendto+0xe1/0x1a0 [ 81.905299] do_syscall_64+0x1b9/0x820 [ 81.909171] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 81.914340] [ 81.915947] Freed by task 6458: [ 81.919211] save_stack+0x43/0xd0 [ 81.922649] __kasan_slab_free+0x102/0x150 [ 81.926865] kasan_slab_free+0xe/0x10 [ 81.930647] kfree+0xcf/0x230 [ 81.933740] skb_free_head+0x99/0xc0 [ 81.937439] pskb_expand_head+0x3bb/0x10f0 [ 81.941660] __pskb_pull_tail+0x156/0x1890 [ 81.945878] ip_cmsg_recv_offset+0x113b/0x1390 [ 81.950454] raw_recvmsg+0x71d/0x8b0 [ 81.954231] inet_recvmsg+0x181/0x6d0 [ 81.958025] sock_recvmsg+0xd0/0x110 [ 81.961729] sock_read_iter+0x39b/0x570 [ 81.965752] do_iter_readv_writev+0x77c/0xa80 [ 81.970322] do_iter_read+0x26e/0x650 [ 81.974626] vfs_readv+0x175/0x1c0 [ 81.978153] do_readv+0x11a/0x310 [ 81.981605] __x64_sys_readv+0x75/0xb0 [ 81.985480] do_syscall_64+0x1b9/0x820 [ 81.989354] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 81.994581] [ 81.996198] The buggy address belongs to the object at ffff8801d8d4f7c0 [ 81.996198] which belongs to the cache kmalloc-512 of size 512 [ 82.008913] The buggy address is located 32 bytes inside of [ 82.008913] 512-byte region [ffff8801d8d4f7c0, ffff8801d8d4f9c0) [ 82.020740] The buggy address belongs to the page: [ 82.025667] page:ffffea00076353c0 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 [ 82.033796] flags: 0x2fffc0000000100(slab) [ 82.038024] raw: 02fffc0000000100 ffffea0007634f08 ffffea0007620bc8 ffff8801da800940 [ 82.045899] raw: 0000000000000000 ffff8801d8d4f040 0000000100000006 0000000000000000 [ 82.054437] page dumped because: kasan: bad access detected [ 82.061253] [ 82.062863] Memory state around the buggy address: [ 82.067776] ffff8801d8d4f680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.075146] ffff8801d8d4f700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 82.082672] >ffff8801d8d4f780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 82.090087] ^ [ 82.096669] ffff8801d8d4f800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.104022] ffff8801d8d4f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 82.111360] ================================================================== [ 82.119758] Kernel panic - not syncing: panic_on_warn set ... [ 82.119758] [ 82.128642] CPU: 0 PID: 6458 Comm: syz-executor182 Tainted: G B 4.19.0-rc5+ #121 [ 82.137471] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 82.147594] Call Trace: [ 82.150438] dump_stack+0x1c4/0x2b4 [ 82.154228] ? dump_stack_print_info.cold.2+0x52/0x52 [ 82.159551] panic+0x238/0x4e7 [ 82.162780] ? add_taint.cold.5+0x16/0x16 [ 82.166922] ? preempt_schedule+0x4d/0x60 [ 82.171055] ? ___preempt_schedule+0x16/0x18 [ 82.175455] ? trace_hardirqs_on+0xb4/0x310 [ 82.179915] kasan_end_report+0x47/0x4f [ 82.183897] kasan_report.cold.9+0x76/0x309 [ 82.188204] ? ip_cmsg_recv_offset+0x12be/0x1390 [ 82.192946] __asan_report_load4_noabort+0x14/0x20 [ 82.198537] ip_cmsg_recv_offset+0x12be/0x1390 [ 82.203113] ? ip_send_unicast_reply+0x1770/0x1770 [ 82.208217] ? _copy_to_iter+0x1540/0x1540 [ 82.212441] ? __skb_recv_datagram+0x262/0x300 [ 82.217121] ? get_futex_value_locked+0xcb/0xf0 [ 82.221885] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 82.226888] ? futex_wait_setup+0x266/0x3e0 [ 82.231198] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 82.236752] ? skb_copy_datagram_iter+0x26e/0xc10 [ 82.241590] ? __sk_queue_drop_skb+0x1f0/0x1f0 [ 82.246847] ? rcu_read_unlock_special.part.39+0x11f0/0x11f0 [ 82.252678] raw_recvmsg+0x71d/0x8b0 [ 82.256410] ? raw_abort+0xa0/0xa0 [ 82.259942] ? aa_file_perm+0x490/0x1060 [ 82.264004] inet_recvmsg+0x181/0x6d0 [ 82.267801] ? aa_path_link+0x5e0/0x5e0 [ 82.271764] ? inet_sendpage+0x740/0x740 [ 82.275959] ? aa_sock_msg_perm.isra.12+0xba/0x160 [ 82.280887] ? apparmor_socket_recvmsg+0x29/0x30 [ 82.285633] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 82.291163] ? security_socket_recvmsg+0x9c/0xc0 [ 82.295907] ? inet_sendpage+0x740/0x740 [ 82.299952] sock_recvmsg+0xd0/0x110 [ 82.303657] sock_read_iter+0x39b/0x570 [ 82.307618] ? sock_recvmsg+0x110/0x110 [ 82.311599] do_iter_readv_writev+0x77c/0xa80 [ 82.316104] ? vfs_dedupe_file_range+0x670/0x670 [ 82.321343] ? rw_verify_area+0x118/0x360 [ 82.325600] do_iter_read+0x26e/0x650 [ 82.329389] ? dup_iter+0x270/0x270 [ 82.333010] vfs_readv+0x175/0x1c0 [ 82.336540] ? compat_rw_copy_check_uvector+0x440/0x440 [ 82.341901] ? __ia32_sys_getpeername+0xb0/0xb0 [ 82.346603] ? __do_page_fault+0x67d/0xed0 [ 82.350838] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 82.356359] ? __fdget_pos+0xde/0x200 [ 82.360141] ? __fdget_raw+0x20/0x20 [ 82.363851] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 82.369873] ? fput+0x130/0x1a0 [ 82.373498] do_readv+0x11a/0x310 [ 82.376951] ? vfs_readv+0x1c0/0x1c0 [ 82.380686] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 82.386186] __x64_sys_readv+0x75/0xb0 [ 82.390586] do_syscall_64+0x1b9/0x820 [ 82.395573] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 82.401882] ? syscall_return_slowpath+0x5e0/0x5e0 [ 82.407928] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 82.414727] ? trace_hardirqs_on_caller+0x310/0x310 [ 82.420918] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 82.426962] ? prepare_exit_to_usermode+0x291/0x3b0 [ 82.431972] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 82.436820] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 82.441997] RIP: 0033:0x446469 [ 82.445180] 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 [ 82.464112] RSP: 002b:00007f15c0ed6da8 EFLAGS: 00000293 ORIG_RAX: 0000000000000013 [ 82.471808] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446469 [ 82.479063] RDX: 0000000000000001 RSI: 0000000020000500 RDI: 0000000000000003 [ 82.486320] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 82.494062] R10: 000000000000006e R11: 0000000000000293 R12: 00000000006dbc2c [ 82.501320] R13: 00000000004ae560 R14: 0000000020001300 R15: 00000000006dbd2c [ 82.509520] Kernel Offset: disabled [ 82.513141] Rebooting in 86400 seconds..