Date: Thu, 21 Jan 2016 19:19:24 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r294529 - stable/10/sys/compat/linux Message-ID: <201601211919.u0LJJOP8049878@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Thu Jan 21 19:19:24 2016 New Revision: 294529 URL: https://svnweb.freebsd.org/changeset/base/294529 Log: MFC 294233: Prevent double free of control in common sendmsg path as sosend already freeing it. Modified: stable/10/sys/compat/linux/linux_socket.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/compat/linux/linux_socket.c ============================================================================== --- stable/10/sys/compat/linux/linux_socket.c Thu Jan 21 18:45:46 2016 (r294528) +++ stable/10/sys/compat/linux/linux_socket.c Thu Jan 21 19:19:24 2016 (r294529) @@ -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?201601211919.u0LJJOP8049878>