The NetBSD Project

CVS log for src/sys/kern/sys_process.c

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.143.4.2 / (download) - annotate - [select for diffs], Sat Feb 4 16:57:59 2012 UTC (3 months, 2 weeks ago) by bouyer
Branch: netbsd-5
Changes since 1.143.4.1: +18 -11 lines
Diff to previous 1.143.4.1 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

Apply patch, requested by jmcneill in ticket #1668:
	sys/arch/amd64/amd64/syscall.c			patch
	sys/arch/i386/i386/syscall.c			patch
	sys/arch/i386/i386/trap.c			patch
	sys/kern/kern_sig.c				patch
	sys/kern/kern_sleepq.c				patch
	sys/kern/kern_subr.c				patch
	sys/kern/sys_process.c				patch
	sys/secmodel/bsd44/secmodel_bsd44_suser.c	patch
	sys/sys/proc.h					patch
	sys/sys/ptrace.h				patch

arch/i386/i386/machdep.c, arch/amd64/amd64/machdep.c (from
arch/x86/x86/machdep.c) by christos:
Remove code that was used to avoid register spills. setcontext(2) can change
the registers, so re-fetching will produce the wrong result for trace_exit().
arch/i386/i386/trap.c by reinoud:
Fix the illegal instruction return address. It was using the value of the
cpu's %cr2 register but thats not valid:

CR2 Contains a value called Page Fault Linear Address (PFLA). When a page
fault occurs, the address the program attempted to access is stored in the CR2
register.

And this is thus NOT the illegal instruction address!
kern/kern_sig.c by christos:
PR kern/45327: Jared McNeill: ptrace: siginfo doesn't work with traced processes
When saving the signal in p->p_xstat, clear it from the pending mask, but
don't remove it from the siginfo queue, so that next time the debugger
delivers it, the original information is found.
When posting a signal from the debugger l->l_sigpendset is not set, so we
use the process pending signal and add it back to the process pending set.
Split sigget into sigget() and siggetinfo(). When a signal comes from the
debugger (l->l_sigpendset == NULL), using siggetinfo() try to fetch the
siginfo information from l->l_sigpend and then from p->p_sigpend if it
was not found. This allows us to pass siginfo information for traps from
the debugger.
don't delete signal from the debugger.
kern/kern_sleepq.c by christos:
PR kern/40594: Antti Kantee: Don't call issignal() here to determine what errno
to set for the interrupted syscall, because issignal() will consume the signal
and it will not be delivered to the process afterwards. Instead call
sigispending() (which now returns the first pending signal) and does not
consume the signal.
We need to process SA_STOP signals immediately, and not deliver them to
the process. Instead of re-structuring the code to do that, call issignal()
like before in that case. (tail -F /file^Zfg should not get interrupted).
kern/kern_subr.c by jmcneill, christos:
PR kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.
For PT_SYSCALLEMU, no need to stop again on syscall exit.
ifdef unused variable with -UPTRACE

kern/sys_process.c, sys/proc.h, sys/ptrace.h, secmodel/bsd44/secmodel_bsd44_suser.c by jmcneill, christos:
PR kern/43681: PT_SYSCALL appears to be broken

sys_ptrace: For PT_CONTINUE/PT_SYSCALL/PT_DETACH, modify the p_trace_enabled
flag of the target process, not the calling process.
Process the signal now, otherwise calling issignal() and ignoring
the return will lose the signal if it came from the debugger
(issignal() clears p->p_xstat)
PR kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.
PR kern/45330: ptrace: signals can alter syscall return values

process_stoptrace: defer signal processing to userret, ok christos@

