<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/kern/sys_process.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: Close some races between procfs/ptrace and exit1() by changing</title>
<updated>2006-03-07T18:08:09+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2006-03-07T18:08:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=37a4ca60365faf382f53b8d4f1582c0806285366'/>
<id>37a4ca60365faf382f53b8d4f1582c0806285366</id>
<content type='text'>
exit1() to block until any current PHOLD's are released.  This includes
Simplifying the cleanup code in kern_ptrace() and removing the now
unnecessary vmspace ref counting magic from proc_rwmem().  Also, the
locking for ptrace_single_step(), ptrace_set_pc(), and
ptrace_clear_single_step() have been fixed to be consistent across the
tree.

Approved by:	re (scottl)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
exit1() to block until any current PHOLD's are released.  This includes
Simplifying the cleanup code in kern_ptrace() and removing the now
unnecessary vmspace ref counting magic from proc_rwmem().  Also, the
locking for ptrace_single_step(), ptrace_set_pc(), and
ptrace_clear_single_step() have been fixed to be consistent across the
tree.

Approved by:	re (scottl)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC following revisions:</title>
<updated>2006-01-07T11:53:49+00:00</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2006-01-07T11:53:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f498fc72fcf2b318d99ca396227a630bcd2bd6ca'/>
<id>f498fc72fcf2b318d99ca396227a630bcd2bd6ca</id>
<content type='text'>
	kern_sig.c	revision 1.319
	sys_process.c	revision 1.134

	Avoid kernel panic when attaching a process which
	may not be stopped by debugger, e.g process is dumping core.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	kern_sig.c	revision 1.319
	sys_process.c	revision 1.134

	Avoid kernel panic when attaching a process which
	may not be stopped by debugger, e.g process is dumping core.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC  kern/sys_process.c revision 1.132</title>
<updated>2005-09-27T12:17:38+00:00</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2005-09-27T12:17:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bf4ac3bbb40ad7b38b27d1e252c2015c1e01e37e'/>
<id>bf4ac3bbb40ad7b38b27d1e252c2015c1e01e37e</id>
<content type='text'>
     kern/kern_kse.c    revision 1.215

     &gt; Fix a LOR between sched_lock and sleep queue lock.

Approved by: re(scottl)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
     kern/kern_kse.c    revision 1.215

     &gt; Fix a LOR between sched_lock and sleep queue lock.

Approved by: re(scottl)
</pre>
</div>
</content>
</entry>
<entry>
<title>Jumbo-commit to enhance 32 bit application support on 64 bit kernels.</title>
<updated>2005-06-30T07:49:22+00:00</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2005-06-30T07:49:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=62919d788b37bba3390d9b9ed29ff5220d09840e'/>
<id>62919d788b37bba3390d9b9ed29ff5220d09840e</id>
<content type='text'>
This is good enough to be able to run a RELENG_4 gdb binary against
a RELENG_4 application, along with various other tools (eg: 4.x gcore).
We use this at work.

ia32_reg.[ch]: handle the 32 bit register file format, used by ptrace,
	procfs and core dumps.
