Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102779310
D32010.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32010.diff
View Options
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -1414,19 +1414,15 @@
freebsd32_recvmsg(struct thread *td, struct freebsd32_recvmsg_args *uap)
{
struct msghdr msg;
- struct msghdr32 m32;
struct iovec *uiov, *iov;
struct mbuf *control = NULL;
struct mbuf **controlp;
-
int error;
- error = copyin(uap->msg, &m32, sizeof(m32));
- if (error)
- return (error);
+
error = freebsd32_copyinmsghdr(uap->msg, &msg);
if (error)
return (error);
- error = freebsd32_copyiniov(PTRIN(m32.msg_iov), m32.msg_iovlen, &iov,
+ error = freebsd32_copyiniov((void *)msg.msg_iov, msg.msg_iovlen, &iov,
EMSGSIZE);
if (error)
return (error);
@@ -1559,19 +1555,15 @@
freebsd32_sendmsg(struct thread *td, struct freebsd32_sendmsg_args *uap)
{
struct msghdr msg;
- struct msghdr32 m32;
struct iovec *iov;
struct mbuf *control = NULL;
struct sockaddr *to = NULL;
int error;
- error = copyin(uap->msg, &m32, sizeof(m32));
- if (error)
- return (error);
error = freebsd32_copyinmsghdr(uap->msg, &msg);
if (error)
return (error);
- error = freebsd32_copyiniov(PTRIN(m32.msg_iov), m32.msg_iovlen, &iov,
+ error = freebsd32_copyiniov((void *)msg.msg_iov, msg.msg_iovlen, &iov,
EMSGSIZE);
if (error)
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 1:58 AM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14688343
Default Alt Text
D32010.diff (1 KB)
Attached To
Mode
D32010: compat32: Fix a TOCTOU bug in sendmsg() and recvmsg()
Attached
Detach File
Event Timeline
Log In to Comment