Revision 1.162 / (download) - annotate - [select for diffs], Tue Sep 6 11:22:42 2011 UTC (8 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, netbsd-6-base, netbsd-6, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, HEAD
Changes since 1.161: +7 -12 lines
Diff to previous 1.161 (colored)

PR# kern/45330: ptrace: signals can alter syscall return values

process_stoptrace: defer signal processing to userret, ok christos@

Revision 1.161 / (download) - annotate - [select for diffs], Fri Sep 2 20:07:41 2011 UTC (8 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.160: +42 -2 lines
Diff to previous 1.160 (colored)

add support for PRACE_FORK.

Revision 1.160 / (download) - annotate - [select for diffs], Wed Aug 31 22:58:39 2011 UTC (8 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.159: +13 -2 lines
Diff to previous 1.159 (colored)

PR# kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.

Revision 1.159 / (download) - annotate - [select for diffs], Tue Aug 30 22:45:55 2011 UTC (8 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.158: +5 -3 lines
Diff to previous 1.158 (colored)

Process the signal now, otherwise calling issignal() and ignoring
the return will lose the signal if it came from the debugger
(issignal() clears p->p_xstat)

Revision 1.158 / (download) - annotate - [select for diffs], Mon Aug 29 17:31:50 2011 UTC (8 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored)

PR# kern/43681: PT_SYSCALL appears to be broken

sys_ptrace: For PT_CONTINUE/PT_SYSCALL/PT_DETACH, modify the p_trace_enabled
flag of the target process, not the calling process.

Revision 1.157 / (download) - annotate - [select for diffs], Sun Jul 3 08:57:43 2011 UTC (10 months, 3 weeks ago) by mrg
Branch: MAIN
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (colored)

avoid some uninitialised variable warnings from GCC.
at least the puffs one seems valid, but i'm not 100% sure.

Revision 1.153.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:31 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.153.2.1: +2 -1 lines
Diff to previous 1.153.2.1 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

Sync with HEAD.

Revision 1.138.2.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:42 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.138.2.4: +63 -8 lines
Diff to previous 1.138.2.4 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

sync with head.

Revision 1.153.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:54 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.153.4.1: +4 -3 lines
Diff to previous 1.153.4.1 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

sync with head

Revision 1.156 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:31 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.155: +4 -3 lines
Diff to previous 1.155 (colored)

Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.

Revision 1.153.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:58 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.153: +61 -7 lines
Diff to previous 1.153 (colored)

sync with head

Revision 1.153.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:12 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.153: +61 -7 lines
Diff to previous 1.153 (colored)

Sync with HEAD.

Revision 1.155 / (download) - annotate - [select for diffs], Wed Apr 7 13:10:46 2010 UTC (2 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.154: +6 -3 lines
Diff to previous 1.154 (colored)

fix build for ports that don't have PT_STEP (Havard Eidnes)

Revision 1.154 / (download) - annotate - [select for diffs], Tue Apr 6 13:50:22 2010 UTC (2 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.153: +59 -8 lines
Diff to previous 1.153 (colored)

PR/43128: Paul Koning: Threads support in ptrace() is insufficient for gdb to
debug threaded live apps: Add an optional lwpid in PT_STEP and PT_CONTINUE to
indicate which lwp to operate on, and implement the glue required to make it
work.

Revision 1.138.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:19 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.138.2.3: +90 -26 lines
Diff to previous 1.138.2.3 (colored) to branchpoint 1.138 (colored)

sync with head

Revision 1.153 / (download) - annotate - [select for diffs], Thu Dec 17 01:25:10 2009 UTC (2 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.152: +2 -3 lines
Diff to previous 1.152 (colored)

Replace few USER_TO_UAREA/UAREA_TO_USER uses, reduce sys/user.h inclusions.

Revision 1.152 / (download) - annotate - [select for diffs], Mon Dec 14 00:48:35 2009 UTC (2 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.151: +11 -3 lines
Diff to previous 1.151 (colored)

Merge from matt-nb5-mips64

Revision 1.151 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (2 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.150: +7 -24 lines
Diff to previous 1.150 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.150 / (download) - annotate - [select for diffs], Sun Oct 4 03:15:08 2009 UTC (2 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.149: +2 -38 lines
Diff to previous 1.149 (colored)

Install floppies (haha) don't get built with ktrace/ptrace, so they don't
include kern/sys_process.c. Move proc_uidmatch() to kern/kern_proc.c which
always gets built instead.

Pointed out by Kurt Schreiner on current-users@:

    http://mail-index.netbsd.org/current-users/2009/10/03/msg010745.html

Revision 1.149 / (download) - annotate - [select for diffs], Fri Oct 2 22:38:45 2009 UTC (2 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.148: +37 -2 lines
Diff to previous 1.148 (colored)

Move rlimit policy back to the subsystem.

For this we needed proc_uidmatch() exposed, which makes a lot of sense,
so put it back in sys_process.c for use in other places as well.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Oct 2 22:18:57 2009 UTC (2 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.147: +77 -2 lines
Diff to previous 1.147 (colored)

Move ptrace's security policy back to the subsystem itself.

Add a ptrace_init() so we have a place to register the listener; called
next to ktrinit().

Revision 1.143.4.1.4.1 / (download) - annotate - [select for diffs], Sun Aug 23 03:38:19 2009 UTC (2 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.143.4.1: +11 -3 lines
Diff to previous 1.143.4.1 (colored) next main 1.143.4.2 (colored)

Change lazy fp load/save is done.  fpcurlwp is never NULL.
If no current lwp has the FP, then fpcurlwp is set to lwp0.
this allows many check for NULL and avoids a few null-derefs.
Since savefpregs clear COP1, loadfpregs can be called to reload
fpregs.  If it notices that situation, it just sets COP1 and returns
Save does not reset fpcurlwp, just clears COP1.  load does set fpcurlwp.

If MIPS3_SR_FR is set, all 32 64-bit FP registers are saved/restored via Xdc1.
If MIPS3_SR_FR is clear, only 32 32-bit FP register are saved/restore via Xwc1.
This preserves the existing ABI.

Revision 1.146.2.1 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:35 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.146: +4 -3 lines
Diff to previous 1.146 (colored) next main 1.147 (colored)

Sync with HEAD.

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:23 2009 UTC (2 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.138.2.2: +4 -3 lines
Diff to previous 1.138.2.2 (colored) to branchpoint 1.138 (colored)

sync with head.

Revision 1.147 / (download) - annotate - [select for diffs], Sun Jun 28 11:42:07 2009 UTC (2 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.146: +4 -3 lines
Diff to previous 1.146 (colored)

wrap a long line.

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.138.2.1: +26 -31 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored)

sync with head.

Revision 1.143.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.143.2.1: +22 -21 lines
Diff to previous 1.143.2.1 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

Sync with HEAD.

Revision 1.143.4.1 / (download) - annotate - [select for diffs], Fri Feb 6 01:54:09 2009 UTC (3 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3
Branch point for: matt-nb5-mips64
Changes since 1.143: +15 -16 lines
Diff to previous 1.143 (colored)

Pull up following revision(s) (requested by ad in ticket #414):
	sys/kern/kern_lwp.c: revision 1.127
	sys/kern/sys_process.c: revision 1.146
	sys/sys/lwp.h: revision 1.117
PR kern/36183 problem with ptrace and multithreaded processes
Fix the crashy test case that Thor provided.

Revision 1.146 / (download) - annotate - [select for diffs], Wed Feb 4 21:17:39 2009 UTC (3 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jym-xensuspend-base
Branch point for: jym-xensuspend
Changes since 1.145: +15 -16 lines
Diff to previous 1.145 (colored)

PR kern/36183 problem with ptrace and multithreaded processes

Fix the crashy test case that Thor provided.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Jan 22 14:38:35 2009 UTC (3 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.144: +9 -7 lines
Diff to previous 1.144 (colored)

malloc -> kmem_alloc

Revision 1.143.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.143: +3 -10 lines
Diff to previous 1.143 (colored)

Sync with HEAD.

Revision 1.135.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.135.6.4: +1 -8 lines
Diff to previous 1.135.6.4 (colored) to branchpoint 1.135 (colored) next main 1.136 (colored)

Sync with HEAD.

Revision 1.141.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:09 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.141.2.1: +3 -10 lines
Diff to previous 1.141.2.1 (colored) to branchpoint 1.141 (colored) next main 1.142 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.144 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:07 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.143: +3 -10 lines
Diff to previous 1.143 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.141.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:28 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.141: +4 -4 lines
Diff to previous 1.141 (colored)

Sync with HEAD.

Revision 1.135.6.4 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:32 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.135.6.3: +1 -1 lines
Diff to previous 1.135.6.3 (colored) to branchpoint 1.135 (colored)

Sync with HEAD.

Revision 1.135.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:53 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.135.6.2: +3 -2 lines
Diff to previous 1.135.6.2 (colored) to branchpoint 1.135 (colored)

Sync with HEAD.

Revision 1.143 / (download) - annotate - [select for diffs], Sat Sep 27 03:52:24 2008 UTC (3 years, 7 months ago) by wrstuden
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored)

Pull in a fix from wrstuden-revivesa:

Let's look for threads in the TARGET process, not in the
debugger process (gdb). Noticed when a KASSERT fired while
running gdb on a threaded app.

I will adjust wrstuden-revivesa-base-3 to include this change.

Revision 1.139.2.5 / (download) - annotate - [select for diffs], Sat Sep 27 03:45:43 2008 UTC (3 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.139.2.4: +3 -3 lines
Diff to previous 1.139.2.4 (colored) next main 1.140 (colored)

Let's look for threads in the TARGET process, not in the
debugger process (gdb). Noticed when a KASSERT fired while
running gdb on a threaded app.

Revision 1.139.2.4 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:43 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.139.2.3: +5 -4 lines
Diff to previous 1.139.2.3 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.142 / (download) - annotate - [select for diffs], Thu Aug 28 06:23:42 2008 UTC (3 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.141: +3 -3 lines
Diff to previous 1.141 (colored)

process_stoptrace: fix a locking botch.

Revision 1.140.2.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:12 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.140: +4 -3 lines
Diff to previous 1.140 (colored) next main 1.141 (colored)

Sync with head.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Jul 2 19:49:58 2008 UTC (3 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.140: +4 -3 lines
Diff to previous 1.140 (colored)

Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.

Revision 1.139.2.3 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.139.2.2: +12 -10 lines
Diff to previous 1.139.2.2 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.135.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:12 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.135.6.1: +90 -72 lines
Diff to previous 1.135.6.1 (colored) to branchpoint 1.135 (colored)

Sync with HEAD.

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:10 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.136: +92 -74 lines
Diff to previous 1.136 (colored) next main 1.137 (colored)

sync with head.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:27 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.138: +12 -17 lines
Diff to previous 1.138 (colored)

sync with head.

Revision 1.139.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:14 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.139.2.1: +2 -3 lines
Diff to previous 1.139.2.1 (colored)

Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.140 / (download) - annotate - [select for diffs], Tue May 13 09:16:11 2008 UTC (4 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl
Changes since 1.139: +12 -10 lines
Diff to previous 1.139 (colored)

sys_ptrace: fix a locking botch.  PR/38649 from Martin Husemann.

Revision 1.139.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:05 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.139: +3 -2 lines
Diff to previous 1.139 (colored)

Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.139 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:04 2008 UTC (4 years ago) by martin
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.138: +2 -9 lines
Diff to previous 1.138 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.138 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.137: +85 -56 lines
Diff to previous 1.137 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.137 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.136: +13 -19 lines
Diff to previous 1.136 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.135.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:04 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.135: +3 -2 lines
Diff to previous 1.135 (colored)

Sync with HEAD.

Revision 1.135.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.135: +3 -2 lines
Diff to previous 1.135 (colored) next main 1.136 (colored)

sync with head.

Revision 1.127.6.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.127.6.3: +6 -5 lines
Diff to previous 1.127.6.3 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

sync with HEAD

Revision 1.95.4.9 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:56 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.4.8: +3 -2 lines
Diff to previous 1.95.4.8 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

sync with head.

Revision 1.136 / (download) - annotate - [select for diffs], Sun Feb 24 18:30:07 2008 UTC (4 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.135: +3 -2 lines
Diff to previous 1.135 (colored)

Set p->p_trace_enabled in fork and whenever the controlling falgs change
instead of doing it in syscall_intern().
Note that syscall_intern() must still be called when the flags change
since many ports use a different copy of the syscall entry code when
tracing is enabled.

Revision 1.130.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:47 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.130.2.2: +9 -8 lines
Diff to previous 1.130.2.2 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored)

Sync with HEAD.

Revision 1.95.4.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:18 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.4.7: +5 -5 lines
Diff to previous 1.95.4.7 (colored) to branchpoint 1.95 (colored)

sync with head.

Revision 1.131.6.3 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:42 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.131.6.2: +3 -3 lines
Diff to previous 1.131.6.2 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored)

Sync with HEAD.

Revision 1.135 / (download) - annotate - [select for diffs], Wed Jan 23 15:04:40 2008 UTC (4 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, bouyer-xeni386-nbase
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.134: +5 -5 lines
Diff to previous 1.134 (colored)

Tons of process scope changes.

  - Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
    requests, and add specific requests for set/get scheduler policy and
    set/get scheduler parameters.

  - Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
    requests.

  - Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

  - Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
    process information is being looked at (entry itself, args, env,
    open files).

  - Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

  - Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

  - Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

  - Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.

Revision 1.95.4.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:24 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.4.6: +16 -13 lines
Diff to previous 1.95.4.6 (colored) to branchpoint 1.95 (colored)

sync with head

Revision 1.127.6.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:22 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.127.6.2: +16 -13 lines
Diff to previous 1.127.6.2 (colored) to branchpoint 1.127 (colored)

sync with HEAD

Revision 1.131.6.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:42 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.131.6.1: +2 -1 lines
Diff to previous 1.131.6.1 (colored) to branchpoint 1.131 (colored)

Sync with HEAD

Revision 1.134 / (download) - annotate - [select for diffs], Sat Jan 5 12:41:44 2008 UTC (4 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-base
Changes since 1.133: +4 -3 lines
Diff to previous 1.133 (colored)

Don't pass curlwp into process_stoptrace()

Revision 1.131.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:14 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.131: +14 -12 lines
Diff to previous 1.131 (colored)

Sync with HEAD

Revision 1.133 / (download) - annotate - [select for diffs], Mon Dec 31 15:32:12 2007 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.132: +4 -4 lines
Diff to previous 1.132 (colored)

Remove systrace. Ok core@.

Revision 1.130.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:11 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.130.2.1: +12 -10 lines
Diff to previous 1.130.2.1 (colored) to branchpoint 1.130 (colored)

Sync with HEAD.

Revision 1.131.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:15 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.131: +12 -10 lines
Diff to previous 1.131 (colored) next main 1.132 (colored)

Sync with head.

Revision 1.132 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:11 2007 UTC (4 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.131: +12 -10 lines
Diff to previous 1.131 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:54 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.130: +12 -16 lines
Diff to previous 1.130 (colored)

Sync with HEAD.

Revision 1.95.4.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:52 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.4.5: +12 -16 lines
Diff to previous 1.95.4.5 (colored) to branchpoint 1.95 (colored)

sync with head.

Revision 1.129.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:27 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.129: +13 -20 lines
Diff to previous 1.129 (colored) next main 1.130 (colored)

Sync with HEAD

Revision 1.127.4.4 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:12 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.127.4.3: +12 -16 lines
Diff to previous 1.127.4.3 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

Sync with HEAD.

Revision 1.127.6.2 / (download) - annotate - [select for diffs], Thu Nov 8 11:00:07 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.127.6.1: +12 -16 lines
Diff to previous 1.127.6.1 (colored) to branchpoint 1.127 (colored)

sync with -HEAD

Revision 1.131 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:24 2007 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.130: +12 -16 lines
Diff to previous 1.130 (colored)

Merge from vmlocking:

- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.

Revision 1.127.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:33 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
Changes since 1.127: +7 -8 lines
Diff to previous 1.127 (colored)

sync with HEAD

Revision 1.127.4.3 / (download) - annotate - [select for diffs], Sun Oct 28 20:11:13 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.127.4.2: +3 -6 lines
Diff to previous 1.127.4.2 (colored) to branchpoint 1.127 (colored)

Sync with HEAD.

Revision 1.95.4.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:36 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.4.4: +7 -8 lines
Diff to previous 1.95.4.4 (colored) to branchpoint 1.95 (colored)

sync with head.

Revision 1.127.4.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:43 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.127.4.1: +4 -2 lines
Diff to previous 1.127.4.1 (colored) to branchpoint 1.127 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.123.2.8 / (download) - annotate - [select for diffs], Thu Oct 25 20:44:21 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.123.2.7: +6 -6 lines
Diff to previous 1.123.2.7 (colored) next main 1.124 (colored)

Fix error in previous.

Revision 1.123.2.7 / (download) - annotate - [select for diffs], Thu Oct 25 19:43:11 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.123.2.6: +10 -14 lines
Diff to previous 1.123.2.6 (colored)

- Simplify debugger/procfs reference counting of processes. Use a per-proc
  rwlock: rw_tryenter(RW_READER) to gain a reference, and rw_enter(RW_WRITER)
  by the process itself to drain out reference holders before major changes
  like exiting.
- Fix numerous bugs and locking issues in procfs.
- Mark procfs MPSAFE.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Oct 24 14:50:41 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.129: +3 -6 lines
Diff to previous 1.129 (colored)

Make ras_lookup() lockless.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:47 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.128: +4 -2 lines
Diff to previous 1.128 (colored) next main 1.129 (colored)

sync with head.

Revision 1.123.2.6 / (download) - annotate - [select for diffs], Fri Oct 12 13:48:55 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.123.2.5: +4 -4 lines
Diff to previous 1.123.2.5 (colored)

Fix merge errors.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Oct 8 14:08:26 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.128: +4 -2 lines
Diff to previous 1.128 (colored)

Merge from vmlocking: don't add a refrerence to a dying LWP.

Revision 1.127.4.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:05 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored)

Sync with HEAD.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Sep 21 19:14:13 2007 UTC (4 years, 8 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base
Branch point for: yamt-x86pmap
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored)

Include sys/cdefs.h first.

Revision 1.95.4.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:09 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.4.3: +38 -27 lines
Diff to previous 1.95.4.3 (colored) to branchpoint 1.95 (colored)

sync with head.

Revision 1.123.2.5 / (download) - annotate - [select for diffs], Sat Aug 18 05:36:45 2007 UTC (4 years, 9 months ago) by yamt
Branch: vmlocking
Changes since 1.123.2.4: +4 -2 lines
Diff to previous 1.123.2.4 (colored)

sys_ptrace: don't lwp_addref on a possibly LSZOMB LWP.  ok'ed by Andrew Doran.

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:16 2007 UTC (4 years, 9 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored) next main 1.127 (colored)

Sync with HEAD.

Revision 1.127.8.2 / (download) - annotate - [select for diffs], Sat Jul 21 19:21:54 2007 UTC (4 years, 10 months ago) by ad
Branch: matt-mips64
Changes since 1.127.8.1: +947 -0 lines
Diff to previous 1.127.8.1 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

Merge unobtrusive locking changes from the vmlocking branch.

Revision 1.127.8.1, Sat Jul 21 19:21:53 2007 UTC (4 years, 10 months ago) by ad
Branch: matt-mips64
Changes since 1.127: +0 -947 lines
FILE REMOVED

file sys_process.c was added on branch matt-mips64 on 2007-07-21 19:21:54 +0000

Revision 1.127 / (download) - annotate - [select for diffs], Sat Jul 21 19:21:53 2007 UTC (4 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored)

Merge unobtrusive locking changes from the vmlocking branch.

Revision 1.123.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:11 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.123: +20 -13 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

Sync with head.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:56 2007 UTC (4 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.125: +10 -10 lines
Diff to previous 1.125 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.123.2.4 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:25 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.123.2.3: +10 -5 lines
Diff to previous 1.123.2.3 (colored)

Sync with head.

Revision 1.120.2.5 / (download) - annotate - [select for diffs], Mon May 7 10:55:47 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.120.2.4: +10 -5 lines
Diff to previous 1.120.2.4 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)

sync with head.

Revision 1.125 / (download) - annotate - [select for diffs], Thu Apr 19 22:42:10 2007 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.124: +10 -5 lines
Diff to previous 1.124 (colored)

process_stoptrace: after setting a pending stop on curproc, call issignal
once to have it do the needful. PR kern/36161.

Revision 1.123.2.3 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:40 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.123.2.2: +4 -2 lines
Diff to previous 1.123.2.2 (colored)

Sync with head.

Revision 1.123.2.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:38:37 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.123.2.1: +12 -12 lines
Diff to previous 1.123.2.1 (colored)

- Make context switch counters 64-bit, and count the total number of
  context switches + voluntary, instead of involuntary + voluntary.
- Add lwp::l_swaplock for uvm.
- PHOLD/PRELE are replaced.

Revision 1.120.2.4 / (download) - annotate - [select for diffs], Sat Mar 24 14:56:05 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.120.2.3: +4 -2 lines
Diff to previous 1.120.2.3 (colored) to branchpoint 1.120 (colored)

sync with head.

Revision 1.123.6.1 / (download) - annotate - [select for diffs], Sun Mar 18 00:06:44 2007 UTC (5 years, 2 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.123: +4 -2 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

First attempt to bring branch in sync with HEAD

Revision 1.124 / (download) - annotate - [select for diffs], Thu Mar 15 20:55:15 2007 UTC (5 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.123: +4 -2 lines
Diff to previous 1.123 (colored)

Restore previous semantics of PT_LWPINFO and make sure to lwp_addref the
LWP.

OK'ed by ad.

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:50:58 2007 UTC (5 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored)

Pull in the initial set of changes for the vmlocking branch.

Revision 1.120.2.3 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:42 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.120.2.2: +18 -14 lines
Diff to previous 1.120.2.2 (colored) to branchpoint 1.120 (colored)

Sync with HEAD.

Revision 1.120.2.2 / (download) - annotate - [select for diffs], Fri Mar 9 15:16:25 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.120.2.1: +3 -3 lines
Diff to previous 1.120.2.1 (colored) to branchpoint 1.120 (colored)

Checkpoint:

- Addition of scheduler-specific pointers in the struct proc, lwp and
  schedstate_percpu.
- Addition of sched_lwp_fork(), sched_lwp_exit() and sched_slept() hooks.
- mi_switch() now has only one argument.
- sched_nextlwp(void) becomes sched_switch(struct lwp *) and does an
  enqueueing of LWP.
- Addition of general kern.sched sysctl node.
- Remove twice called uvmexp.swtch++, other cleanups.

Discussed on tech-kern@

Revision 1.123 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:26 2007 UTC (5 years, 2 months ago) by ad
Branch: MAIN
Branch point for: vmlocking, reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.122: +14 -10 lines
Diff to previous 1.122 (colored)

- Make the proclist_lock a mutex. The write:read ratio is unfavourable,
  and mutexes are cheaper use than RW locks.
- LOCK_ASSERT -> KASSERT in some places.
- Hold proclist_lock/kernel_lock longer in a couple of places.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:09 2007 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.121: +6 -6 lines
Diff to previous 1.121 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:30 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.120: +6 -6 lines
Diff to previous 1.120 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.95.4.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:17 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.4.2: +264 -161 lines
Diff to previous 1.95.4.2 (colored) to branchpoint 1.95 (colored)

sync with head.

Revision 1.121 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:44 2007 UTC (5 years, 3 months ago) by pavel
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.120: +6 -6 lines
Diff to previous 1.120 (colored)

Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.119: +264 -161 lines
Diff to previous 1.119 (colored)

Merge newlock2 to head.

Revision 1.110.2.9 / (download) - annotate - [select for diffs], Wed Jan 31 19:56:38 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.110.2.8: +16 -15 lines
Diff to previous 1.110.2.8 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

- Have callers to mi_switch() drop the kernel lock.
- Fix a deadlock and some typos.
- Unbreak ptrace().

Revision 1.110.2.8 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:41 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.110.2.7: +2 -4 lines
Diff to previous 1.110.2.7 (colored) to branchpoint 1.110 (colored)

Remove support for SA. Ok core@.

Revision 1.110.2.7 / (download) - annotate - [select for diffs], Sat Jan 27 01:29:05 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.110.2.6: +3 -116 lines
Diff to previous 1.110.2.6 (colored) to branchpoint 1.110 (colored)

- Job control shouldn't affect LWPs sleeping interruptably.
- Remove another use of mtsleep().

Revision 1.110.2.6 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:07 2007 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.110.2.5: +67 -113 lines
Diff to previous 1.110.2.5 (colored) to branchpoint 1.110 (colored)

Sync with head.

Revision 1.95.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:06 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.4.1: +92 -118 lines
Diff to previous 1.95.4.1 (colored) to branchpoint 1.95 (colored)

sync with head.

Revision 1.110.2.5 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.110.2.4: +108 -91 lines
Diff to previous 1.110.2.4 (colored) to branchpoint 1.110 (colored)

Checkpoint work in progress.

Revision 1.119 / (download) - annotate - [select for diffs], Wed Dec 27 10:02:46 2006 UTC (5 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.118: +33 -69 lines
Diff to previous 1.118 (colored)

Refactor a bit the ptrace(2) code: first make the keep-kernel-stable
decisions, then have a kauth(9) call for security policy enforcement,
and only then proceed to processing each request.

Add a KAUTH_PROCESS_CANSEE call right after pfind(). This should really
be done differently, so mark it with XXX.

Revision 1.110.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:45 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.110.4.1: +92 -95 lines
Diff to previous 1.110.4.1 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

sync with head.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Dec 6 18:54:02 2006 UTC (5 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.117: +7 -7 lines
Diff to previous 1.117 (colored)

get the vmspace first before you try to use it.

Revision 1.117 / (download) - annotate - [select for diffs], Mon Dec 4 18:50:19 2006 UTC (5 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.116: +21 -12 lines
Diff to previous 1.116 (colored)

PR/25741: ITOH Yasufumi: ras(9) sequence is not protected against ptrace(2)

Okay christos@

Revision 1.116 / (download) - annotate - [select for diffs], Tue Nov 28 17:58:10 2006 UTC (5 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.115: +5 -61 lines
Diff to previous 1.115 (colored)

Kill process_checkioperm().

While here, adjust comments.

Revision 1.115 / (download) - annotate - [select for diffs], Tue Nov 28 17:27:09 2006 UTC (5 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.114: +64 -18 lines
Diff to previous 1.114 (colored)

Move ktrace, ptrace, systrace, and procfs to use kauth(9).

First, remove process_checkioperm() calls from MD code. Similar checks
using kauth(9) routines (on the process scope, using appropriate action)
are done in the callers.

Add secmodel back-end to handle each subsystem.

Revision 1.110.2.4 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:23 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.110.2.3: +7 -8 lines
Diff to previous 1.110.2.3 (colored) to branchpoint 1.110 (colored)

Sync with head.

Revision 1.110.2.3 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:37 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.110.2.2: +345 -142 lines
Diff to previous 1.110.2.2 (colored) to branchpoint 1.110 (colored)

Checkpoint work in progress.

Revision 1.114 / (download) - annotate - [select for diffs], Mon Nov 13 02:52:08 2006 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.113: +5 -5 lines
Diff to previous 1.113 (colored)

for pt_syscall, send a signal to our parent, not out grandparent. Noted by
mrg and ad.

Revision 1.95.2.2.2.1 / (download) - annotate - [select for diffs], Sat Nov 11 21:44:14 2006 UTC (5 years, 6 months ago) by bouyer
Branch: netbsd-3-1
CVS Tags: netbsd-3-1-1-RELEASE
Changes since 1.95.2.2: +3 -3 lines
Diff to previous 1.95.2.2 (colored) next main 1.95.2.3 (colored)

Pull up following revision(s) (requested by christos in ticket #1574):
	sys/kern/sys_process.c: revision 1.112
check for negative length in PT_COREDUMP (from Neil)

Revision 1.95.12.3 / (download) - annotate - [select for diffs], Sat Nov 11 21:43:16 2006 UTC (5 years, 6 months ago) by bouyer
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE
Changes since 1.95.12.2: +3 -3 lines
Diff to previous 1.95.12.2 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Pull up following revision(s) (requested by christos in ticket #1574):
	sys/kern/sys_process.c: revision 1.112
check for negative length in PT_COREDUMP (from Neil)

Revision 1.95.2.3 / (download) - annotate - [select for diffs], Sat Nov 11 21:40:19 2006 UTC (5 years, 6 months ago) by bouyer
Branch: netbsd-3
Changes since 1.95.2.2: +3 -3 lines
Diff to previous 1.95.2.2 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Pull up following revision(s) (requested by christos in ticket #1574):
	sys/kern/sys_process.c: revision 1.112
check for negative length in PT_COREDUMP (from Neil)

Revision 1.113 / (download) - annotate - [select for diffs], Wed Nov 1 09:46:14 2006 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.112: +6 -8 lines
Diff to previous 1.112 (colored)

kill signal "dolock" hacks.

related to PR/32962 and PR/34895.  reviewed by matthew green.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Oct 28 17:58:22 2006 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored)

check for negative length in PT_COREDUMP (from Neil)

Revision 1.95.12.2 / (download) - annotate - [select for diffs], Thu Oct 26 10:23:23 2006 UTC (5 years, 7 months ago) by tron
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-2-RELEASE
Changes since 1.95.12.1: +3 -3 lines
Diff to previous 1.95.12.1 (colored) to branchpoint 1.95 (colored)

Remove unused variable to fix build problem caused by ticket #1556.

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Thu Oct 26 10:23:11 2006 UTC (5 years, 7 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE
Branch point for: netbsd-3-1
Changes since 1.95.2.1: +3 -3 lines
Diff to previous 1.95.2.1 (colored) to branchpoint 1.95 (colored)

Remove unused variable to fix build problem caused by ticket #1556.

Revision 1.95.12.1 / (download) - annotate - [select for diffs], Wed Oct 25 19:14:00 2006 UTC (5 years, 7 months ago) by tron
Branch: netbsd-3-0
Changes since 1.95: +7 -10 lines
Diff to previous 1.95 (colored)

Pull up following revision(s) (requested by christos in ticket #1556):
	sys/kern/sys_process.c: revision 1.111 via patch
Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Wed Oct 25 19:11:41 2006 UTC (5 years, 7 months ago) by tron
Branch: netbsd-3
Changes since 1.95: +7 -10 lines
Diff to previous 1.95 (colored)

Pull up following revision(s) (requested by christos in ticket #1556):
	sys/kern/sys_process.c: revision 1.111 via patch
Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.

Revision 1.110.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:11 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.110: +8 -11 lines
Diff to previous 1.110 (colored)

sync with head

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Sat Oct 21 15:20:47 2006 UTC (5 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.110.2.1: +35 -33 lines
Diff to previous 1.110.2.1 (colored) to branchpoint 1.110 (colored)

Checkpoint work in progress on locking and per-LWP signals. Very much a
a work in progress and there is still a lot to do.

Revision 1.86.6.1 / (download) - annotate - [select for diffs], Mon Oct 16 17:57:34 2006 UTC (5 years, 7 months ago) by bouyer
Branch: netbsd-2-1
Changes since 1.86: +8 -11 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Pull up following revision(s) (requested by christos in ticket #10720):
	sys/kern/sys_process.c: revision 1.111 via patch
Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Mon Oct 16 17:56:59 2006 UTC (5 years, 7 months ago) by bouyer
Branch: netbsd-2-0
Changes since 1.86: +8 -11 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Pull up following revision(s) (requested by christos in ticket #10720):
	sys/kern/sys_process.c: revision 1.111 via patch
Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.

Revision 1.86.4.1 / (download) - annotate - [select for diffs], Mon Oct 16 17:56:26 2006 UTC (5 years, 7 months ago) by bouyer
Branch: netbsd-2
Changes since 1.86: +8 -11 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Pull up following revision(s) (requested by christos in ticket #10720):
	sys/kern/sys_process.c: revision 1.111 via patch
Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.

Revision 1.111 / (download) - annotate - [select for diffs], Sun Oct 15 15:20:09 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.110: +8 -11 lines
Diff to previous 1.110 (colored)

Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Mon Sep 11 18:07:25 2006 UTC (5 years, 8 months ago) by ad
Branch: newlock2
Changes since 1.110: +6 -6 lines
Diff to previous 1.110 (colored)

- Convert some lockmgr() locks to mutexes and RW locks.
- Acquire proclist_lock and p_crmutex in some obvious places.

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:17 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.97: +108 -29 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

sync with head

Revision 1.99.2.6 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.99.2.5: +18 -2 lines
Diff to previous 1.99.2.5 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)

sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Sep 1 21:05:33 2006 UTC (5 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.109: +5 -3 lines
Diff to previous 1.109 (colored)

process_domem exists for ktrace/ptrace/systrace

Revision 1.109 / (download) - annotate - [select for diffs], Thu Aug 31 18:05:21 2006 UTC (5 years, 8 months ago) by dogcow
Branch: MAIN
Changes since 1.108: +3 -5 lines
Diff to previous 1.108 (colored)

process_stoptrace is also used by PTRACE; fixes INSTALL_SMALL, GENERIC_TINY,
et al, where KTRACE isn't defined but PTRACE is.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Aug 30 13:55:03 2006 UTC (5 years, 8 months ago) by cube
Branch: MAIN
Changes since 1.107: +4 -2 lines
Diff to previous 1.107 (colored)

Let those compile under "no options COREDUMP".

Revision 1.107 / (download) - annotate - [select for diffs], Wed Aug 30 11:08:15 2006 UTC (5 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.106: +9 -2 lines
Diff to previous 1.106 (colored)

sys_process.c is also used by KTRACE.

Revision 1.106 / (download) - annotate - [select for diffs], Wed Aug 30 10:17:49 2006 UTC (5 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.105: +3 -2 lines
Diff to previous 1.105 (colored)

#include "opt_ptrace.h"

Revision 1.105 / (download) - annotate - [select for diffs], Tue Aug 29 23:34:48 2006 UTC (5 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.104: +8 -2 lines
Diff to previous 1.104 (colored)

Make PTRACE and COREDUMP optional.  Make the default (status quo) by putting
them in conf/std.

Revision 1.99.2.5 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:47 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.99.2.4: +11 -11 lines
Diff to previous 1.99.2.4 (colored) to branchpoint 1.99 (colored)

sync with head

Revision 1.104 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.103: +11 -11 lines
Diff to previous 1.103 (colored)

Use the LWP cached credentials where sane.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:38 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95: +118 -60 lines
Diff to previous 1.95 (colored)

sync with head.

Revision 1.97.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:09 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.97.6.1: +9 -6 lines
Diff to previous 1.97.6.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

Sync with head.

Revision 1.101.4.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (6 years ago) by tron
Branch: peter-altq
Changes since 1.101: +20 -10 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.99.2.4 / (download) - annotate - [select for diffs], Wed May 24 10:58:41 2006 UTC (6 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.99.2.3: +9 -6 lines
Diff to previous 1.99.2.3 (colored) to branchpoint 1.99 (colored)

sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (6 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.102: +9 -6 lines
Diff to previous 1.102 (colored)

integrate kauth.

Revision 1.101.2.5 / (download) - annotate - [select for diffs], Sat May 6 23:31:30 2006 UTC (6 years ago) by christos
Branch: elad-kernelauth
Changes since 1.101.2.4: +3 -2 lines
Diff to previous 1.101.2.4 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.97.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:59 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.97: +82 -22 lines
Diff to previous 1.97 (colored)

Sync with head.

Revision 1.101.2.4 / (download) - annotate - [select for diffs], Wed Apr 19 05:14:00 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.101.2.3: +13 -6 lines
Diff to previous 1.101.2.3 (colored) to branchpoint 1.101 (colored)

sync with head.

Revision 1.99.2.3 / (download) - annotate - [select for diffs], Tue Apr 11 11:55:47 2006 UTC (6 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.99.2.2: +13 -6 lines
Diff to previous 1.99.2.2 (colored) to branchpoint 1.99 (colored)

sync with head

Revision 1.102 / (download) - annotate - [select for diffs], Sat Apr 1 22:34:00 2006 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, elad-kernelauth-base
Changes since 1.101: +13 -6 lines
Diff to previous 1.101 (colored)

PR/26804: Jason Thorpe: Make PT_DUMPCORE require the process to be PT_ATTACH'ed
first so that it is stopped and there are no races.

Revision 1.99.2.2 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:32 2006 UTC (6 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.99.2.1: +849 -0 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored)

sync with head.

Revision 1.101.2.3 / (download) - annotate - [select for diffs], Fri Mar 10 13:53:24 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.101.2.2: +4 -4 lines
Diff to previous 1.101.2.2 (colored) to branchpoint 1.101 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.101.2.2 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:40 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.101.2.1: +851 -0 lines
Diff to previous 1.101.2.1 (colored) to branchpoint 1.101 (colored)

Adapt to kernel authorization KPI.

Revision 1.101.2.1, Tue Mar 7 07:19:44 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.101: +0 -849 lines
FILE REMOVED

file sys_process.c was added on branch elad-kernelauth on 2006-03-08 00:53:40 +0000

Revision 1.101 / (download) - annotate - [select for diffs], Tue Mar 7 07:19:44 2006 UTC (6 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq, elad-kernelauth
Changes since 1.100: +6 -2 lines
Diff to previous 1.100 (colored)

Wrap calls to (*e_syscall_intern)() in __HAVE_SYSCALL_INTERN.  Fixes
VAX build.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Mar 5 16:57:16 2006 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.99: +2 -7 lines
Diff to previous 1.99 (colored)

Move ISSET/SET/CLR macros to sys/types.h

Revision 1.99.2.1, Sun Mar 5 07:21:38 2006 UTC (6 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.99: +0 -850 lines
FILE REMOVED

file sys_process.c was added on branch yamt-pdpolicy on 2006-03-13 09:07:32 +0000

Revision 1.99 / (download) - annotate - [select for diffs], Sun Mar 5 07:21:38 2006 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base
Branch point for: yamt-pdpolicy
Changes since 1.98: +43 -3 lines
Diff to previous 1.98 (colored)

implement PT_SYSCALL

Revision 1.98 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (6 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.97: +26 -12 lines
Diff to previous 1.97 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 11:14:01 2005 UTC (6 years, 4 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.97: +26 -12 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

uio_segflg/uio_lwp -> uio_vmspace.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.96: +31 -27 lines
Diff to previous 1.96 (colored)

merge ktrace-lwp.

Revision 1.83.2.9 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:12 2005 UTC (6 years, 5 months ago) by christos
Branch: ktrace-lwp
Changes since 1.83.2.8: +15 -25 lines
Diff to previous 1.83.2.8 (colored) next main 1.84 (colored)

Sync with head.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Dec 7 05:57:38 2005 UTC (6 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.95: +15 -24 lines
Diff to previous 1.95 (colored)

Use ANSI function decls.

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.94: +6 -6 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

sync with -current

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.94: +6 -6 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.83.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:00 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.83.2.7: +6 -6 lines
Diff to previous 1.83.2.7 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.95 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-1-RELEASE, kent-audio2-base
Branch point for: yamt-lazymbuf, netbsd-3-0, netbsd-3
Changes since 1.94: +6 -6 lines
Diff to previous 1.94 (colored)

nuke trailing whitespace

Revision 1.83.2.7 / (download) - annotate - [select for diffs], Thu Feb 24 17:22:33 2005 UTC (7 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.83.2.6: +3 -2 lines
Diff to previous 1.83.2.6 (colored)

Reduce diff to HEAD

Revision 1.83.2.6 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:26 2005 UTC (7 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.83.2.5: +21 -3 lines
Diff to previous 1.83.2.5 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Jan 9 20:25:26 2005 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, matt-timespec, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

Flip the order of two lines I mixed. Thanks to wiz for noticing.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Jan 9 19:22:55 2005 UTC (7 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.92: +21 -3 lines
Diff to previous 1.92 (colored)

Allow PT_DUMPCORE to specify the core filename.

Revision 1.83.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:13 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.83.2.4: +38 -34 lines
Diff to previous 1.83.2.4 (colored)

Fix the sync with head I botched.

Revision 1.83.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:03 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.83.2.3: +34 -38 lines
Diff to previous 1.83.2.3 (colored)

Sync with HEAD.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Sep 17 14:11:25 2004 UTC (7 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).

OK'd by Jason Thorpe

Revision 1.83.2.3 / (download) - annotate - [select for diffs], Thu Aug 12 15:33:53 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.83.2.2: +3 -5 lines
Diff to previous 1.83.2.2 (colored)

Fix a build problem for some platforms.

Revision 1.83.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:55 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.83.2.1: +67 -22 lines
Diff to previous 1.83.2.1 (colored)

Sync with HEAD

Revision 1.91 / (download) - annotate - [select for diffs], Tue Jun 22 02:06:55 2004 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.90: +2 -5 lines
Diff to previous 1.90 (colored)

Don't check for negative offset in the memory case. 64 bit addresses can
have the high bit set, and thus be interpreted as negative offsets. This
is not a problem because uvm_io() does all the range checks.

Revision 1.90 / (download) - annotate - [select for diffs], Wed May 26 16:28:05 2004 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored)

(off_t)(long) is wrong when it comes to kernel addresses [because on a 32 bit
machine if the high bit is set they turn negative]. Make an intermediate cast
to unsigned long.

Revision 1.89 / (download) - annotate - [select for diffs], Fri May 14 16:36:33 2004 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.88: +15 -10 lines
Diff to previous 1.88 (colored)

Check for bad offsets at the beginning of the functions to save processing.
Idea from OpenBSD.

Revision 1.88 / (download) - annotate - [select for diffs], Tue May 4 21:58:47 2004 UTC (8 years ago) by pk
Branch: MAIN
Changes since 1.87: +6 -2 lines
Diff to previous 1.87 (colored)

proc_reparent() must be called with proclist write lock held. Make it so.

Revision 1.87 / (download) - annotate - [select for diffs], Tue May 4 21:33:40 2004 UTC (8 years ago) by pk
Branch: MAIN
Changes since 1.86: +15 -8 lines
Diff to previous 1.86 (colored)

Since a `vmspace' always includes a `vm_map' we can re-use vm_map's
reference count lock to also protect the vmspace's reference count.

Revision 1.86 / (download) - annotate - [select for diffs], Sat Mar 13 18:43:18 2004 UTC (8 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-1, netbsd-2-0, netbsd-2
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored)

Only do the pmap_procwr if the uvm_io succeeded.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Nov 4 10:33:15 2003 UTC (8 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead.
Remove p_raslock and rename p_lwplock p_lock (one lock is enough).
Simplify window test when adding a ras and correct test on VM_MAXUSER_ADDRESS.
Avoid unpredictable branch in i386 locore.S
(pad fields left in struct proc to avoid kernel bump)

Revision 1.84 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:55 2003 UTC (8 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.83: +36 -4 lines
Diff to previous 1.83 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:42 2003 UTC (8 years, 10 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.83: +38 -32 lines
Diff to previous 1.83 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:27 2003 UTC (8 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.82: +30 -36 lines
Diff to previous 1.82 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.82 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:56 2003 UTC (8 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.81: +38 -32 lines
Diff to previous 1.81 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.81 / (download) - annotate - [select for diffs], Tue May 20 18:16:09 2003 UTC (9 years ago) by nathanw
Branch: MAIN
Changes since 1.80: +35 -3 lines
Diff to previous 1.80 (colored)

Add a ptrace interface for iterating over and collecting information
about LWPs. Loosely inspired by a similar interface in HP-UX ttrace(2).

Revision 1.80 / (download) - annotate - [select for diffs], Fri Feb 7 21:44:45 2003 UTC (9 years, 3 months ago) by nathanw
Branch: MAIN
Changes since 1.79: +12 -4 lines
Diff to previous 1.79 (colored)

Adapt to the new conventions of proc_unstop() and don't try to call
setrunnable(NULL).

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jan 23 17:35:32 2003 UTC (9 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.78: +6 -2 lines
Diff to previous 1.78 (colored)

PT_DUMPCORE support.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:34 2003 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.77: +59 -29 lines
Diff to previous 1.77 (colored)

Merge the nathanw_sa branch.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Wed Dec 18 01:06:16 2002 UTC (9 years, 5 months ago) by gmcgarry
Branch: gmcgarry_ucred
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

Merge pcred and ucred, and poolify.  TBD: check backward compatibility
and factor-out some higher-level functionality.

Revision 1.66.2.22 / (download) - annotate - [select for diffs], Thu Oct 17 00:27:46 2002 UTC (9 years, 7 months ago) by gmcgarry
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.66.2.21: +10 -10 lines
Diff to previous 1.66.2.21 (colored) next main 1.67 (colored)

All _validfoo functions revert to taking struct proc *.

Revision 1.66.2.21 / (download) - annotate - [select for diffs], Thu Oct 10 22:27:15 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.20: +18 -2 lines
Diff to previous 1.66.2.20 (colored)

Use the "data" parameter to ptrace to select a LWP for register
operations if it is nonzero and there is more than one LWP.

Revision 1.66.2.20 / (download) - annotate - [select for diffs], Tue Sep 17 22:14:17 2002 UTC (9 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.19: +3 -3 lines
Diff to previous 1.66.2.19 (colored)

LWPify recent changes.

Revision 1.66.2.19 / (download) - annotate - [select for diffs], Tue Sep 17 21:22:19 2002 UTC (9 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.18: +15 -5 lines
Diff to previous 1.66.2.18 (colored)

Catch up to -current.

Revision 1.68.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:10 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.68.2.4: +33 -25 lines
Diff to previous 1.68.2.4 (colored) next main 1.69 (colored)

sync kqueue branch with HEAD

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:12 2002 UTC (9 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.74: +33 -25 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

catch up with -current.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Aug 28 07:27:14 2002 UTC (9 years, 9 months ago) by gmcgarry
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Branch point for: gmcgarry_ucred
Changes since 1.76: +17 -7 lines
Diff to previous 1.76 (colored)

Attempt to protect restartable atomic sequences of a traced process
being written to.  Breakpoints aren't good in a RAS.  This test isn't
infallible, since we can't protect memory which will be registered
as a RAS in the future.

Also, set the PC before attempting to single-step, so we can backout
from single-stepping.  Just in case we try to single-step into a RAS.

Revision 1.66.2.18 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:34 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.17: +8 -10 lines
Diff to previous 1.66.2.17 (colored)

Catch up to -current.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Aug 25 23:23:22 2002 UTC (9 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.75: +10 -12 lines
Diff to previous 1.75 (colored)

Fix some signed/unsigned comparison warnings from GCC 3.3.

Revision 1.66.2.17 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:25 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.16: +10 -10 lines
Diff to previous 1.66.2.16 (colored)

Catch up to -current.

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Mon Jul 29 15:37:38 2002 UTC (9 years, 9 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.74: +10 -10 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

Pull up revision 1.75 (requested by jdolocek in ticket #557):
Make sure that the pointer to old parent process for ptraced children
gets reset properly when the old parent exits before the child. A flag
is set in old parent process when the child is reparented in ptrace(2).
If it's set when process is exiting, all running processes have their
'old parent process' pointer checked and reset if appropriate. Also
change to use 'struct proc *' pointer directly, rather than pid_t.
This fixes security/14444 by David Sainty.
Reviewed by Christos Zoulas.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jul 25 20:04:02 2002 UTC (9 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.74: +10 -10 lines
Diff to previous 1.74 (colored)

Make sure that the pointer to old parent process for ptraced children
gets reset properly when the old parent exits before the child. A flag
is set in old parent process when the child is reparented in ptrace(2).
If it's set when process is exiting, all running processes have their
'old parent process' pointer checked and reset if appropriate. Also
change to use 'struct proc *' pointer directly, rather than pid_t.
This fixes security/14444 by David Sainty.

Reviewed by Christos Zoulas.

Revision 1.66.2.16 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:21 2002 UTC (9 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.15: +2 -3 lines
Diff to previous 1.66.2.15 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.68.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:36 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.68.2.3: +246 -9 lines
Diff to previous 1.68.2.3 (colored)

catch up with -current on kqueue branch

Revision 1.66.2.15 / (download) - annotate - [select for diffs], Thu Jun 20 23:04:23 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.14: +24 -24 lines
Diff to previous 1.66.2.14 (colored)

LWPify the sys_process/procfs rearrangement.

Revision 1.66.2.14 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:22 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.13: +216 -10 lines
Diff to previous 1.66.2.13 (colored)

Catch up to -current.

Revision 1.66.2.13 / (download) - annotate - [select for diffs], Wed May 29 21:33:15 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.12: +3 -2 lines
Diff to previous 1.66.2.12 (colored)

#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)

Revision 1.74 / (download) - annotate - [select for diffs], Thu May 9 15:44:45 2002 UTC (10 years ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.73: +216 -10 lines
Diff to previous 1.73 (colored)

Move code shared by procfs and the kernel proper out of procfs and
into the kernel proper (renaming functions from procfs_* to process_*).

Revision 1.66.2.12 / (download) - annotate - [select for diffs], Mon Apr 1 21:31:33 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.11: +3 -3 lines
Diff to previous 1.66.2.11 (colored)

procfs_domem() should take proc *, proc *; not proc *, lwp *.

Revision 1.66.2.11 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:57 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.10: +33 -2 lines
Diff to previous 1.66.2.10 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.73 / (download) - annotate - [select for diffs], Sun Mar 17 17:02:45 2002 UTC (10 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.72: +33 -2 lines
Diff to previous 1.72 (colored)

Add a new ptrace request, PT_IO, as proposed by Artur Grabowski
on the <bsd-api-discuss@wasabisystems.com> mailing list.  PT_IO
is a more general inferior I/D space I/O mechanism.  FreeBSD and
OpenBSD have also added PT_IO.

From lha@stacken.kth.se, kern/15945.

Revision 1.66.2.10 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:46 2002 UTC (10 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.9: +2 -2 lines
Diff to previous 1.66.2.9 (colored)

Catch up to -current.

Revision 1.68.2.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:24 2002 UTC (10 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.68.2.2: +6 -2 lines
Diff to previous 1.68.2.2 (colored)

Sync w/ -current.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Mon Jan 14 15:19:04 2002 UTC (10 years, 4 months ago) by he
Branch: netbsd-1-4
Changes since 1.61: +5 -1 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Pull up revision 1.72 (requested by he):
  Fix a ptrace/execve race condition which could be used to modify
  the child process' image during execve.  This would be a security
  issue due to setuid programs.

Revision 1.61.18.3 / (download) - annotate - [select for diffs], Sat Jan 12 01:03:07 2002 UTC (10 years, 4 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.61.18.2: +5 -1 lines
Diff to previous 1.61.18.2 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)

Pull up revision 1.72 (requested by christos):
  Fix a ptrace/execve race condition which could be used to modify
  the child process' image during execve.  This would be a security
  issue due to setuid programs.

Revision 1.66.2.9 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:39 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.8: +6 -2 lines
Diff to previous 1.66.2.8 (colored)

More catchup.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Jan 11 21:16:28 2002 UTC (10 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll
Changes since 1.71: +6 -2 lines
Diff to previous 1.71 (colored)

Fix a ptrace/execve race that could be used to modify the child process's
image during execve. This is a security issue because one can
do that to setuid programs... From FreeBSD.

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:00:07 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.68.2.1: +16 -1 lines
Diff to previous 1.68.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.66.2.8 / (download) - annotate - [select for diffs], Wed Jan 9 02:56:55 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.7: +3 -3 lines
Diff to previous 1.66.2.7 (colored)

Adapt to LWP'd ptracing.

Revision 1.66.2.7 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:40 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.6: +14 -2 lines
Diff to previous 1.66.2.6 (colored)

Catch up to -current.

Revision 1.71 / (download) - annotate - [select for diffs], Wed Dec 5 00:58:05 2001 UTC (10 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.70: +14 -2 lines
Diff to previous 1.70 (colored)

* Allow machine-dependent code to specify hooks for ptrace(2)
  (__HAVE_PTRACE_MACHDEP) and procfs (__HAVE_PROCFS_MACHDEP).
  These changes will allow platforms like x86 (XMM) and PowerPC
  (AltiVec) to export extended register sets in a sane manner.

* Use __HAVE_PTRACE_MACHDEP to export x86 XMM registers (standard
  FP + SSE/SSE2) using PT_{GET,SET}XMMREGS (in the machdep
  ptrace request space).
* Use __HAVE_PROCFS_MACHDEP to export x86 XMM registers via
  /proc/N/xmmregs in procfs.

Revision 1.66.2.6 / (download) - annotate - [select for diffs], Thu Nov 29 01:27:53 2001 UTC (10 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.5: +10 -10 lines
Diff to previous 1.66.2.5 (colored)

Make sys_ptrace() slightly more sensical on multi-LWP processes:

- Don't bail out when the tracing process has multiple LWPs, as the code did;
- Don't even bail out when the traced processes has multiple LWPs, as I
  originally intended to do;
- Use proc_representative_lwp() to select a LWP to act on.

This permits ptrace memory accesses to work properly; there's still no
interface for targeting a specific LWP for register operations or
single-stepping.

Revision 1.66.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:43 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.4: +4 -1 lines
Diff to previous 1.66.2.4 (colored)

Catch up to -current.

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:55 2001 UTC (10 years, 6 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.69: +4 -1 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:25 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.69: +4 -1 lines
Diff to previous 1.69 (colored)

add RCSIDs

Revision 1.66.2.4 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:39 2001 UTC (10 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.3: +3 -3 lines
Diff to previous 1.66.2.3 (colored)

Catch up with -current.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:43 2001 UTC (10 years, 9 months ago) by lukem
Branch: kqueue
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

update to -current

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jul 22 13:34:11 2001 UTC (10 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

seperate -> separate

Revision 1.66.2.3 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:02 2001 UTC (10 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.2: +1 -10 lines
Diff to previous 1.66.2.2 (colored)

Catch up to -current.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jun 13 16:06:28 2001 UTC (10 years, 11 months ago) by nathanw
Branch: MAIN
Branch point for: kqueue
Changes since 1.67: +1 -10 lines
Diff to previous 1.67 (colored)

The trace_req() function is a no-op; garbage collect it.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:56 2001 UTC (11 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.66.2.1: +2 -2 lines
Diff to previous 1.66.2.1 (colored)

Catch up with -current.

Revision 1.61.18.2 / (download) - annotate - [select for diffs], Fri Mar 30 21:47:02 2001 UTC (11 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.61.18.1: +3 -3 lines
Diff to previous 1.61.18.1 (colored) to branchpoint 1.61 (colored)

Pull up revision 1.66 (requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

Revision 1.61.8.3 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:24 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.61.8.2: +1 -1 lines
Diff to previous 1.61.8.2 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)

Sync with HEAD.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Mar 17 09:38:36 2001 UTC (11 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

fix typo in comment

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:44 2001 UTC (11 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.66: +28 -14 lines
Diff to previous 1.66 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.61.8.2 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:45 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.61.8.1: +3 -3 lines
Diff to previous 1.61.8.1 (colored) to branchpoint 1.61 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jan 17 01:13:23 2001 UTC (11 years, 4 months ago) by fvdl
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Adapt for procfs_valid* argument change.

Revision 1.61.8.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:09 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.61: +24 -14 lines
Diff to previous 1.61 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.65 / (download) - annotate - [select for diffs], Sun Sep 24 07:31:28 2000 UTC (11 years, 8 months ago) by erh
Branch: MAIN
Changes since 1.64: +12 -7 lines
Diff to previous 1.64 (colored)

Prevent ptrace on system processes.  Avoids panic when attempting to ptrace pid 0, which has no parent.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Aug 20 21:50:11 2000 UTC (11 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +4 -2 lines
Diff to previous 1.63 (colored)

Add a lock around the scheduler, and use it as necessary, including
in the non-MULTIPROCESSOR case (LOCKDEBUG requires it).  Scheduler
lock is held upon entry to mi_switch() and cpu_switch(), and
cpu_switch() releases the lock before returning.

Largely from Bill Sommerfeld, with some minor bug fixes and
machine-dependent code hacking from me.

Revision 1.61.18.1 / (download) - annotate - [select for diffs], Mon Jul 31 02:49:19 2000 UTC (11 years, 9 months ago) by mrg
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.61: +11 -7 lines
Diff to previous 1.61 (colored)

pull up 1.63 (approved by thorpej):
>Fix LP64BE bug.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Jul 28 04:21:26 2000 UTC (11 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.62: +11 -7 lines
Diff to previous 1.62 (colored)

Fix LP64BE bug.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:36 2000 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.61: +1 -2 lines
Diff to previous 1.61 (colored)

remove include of <vm/vm.h>

Revision 1.61 / (download) - annotate - [select for diffs], Thu Mar 25 04:45:57 1999 UTC (13 years, 2 months ago) by sommerfe
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, minoura-xpg4dl-base, minoura-xpg4dl, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base, chs-ubc2
Branch point for: thorpej_scsipi, netbsd-1-5, netbsd-1-4
Changes since 1.60: +9 -1 lines
Diff to previous 1.60 (colored)

Disallow tracing of processes unless tracer's root directory is at or
above tracee's root directory.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:25 1999 UTC (13 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.59: +1 -5 lines
Diff to previous 1.59 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:46 1998 UTC (14 years, 2 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1, date-03-may-96
Changes since 1.1.1.1: +74 -1 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.59 / (download) - annotate - [select for diffs], Tue Feb 10 14:09:47 1998 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.58: +3 -1 lines
Diff to previous 1.58 (colored)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Feb 5 07:59:58 1998 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.57: +6 -1 lines
Diff to previous 1.57 (colored)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the rest of the MI portion changes.

this will be KNF'd shortly.  :-)

Revision 1.57 / (download) - annotate - [select for diffs], Mon Apr 28 04:49:30 1997 UTC (15 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.56: +10 -3 lines
Diff to previous 1.56 (colored)

Reinstate P_FSTRACE, with different semantics:
* Never send a SIGCHLD to the parent if P_FSTRACE is set.
* Do not permit mixing ptrace(2) and procfs; only permit using the one that
  was attached.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Apr 28 02:29:52 1997 UTC (15 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.55: +2 -3 lines
Diff to previous 1.55 (colored)

When checking for init, compare against initproc, rather than comparing the
PID.  No functional difference.

Revision 1.55 / (download) - annotate - [select for diffs], Wed May 15 06:17:47 1996 UTC (16 years ago) by tls
Branch: MAIN
CVS Tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.54: +12 -2 lines
Diff to previous 1.54 (colored)

fix obscure problem involving ptrace of init

Revision 1.54 / (download) - annotate - [select for diffs], Fri Feb 9 19:00:14 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.53: +1 -6 lines
Diff to previous 1.53 (colored)

More proto fixes

Revision 1.53 / (download) - annotate - [select for diffs], Sun Feb 4 02:16:58 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.52: +13 -3 lines
Diff to previous 1.52 (colored)

First pass at prototyping

Revision 1.52 / (download) - annotate - [select for diffs], Sat Oct 7 06:28:36 1995 UTC (16 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

Prefix names of system call implementation functions with `sys_'.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Sep 19 21:45:15 1995 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +6 -5 lines
Diff to previous 1.50 (colored)

Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Aug 13 09:05:59 1995 UTC (16 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +11 -3 lines
Diff to previous 1.49 (colored)

Lock the process in core before operating on it.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jun 8 23:51:05 1995 UTC (16 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

Fix various signal handling bugs:
* If we got a stopping signal while already stopped with the same signal,
the second signal would sometimes (but not always) be ignored.
* Signals delivered by the debugger always pretended to be stopping
signals.
* PT_ATTACH still didn't quite work right.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jun 5 20:57:54 1995 UTC (16 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.47: +3 -4 lines
Diff to previous 1.47 (colored)

If necessary, wake up the child during attach so we always get a SIGCHLD.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Feb 9 05:19:18 1995 UTC (17 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.46: +5 -5 lines
Diff to previous 1.46 (colored)

Omit the call to process_sstep() if PT_STEP is not defined.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Feb 8 23:38:29 1995 UTC (17 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.45: +7 -5 lines
Diff to previous 1.45 (colored)

undo a part of the last change that mistakenly required PT_STEP.
(i simply undid that part of the change.)  also, fix a tyop.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Feb 3 11:36:01 1995 UTC (17 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.44: +30 -45 lines
Diff to previous 1.44 (colored)

Make attach/detach more safe.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jan 26 17:56:21 1995 UTC (17 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +1 -50 lines
Diff to previous 1.43 (colored)

Remove PT_{READ,WRITE}_U.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Oct 30 21:47:50 1994 UTC (17 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Oct 20 04:23:08 1994 UTC (17 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.41: +42 -35 lines
Diff to previous 1.41 (colored)

update for new syscall args description mechanism

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Sun Sep 25 05:46:15 1994 UTC (17 years, 8 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.33.2.3: +414 -1 lines
Diff to previous 1.33.2.3 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

from trunk, per mycroft

Revision 1.41 / (download) - annotate - [select for diffs], Sat Sep 24 07:17:18 1994 UTC (17 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Correct test for already being traced.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Wed Sep 14 16:52:51 1994 UTC (17 years, 8 months ago) by cgd
Branch: netbsd-1-0
Changes since 1.33.2.2: +1 -1 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored)

From trunk.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Sep 14 16:40:29 1994 UTC (17 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.39: +9 -1 lines
Diff to previous 1.39 (colored)

ugly (#ifdef) hack to fix m68k alignment differences, etc.  Eventually,
should be done with a 'natual alignment' macro, or some such.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Aug 23 22:13:59 1994 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

replace "ctob(UPAGES)" and "UPAGES * NBPG" with "USPACE"
(cvs dumped core during previous commit...)

Revision 1.38 / (download) - annotate - [select for diffs], Sun Aug 21 21:24:33 1994 UTC (17 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.37: +6 -6 lines
Diff to previous 1.37 (colored)

kill errant spaces

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Mon Aug 15 16:53:24 1994 UTC (17 years, 9 months ago) by mycroft
Branch: netbsd-1-0
Changes since 1.33.2.1: +1 -1 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored)

update from trunk

Revision 1.37 / (download) - annotate - [select for diffs], Mon Aug 15 16:45:14 1994 UTC (17 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +1 -4 lines
Diff to previous 1.36 (colored)

Minor update to a comment.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 15 16:32:41 1994 UTC (17 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.35: +347 -12 lines
Diff to previous 1.35 (colored)

replace with a completely rewritten version, based around the 4.4BSD
procfs.  Now the author of the old version will stop complaining that
we're using his code.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Aug 15 16:29:22 1994 UTC (17 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.34: +74 -1 lines
Diff to previous 1.34 (colored)

replce with virgin copy from 4.4-Lite

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Jul 12 23:27:23 1994 UTC (17 years, 10 months ago) by cgd
Branch: netbsd-1-0
Changes since 1.33: +1 -1 lines
Diff to previous 1.33 (colored)

fix by ws, from trunk.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jul 12 22:20:46 1994 UTC (17 years, 10 months ago) by ws
Branch: MAIN
Changes since 1.33: +1 -1 lines
Diff to previous 1.33 (colored)

Try to pick myself up from the floor where I fell laughing.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:07 1994 UTC (17 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.32: +1 -1 lines
Diff to previous 1.32 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.32 / (download) - annotate - [select for diffs], Wed May 18 11:37:00 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.31: +1 -1 lines
Diff to previous 1.31 (colored)

Implement ptrace() functionality, based on the previous version
by Sean Eric Fagan.

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 18 11:32:27 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30 (colored)

replace sys_process.c with the 4.4-Lite version

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 7 00:51:06 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29 (colored)

function name changes

Revision 1.29 / (download) - annotate - [select for diffs], Thu May 5 05:38:30 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.28: +1 -1 lines
Diff to previous 1.28 (colored)

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

Revision 1.28 / (download) - annotate - [select for diffs], Wed May 4 03:42:04 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.27: +1 -1 lines
Diff to previous 1.27 (colored)

Rename a lot of process flags.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 7 00:40:23 1994 UTC (18 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.26: +1 -1 lines
Diff to previous 1.26 (colored)

SUGID semantics, similar to 4.4BSD

Revision 1.26 / (download) - annotate - [select for diffs], Fri Mar 11 09:12:22 1994 UTC (18 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.25: +1 -1 lines
Diff to previous 1.25 (colored)

A zero scale factor turns profiling off.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Feb 3 16:17:25 1994 UTC (18 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24 (colored)

Remove out-dated comments

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 28 19:06:17 1994 UTC (18 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23 (colored)

make sure PT_STEP's are in #ifdefs

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 28 06:51:13 1994 UTC (18 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

if you define PT_[GS]ETFPREGS, then you'd better define struct fpreg, etc.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 20 21:22:50 1994 UTC (18 years, 4 months ago) by ws
Branch: MAIN
Changes since 1.21: +1 -1 lines
Diff to previous 1.21 (colored)

Make procfs really work for debugging.
Implement not & notepg files in procfs.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jan 10 06:10:30 1994 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +1 -1 lines
Diff to previous 1.20 (colored)

Cleanup.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 10 05:58:37 1994 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +1 -1 lines
Diff to previous 1.19 (colored)

*Really* fix the wakeup code this time.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jan 10 04:20:29 1994 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +1 -1 lines
Diff to previous 1.18 (colored)

Wake up the blasted process when we detach!

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 9 23:57:15 1994 UTC (18 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17 (colored)

implement PT_ATTACH and PT_DETACH.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jan 9 16:52:35 1994 UTC (18 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored)

PT_STEP is actually machine dependent.  not all machines have it!

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jan 8 11:18:56 1994 UTC (18 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

core reorg

Revision 1.15 / (download) - annotate - [select for diffs], Sat Dec 18 04:21:37 1993 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored)

Canonicalize all #includes.

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Wed Dec 1 22:05:36 1993 UTC (18 years, 5 months ago) by cgd
Branch: magnum
Changes since 1.13.2.2: +1 -1 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

update from trunk

Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 1 22:05:04 1993 UTC (18 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

initialize uninitialized variable, from Andy Heffernan <ahh@netcom.com>.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Sun Nov 14 21:07:15 1993 UTC (18 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.13.2.1: +1 -1 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored)

Canonicalize all #includes.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Wed Sep 29 06:31:04 1993 UTC (18 years, 8 months ago) by mycroft
Branch: magnum
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

init_main.c: Remove calls to startrtclock(), startkgclock(), and enablertclock().
sys_process.c: Remove profil() (now in subr_prof.c).
vfs_bio.c: Merge changes from trunk.
kern_clock.c, tty_pty.c: Trivial changes to match KNF.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 6 02:06:34 1993 UTC (18 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored)

A little more cleanup; 0 --> FALSE and 1 --> TRUE.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Sep 6 02:03:03 1993 UTC (18 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored)

De-ANSIfy and re-KNFify.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Sep 5 03:53:52 1993 UTC (18 years, 8 months ago) by sef
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)

Yet more of the ptrace() reorg; now ptrace_setregs() and ptrace_getregs()
are present, along with PT_GETREGS and PT_SETREGS ptrace commands.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 4 08:46:36 1993 UTC (18 years, 8 months ago) by sef
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

ptrace_single_step() and ptrace_set_pc() should return errors if
necessary.  (Mainly because the SPARC can't easily single step, so
it should return EINVAL, and then ptrace() should return that to the
user.)

Revision 1.9 / (download) - annotate - [select for diffs], Sat Sep 4 05:32:35 1993 UTC (18 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

better ptrace() support from Sean Eric Fagan <sef@kithrup.com>

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 13 22:13:33 1993 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

break args structs out, into syscallname_args structs, so gcc2 doesn't
whine so much.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 4 23:30:39 1993 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

change exit() to kexit(), so prototypes are "safe" with stdio.h, etc.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 27 06:01:55 1993 UTC (18 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

ANSIfications - removed all implicit function return types and argument
definitions.  Ensured that all files include "systm.h" to gain access to
general prototypes.  Casts where necessary.

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 24 11:37:12 1993 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

move sipcreg into i386/include/reg.h where it belongs, right next to ipcreg.

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 20 02:55:09 1993 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

add $Id$ strings, and clean up file headers where necessary

Revision 1.3 / (download) - annotate - [select for diffs], Fri May 7 07:06:42 1993 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

update for bde's useracc changes.  from patchkit patch 137.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>