<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux/linux_emul.c, branch release/7.0.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2008-02-24T05:45:17+00:00</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2008-02-24T05:45:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a9c219fa3cec18ef9f30edec6fa106bf0e2d423d'/>
<id>a9c219fa3cec18ef9f30edec6fa106bf0e2d423d</id>
<content type='text'>
'RELENG_7_0_0_RELEASE'.

This commit was manufactured to restore the state of the 7.0-RELEASE image.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
'RELENG_7_0_0_RELEASE'.

This commit was manufactured to restore the state of the 7.0-RELEASE image.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFP4:	Turn emul_lock into a mutex.</title>
<updated>2007-04-02T18:38:13+00:00</updated>
<author>
<name>Jung-uk Kim</name>
<email>jkim@FreeBSD.org</email>
</author>
<published>2007-04-02T18:38:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=357afa71139263ad214da3ceea164c974129735c'/>
<id>357afa71139263ad214da3ceea164c974129735c</id>
<content type='text'>
Submitted by:	rdivacky
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by:	rdivacky
</pre>
</div>
</content>
</entry>
<entry>
<title>MFP4:	115220, 115222</title>
<updated>2007-03-02T00:08:47+00:00</updated>
<author>
<name>Jung-uk Kim</name>
<email>jkim@FreeBSD.org</email>
</author>
<published>2007-03-02T00:08:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a4e3bad794e41d2d5362743924bd356d76d8e5a9'/>
<id>a4e3bad794e41d2d5362743924bd356d76d8e5a9</id>
<content type='text'>
- Fix style(9) and reduce diff between amd64 and i386.
- Prefix Linuxulator macros with LINUX_ to prevent future collision.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Fix style(9) and reduce diff between amd64 and i386.
- Prefix Linuxulator macros with LINUX_ to prevent future collision.
</pre>
</div>
</content>
</entry>
<entry>
<title>Partial MFp4 of 114977:</title>
<updated>2007-02-24T16:49:25+00:00</updated>
<author>
<name>Alexander Leidinger</name>
<email>netchild@FreeBSD.org</email>
</author>
<published>2007-02-24T16:49:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=802e08a3608afbbb68f9fe21eded08a92ff0308f'/>
<id>802e08a3608afbbb68f9fe21eded08a92ff0308f</id>
<content type='text'>
	Whitespace commit: Fix grammar, spelling and punctuation.

Submitted by:	"Scot Hetzel" &lt;swhetzel@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Whitespace commit: Fix grammar, spelling and punctuation.

Submitted by:	"Scot Hetzel" &lt;swhetzel@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>MFp4 (114193 (i386 part), 114194, 114195, 114200):</title>
<updated>2007-02-23T22:39:26+00:00</updated>
<author>
<name>Alexander Leidinger</name>
<email>netchild@FreeBSD.org</email>
</author>
<published>2007-02-23T22:39:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1a26db0a3a744efecaf35971ca7ad0c9b18a7efe'/>
<id>1a26db0a3a744efecaf35971ca7ad0c9b18a7efe</id>
<content type='text'>
 - Dont "return" in linux_clone() after we forked the new process in a case
   of problems.
 - Move the copyout of p2-&gt;p_pid outside the emul_lock coverage in
   linux_clone().
 - Cache the em-&gt;pdeath_signal in a local variable and move the copyout
   out of the emul_lock coverage.
 - Move the free() out of the emul_shared_lock coverage in a preparation
   to switch emul_lock to non-sleepable lock (mutex).

Submitted by:	rdivacky
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - Dont "return" in linux_clone() after we forked the new process in a case
   of problems.
 - Move the copyout of p2-&gt;p_pid outside the emul_lock coverage in
   linux_clone().
 - Cache the em-&gt;pdeath_signal in a local variable and move the copyout
   out of the emul_lock coverage.
 - Move the free() out of the emul_shared_lock coverage in a preparation
   to switch emul_lock to non-sleepable lock (mutex).

Submitted by:	rdivacky
</pre>
</div>
</content>
</entry>
<entry>
<title>MFp4 (part of 114132):</title>
<updated>2007-02-23T22:29:24+00:00</updated>
<author>
<name>Alexander Leidinger</name>
<email>netchild@FreeBSD.org</email>
</author>
<published>2007-02-23T22:29:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e8b8b834b4bc8960f553e50589329e5c3b6d7fe5'/>
<id>e8b8b834b4bc8960f553e50589329e5c3b6d7fe5</id>
<content type='text'>
 - Fix a LOR caused by holding emul_lock and proctree_lock at once.

Submitted by:	rdivacky
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - Fix a LOR caused by holding emul_lock and proctree_lock at once.

