<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux/linux_socket.c, branch releng/6.1</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC 1.62:</title>
<updated>2006-01-10T10:13:43+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2006-01-10T10:13:43+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bd1124a46d1f278b43553f5483057789ed909b11'/>
<id>bd1124a46d1f278b43553f5483057789ed909b11</id>
<content type='text'>
  Add \n to log() message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Add \n to log() message.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing locking to linux_connect() so that it can be marked MP safe:</title>
<updated>2005-07-09T12:26:22+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2005-07-09T12:26:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4641373fded7dfd64f93f45371e42a3ea6e82559'/>
<id>4641373fded7dfd64f93f45371e42a3ea6e82559</id>
<content type='text'>
- Conditionally grab Giant around the EISCONN hack at the end based on
  debug.mpsafenet.
- Protect access to so_emuldata via SOCK_LOCK.

Reviewed by:	rwatson
Approved by:	re (scottl)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Conditionally grab Giant around the EISCONN hack at the end based on
  debug.mpsafenet.
- Protect access to so_emuldata via SOCK_LOCK.

Reviewed by:	rwatson
Approved by:	re (scottl)
</pre>
</div>
</content>
</entry>
<entry>
<title>Reject packets larger than IP_MAXPACKET in linux_sendto() for sockets</title>
<updated>2005-03-23T08:28:00+00:00</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2005-03-23T08:28:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=aa675b572f72f088d07d8f1021e31769dc2ca6b5'/>
<id>aa675b572f72f088d07d8f1021e31769dc2ca6b5</id>
<content type='text'>
with the IP_HDRINCL option set.  Without this change, a Linux process
with access to a raw socket could cause a kernel panic.  Raw sockets
must be created by root, and are generally not consigned to untrusted
applications; hence, the security implications of this bug are
minimal.  I believe this only affects 6-CURRENT on or after 2005-01-30.

Found by:	Coverity Prevent analysis tool
Security:	Local DOS
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
with the IP_HDRINCL option set.  Without this change, a Linux process
with access to a raw socket could cause a kernel panic.  Raw sockets
must be created by root, and are generally not consigned to untrusted
applications; hence, the security implications of this bug are
minimal.  I believe this only affects 6-CURRENT on or after 2005-01-30.

Found by:	Coverity Prevent analysis tool
Security:	Local DOS
</pre>
</div>
</content>
</entry>
<entry>
<title>Add kernel-only flag MSG_NOSIGNAL to be used in emulation layers to surpress</title>
<updated>2005-03-08T16:11:41+00:00</updated>
<author>
<name>Maxim Sobolev</name>
<email>sobomax@FreeBSD.org</email>
</author>
<published>2005-03-08T16:11:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8d6e40c3f13fe1e4cda4c487b9cff95b64df89a2'/>
<id>8d6e40c3f13fe1e4cda4c487b9cff95b64df89a2</id>
<content type='text'>
SIGPIPE signal for the duration of the sento-family syscalls. Use it to
replace previously added hack in Linux layer based on temporarily setting
SO_NOSIGPIPE flag.

Suggested by:	alfred
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SIGPIPE signal for the duration of the sento-family syscalls. Use it to
replace previously added hack in Linux layer based on temporarily setting
SO_NOSIGPIPE flag.

Suggested by:	alfred
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle MSG_NOSIGNAL flag in linux_send() by setting SO_NOSIGPIPE on socket</title>
<updated>2005-03-07T07:26:42+00:00</updated>
<author>
<name>Maxim Sobolev</name>
<email>sobomax@FreeBSD.org</email>
</author>
<published>2005-03-07T07:26:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2302f0fea885b83cd4a7e7239d70d62b62007d84'/>
<id>2302f0fea885b83cd4a7e7239d70d62b62007d84</id>
<content type='text'>
for the duration of the send() call. Such approach may be less than ideal
in threading environment, when several threads share the same socket and it
might happen that several of them are calling linux_send() at the same time
with and without SO_NOSIGPIPE set.

However, such race condition is very unlikely in practice, therefore this
change provides practical improvement compared to the previous behaviour.

PR:		kern/76426
Submitted by:	Steven Hartland &lt;killing@multiplay.co.uk&gt;
MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for the duration of the send() call. Such approach may be less than ideal
in threading environment, when several threads share the same socket and it
might happen that several of them are calling linux_send() at the same time
with and without SO_NOSIGPIPE set.