procfs_*regs.c: vary the format of proc/XXX/*regs depending on the client
	and target application.
procfs_map.c: Don't print a 64 bit value to 32 bit consumers, or their
	sscanf fails.  They expect an unsigned long.
imgact_elf.c: produce a valid 32 bit coredump for 32 bit apps.
sys_process.c: handle 32 bit consumers debugging 32 bit targets.  Note
	that 64 bit consumers can still debug 32 bit targets.

IA64 has got stubs for ia32_reg.c.

Known limitations: a 5.x/6.x gdb uses get/setcontext(), which isn't
implemented in the 32/64 wrapper yet.  We also make a tiny patch to
gdb pacify it over conflicting formats of ld-elf.so.1.

Approved by:	re
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is good enough to be able to run a RELENG_4 gdb binary against
a RELENG_4 application, along with various other tools (eg: 4.x gcore).
We use this at work.

ia32_reg.[ch]: handle the 32 bit register file format, used by ptrace,
	procfs and core dumps.
procfs_*regs.c: vary the format of proc/XXX/*regs depending on the client
	and target application.
procfs_map.c: Don't print a 64 bit value to 32 bit consumers, or their
	sscanf fails.  They expect an unsigned long.
imgact_elf.c: produce a valid 32 bit coredump for 32 bit apps.
sys_process.c: handle 32 bit consumers debugging 32 bit targets.  Note
	that 64 bit consumers can still debug 32 bit targets.

IA64 has got stubs for ia32_reg.c.

Known limitations: a 5.x/6.x gdb uses get/setcontext(), which isn't
implemented in the 32/64 wrapper yet.  We also make a tiny patch to
gdb pacify it over conflicting formats of ld-elf.so.1.

Approved by:	re
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing cases for PT_SYSCALL.</title>
<updated>2005-03-18T21:22:28+00:00</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2005-03-18T21:22:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f7fdcd45f00aef7a017cce36864d94952e168181'/>
<id>f7fdcd45f00aef7a017cce36864d94952e168181</id>
<content type='text'>
Found by:	Coverity Prevent analysis tool
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Found by:	Coverity Prevent analysis tool
</pre>
</div>
</content>
</entry>
<entry>
<title>/* -&gt; /*- for copyright notices, minor format tweaks as necessary</title>
<updated>2005-01-06T23:35:40+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-06T23:35:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9454b2d864463f856c6aaf147851104b25cf4037'/>
<id>9454b2d864463f856c6aaf147851104b25cf4037</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't include sys/user.h merely for its side-effect of recursively</title>
<updated>2004-11-27T06:51:39+00:00</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2004-11-27T06:51:39+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6004362e66b76f04a5b994af40067c600da40d0a'/>
<id>6004362e66b76f04a5b994af40067c600da40d0a</id>
<content type='text'>
including other headers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
including other headers.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add pl_flags to ptrace_lwpinfo, two flags PL_FLAG_SA and PL_FLAG_BOUND</title>
<updated>2004-08-08T22:26:11+00:00</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2004-08-08T22:26:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1f2eac6cf3060f7d64eb1c797b9e685ea0b3f2d8'/>
<id>1f2eac6cf3060f7d64eb1c797b9e685ea0b3f2d8</id>
<content type='text'>
indicate that a thread is in UTS critical region.

Reviewed by: deischen
Approved by: marcel
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
indicate that a thread is in UTS critical region.

Reviewed by: deischen
Approved by: marcel
</pre>
</div>
</content>
</entry>
<entry>
<title> - Use atomic ops for updating the vmspace's refcnt and exitingcnt.</title>
<updated>2004-07-27T03:53:41+00:00</updated>
<author>
<name>Alan Cox</name>
<email>alc@FreeBSD.org</email>
</author>
<published>2004-07-27T03:53:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1a276a3f9166e15f4e0e33cd29fa555b4a903795'/>
<id>1a276a3f9166e15f4e0e33cd29fa555b4a903795</id>
<content type='text'>
 - Push down Giant into shmexit().  (Giant is acquired only if the vmspace
   contains shm segments.)
 - Eliminate the acquisition of Giant from proc_rwmem().
 - Reduce the scope of Giant in exit1(), uncovering the destruction of the
   address space.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - Push down Giant into shmexit().  (Giant is acquired only if the vmspace
   contains shm segments.)
 - Eliminate the acquisition of Giant from proc_rwmem().
 - Reduce the scope of Giant in exit1(), uncovering the destruction of the
   address space.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo.</title>
<updated>2004-07-17T23:15:41+00:00</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2004-07-17T23:15:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c3d88cbab892a8c94b39c56485332b44320e52a8'/>
<id>c3d88cbab892a8c94b39c56485332b44320e52a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