Submitted by:	rdivacky
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove extern int hz; use proper include file instead.</title>
<updated>2007-02-02T08:58:16+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2007-02-02T08:58:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b4bb515484770283e7d8b6501f6a2e3355a4b6f3'/>
<id>b4bb515484770283e7d8b6501f6a2e3355a4b6f3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>No need to synchronize linux_schedtail with linux_proc_init.</title>
<updated>2007-02-01T13:29:27+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2007-02-01T13:29:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=25954d743041da5014c4b48d9ef2504664ce1ec9'/>
<id>25954d743041da5014c4b48d9ef2504664ce1ec9</id>
<content type='text'>
p-&gt;p_emuldata is properly initialized in the time when the child can run.

Do not set p-&gt;p_emuldata to NULL when the process is exiting.
It does not make any sense and only costs 2 mutex operations.

Do not lock emul_data to unlock it on the very next line.
Comment on possible race while there.

Reparent all procs that are part of a threading group but not its leaders
to init and SIGCHLD init to finish the zombies off. This fixes zombies
left after opera's exit. [1]

There is no need to lock p_em in the linux_proc_init CLONE_THREAD
case because the process cannot change the address of the p_em-&gt;shared
because its currently running this code path.
Move assigning of em-&gt;shared outside emul_shared_lock.

Noticed by: Scott Robbins &lt;scottro@nyc.rr.com&gt; [1]
Submitted by: rdivacky
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
p-&gt;p_emuldata is properly initialized in the time when the child can run.

Do not set p-&gt;p_emuldata to NULL when the process is exiting.
It does not make any sense and only costs 2 mutex operations.

Do not lock emul_data to unlock it on the very next line.
Comment on possible race while there.

Reparent all procs that are part of a threading group but not its leaders
to init and SIGCHLD init to finish the zombies off. This fixes zombies
left after opera's exit. [1]

There is no need to lock p_em in the linux_proc_init CLONE_THREAD
case because the process cannot change the address of the p_em-&gt;shared
because its currently running this code path.
Move assigning of em-&gt;shared outside emul_shared_lock.

Noticed by: Scott Robbins &lt;scottro@nyc.rr.com&gt; [1]
Submitted by: rdivacky
</pre>
</div>
</content>
</entry>
<entry>
<title>MFp4 (113077, 113083, 113103, 113124, 113097):</title>
<updated>2007-01-20T14:58:59+00:00</updated>
<author>
<name>Alexander Leidinger</name>
<email>netchild@FreeBSD.org</email>
</author>
<published>2007-01-20T14:58:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d071f5048ca7122b4e7d7b859d9af01c5bebf892'/>
<id>d071f5048ca7122b4e7d7b859d9af01c5bebf892</id>
<content type='text'>
	Dont expose em-&gt;shared to the outside world before its properly
	initialized. Might not affect anything but its at least a better
	coding style.

	Dont expose em via p-&gt;p_emuldata until its properly initialized.
	This also enables us to get rid of some locking and simplify the
	code because we are workin on a local copy.

	In linux_fork and linux_vfork create the process in stopped state
	to be sure that the new process runs with fully initialized emuldata
	structure [1]. Also fix the vfork (both in linux_clone and linux_vfork)
	race that could result in never woken up process [2].

Reported by:	Scot Hetzel	[1]
Suggested by:	jhb		[2]
Reviewed by:	jhb (at least some important parts)
Submitted by:	rdivacky
Tested by:	Scot Hetzel (on amd64)

Change 2 comments (in the new code) to comply to style(9).

Suggested by:	jhb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Dont expose em-&gt;shared to the outside world before its properly
	initialized. Might not affect anything but its at least a better
	coding style.

	Dont expose em via p-&gt;p_emuldata until its properly initialized.
	This also enables us to get rid of some locking and simplify the
	code because we are workin on a local copy.

	In linux_fork and linux_vfork create the process in stopped state
	to be sure that the new process runs with fully initialized emuldata
	structure [1]. Also fix the vfork (both in linux_clone and linux_vfork)
	race that could result in never woken up process [2].

Reported by:	Scot Hetzel	[1]
Suggested by:	jhb		[2]
Reviewed by:	jhb (at least some important parts)
Submitted by:	rdivacky
Tested by:	Scot Hetzel (on amd64)

Change 2 comments (in the new code) to comply to style(9).

Suggested by:	jhb
</pre>
</div>
</content>
</entry>
<entry>
<title>MFp4 (112499):</title>
<updated>2007-01-07T19:09:20+00:00</updated>
<author>
<name>Alexander Leidinger</name>
<email>netchild@FreeBSD.org</email>
</author>
<published>2007-01-07T19:09:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=291081ce0a03bfab5edacb60dd96934cca7e687b'/>
<id>291081ce0a03bfab5edacb60dd96934cca7e687b</id>
<content type='text'>
Protect em-&gt;shared with the lock in case of CLONE_THREAD.

Submitted by:	rdivacky
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Protect em-&gt;shared with the lock in case of CLONE_THREAD.

Submitted by:	rdivacky
</pre>
</div>
</content>
</entry>
</feed>