However, such race condition is very unlikely in practice, therefore this
change provides practical improvement compared to the previous behaviour.

PR:		kern/76426
Submitted by:	Steven Hartland &lt;killing@multiplay.co.uk&gt;
MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>Extend kern_sendit() to take another enum uio_seg argument, which specifies</title>
<updated>2005-01-30T07:20:36+00:00</updated>
<author>
<name>Maxim Sobolev</name>
<email>sobomax@FreeBSD.org</email>
</author>
<published>2005-01-30T07:20:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a6886ef173c0241e9f444386ac475088c7421db0'/>
<id>a6886ef173c0241e9f444386ac475088c7421db0</id>
<content type='text'>
where the buffer to send lies and use it to eliminate yet another stackgap
in linuxlator.

MFC after:	2 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
where the buffer to send lies and use it to eliminate yet another stackgap
in linuxlator.

MFC after:	2 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>Match the LINUX32's style with existing style</title>
<updated>2005-01-14T04:44:56+00:00</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2005-01-14T04:44:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1997c537be039b083d9156b1c8685ac9ff25e911'/>
<id>1997c537be039b083d9156b1c8685ac9ff25e911</id>
<content type='text'>
Submitted by:	Jung-uk Kim &lt;jkim@niksun.com&gt;

Use positive, not negative logic.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by:	Jung-uk Kim &lt;jkim@niksun.com&gt;

Use positive, not negative logic.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the ABI wrappers to use kern_fcntl() rather than calling fcntl()</title>
<updated>2004-08-24T20:21:21+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2004-08-24T20:21:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2ca25ab53ec018a64ecbf89e780fe9ff4298811e'/>
<id>2ca25ab53ec018a64ecbf89e780fe9ff4298811e</id>
<content type='text'>
directly.  This removes a few more users of the stackgap and also marks
the syscalls using these wrappers MP safe where appropriate.

Tested on:	i386 with linux acroread5
Compiled on:	i386, alpha LINT
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
directly.  This removes a few more users of the stackgap and also marks
the syscalls using these wrappers MP safe where appropriate.

Tested on:	i386 with linux acroread5
Compiled on:	i386, alpha LINT
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't try to translate the control message unless we're certain it's</title>
<updated>2004-08-23T12:41:29+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2004-08-23T12:41:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=72261b9f61461c074b0617d935a196efc63cb29e'/>
<id>72261b9f61461c074b0617d935a196efc63cb29e</id>
<content type='text'>
valid; otherwise a caller could trick us into changing any 32-bit word
in kernel memory to LINUX_SOL_SOCKET (0x00000001) if its previous value
is SOL_SOCKET (0x0000ffff).

MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
valid; otherwise a caller could trick us into changing any 32-bit word
in kernel memory to LINUX_SOL_SOCKET (0x00000001) if its previous value
is SOL_SOCKET (0x0000ffff).

MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>Changes to MI Linux emulation code necessary to run 32-bit Linux binaries</title>
<updated>2004-08-16T07:28:16+00:00</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2004-08-16T07:28:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4af27623361335eef9a191f7d3a76047095d0f52'/>
<id>4af27623361335eef9a191f7d3a76047095d0f52</id>
<content type='text'>
on AMD64, and the general case where the emulated platform has different
size pointers than we use natively:
- declare certain structure members as l_uintptr_t and use the new PTRIN
  and PTROUT macros to convert to and from native pointers.
- declare some structures __packed on amd64 when the layout would differ
  from that used on i386.
- include &lt;machine/../linux32/linux.h&gt; instead of &lt;machine/../linux/linux.h&gt;
  if compiling with COMPAT_LINUX32. This will need to be revisited before
  32-bit and 64-bit Linux emulation support can coexist in the same kernel.
- other small scattered changes.

This should be a no-op on i386 and Alpha.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
on AMD64, and the general case where the emulated platform has different
size pointers than we use natively:
- declare certain structure members as l_uintptr_t and use the new PTRIN
  and PTROUT macros to convert to and from native pointers.
- declare some structures __packed on amd64 when the layout would differ
  from that used on i386.
- include &lt;machine/../linux32/linux.h&gt; instead of &lt;machine/../linux/linux.h&gt;
  if compiling with COMPAT_LINUX32. This will need to be revisited before
  32-bit and 64-bit Linux emulation support can coexist in the same kernel.
- other small scattered changes.

This should be a no-op on i386 and Alpha.
</pre>
</div>
</content>
</entry>
</feed>
