Date: Sun, 17 Jan 2016 19:28:13 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r294233 - head/sys/compat/linux Message-ID: <201601171928.u0HJSDCl040339@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Sun Jan 17 19:28:13 2016 New Revision: 294233 URL: https://svnweb.freebsd.org/changeset/base/294233 Log: Prevent double free of control in common sendmsg path as sosend already freeing it. Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_socket.c ============================================================================== --- head/sys/compat/linux/linux_socket.c Sun Jan 17 18:39:01 2016 (r294232) +++ head/sys/compat/linux/linux_socket.c Sun Jan 17 19:28:13 2016 (r294233) @@ -1164,6 +1164,7 @@ linux_sendmsg_common(struct thread *td, msg.msg_iov = iov; msg.msg_flags = 0; error = linux_sendit(td, s, &msg, flags, control, UIO_USERSPACE); + control = NULL; bad: m_freem(control);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601171928.u0HJSDCl040339>