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


Keyword substitution: kv
Default branch: MAIN


Revision 1.180: download - view: text, markup, annotated - select for diffs
Tue May 26 00:50:53 2020 UTC (6 years, 5 months ago) by kamil
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +3 -5 lines
Catch up with the usage of struct vmspace::vm_refcnt

Use the dedicated reference counting routines.

Change the type of struct vmspace::vm_refcnt and struct vm_map::ref_count
to volatile.

Remove the unnecessary vm->vm_map.misc_lock locking in process_domem().

Reviewed by <ad>

Revision 1.162.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:45 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.162.12.1: preferred, colored; branchpoint 1.162: preferred, colored; next MAIN 1.163: preferred, colored
Changes since revision 1.162.12.1: +21 -939 lines
update from HEAD

Revision 1.165.2.7: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:07 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.165.2.6: preferred, colored; branchpoint 1.165: preferred, colored; next MAIN 1.166: preferred, colored
Changes since revision 1.165.2.6: +5 -35 lines
Sync with HEAD

Revision 1.169.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:27 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.169.2.1: preferred, colored; branchpoint 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169.2.1: +5 -35 lines
Sync with HEAD

Revision 1.175.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:02 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175: +5 -35 lines
Sync with HEAD

Revision 1.179: download - view: text, markup, annotated - select for diffs
Thu Apr 13 07:58:45 2017 UTC (9 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +4 -3 lines
Paranoia... keep vmspace reference while doing pmap_procwr

Revision 1.178: download - view: text, markup, annotated - select for diffs
Fri Mar 24 17:40:44 2017 UTC (9 years, 7 months ago) by christos
Branches: MAIN
CVS tags: jdolecek-ncq-base, jdolecek-ncq
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +2 -40 lines
Instead of copying parts of sigswitch to process_stoptrace, use it directly.
Rename process_stoptrace -> proc_stoptrace and put it in kern_sig.c so we
don't need to expose any more functions from it.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Thu Mar 23 21:59:55 2017 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +14 -4 lines
kern/5201{2,8,9}: Fix PT_SYSCALL stopping.
1. Supply the siginfo we expect TRAP_SC{E,X} to process_stoptrace() and set it.
2. Change the second argument of proc_stop from notify, to now meaning that
   we want to stop right now. Wait in process_stoptrace until that has happened.
3. While here, fix the locking order in process_stoptrace().

Revision 1.176: download - view: text, markup, annotated - select for diffs
Wed Mar 22 22:11:47 2017 UTC (9 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +3 -6 lines
Reduce #ifdefs

Revision 1.165.2.6: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:26 2016 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.165.2.5: preferred, colored; branchpoint 1.165: preferred, colored
Changes since revision 1.165.2.5: +16 -975 lines
Sync with HEAD

Revision 1.169.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:17 2016 UTC (10 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +16 -975 lines
Sync with HEAD

Revision 1.175: download - view: text, markup, annotated - select for diffs
Wed Nov 2 00:11:59 2016 UTC (10 years ago) by pgoyette
Branches: MAIN
CVS tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +11 -997 lines
* Split sys/kern/sys_process.c into three parts:
        1 - ptrace(2) syscall for native emulation
        2 - common ptrace(2) syscall code (shared with compat_netbsd32)
        3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2.  Both modules will be built-in to the
  kernel if "options PTRACE" is included in the config file (this is
  the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
  files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
  option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
    just add a procfs attribute to the sys/kern/sys_process.c file's
    entry in files.kern, and add PROCFS to the "#if defineds" for
    process_domem().  It's really confusing to have two different ways
    of requiring this file.

Revision 1.174: download - view: text, markup, annotated - select for diffs
Wed Oct 19 09:44:01 2016 UTC (10 years ago) by skrll
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +76 -47 lines
PR kern/51514: ptrace(2) fails for 32-bit process on 64-bit kernel

Updated from the original patch in the PR by me.

Revision 1.173: download - view: text, markup, annotated - select for diffs
Sat Oct 15 09:09:55 2016 UTC (10 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +16 -16 lines
KNF

Revision 1.172: download - view: text, markup, annotated - select for diffs
Fri Oct 14 08:38:31 2016 UTC (10 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +5 -5 lines
Trailing whitespace

Revision 1.171: download - view: text, markup, annotated - select for diffs
Fri Oct 14 08:37:05 2016 UTC (10 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +4 -6 lines
KNF

Revision 1.165.2.5: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:03 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.165.2.4: preferred, colored; branchpoint 1.165: preferred, colored
Changes since revision 1.165.2.4: +7 -7 lines
Sync with HEAD

Revision 1.170: download - view: text, markup, annotated - select for diffs
Thu Sep 29 20:40:53 2016 UTC (10 years, 1 month ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20161004
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +3 -3 lines
Introduce and use PROC_PTRSZ() to handle differing pointer size 64->32
emulation.

Revision 1.165.2.4: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:37 2016 UTC (10 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.165.2.3: preferred, colored; branchpoint 1.165: preferred, colored
Changes since revision 1.165.2.3: +5 -3 lines
Sync with HEAD

Revision 1.169: download - view: text, markup, annotated - select for diffs
Wed May 25 17:43:58 2016 UTC (10 years, 5 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +5 -3 lines
Introduce security.pax.mprotect.ptrace sysctl which can be used to bypass
mprotect settings so that debuggers can write to the text segment of traced
processes so that they can insert breakpoints. Turned off by default.
Ok: chuq (for now)

Revision 1.165.2.3: download - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:16 2016 UTC (10 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.165.2.2: preferred, colored; branchpoint 1.165: preferred, colored
Changes since revision 1.165.2.2: +4 -4 lines
Sync with HEAD

Revision 1.168: download - view: text, markup, annotated - select for diffs
Mon Apr 4 20:47:57 2016 UTC (10 years, 7 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20160422
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +4 -4 lines
Split p_xstat (composite wait(2) status code, or signal number depending
on context) into:
1. p_xexit:		exit code
2. p_xsig:		signal number
3. p_sflag & WCOREFLAG	bit to indicated that the process core-dumped.

Fix the documentation of the flag bits in <sys/proc.h>

Revision 1.165.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:31 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.165.2.1: preferred, colored; branchpoint 1.165: preferred, colored
Changes since revision 1.165.2.1: +3 -2 lines
Sync with HEAD

Revision 1.167: download - view: text, markup, annotated - select for diffs
Sat Jan 9 07:52:38 2016 UTC (10 years, 10 months ago) by dholland
Branches: MAIN
CVS tags: nick-nhusb-base-20160319
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -2 lines
When doing an unlock/relock dance to avoid lock inversion, it's important
to relock the lock you unlocked. Otherwise the lock you unlocked won't
walk the walk, not by a long chalk, and you'll end up getting mocked.

From Mateusz Guzik of FreeBSD via freenode.

XXX: pullup-6 and -7

Revision 1.165.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:07 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +55 -8 lines
Sync with HEAD

Revision 1.166: download - view: text, markup, annotated - select for diffs
Thu Jul 2 03:47:54 2015 UTC (11 years, 4 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +55 -8 lines
Support PIOD_READ_AUXV so that gdb can handle PIE binaries. From OpenBSD.

Revision 1.163.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 14:53:23 2014 UTC (11 years, 11 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.163: preferred, colored; next MAIN 1.164: preferred, colored
Changes since revision 1.163: +35 -14 lines
Pull up following revision(s) (requested by christos in ticket #262):
	sys/kern/sys_process.c: revision 1.165
Don't return early when the incorrect size is passed to some of the
ptrace actions. Leaves locks dangling and causes panics with lockdebug.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Mon Nov 24 02:34:04 2014 UTC (11 years, 11 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +35 -14 lines
Don't return early when the incorrect size is passed to some of the
ptrace actions. Leaves locks dangling and causes panics with lockdebug.
XXX: Pullup 7

Revision 1.164: download - view: text, markup, annotated - select for diffs
Sun Sep 21 17:17:15 2014 UTC (12 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +3 -3 lines
remove casts to the same type.

Revision 1.162.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:29 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +4 -12 lines
Rebase to HEAD as of a few days ago.

Revision 1.162.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.162: preferred, colored; next MAIN 1.163: preferred, colored
Changes since revision 1.162: +4 -12 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.162.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.162: preferred, colored; next MAIN 1.163: preferred, colored
Changes since revision 1.162: +4 -12 lines
sync with head

Revision 1.163: download - view: text, markup, annotated - select for diffs
Sat Jan 4 00:10:03 2014 UTC (12 years, 10 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +4 -12 lines
Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
  of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.

Revision 1.143.4.2: download - view: text, markup, annotated - select for diffs
Sat Feb 4 16:57:59 2012 UTC (14 years, 9 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Diff to: previous 1.143.4.1: preferred, colored; branchpoint 1.143: preferred, colored; next MAIN 1.144: preferred, colored
Changes since revision 1.143.4.1: +18 -11 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 6 11:22:42 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, 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-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +7 -12 lines
PR# kern/45330: ptrace: signals can alter syscall return values

process_stoptrace: defer signal processing to userret, ok christos@

Revision 1.161: download - view: text, markup, annotated - select for diffs
Fri Sep 2 20:07:41 2011 UTC (15 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +42 -2 lines
add support for PRACE_FORK.

Revision 1.160: download - view: text, markup, annotated - select for diffs
Wed Aug 31 22:58:39 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +13 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 30 22:45:55 2011 UTC (15 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Aug 29 17:31:50 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 3 08:57:43 2011 UTC (15 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:31 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.153.2.1: preferred, colored; branchpoint 1.153: preferred, colored; next MAIN 1.154: preferred, colored
Changes since revision 1.153.2.1: +2 -1 lines
Sync with HEAD.

Revision 1.138.2.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:42 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.138.2.4: preferred, colored; branchpoint 1.138: preferred, colored; next MAIN 1.139: preferred, colored
Changes since revision 1.138.2.4: +63 -8 lines
sync with head.

Revision 1.153.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:54 2010 UTC (16 years, 4 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.153.4.1: preferred, colored; branchpoint 1.153: preferred, colored; next MAIN 1.154: preferred, colored
Changes since revision 1.153.4.1: +4 -3 lines
sync with head

Revision 1.156: download - view: text, markup, annotated - select for diffs
Thu Jul 1 02:38:31 2010 UTC (16 years, 4 months ago) by rmind
Branches: 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
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun May 30 05:17:58 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +61 -7 lines
sync with head

Revision 1.153.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:12 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +61 -7 lines
Sync with HEAD.

Revision 1.155: download - view: text, markup, annotated - select for diffs
Wed Apr 7 13:10:46 2010 UTC (16 years, 7 months ago) by christos
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +6 -3 lines
fix build for ports that don't have PT_STEP (Havard Eidnes)

Revision 1.154: download - view: text, markup, annotated - select for diffs
Tue Apr 6 13:50:22 2010 UTC (16 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +59 -8 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:19 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.138.2.3: preferred, colored; branchpoint 1.138: preferred, colored
Changes since revision 1.138.2.3: +90 -26 lines
sync with head

Revision 1.153: download - view: text, markup, annotated - select for diffs
Thu Dec 17 01:25:10 2009 UTC (16 years, 11 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +2 -3 lines
Replace few USER_TO_UAREA/UAREA_TO_USER uses, reduce sys/user.h inclusions.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Mon Dec 14 00:48:35 2009 UTC (16 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +11 -3 lines
Merge from matt-nb5-mips64

Revision 1.151: download - view: text, markup, annotated - select for diffs
Wed Oct 21 21:12:06 2009 UTC (17 years ago) by rmind
Branches: MAIN
CVS tags: matt-premerge-20091211, jym-xensuspend-nbase
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +7 -24 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 4 03:15:08 2009 UTC (17 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +2 -38 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 2 22:38:45 2009 UTC (17 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +37 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 2 22:18:57 2009 UTC (17 years, 1 month ago) by elad
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +77 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Aug 23 03:38:19 2009 UTC (17 years, 2 months ago) by matt
Branches: 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
Diff to: previous 1.143.4.1: preferred, colored; next MAIN 1.143.4.2: preferred, colored
Changes since revision 1.143.4.1: +11 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:35 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.146: preferred, colored; next MAIN 1.147: preferred, colored
Changes since revision 1.146: +4 -3 lines
Sync with HEAD.

Revision 1.138.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:53:23 2009 UTC (17 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.138.2.2: preferred, colored; branchpoint 1.138: preferred, colored
Changes since revision 1.138.2.2: +4 -3 lines
sync with head.

Revision 1.147: download - view: text, markup, annotated - select for diffs
Sun Jun 28 11:42:07 2009 UTC (17 years, 4 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +4 -3 lines
wrap a long line.

Revision 1.138.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:48 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.138.2.1: preferred, colored; branchpoint 1.138: preferred, colored
Changes since revision 1.138.2.1: +26 -31 lines
sync with head.

Revision 1.143.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:32:56 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.143.2.1: preferred, colored; branchpoint 1.143: preferred, colored; next MAIN 1.144: preferred, colored
Changes since revision 1.143.2.1: +22 -21 lines
Sync with HEAD.

Revision 1.143.4.1: download - view: text, markup, annotated - select for diffs
Fri Feb 6 01:54:09 2009 UTC (17 years, 9 months ago) by snj
Branches: 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-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +15 -16 lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 4 21:17:39 2009 UTC (17 years, 9 months ago) by ad
Branches: 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
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +15 -16 lines
PR kern/36183 problem with ptrace and multithreaded processes

Fix the crashy test case that Thor provided.

Revision 1.145: download - view: text, markup, annotated - select for diffs
Thu Jan 22 14:38:35 2009 UTC (17 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +9 -7 lines
malloc -> kmem_alloc

Revision 1.143.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:39 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +3 -10 lines
Sync with HEAD.

Revision 1.135.6.5: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:20 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.135.6.4: preferred, colored; branchpoint 1.135: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135.6.4: +1 -8 lines
Sync with HEAD.

Revision 1.141.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:09 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.141.2.1: preferred, colored; branchpoint 1.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141.2.1: +3 -10 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.144: download - view: text, markup, annotated - select for diffs
Wed Nov 19 18:36:07 2008 UTC (18 years ago) by ad
Branches: MAIN
CVS tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +3 -10 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:28 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +4 -4 lines
Sync with HEAD.

Revision 1.135.6.4: download - view: text, markup, annotated - select for diffs
Sun Oct 5 20:11:32 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.135.6.3: preferred, colored; branchpoint 1.135: preferred, colored
Changes since revision 1.135.6.3: +1 -1 lines
Sync with HEAD.

Revision 1.135.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:53 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.135.6.2: preferred, colored; branchpoint 1.135: preferred, colored
Changes since revision 1.135.6.2: +3 -2 lines
Sync with HEAD.

Revision 1.143: download - view: text, markup, annotated - select for diffs
Sat Sep 27 03:52:24 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: 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
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 27 03:45:43 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.139.2.4: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139.2.4: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:43 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.139.2.3: preferred, colored
Changes since revision 1.139.2.3: +5 -4 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Thu Aug 28 06:23:42 2008 UTC (18 years, 2 months ago) by yamt
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -3 lines
process_stoptrace: fix a locking botch.

Revision 1.140.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:38:12 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.140: preferred, colored; next MAIN 1.141: preferred, colored
Changes since revision 1.140: +4 -3 lines
Sync with head.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Wed Jul 2 19:49:58 2008 UTC (18 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -3 lines
Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.

Revision 1.139.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:51 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.139.2.2: preferred, colored
Changes since revision 1.139.2.2: +12 -10 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.135.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:12 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.135.6.1: preferred, colored; branchpoint 1.135: preferred, colored
Changes since revision 1.135.6.1: +90 -72 lines
Sync with HEAD.

Revision 1.136.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:10 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.136: preferred, colored; next MAIN 1.137: preferred, colored
Changes since revision 1.136: +92 -74 lines
sync with head.

Revision 1.138.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:27 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +12 -17 lines
sync with head.

Revision 1.139.2.2: download - view: text, markup, annotated - select for diffs
Wed May 14 01:35:14 2008 UTC (18 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.139.2.1: preferred, colored
Changes since revision 1.139.2.1: +2 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue May 13 09:16:11 2008 UTC (18 years, 6 months ago) by yamt
Branches: 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
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +12 -10 lines
sys_ptrace: fix a locking botch.  PR/38649 from Martin Husemann.

Revision 1.139.2.1: download - view: text, markup, annotated - select for diffs
Sat May 10 23:49:05 2008 UTC (18 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:04 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.138: download - view: text, markup, annotated - select for diffs
Thu Apr 24 18:39:24 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +85 -56 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 24 15:35:30 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +13 -19 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:04 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -2 lines
Sync with HEAD.

Revision 1.135.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:14 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.135: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135: +3 -2 lines
sync with head.

Revision 1.127.6.4: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:00 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.127.6.3: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.6.3: +6 -5 lines
sync with HEAD

Revision 1.95.4.9: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:56 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95.4.8: preferred, colored; branchpoint 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.4.8: +3 -2 lines
sync with head.

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sun Feb 24 18:30:07 2008 UTC (18 years, 8 months ago) by dsl
Branches: 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
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:47 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.130.2.2: preferred, colored; branchpoint 1.130: preferred, colored; next MAIN 1.131: preferred, colored
Changes since revision 1.130.2.2: +9 -8 lines
Sync with HEAD.

Revision 1.95.4.8: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:18 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95.4.7: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.4.7: +5 -5 lines
sync with head.

Revision 1.131.6.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 19:27:42 2008 UTC (18 years, 9 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.131.6.2: preferred, colored; branchpoint 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131.6.2: +3 -3 lines
Sync with HEAD.

Revision 1.135: download - view: text, markup, annotated - select for diffs
Wed Jan 23 15:04:40 2008 UTC (18 years, 9 months ago) by elad
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, bouyer-xeni386-nbase
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 21 09:46:24 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95.4.6: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.4.6: +16 -13 lines
sync with head

Revision 1.127.6.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:56:22 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.127.6.2: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.6.2: +16 -13 lines
sync with HEAD

Revision 1.131.6.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:42 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.131.6.1: preferred, colored; branchpoint 1.131: preferred, colored
Changes since revision 1.131.6.1: +2 -1 lines
Sync with HEAD

Revision 1.134: download - view: text, markup, annotated - select for diffs
Sat Jan 5 12:41:44 2008 UTC (18 years, 10 months ago) by dsl
Branches: MAIN
CVS tags: matt-armv6-base, bouyer-xeni386-base
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +4 -3 lines
Don't pass curlwp into process_stoptrace()

Revision 1.131.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:56:14 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +14 -12 lines
Sync with HEAD

Revision 1.133: download - view: text, markup, annotated - select for diffs
Mon Dec 31 15:32:12 2007 UTC (18 years, 10 months ago) by ad
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +4 -4 lines
Remove systrace. Ok core@.

Revision 1.130.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:46:11 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.130.2.1: preferred, colored; branchpoint 1.130: preferred, colored
Changes since revision 1.130.2.1: +12 -10 lines
Sync with HEAD.

Revision 1.131.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:15 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131: +12 -10 lines
Sync with head.

Revision 1.132: download - view: text, markup, annotated - select for diffs
Thu Dec 20 23:03:11 2007 UTC (18 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +12 -10 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:54 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +12 -16 lines
Sync with HEAD.

Revision 1.95.4.6: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:52 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95.4.5: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.4.5: +12 -16 lines
sync with head.

Revision 1.129.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:02:27 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.129: preferred, colored; next MAIN 1.130: preferred, colored
Changes since revision 1.129: +13 -20 lines
Sync with HEAD

Revision 1.127.4.4: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:48:12 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.127.4.3: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.4.3: +12 -16 lines
Sync with HEAD.

Revision 1.127.6.2: download - view: text, markup, annotated - select for diffs
Thu Nov 8 11:00:07 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.127.6.1: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.6.1: +12 -16 lines
sync with -HEAD

Revision 1.131: download - view: text, markup, annotated - select for diffs
Wed Nov 7 00:23:24 2007 UTC (19 years ago) by ad
Branches: 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
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +12 -16 lines
Merge from vmlocking:

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

Revision 1.127.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:32:33 2007 UTC (19 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +7 -8 lines
sync with HEAD

Revision 1.127.4.3: download - view: text, markup, annotated - select for diffs
Sun Oct 28 20:11:13 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.127.4.2: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.4.2: +3 -6 lines
Sync with HEAD.

Revision 1.95.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:35:36 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95.4.4: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.4.4: +7 -8 lines
sync with head.

Revision 1.127.4.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:48:43 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.127.4.1: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.4.1: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 25 20:44:21 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.123.2.7: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123.2.7: +6 -6 lines
Fix error in previous.

Revision 1.123.2.7: download - view: text, markup, annotated - select for diffs
Thu Oct 25 19:43:11 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.123.2.6: preferred, colored
Changes since revision 1.123.2.6: +10 -14 lines
- 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 - view: text, markup, annotated - select for diffs
Wed Oct 24 14:50:41 2007 UTC (19 years ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +3 -6 lines
Make ras_lookup() lockless.

Revision 1.128.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:47 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.128: preferred, colored; next MAIN 1.129: preferred, colored
Changes since revision 1.128: +4 -2 lines
sync with head.

Revision 1.123.2.6: download - view: text, markup, annotated - select for diffs
Fri Oct 12 13:48:55 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.123.2.5: preferred, colored
Changes since revision 1.123.2.5: +4 -4 lines
Fix merge errors.

Revision 1.129: download - view: text, markup, annotated - select for diffs
Mon Oct 8 14:08:26 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +4 -2 lines
Merge from vmlocking: don't add a refrerence to a dying LWP.

Revision 1.127.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:29:05 2007 UTC (19 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +4 -4 lines
Sync with HEAD.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri Sep 21 19:14:13 2007 UTC (19 years, 1 month ago) by dsl
Branches: MAIN
CVS tags: yamt-x86pmap-base2, yamt-x86pmap-base
Branch point for: yamt-x86pmap
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +4 -4 lines
Include sys/cdefs.h first.

Revision 1.95.4.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:41:09 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95.4.3: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.4.3: +38 -27 lines
sync with head.

Revision 1.123.2.5: download - view: text, markup, annotated - select for diffs
Sat Aug 18 05:36:45 2007 UTC (19 years, 3 months ago) by yamt
Branches: vmlocking
Diff to: previous 1.123.2.4: preferred, colored
Changes since revision 1.123.2.4: +4 -2 lines
sys_ptrace: don't lwp_addref on a possibly LSZOMB LWP.  ok'ed by Andrew Doran.

Revision 1.126.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:49:16 2007 UTC (19 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.126: preferred, colored; next MAIN 1.127: preferred, colored
Changes since revision 1.126: +4 -4 lines
Sync with HEAD.

Revision 1.127.8.2: download - view: text, markup, annotated - select for diffs
Sat Jul 21 19:21:54 2007 UTC (19 years, 4 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.127.8.1: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.8.1: +947 -0 lines
Merge unobtrusive locking changes from the vmlocking branch.

Revision 1.127.8.1
Sat Jul 21 19:21:53 2007 UTC (19 years, 4 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.127: +0 -947 lines
file sys_process.c was added on branch matt-mips64 on 2007-07-21 19:21:54 +0000

Revision 1.127: download - view: text, markup, annotated - select for diffs
Sat Jul 21 19:21:53 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +4 -4 lines
Merge unobtrusive locking changes from the vmlocking branch.

Revision 1.123.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:10:11 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123: +20 -13 lines
Sync with head.

Revision 1.126: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:10:56 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +10 -10 lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:25 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.123.2.3: preferred, colored
Changes since revision 1.123.2.3: +10 -5 lines
Sync with head.

Revision 1.120.2.5: download - view: text, markup, annotated - select for diffs
Mon May 7 10:55:47 2007 UTC (19 years, 6 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.120.2.4: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.2.4: +10 -5 lines
sync with head.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Thu Apr 19 22:42:10 2007 UTC (19 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +10 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 10 13:26:40 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.123.2.2: preferred, colored
Changes since revision 1.123.2.2: +4 -2 lines
Sync with head.

Revision 1.123.2.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:38:37 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.123.2.1: preferred, colored
Changes since revision 1.123.2.1: +12 -12 lines
- 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 - view: text, markup, annotated - select for diffs
Sat Mar 24 14:56:05 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.120.2.3: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.2.3: +4 -2 lines
sync with head.

Revision 1.123.6.1: download - view: text, markup, annotated - select for diffs
Sun Mar 18 00:06:44 2007 UTC (19 years, 8 months ago) by reinoud
Branches: reinoud-bufcleanup
Diff to: previous 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123: +4 -2 lines
First attempt to bring branch in sync with HEAD

Revision 1.124: download - view: text, markup, annotated - select for diffs
Thu Mar 15 20:55:15 2007 UTC (19 years, 8 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-atomic-base, thorpej-atomic
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +4 -2 lines
Restore previous semantics of PT_LWPINFO and make sure to lwp_addref the
LWP.

OK'ed by ad.

Revision 1.123.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 17:50:58 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +4 -4 lines
Pull in the initial set of changes for the vmlocking branch.

Revision 1.120.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:58:42 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.120.2.2: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.2.2: +18 -14 lines
Sync with HEAD.

Revision 1.120.2.2: download - view: text, markup, annotated - select for diffs
Fri Mar 9 15:16:25 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.120.2.1: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.2.1: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 9 14:11:26 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
Branch point for: vmlocking, reinoud-bufcleanup, mjf-ufs-trans
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +14 -10 lines
- 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 - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:09 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +6 -6 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.120.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:30 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +6 -6 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.95.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:17 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95.4.2: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.4.2: +264 -161 lines
sync with head.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:31:44 2007 UTC (19 years, 9 months ago) by pavel
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +6 -6 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:31 2007 UTC (19 years, 9 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +264 -161 lines
Merge newlock2 to head.

Revision 1.110.2.9: download - view: text, markup, annotated - select for diffs
Wed Jan 31 19:56:38 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.110.2.8: preferred, colored; branchpoint 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110.2.8: +16 -15 lines
- Have callers to mi_switch() drop the kernel lock.
- Fix a deadlock and some typos.
- Unbreak ptrace().

Revision 1.110.2.8: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:51:41 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.110.2.7: preferred, colored; branchpoint 1.110: preferred, colored
Changes since revision 1.110.2.7: +2 -4 lines
Remove support for SA. Ok core@.

Revision 1.110.2.7: download - view: text, markup, annotated - select for diffs
Sat Jan 27 01:29:05 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.110.2.6: preferred, colored; branchpoint 1.110: preferred, colored
Changes since revision 1.110.2.6: +3 -116 lines
- Job control shouldn't affect LWPs sleeping interruptably.
- Remove another use of mtsleep().

Revision 1.110.2.6: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:07 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.110.2.5: preferred, colored; branchpoint 1.110: preferred, colored
Changes since revision 1.110.2.5: +67 -113 lines
Sync with head.

Revision 1.95.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:06 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95.4.1: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.4.1: +92 -118 lines
sync with head.

Revision 1.110.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 29 20:27:44 2006 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.110.2.4: preferred, colored; branchpoint 1.110: preferred, colored
Changes since revision 1.110.2.4: +108 -91 lines
Checkpoint work in progress.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Dec 27 10:02:46 2006 UTC (19 years, 10 months ago) by elad
Branches: MAIN
CVS tags: newlock2-nbase, newlock2-base
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +33 -69 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:45 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.110.4.1: preferred, colored; branchpoint 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110.4.1: +92 -95 lines
sync with head.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Wed Dec 6 18:54:02 2006 UTC (19 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +7 -7 lines
get the vmspace first before you try to use it.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Mon Dec 4 18:50:19 2006 UTC (19 years, 11 months ago) by elad
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +21 -12 lines
PR/25741: ITOH Yasufumi: ras(9) sequence is not protected against ptrace(2)

Okay christos@

Revision 1.116: download - view: text, markup, annotated - select for diffs
Tue Nov 28 17:58:10 2006 UTC (19 years, 11 months ago) by elad
Branches: 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
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +5 -61 lines
Kill process_checkioperm().

While here, adjust comments.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Tue Nov 28 17:27:09 2006 UTC (19 years, 11 months ago) by elad
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +64 -18 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:23 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.110.2.3: preferred, colored; branchpoint 1.110: preferred, colored
Changes since revision 1.110.2.3: +7 -8 lines
Sync with head.

Revision 1.110.2.3: download - view: text, markup, annotated - select for diffs
Fri Nov 17 16:34:37 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.110.2.2: preferred, colored; branchpoint 1.110: preferred, colored
Changes since revision 1.110.2.2: +345 -142 lines
Checkpoint work in progress.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Mon Nov 13 02:52:08 2006 UTC (20 years ago) by christos
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 11 21:44:14 2006 UTC (20 years ago) by bouyer
Branches: netbsd-3-1
CVS tags: netbsd-3-1-1-RELEASE
Diff to: previous 1.95.2.2: preferred, colored; next MAIN 1.95.2.3: preferred, colored
Changes since revision 1.95.2.2: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 11 21:43:16 2006 UTC (20 years ago) by bouyer
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE
Diff to: previous 1.95.12.2: preferred, colored; branchpoint 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.12.2: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 11 21:40:19 2006 UTC (20 years ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.95.2.2: preferred, colored; branchpoint 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.2.2: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 1 09:46:14 2006 UTC (20 years ago) by yamt
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +6 -8 lines
kill signal "dolock" hacks.

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

Revision 1.112: download - view: text, markup, annotated - select for diffs
Sat Oct 28 17:58:22 2006 UTC (20 years ago) by christos
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -3 lines
check for negative length in PT_COREDUMP (from Neil)

Revision 1.95.12.2: download - view: text, markup, annotated - select for diffs
Thu Oct 26 10:23:23 2006 UTC (20 years ago) by tron
Branches: netbsd-3-0
CVS tags: netbsd-3-0-2-RELEASE
Diff to: previous 1.95.12.1: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.12.1: +3 -3 lines
Remove unused variable to fix build problem caused by ticket #1556.

Revision 1.95.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 26 10:23:11 2006 UTC (20 years ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE
Branch point for: netbsd-3-1
Diff to: previous 1.95.2.1: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.2.1: +3 -3 lines
Remove unused variable to fix build problem caused by ticket #1556.

Revision 1.95.12.1: download - view: text, markup, annotated - select for diffs
Wed Oct 25 19:14:00 2006 UTC (20 years ago) by tron
Branches: netbsd-3-0
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +7 -10 lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 25 19:11:41 2006 UTC (20 years ago) by tron
Branches: netbsd-3
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +7 -10 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:11 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +8 -11 lines
sync with head

Revision 1.110.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 21 15:20:47 2006 UTC (20 years, 1 month ago) by ad
Branches: newlock2
Diff to: previous 1.110.2.1: preferred, colored; branchpoint 1.110: preferred, colored
Changes since revision 1.110.2.1: +35 -33 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 16 17:57:34 2006 UTC (20 years, 1 month ago) by bouyer
Branches: netbsd-2-1
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +8 -11 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 16 17:56:59 2006 UTC (20 years, 1 month ago) by bouyer
Branches: netbsd-2-0
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +8 -11 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 16 17:56:26 2006 UTC (20 years, 1 month ago) by bouyer
Branches: netbsd-2
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +8 -11 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 15 15:20:09 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +8 -11 lines
Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.

Revision 1.110.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 11 18:07:25 2006 UTC (20 years, 2 months ago) by ad
Branches: newlock2
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +6 -6 lines
- 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 - view: text, markup, annotated - select for diffs
Sat Sep 9 02:57:17 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +108 -29 lines
sync with head

Revision 1.99.2.6: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:22 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.99.2.5: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.2.5: +18 -2 lines
sync with head.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Fri Sep 1 21:05:33 2006 UTC (20 years, 2 months ago) by matt
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +5 -3 lines
process_domem exists for ktrace/ptrace/systrace

Revision 1.109: download - view: text, markup, annotated - select for diffs
Thu Aug 31 18:05:21 2006 UTC (20 years, 2 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -5 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 30 13:55:03 2006 UTC (20 years, 2 months ago) by cube
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +4 -2 lines
Let those compile under "no options COREDUMP".

Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Aug 30 11:08:15 2006 UTC (20 years, 2 months ago) by matt
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +9 -2 lines
sys_process.c is also used by KTRACE.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Aug 30 10:17:49 2006 UTC (20 years, 2 months ago) by matt
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -2 lines
#include "opt_ptrace.h"

Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue Aug 29 23:34:48 2006 UTC (20 years, 2 months ago) by matt
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +8 -2 lines
Make PTRACE and COREDUMP optional.  Make the default (status quo) by putting
them in conf/std.

Revision 1.99.2.5: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:47 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.99.2.4: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.4: +11 -11 lines
sync with head

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:11 2006 UTC (20 years, 3 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +11 -11 lines
Use the LWP cached credentials where sane.

Revision 1.95.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:38 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +118 -60 lines
sync with head.

Revision 1.97.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:09 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.97.6.1: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.6.1: +9 -6 lines
Sync with head.

Revision 1.101.4.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:41 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +20 -10 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.99.2.4: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:41 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.99.2.3: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.3: +9 -6 lines
sync with head.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun May 14 21:15:11 2006 UTC (20 years, 6 months ago) by elad
Branches: 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
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +9 -6 lines
integrate kauth.

Revision 1.101.2.5: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:30 2006 UTC (20 years, 6 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.101.2.4: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.2.4: +3 -2 lines
- 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 - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:59 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +82 -22 lines
Sync with head.

Revision 1.101.2.4: download - view: text, markup, annotated - select for diffs
Wed Apr 19 05:14:00 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.101.2.3: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.3: +13 -6 lines
sync with head.

Revision 1.99.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 11 11:55:47 2006 UTC (20 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.99.2.2: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.2: +13 -6 lines
sync with head

Revision 1.102: download - view: text, markup, annotated - select for diffs
Sat Apr 1 22:34:00 2006 UTC (20 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, elad-kernelauth-base
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +13 -6 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 13 09:07:32 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.99.2.1: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.1: +849 -0 lines
sync with head.

Revision 1.101.2.3: download - view: text, markup, annotated - select for diffs
Fri Mar 10 13:53:24 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.101.2.2: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.2: +4 -4 lines
generic_authorize() -> kauth_authorize_generic().

Revision 1.101.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:53:40 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.101.2.1: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.1: +851 -0 lines
Adapt to kernel authorization KPI.

Revision 1.101.2.1
Tue Mar 7 07:19:44 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
FILE REMOVED
Changes since revision 1.101: +0 -849 lines
file sys_process.c was added on branch elad-kernelauth on 2006-03-08 00:53:40 +0000

Revision 1.101: download - view: text, markup, annotated - select for diffs
Tue Mar 7 07:19:44 2006 UTC (20 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq, elad-kernelauth
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +6 -2 lines
Wrap calls to (*e_syscall_intern)() in __HAVE_SYSCALL_INTERN.  Fixes
VAX build.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Mar 5 16:57:16 2006 UTC (20 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +2 -7 lines
Move ISSET/SET/CLR macros to sys/types.h

Revision 1.99.2.1
Sun Mar 5 07:21:38 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
FILE REMOVED
Changes since revision 1.99: +0 -850 lines
file sys_process.c was added on branch yamt-pdpolicy on 2006-03-13 09:07:32 +0000

Revision 1.99: download - view: text, markup, annotated - select for diffs
Sun Mar 5 07:21:38 2006 UTC (20 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base
Branch point for: yamt-pdpolicy
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +43 -3 lines
implement PT_SYSCALL

Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:38:21 2006 UTC (20 years, 8 months ago) by yamt
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +26 -12 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 31 11:14:01 2005 UTC (20 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +26 -12 lines
uio_segflg/uio_lwp -> uio_vmspace.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:30 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +31 -27 lines
merge ktrace-lwp.

Revision 1.83.2.9: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:12 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.83.2.8: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83.2.8: +15 -25 lines
Sync with head.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Dec 7 05:57:38 2005 UTC (20 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: ktrace-lwp-base
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +15 -24 lines
Use ANSI function decls.

Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:24 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +6 -6 lines
sync with -current

Revision 1.94.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:12 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +6 -6 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.83.2.8: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:00 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.83.2.7: preferred, colored
Changes since revision 1.83.2.7: +6 -6 lines
Sync with HEAD.

Hi Perry!

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Feb 26 21:34:55 2005 UTC (21 years, 8 months ago) by perry
Branches: 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
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +6 -6 lines
nuke trailing whitespace

Revision 1.83.2.7: download - view: text, markup, annotated - select for diffs
Thu Feb 24 17:22:33 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.83.2.6: preferred, colored
Changes since revision 1.83.2.6: +3 -2 lines
Reduce diff to HEAD

Revision 1.83.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:32:26 2005 UTC (21 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.83.2.5: preferred, colored
Changes since revision 1.83.2.5: +21 -3 lines
Sync with HEAD.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Jan 9 20:25:26 2005 UTC (21 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3 lines
Flip the order of two lines I mixed. Thanks to wiz for noticing.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Jan 9 19:22:55 2005 UTC (21 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +21 -3 lines
Allow PT_DUMPCORE to specify the core filename.

Revision 1.83.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:35:13 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.83.2.4: preferred, colored
Changes since revision 1.83.2.4: +38 -34 lines
Fix the sync with head I botched.

Revision 1.83.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:53:03 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.83.2.3: preferred, colored
Changes since revision 1.83.2.3: +34 -38 lines
Sync with HEAD.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Sep 17 14:11:25 2004 UTC (22 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: kent-audio1-base, kent-audio1
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 12 15:33:53 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.83.2.2: preferred, colored
Changes since revision 1.83.2.2: +3 -5 lines
Fix a build problem for some platforms.

Revision 1.83.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:52:55 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.83.2.1: preferred, colored
Changes since revision 1.83.2.1: +67 -22 lines
Sync with HEAD

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Jun 22 02:06:55 2004 UTC (22 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +2 -5 lines
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 - view: text, markup, annotated - select for diffs
Wed May 26 16:28:05 2004 UTC (22 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4 lines
(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 - view: text, markup, annotated - select for diffs
Fri May 14 16:36:33 2004 UTC (22 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +15 -10 lines
Check for bad offsets at the beginning of the functions to save processing.
Idea from OpenBSD.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue May 4 21:58:47 2004 UTC (22 years, 6 months ago) by pk
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +6 -2 lines
proc_reparent() must be called with proclist write lock held. Make it so.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue May 4 21:33:40 2004 UTC (22 years, 6 months ago) by pk
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +15 -8 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 13 18:43:18 2004 UTC (22 years, 8 months ago) by matt
Branches: 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
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -3 lines
Only do the pmap_procwr if the uvm_io succeeded.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue Nov 4 10:33:15 2003 UTC (23 years ago) by dsl
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 7 16:31:55 2003 UTC (23 years, 3 months ago) by agc
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +36 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:42 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +38 -32 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:27 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +30 -36 lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:56 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +38 -32 lines
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 - view: text, markup, annotated - select for diffs
Tue May 20 18:16:09 2003 UTC (23 years, 6 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +35 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 7 21:44:45 2003 UTC (23 years, 9 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +12 -4 lines
Adapt to the new conventions of proc_unstop() and don't try to call
setrunnable(NULL).

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Jan 23 17:35:32 2003 UTC (23 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +6 -2 lines
PT_DUMPCORE support.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Jan 18 10:06:34 2003 UTC (23 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +59 -29 lines
Merge the nathanw_sa branch.

Revision 1.77.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 18 01:06:16 2002 UTC (23 years, 11 months ago) by gmcgarry
Branches: gmcgarry_ucred
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +4 -4 lines
Merge pcred and ucred, and poolify.  TBD: check backward compatibility
and factor-out some higher-level functionality.

Revision 1.66.2.22: download - view: text, markup, annotated - select for diffs
Thu Oct 17 00:27:46 2002 UTC (24 years, 1 month ago) by gmcgarry
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.66.2.21: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.2.21: +10 -10 lines
All _validfoo functions revert to taking struct proc *.

Revision 1.66.2.21: download - view: text, markup, annotated - select for diffs
Thu Oct 10 22:27:15 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.20: preferred, colored
Changes since revision 1.66.2.20: +18 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 17 22:14:17 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.19: preferred, colored
Changes since revision 1.66.2.19: +3 -3 lines
LWPify recent changes.

Revision 1.66.2.19: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:22:19 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.18: preferred, colored
Changes since revision 1.66.2.18: +15 -5 lines
Catch up to -current.

Revision 1.68.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:48:10 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.68.2.4: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.2.4: +33 -25 lines
sync kqueue branch with HEAD

Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:23:12 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +33 -25 lines
catch up with -current.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Aug 28 07:27:14 2002 UTC (24 years, 2 months ago) by gmcgarry
Branches: 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
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +17 -7 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 27 23:47:34 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.17: preferred, colored
Changes since revision 1.66.2.17: +8 -10 lines
Catch up to -current.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Aug 25 23:23:22 2002 UTC (24 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +10 -12 lines
Fix some signed/unsigned comparison warnings from GCC 3.3.

Revision 1.66.2.17: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:46:25 2002 UTC (24 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.16: preferred, colored
Changes since revision 1.66.2.16: +10 -10 lines
Catch up to -current.

Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Mon Jul 29 15:37:38 2002 UTC (24 years, 3 months ago) by lukem
Branches: 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
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +10 -10 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 25 20:04:02 2002 UTC (24 years, 3 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +10 -10 lines
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 - view: text, markup, annotated - select for diffs
Fri Jul 12 01:40:21 2002 UTC (24 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.15: preferred, colored
Changes since revision 1.66.2.15: +2 -3 lines
No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.68.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:49:36 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.68.2.3: preferred, colored
Changes since revision 1.68.2.3: +246 -9 lines
catch up with -current on kqueue branch

Revision 1.66.2.15: download - view: text, markup, annotated - select for diffs
Thu Jun 20 23:04:23 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.14: preferred, colored
Changes since revision 1.66.2.14: +24 -24 lines
LWPify the sys_process/procfs rearrangement.

Revision 1.66.2.14: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:47:22 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.13: preferred, colored
Changes since revision 1.66.2.13: +216 -10 lines
Catch up to -current.

Revision 1.66.2.13: download - view: text, markup, annotated - select for diffs
Wed May 29 21:33:15 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.12: preferred, colored
Changes since revision 1.66.2.12: +3 -2 lines
#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 - view: text, markup, annotated - select for diffs
Thu May 9 15:44:45 2002 UTC (24 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +216 -10 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 1 21:31:33 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.11: preferred, colored
Changes since revision 1.66.2.11: +3 -3 lines
procfs_domem() should take proc *, proc *; not proc *, lwp *.

Revision 1.66.2.11: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:47:57 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.10: preferred, colored
Changes since revision 1.66.2.10: +33 -2 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Mar 17 17:02:45 2002 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-devprop-base, eeh-devprop
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +33 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Feb 28 04:14:46 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.9: preferred, colored
Changes since revision 1.66.2.9: +2 -2 lines
Catch up to -current.

Revision 1.68.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:10:24 2002 UTC (24 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.68.2.2: preferred, colored
Changes since revision 1.68.2.2: +6 -2 lines
Sync w/ -current.

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 14 15:19:04 2002 UTC (24 years, 10 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +5 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 12 01:03:07 2002 UTC (24 years, 10 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.61.18.2: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.18.2: +5 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 11 23:39:39 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.8: preferred, colored
Changes since revision 1.66.2.8: +6 -2 lines
More catchup.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Jan 11 21:16:28 2002 UTC (24 years, 10 months ago) by christos
Branches: MAIN
CVS tags: newlock-base, newlock, ifpoll-base
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 10 20:00:07 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.68.2.1: preferred, colored
Changes since revision 1.68.2.1: +16 -1 lines
Sync kqueue branch with -current.

Revision 1.66.2.8: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:56:55 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.7: preferred, colored
Changes since revision 1.66.2.7: +3 -3 lines
Adapt to LWP'd ptracing.

Revision 1.66.2.7: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:32:40 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.6: preferred, colored
Changes since revision 1.66.2.6: +14 -2 lines
Catch up to -current.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Dec 5 00:58:05 2001 UTC (24 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +14 -2 lines
* 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 - view: text, markup, annotated - select for diffs
Thu Nov 29 01:27:53 2001 UTC (24 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.5: preferred, colored
Changes since revision 1.66.2.5: +10 -10 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 14 19:16:43 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.4: preferred, colored
Changes since revision 1.66.2.4: +4 -1 lines
Catch up to -current.

Revision 1.69.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:18:55 2001 UTC (25 years ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +4 -1 lines
Sync the thorpej-mips-cache branch with -current.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Nov 12 15:25:25 2001 UTC (25 years ago) by lukem
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -1 lines
add RCSIDs

Revision 1.66.2.4: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:11:39 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.3: preferred, colored
Changes since revision 1.66.2.3: +3 -3 lines
Catch up with -current.

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:43 2001 UTC (25 years, 3 months ago) by lukem
Branches: kqueue
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
update to -current

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Jul 22 13:34:11 2001 UTC (25 years, 4 months ago) by wiz
Branches: 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
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
seperate -> separate

Revision 1.66.2.3: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:07:02 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.2: preferred, colored
Changes since revision 1.66.2.2: +1 -10 lines
Catch up to -current.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Jun 13 16:06:28 2001 UTC (25 years, 5 months ago) by nathanw
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +1 -10 lines
The trace_req() function is a no-op; garbage collect it.

Revision 1.66.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:57:56 2001 UTC (25 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66.2.1: preferred, colored
Changes since revision 1.66.2.1: +2 -2 lines
Catch up with -current.

Revision 1.61.18.2: download - view: text, markup, annotated - select for diffs
Fri Mar 30 21:47:02 2001 UTC (25 years, 7 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.61.18.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.18.1: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 27 15:32:24 2001 UTC (25 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.61.8.2: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.8.2: +1 -1 lines
Sync with HEAD.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Mar 17 09:38:36 2001 UTC (25 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -2 lines
fix typo in comment

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 5 22:49:44 2001 UTC (25 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +28 -14 lines
Initial commit of scheduler activations and lightweight process support.

Revision 1.61.8.2: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:45 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.61.8.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.8.1: +3 -3 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Jan 17 01:13:23 2001 UTC (25 years, 10 months ago) by fvdl
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3 lines
Adapt for procfs_valid* argument change.

Revision 1.61.8.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:09:09 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +24 -14 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Sep 24 07:31:28 2000 UTC (26 years, 1 month ago) by erh
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +12 -7 lines
Prevent ptrace on system processes.  Avoids panic when attempting to ptrace pid 0, which has no parent.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Aug 20 21:50:11 2000 UTC (26 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Jul 31 02:49:19 2000 UTC (26 years, 3 months ago) by mrg
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +11 -7 lines
pull up 1.63 (approved by thorpej):
>Fix LP64BE bug.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Jul 28 04:21:26 2000 UTC (26 years, 3 months ago) by eeh
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +11 -7 lines
Fix LP64BE bug.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jun 27 17:41:36 2000 UTC (26 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +1 -2 lines
remove include of <vm/vm.h>

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Mar 25 04:45:57 1999 UTC (27 years, 7 months ago) by sommerfe
Branches: 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
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +9 -1 lines
Disallow tracing of processes unless tracer's root directory is at or
above tracee's root directory.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Mar 24 05:51:25 1999 UTC (27 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -5 lines
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 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:09:46 1998 UTC (28 years, 8 months ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-2, lite-1, date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +74 -1 lines
Import 4.4BSD-Lite for reference

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Feb 10 14:09:47 1998 UTC (28 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -1 lines
- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Feb 5 07:59:58 1998 UTC (28 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 28 04:49:30 1997 UTC (29 years, 6 months ago) by mycroft
Branches: 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
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 28 02:29:52 1997 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -3 lines
When checking for init, compare against initproc, rather than comparing the
PID.  No functional difference.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed May 15 06:17:47 1996 UTC (30 years, 6 months ago) by tls
Branches: 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
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +12 -2 lines
fix obscure problem involving ptrace of init

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Feb 9 19:00:14 1996 UTC (30 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +1 -6 lines
More proto fixes

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Feb 4 02:16:58 1996 UTC (30 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +13 -3 lines
First pass at prototyping

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Oct 7 06:28:36 1995 UTC (31 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
Prefix names of system call implementation functions with `sys_'.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Sep 19 21:45:15 1995 UTC (31 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -5 lines
Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun Aug 13 09:05:59 1995 UTC (31 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +11 -3 lines
Lock the process in core before operating on it.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Jun 8 23:51:05 1995 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 5 20:57:54 1995 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -4 lines
If necessary, wake up the child during attach so we always get a SIGCHLD.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Feb 9 05:19:18 1995 UTC (31 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -5 lines
Omit the call to process_sstep() if PT_STEP is not defined.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Feb 8 23:38:29 1995 UTC (31 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +7 -5 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 3 11:36:01 1995 UTC (31 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +30 -45 lines
Make attach/detach more safe.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Jan 26 17:56:21 1995 UTC (31 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -50 lines
Remove PT_{READ,WRITE}_U.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Oct 30 21:47:50 1994 UTC (32 years ago) by cgd
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
be more careful with types, also pull in headers where necessary.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Oct 20 04:23:08 1994 UTC (32 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +42 -35 lines
update for new syscall args description mechanism

Revision 1.33.2.4: download - view: text, markup, annotated - select for diffs
Sun Sep 25 05:46:15 1994 UTC (32 years, 1 month ago) by cgd
Branches: 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
Diff to: previous 1.33.2.3: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.3: +414 -1 lines
from trunk, per mycroft

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Sep 24 07:17:18 1994 UTC (32 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
Correct test for already being traced.

Revision 1.33.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 14 16:52:51 1994 UTC (32 years, 2 months ago) by cgd
Branches: netbsd-1-0
Diff to: previous 1.33.2.2: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.2: +1 -1 lines
From trunk.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Sep 14 16:40:29 1994 UTC (32 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +9 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 23 22:13:59 1994 UTC (32 years, 3 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
replace "ctob(UPAGES)" and "UPAGES * NBPG" with "USPACE"
(cvs dumped core during previous commit...)

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Aug 21 21:24:33 1994 UTC (32 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -6 lines
kill errant spaces

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 15 16:53:24 1994 UTC (32 years, 3 months ago) by mycroft
Branches: netbsd-1-0
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.1: +1 -1 lines
update from trunk

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Aug 15 16:45:14 1994 UTC (32 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -4 lines
Minor update to a comment.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Aug 15 16:32:41 1994 UTC (32 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +347 -12 lines
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 - view: text, markup, annotated - select for diffs
Mon Aug 15 16:29:22 1994 UTC (32 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +74 -1 lines
replce with virgin copy from 4.4-Lite

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 12 23:27:23 1994 UTC (32 years, 4 months ago) by cgd
Branches: netbsd-1-0
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -1 lines
fix by ws, from trunk.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Jul 12 22:20:46 1994 UTC (32 years, 4 months ago) by ws
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -1 lines
Try to pick myself up from the floor where I fell laughing.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:33:07 1994 UTC (32 years, 4 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +1 -1 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed May 18 11:37:00 1994 UTC (32 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +1 -1 lines
Implement ptrace() functionality, based on the previous version
by Sean Eric Fagan.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed May 18 11:32:27 1994 UTC (32 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +1 -1 lines
replace sys_process.c with the 4.4-Lite version

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat May 7 00:51:06 1994 UTC (32 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -1 lines
function name changes

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu May 5 05:38:30 1994 UTC (32 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -1 lines
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 - view: text, markup, annotated - select for diffs
Wed May 4 03:42:04 1994 UTC (32 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +1 -1 lines
Rename a lot of process flags.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Apr 7 00:40:23 1994 UTC (32 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -1 lines
SUGID semantics, similar to 4.4BSD

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Mar 11 09:12:22 1994 UTC (32 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -1 lines
A zero scale factor turns profiling off.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Feb 3 16:17:25 1994 UTC (32 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -1 lines
Remove out-dated comments

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Jan 28 19:06:17 1994 UTC (32 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -1 lines
make sure PT_STEP's are in #ifdefs

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jan 28 06:51:13 1994 UTC (32 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -1 lines
if you define PT_[GS]ETFPREGS, then you'd better define struct fpreg, etc.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jan 20 21:22:50 1994 UTC (32 years, 10 months ago) by ws
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -1 lines
Make procfs really work for debugging.
Implement not & notepg files in procfs.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jan 10 06:10:30 1994 UTC (32 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -1 lines
Cleanup.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Jan 10 05:58:37 1994 UTC (32 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -1 lines
*Really* fix the wakeup code this time.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jan 10 04:20:29 1994 UTC (32 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -1 lines
Wake up the blasted process when we detach!

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jan 9 23:57:15 1994 UTC (32 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -1 lines
implement PT_ATTACH and PT_DETACH.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jan 9 16:52:35 1994 UTC (32 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -1 lines
PT_STEP is actually machine dependent.  not all machines have it!

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jan 8 11:18:56 1994 UTC (32 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -1 lines
core reorg

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Dec 18 04:21:37 1993 UTC (32 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -1 lines
Canonicalize all #includes.

Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 1 22:05:36 1993 UTC (32 years, 11 months ago) by cgd
Branches: magnum
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.2: +1 -1 lines
update from trunk

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Dec 1 22:05:04 1993 UTC (32 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -1 lines
initialize uninitialized variable, from Andy Heffernan <ahh@netcom.com>.

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 14 21:07:15 1993 UTC (33 years ago) by mycroft
Branches: magnum
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +1 -1 lines
Canonicalize all #includes.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Wed Sep 29 06:31:04 1993 UTC (33 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 6 02:06:34 1993 UTC (33 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: magnum-base
Branch point for: magnum
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -1 lines
A little more cleanup; 0 --> FALSE and 1 --> TRUE.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 6 02:03:03 1993 UTC (33 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -1 lines
De-ANSIfy and re-KNFify.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Sep 5 03:53:52 1993 UTC (33 years, 2 months ago) by sef
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 4 08:46:36 1993 UTC (33 years, 2 months ago) by sef
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 4 05:32:35 1993 UTC (33 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1 lines
better ptrace() support from Sean Eric Fagan <sef@kithrup.com>

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jul 13 22:13:33 1993 UTC (33 years, 4 months ago) by cgd
Branches: 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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -1 lines
break args structs out, into syscallname_args structs, so gcc2 doesn't
whine so much.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jul 4 23:30:39 1993 UTC (33 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1 lines
change exit() to kexit(), so prototypes are "safe" with stdio.h, etc.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jun 27 06:01:55 1993 UTC (33 years, 4 months ago) by andrew
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon May 24 11:37:12 1993 UTC (33 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -1 lines
move sipcreg into i386/include/reg.h where it belongs, right next to ipcreg.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu May 20 02:55:09 1993 UTC (33 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -1 lines
add $Id$ strings, and clean up file headers where necessary

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri May 7 07:06:42 1993 UTC (33 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
update for bde's useracc changes.  from patchkit patch 137.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 21 18:04:42 1993 UTC (33 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
after 0.2.2 "stable" patches applied

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>