Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136997531
D25255.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
952 B
Referenced Files
None
Subscribers
None
D25255.diff
View Options
Index: head/sys/compat/linux/linux_socket.c
===================================================================
--- head/sys/compat/linux/linux_socket.c
+++ head/sys/compat/linux/linux_socket.c
@@ -1042,8 +1042,12 @@
cmsg->cmsg_level =
linux_to_bsd_sockopt_level(linux_cmsg.cmsg_level);
if (cmsg->cmsg_type == -1
- || cmsg->cmsg_level != SOL_SOCKET)
+ || cmsg->cmsg_level != SOL_SOCKET) {
+ linux_msg(curthread,
+ "unsupported sendmsg cmsg level %d type %d",
+ linux_cmsg.cmsg_level, linux_cmsg.cmsg_type);
goto bad;
+ }
/*
* Some applications (e.g. pulseaudio) attempt to
@@ -1228,6 +1232,9 @@
bsd_to_linux_sockopt_level(cm->cmsg_level);
if (linux_cmsg->cmsg_type == -1 ||
cm->cmsg_level != SOL_SOCKET) {
+ linux_msg(curthread,
+ "unsupported recvmsg cmsg level %d type %d",
+ cm->cmsg_level, cm->cmsg_type);
error = EINVAL;
goto bad;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 11:01 PM (39 m, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25822664
Default Alt Text
D25255.diff (952 B)
Attached To
Mode
D25255: Make linux(4) warn about unsupported CMSG level/type
Attached
Detach File
Event Timeline
Log In to Comment