svn commit: r294529 - stable/10/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Thu Jan 21 19:19:25 UTC 2016


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);


More information about the svn-src-all mailing list