The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.82.8.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:32 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.82: +2 -6 lines
Diff to previous 1.82 (colored) next main 1.83 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.83 / (download) - annotate - [select for diffs], Mon May 3 10:25:14 2021 UTC (2 years, 10 months ago) by fcambus
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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
Changes since 1.82: +2 -6 lines
Diff to previous 1.82 (colored) to selected 1.74 (colored)

Remove duplicate #ifdef block.

Revision 1.75.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:03 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.75.2.2: +1 -1 lines
Diff to previous 1.75.2.2 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.74 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:51 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.75.2.1: +4 -4 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) to selected 1.74 (colored)

Merge changes from current as of 20200406

Revision 1.82 / (download) - annotate - [select for diffs], Mon Mar 23 02:44:22 2020 UTC (4 years ago) by pgoyette
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Branch point for: thorpej-i2c-spi-conf
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) to selected 1.74 (colored)

Fix typo in comment.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Mar 23 00:46:11 2020 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.74 (colored)

LK_SHARED is OK for VOP_ACCESS().

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:53:01 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) next main 1.81 (colored) to selected 1.74 (colored)

LK_SHARED for VOP_ACCESS().

Revision 1.80 / (download) - annotate - [select for diffs], Sun Sep 15 20:21:12 2019 UTC (4 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored) to selected 1.74 (colored)

adjust for new check_exec signature.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.75: +11 -3 lines
Diff to previous 1.75 (colored) to selected 1.74 (colored)

Sync with HEAD

Revision 1.79 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:43 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, 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, isaki-audio2-base, isaki-audio2
Changes since 1.78: +6 -2 lines
Diff to previous 1.78 (colored) to selected 1.74 (colored)

Merge the [pgoyette-compat] branch

Revision 1.74.18.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:41 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.74.18.2: +3 -3 lines
Diff to previous 1.74.18.2 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored) to selected 1.74 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.78 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.74 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.74.18.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:08 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.74.18.1: +6 -2 lines
Diff to previous 1.74.18.1 (colored) to branchpoint 1.74 (colored) to selected 1.74 (colored)

Sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jun 30 11:10:54 2018 UTC (5 years, 8 months ago) by kre
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.76: +4 -2 lines
Diff to previous 1.76 (colored) to selected 1.74 (colored)


Fix module build.

Options SUIDSCRIPTS and FDSCRIPTS will be off for the module.
If one (or both) should be enabled, add it to CPPFLAGSin the module Makefile.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Jun 30 00:37:37 2018 UTC (5 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.75: +4 -2 lines
Diff to previous 1.75 (colored) to selected 1.74 (colored)

defflag {SETUID,FD}SCRIPTS

Revision 1.74.18.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:22 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.74: +4 -6 lines
Diff to previous 1.74 (colored)

Synch with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Fri Apr 27 18:33:24 2018 UTC (5 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502
Branch point for: phil-wifi
Changes since 1.74: +4 -6 lines
Diff to previous 1.74 (colored)

Canonicalize the interpreter path in #! scripts since check_exec() expects
an absolute path, and we KASSERT if that's not the case later.

Revision 1.66.18.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:44 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.66.18.1: +1 -1 lines
Diff to previous 1.66.18.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored) to selected 1.74 (colored)

update from HEAD

Revision 1.74 / (download) - annotate - [selected], Fri Sep 5 09:20:59 2014 UTC (9 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.

Revision 1.66.18.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:28 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.66: +40 -57 lines
Diff to previous 1.66 (colored) to selected 1.74 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:58 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.70: +13 -23 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.74 (colored)

Rebase.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Jun 30 17:31:15 2014 UTC (9 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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, netbsd-7
Changes since 1.72: +8 -12 lines
Diff to previous 1.72 (colored) to selected 1.74 (colored)

Reorder two variables and fix some comments.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Jun 30 17:22:32 2014 UTC (9 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored) to selected 1.74 (colored)

If the interpreter is "", do not keep loading the script (which will later
fail), but return ENOEXEC directly.

ok christos@

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 23 18:06:32 2014 UTC (9 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.70: +5 -11 lines
Diff to previous 1.70 (colored) to selected 1.74 (colored)

Use KASSERT() instead of #ifdef(DIAGNOSTIC). Clearer.

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.66: +29 -36 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.74 (colored)

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.66.22.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.66: +29 -36 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.74 (colored)

sync with head

Revision 1.70 / (download) - annotate - [select for diffs], Fri Mar 7 01:34:29 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.69: +17 -17 lines
Diff to previous 1.69 (colored) to selected 1.74 (colored)

c99 initializers for struct execsw

Revision 1.69 / (download) - annotate - [select for diffs], Fri Feb 21 08:11:59 2014 UTC (10 years, 1 month ago) by maxv
Branch: MAIN
Changes since 1.68: +2 -9 lines
Diff to previous 1.68 (colored) to selected 1.74 (colored)

Revert rev1.38. The header already begins with EXEC_SCRIPT_MAGIC="#!".
So it can't be ELFMAG="\177ELF" at the same time.

ok christos@

Revision 1.68 / (download) - annotate - [select for diffs], Mon Feb 17 19:29:46 2014 UTC (10 years, 1 month ago) by maxv
Branch: MAIN
Changes since 1.67: +13 -13 lines
Diff to previous 1.67 (colored) to selected 1.74 (colored)

Cosmetic; just replace whitespaces by tabs

Revision 1.67 / (download) - annotate - [select for diffs], Thu Sep 19 18:50:59 2013 UTC (10 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.74 (colored)

exec modules need to be of the exec kind

Revision 1.63.8.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:12 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.63.8.2: +10 -3 lines
Diff to previous 1.63.8.2 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.74 (colored)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:42 2010 UTC (13 years, 4 months ago) by dholland
Branch: 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, rmind-uvmplock-nbase, rmind-uvmplock-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, matt-mips64-premerge-20101231, khorben-n900, jruoho-x86intr-base, jruoho-x86intr, 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, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Changes since 1.65: +10 -3 lines
Diff to previous 1.65 (colored) to selected 1.74 (colored)

Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:25 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63: +17 -26 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.62.4.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:37 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.62.4.1: +17 -26 lines
Diff to previous 1.62.4.1 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.63.8.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:52 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.63.8.1: +3 -3 lines
Diff to previous 1.63.8.1 (colored) to branchpoint 1.63 (colored) to selected 1.74 (colored)

sync with head

Revision 1.65 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:11 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) to selected 1.74 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.63.8.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:56 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.63: +16 -25 lines
Diff to previous 1.63 (colored) to selected 1.74 (colored)

sync with head

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 2 05:30:20 2010 UTC (13 years, 11 months ago) by dholland
Branch: MAIN
Changes since 1.63: +16 -25 lines
Diff to previous 1.63 (colored) to selected 1.74 (colored)

Remove the nameidata from struct exec_package. It was used only for two
things: passing an argument to check_exec, which is better done explicitly,
and handing back the resolved pathname generated by namei, which we can
make an explicit slot for in struct exec_package instead. While here,
perform some related tidyup, and store the kernel-side copy of the path
to the executable as well as the pointer into userspace. (But the latter
should probably be removed in the future.)

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.62: +47 -5 lines
Diff to previous 1.62 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.62.12.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:37 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.62: +47 -5 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.61.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61.6.1: +45 -3 lines
Diff to previous 1.61.6.1 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.62.10.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:07 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.62: +47 -5 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.74 (colored)

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

Revision 1.63 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:06 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base1, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.62: +47 -5 lines
Diff to previous 1.62 (colored) to selected 1.74 (colored)

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

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

Revision 1.61.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:00 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61: +5 -8 lines
Diff to previous 1.61 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.41.2.7 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:01 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.6: +5 -8 lines
Diff to previous 1.41.2.6 (colored) next main 1.42 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, 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, 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-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, 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-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1, ad-socklock-base1
Branch point for: yamt-nfs-mp, nick-hppapmap, haad-dm
Changes since 1.61: +5 -8 lines
Diff to previous 1.61 (colored) to selected 1.74 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.57.14.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.57.14.2: +29 -39 lines
Diff to previous 1.57.14.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.41.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:59 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.5: +30 -40 lines
Diff to previous 1.41.2.5 (colored) to selected 1.74 (colored)

sync with head

Revision 1.57.8.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:56 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.57: +32 -42 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.74 (colored)

sync with HEAD

Revision 1.58.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:43 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.58: +30 -40 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.74 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jan 2 19:44:37 2008 UTC (16 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2
Changes since 1.60: +29 -17 lines
Diff to previous 1.60 (colored) to selected 1.74 (colored)

use kmem_alloc instead of malloc.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Dec 31 15:32:10 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.59: +2 -24 lines
Diff to previous 1.59 (colored) to selected 1.74 (colored)

Remove systrace. Ok core@.

Revision 1.57.14.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:53 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.57.14.1: +3 -3 lines
Diff to previous 1.57.14.1 (colored) to branchpoint 1.57 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:06 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.74 (colored)

Sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Dec 14 16:48:24 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.74 (colored)

nuke the leprechaun from VOP_ACCESS

Paul Lavoie, kern/37542

Revision 1.57.14.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:25 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.41.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:34 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.4: +4 -4 lines
Diff to previous 1.41.2.4 (colored) to selected 1.74 (colored)

sync with head

Revision 1.57.6.1 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:00 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.74 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:00 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored) to selected 1.74 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.41.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:39 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.3: +7 -9 lines
Diff to previous 1.41.2.3 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.56.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:39 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.56: +6 -8 lines
Diff to previous 1.56 (colored) next main 1.57 (colored) to selected 1.74 (colored)

Sync with head.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:15 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.56: +6 -8 lines
Diff to previous 1.56 (colored) next main 1.57 (colored) to selected 1.74 (colored)

Sync with head.

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Mon May 7 10:55:44 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.54.2.2: +6 -8 lines
Diff to previous 1.54.2.2 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Apr 22 08:30:00 2007 UTC (16 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6, jmcneill-pm
Changes since 1.56: +6 -8 lines
Diff to previous 1.56 (colored) to selected 1.74 (colored)

Change the way that emulations locate files within the emulation root to
  avoid having to allocate space in the 'stackgap'
  - which is very LWP unfriendly.
The additional code for non-emulation namei() is trivial, the reduction for
  the emulations is massive.
The vnode for a processes emulation root is saved in the cwdi structure
  during process exec.
If the emulation root the TRYEMULROOT flag are set, namei() will do an initial
  search for absolute pathnames in the emulation root, if that fails it will
  retry from the normal root.
".." at the emulation root will always go to the real root, even in the middle
  of paths and when expanding symlinks.
Absolute symlinks found using absolute paths in the emulation root will be
  relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links
  inside the emulation root don't need changing).
If the root of the emulation would be returned (for an emulation lookup), then
  the real root is returned instead (matching the behaviour of emul_lookup,
  but being a cheap comparison here) so that programs that scan "../.."
  looking for the root dircetory don't loop forever.
The target for symbolic links is no longer mangled (it used to get the
  CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended).
CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding
  TRYEMULROOT to the flags to NDINIT().
A lot of the emulation system call stubs could now be deleted.

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:31 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.54.2.1: +3 -3 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:02 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.74 (colored)

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

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:16 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.74 (colored)

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

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:03 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.2: +5 -5 lines
Diff to previous 1.41.2.2 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:42 2007 UTC (17 years, 1 month ago) by pavel
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.74 (colored)

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

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

Reviewed by Andrew Doran.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored) to selected 1.74 (colored)

Merge newlock2 to head.

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:06 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.52.4.1: +3 -11 lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.74 (colored)

Sync with head.

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:04 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.1: +9 -18 lines
Diff to previous 1.41.2.1 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Thu Dec 21 15:07:59 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.52: +3 -11 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Thu Dec 21 14:25:45 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.52: +3 -11 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.74 (colored)

Pull up following revision(s) (requested by elad in ticket #294):
	sys/kern/exec_script.c: revision 1.53
	sys/kern/kern_exec.c: revision 1.233
	sys/sys/exec.h: revision 1.115
Remove the third argument from check_exec() and just check for ep_flags
in the exec_package to know if we need to use VERIEXEC_DIRECT or
VERIEXEC_INDIRECT.
Suggested by and okay yamt@

Revision 1.53 / (download) - annotate - [select for diffs], Wed Dec 20 11:35:29 2006 UTC (17 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, newlock2-nbase, newlock2-base
Changes since 1.52: +3 -11 lines
Diff to previous 1.52 (colored) to selected 1.74 (colored)

Remove the third argument from check_exec() and just check for ep_flags
in the exec_package to know if we need to use VERIEXEC_DIRECT or
VERIEXEC_INDIRECT.

Suggested by and okay yamt@

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:35 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored) to selected 1.74 (colored)

Checkpoint work in progress.

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:15 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.45: +14 -15 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.74 (colored)

sync with head

Revision 1.45.8.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.45.8.2: +12 -13 lines
Diff to previous 1.45.8.2 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.74 (colored)

sync with head

Revision 1.52 / (download) - annotate - [select for diffs], Wed Jul 26 09:33:57 2006 UTC (17 years, 8 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, netbsd-4-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2, netbsd-4
Changes since 1.51: +1 -1 lines
Diff to previous 1.51 (colored) to selected 1.74 (colored)

at the request of elad, as veriexec.h has returned, revert the changes
from 2006-07-25.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Jul 25 00:23:06 2006 UTC (17 years, 8 months ago) by dogcow
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.74 (colored)

mechanically go through and
 s,include "veriexec.h",include <sys/verified_exec.h>,
as the former has apparently gone away.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Jul 24 16:37:28 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.74 (colored)

some fixes:
  - adapt to NVERIEXEC in init_sysctl.c.
  - we now need "veriexec.h" for NVERIEXEC.
  - "opt_verified_exec.h" -> "opt_veriexec.h", and include it only where
    it is needed.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:10 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.48: +7 -8 lines
Diff to previous 1.48 (colored) to selected 1.74 (colored)

Use the LWP cached credentials where sane.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jul 22 10:34:26 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.47: +6 -6 lines
Diff to previous 1.47 (colored) to selected 1.74 (colored)

deprecate the VERIFIED_EXEC option; now we only need the pseudo-device to
enable it. while here, some config file tweaks.

tons of input from cube@ (thanks!) and okay blymn@.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41: +17 -12 lines
Diff to previous 1.41 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.45.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:06 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.45.6.1: +5 -5 lines
Diff to previous 1.45.6.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.74 (colored)

Sync with head.

Revision 1.45.12.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.45.12.1: +5 -5 lines
Diff to previous 1.45.12.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.74 (colored)

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

Revision 1.45.8.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.45.8.1: +5 -5 lines
Diff to previous 1.45.8.1 (colored) to branchpoint 1.45 (colored) to selected 1.74 (colored)

sync with head.

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

integrate kauth.

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored) to selected 1.74 (colored)

Sync with head.

Revision 1.45.10.2 / (download) - annotate - [select for diffs], Wed Apr 19 05:13:59 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.45.10.1: +4 -4 lines
Diff to previous 1.45.10.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.45.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:39 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored) to selected 1.74 (colored)

sync with head.

Revision 1.45.12.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:26 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored) to selected 1.74 (colored)

Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Mar 17 23:29:09 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored) to selected 1.74 (colored)

don't use MALLOC with a non-constant size; use malloc instead.

Revision 1.45.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:40 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored) to selected 1.74 (colored)

Adapt to kernel authorization KPI.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.44: +11 -10 lines
Diff to previous 1.44 (colored) to selected 1.74 (colored)

merge ktrace-lwp.

Revision 1.36.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.6: +32 -4 lines
Diff to previous 1.36.2.6 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored) to selected 1.74 (colored)

Sync with HEAD. Here we go again...

Revision 1.38.10.7 / (download) - annotate - [select for diffs], Thu Sep 8 21:06:30 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, 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-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.38.10.6: +5 -3 lines
Diff to previous 1.38.10.6 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.74 (colored)

Apply patch (requested by elad in ticket #740):
Defopt VERIFIED_EXEC.

Revision 1.38.10.6 / (download) - annotate - [select for diffs], Tue Aug 23 14:45:20 2005 UTC (18 years, 7 months ago) by tron
Branch: netbsd-3
Changes since 1.38.10.5: +3 -5 lines
Diff to previous 1.38.10.5 (colored) to branchpoint 1.38 (colored) to selected 1.74 (colored)

Backout ticket 685. It causes build failures.

Revision 1.38.10.5 / (download) - annotate - [select for diffs], Tue Aug 23 13:47:41 2005 UTC (18 years, 7 months ago) by tron
Branch: netbsd-3
Changes since 1.38.10.4: +3 -3 lines
Diff to previous 1.38.10.4 (colored) to branchpoint 1.38 (colored) to selected 1.74 (colored)

Pull up revision 1.43 (requested by elad in ticket #685):
catch up with verified exec defopt changes.

Revision 1.38.10.4 / (download) - annotate - [select for diffs], Tue Aug 23 13:44:06 2005 UTC (18 years, 7 months ago) by tron
Branch: netbsd-3
Changes since 1.38.10.3: +2 -0 lines
Diff to previous 1.38.10.3 (colored) to branchpoint 1.38 (colored) to selected 1.74 (colored)

Pull up revision 1.42 (requested by elad in ticket #685):
defopt verified_exec.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jul 29 14:49:00 2005 UTC (18 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored) to selected 1.74 (colored)

#ifdef VERIFIED_EXEC

Revision 1.43 / (download) - annotate - [select for diffs], Sun Jul 17 05:22:34 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.74 (colored)

catch up with verified exec defopt changes.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jul 16 22:47:18 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored) to selected 1.74 (colored)

defopt verified_exec.

Revision 1.38.10.3 / (download) - annotate - [select for diffs], Sat Jul 2 18:50:06 2005 UTC (18 years, 9 months ago) by tron
Branch: netbsd-3
Changes since 1.38.10.2: +0 -9 lines
Diff to previous 1.38.10.2 (colored) to branchpoint 1.38 (colored) to selected 1.74 (colored)

Backout revision (requested by elad in ticket #487):
Backout systrace related changes. Only the the verified exec subsystem
fix which was accidentally committed with these changes should have been
pulled up.

Revision 1.38.10.2 / (download) - annotate - [select for diffs], Sat Jul 2 17:53:58 2005 UTC (18 years, 9 months ago) by tron
Branch: netbsd-3
Changes since 1.38.10.1: +9 -0 lines
Diff to previous 1.38.10.1 (colored) to branchpoint 1.38 (colored) to selected 1.74 (colored)

Pull up revision 1.40 (requested by elad in ticket #487):
From marius@openbsd:
Add an exec message so that whenever a set-uid/gid process executes a new
image which we may control, the exec does not go by unnoticed.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jun 27 17:11:20 2005 UTC (18 years, 9 months ago) by elad
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.40: +17 -4 lines
Diff to previous 1.40 (colored) to selected 1.74 (colored)

From marius@openbsd:

Fix an issue when scripts are executed under systrace where the argv[0]
would be normalized, and hence break scripts that depend on how they were
called.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jun 26 19:58:29 2005 UTC (18 years, 9 months ago) by elad
Branch: MAIN
Changes since 1.39: +11 -2 lines
Diff to previous 1.39 (colored) to selected 1.74 (colored)

From marius@openbsd:

Add an exec message so that whenever a set-uid/gid process executes a new
image which we may control, the exec does not go by unnoticed.

Revision 1.38.10.1 / (download) - annotate - [select for diffs], Fri Jun 10 15:10:24 2005 UTC (18 years, 9 months ago) by tron
Branch: netbsd-3
Changes since 1.38: +5 -3 lines
Diff to previous 1.38 (colored) to selected 1.74 (colored)

Pull up revision 1.39 (requested by elad in ticket #389):
Some changes in veriexec.
New features:
- Add a veriexec_report() routine to make most reporting consistent and
remove some common code.
- Add 'strict' mode that controls how veriexec behaves.
- Add sysctl knobs:
o kern.veriexec.verbose controls verbosity levels. Value: 0, 1.
o kern.veriexec.strict controls strict level. Values: 0, 1, 2. See
documentation in sysctl(3) for details.
o kern.veriexec.algorithms returns a string with a space separated
list of supported hashing algorithms in veriexec.
- Updated documentation in man pages for sysctl(3) and sysctl(8).
Bug fixes:
- veriexec_removechk(): Code cleanup + handle FINGERPRINT_NOTEVAL
correctly.
- exec_script(): Don't pass 0 as flag when executing a script; use the
defined VERIEXEC_INDIRECT - which is 1. Makes indirect execution
enforcement work.
- Fix some printing formats and types..

Revision 1.39 / (download) - annotate - [select for diffs], Thu May 19 20:16:19 2005 UTC (18 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.38: +5 -3 lines
Diff to previous 1.38 (colored) to selected 1.74 (colored)

Some changes in veriexec.

New features:

  - Add a veriexec_report() routine to make most reporting consistent and
    remove some common code.
  - Add 'strict' mode that controls how veriexec behaves.
  - Add sysctl knobs:
     o kern.veriexec.verbose controls verbosity levels. Value: 0, 1.
     o kern.veriexec.strict controls strict level. Values: 0, 1, 2. See
       documentation in sysctl(3) for details.
     o kern.veriexec.algorithms returns a string with a space separated
       list of supported hashing algorithms in veriexec.
  - Updated documentation in man pages for sysctl(3) and sysctl(8).

Bug fixes:

  - veriexec_removechk(): Code cleanup + handle FINGERPRINT_NOTEVAL
    correctly.
  - exec_script(): Don't pass 0 as flag when executing a script; use the
    defined VERIEXEC_INDIRECT - which is 1. Makes indirect execution
    enforcement work.
  - Fix some printing formats and types..

Revision 1.36.2.6 / (download) - annotate - [select for diffs], Mon Jan 31 08:19:33 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.5: +4 -4 lines
Diff to previous 1.36.2.5 (colored) to branchpoint 1.36 (colored) to selected 1.74 (colored)

Adapt to branch.

Revision 1.36.2.5 / (download) - annotate - [select for diffs], Sun Nov 14 08:15:57 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.4: +10 -2 lines
Diff to previous 1.36.2.4 (colored) to branchpoint 1.36 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Nov 4 23:55:28 2004 UTC (19 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: netbsd-3
Changes since 1.37: +10 -2 lines
Diff to previous 1.37 (colored) to selected 1.74 (colored)

Check to see if the script has an ELF header, and if so, return ENOEXEC.

Revision 1.36.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:03 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.3: +9 -8 lines
Diff to previous 1.36.2.3 (colored) to branchpoint 1.36 (colored) to selected 1.74 (colored)

Fix the sync with head I botched.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:02 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.2: +8 -9 lines
Diff to previous 1.36.2.2 (colored) to branchpoint 1.36 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:43 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.1: +3 -3 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) to selected 1.74 (colored)

Sync with HEAD

Revision 1.37 / (download) - annotate - [select for diffs], Wed Apr 21 18:40:38 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.74 (colored)

kill sprintf, use snprintf

Revision 1.30.10.1 / (download) - annotate - [select for diffs], Sun Aug 17 13:41:00 2003 UTC (20 years, 7 months ago) by tron
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.74 (colored)

Pull up revision 1.33 (requested by tv in ticket #1424):
grow #! line length -- patch from cgd, fixes PR kern/20112 from Todd Vierling

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:35 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.36: +9 -8 lines
Diff to previous 1.36 (colored) to selected 1.74 (colored)

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

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:16 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, 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, netbsd-2-0, netbsd-2
Branch point for: ktrace-lwp
Changes since 1.35: +6 -7 lines
Diff to previous 1.35 (colored) to selected 1.74 (colored)

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

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:52 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.34: +9 -8 lines
Diff to previous 1.34 (colored) to selected 1.74 (colored)

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

Bump the kernel rev up to 1.6V

Revision 1.34 / (download) - annotate - [select for diffs], Fri May 16 14:25:03 2003 UTC (20 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored) to selected 1.74 (colored)

use strlcpy.  [fixed off-by-one in subr_prop.c]

Revision 1.33 / (download) - annotate - [select for diffs], Wed Apr 2 01:00:20 2003 UTC (21 years ago) by perry
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) to selected 1.74 (colored)

grow #! line length -- patch from cgd, fixes PR kern/20112 from Todd Vierling

Revision 1.27.2.4 / (download) - annotate - [select for diffs], Mon Nov 11 22:13:30 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.27.2.3: +4 -0 lines
Diff to previous 1.27.2.3 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.74 (colored)

Catch up to -current

Revision 1.32 / (download) - annotate - [select for diffs], Tue Oct 29 12:31:23 2002 UTC (21 years, 5 months ago) by blymn
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored) to selected 1.74 (colored)

Added support for fingerprinted executables aka verified exec

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:50 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.2: +2 -2 lines
Diff to previous 1.27.2.2 (colored) to branchpoint 1.27 (colored) to selected 1.74 (colored)

Catch up to -current.

Revision 1.29.2.2 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:02 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.29.2.1: +3 -3 lines
Diff to previous 1.29.2.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.74 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:43 2002 UTC (21 years, 6 months ago) by provos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) to selected 1.74 (colored)

remove trailing \n in panic().  approved perry.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:41 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored) to selected 1.74 (colored)

Sync kqueue branch with -current.

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:32 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.1: +4 -1 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored) to selected 1.74 (colored)

Catch up to -current.

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:43 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored) next main 1.30 (colored) to selected 1.74 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:04 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored) to selected 1.74 (colored)

add RCSIDs

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Thu Jul 19 13:36:19 2001 UTC (22 years, 8 months ago) by perry
Branch: netbsd-1-4
Changes since 1.20.2.1: +7 -4 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored) to selected 1.74 (colored)

Pull-up patch requested by Luke Mewburn.

Original commit message:

	In check_exec(), don't bother checking P_TRACED along with
	MNT_NOSUID, just check MNT_NOSUID to clear the S{U,G}ID bits
	in the attributes for the vnode we're about to exec.

	We now check P_TRACED right before we would actually perform
	the s{u,g}id function in the exec code.

	This closes a race condition between exec of a setuid binary
	and ptrace(2).

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:42 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27: +8 -4 lines
Diff to previous 1.27 (colored) to selected 1.74 (colored)

Catch up to -current.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Sat Jun 16 20:19:07 2001 UTC (22 years, 9 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.23: +7 -4 lines
Diff to previous 1.23 (colored) next main 1.24 (colored) to selected 1.74 (colored)

Pull up revision 1.29 (requested by thorpej):
  Close a race condition between exec of a setuid binary and
  ptrace(2): check P_TRACED right before adjusting the privilege
  settings in the exec code.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jun 15 17:24:19 2001 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, kqueue
Changes since 1.28: +7 -4 lines
Diff to previous 1.28 (colored) to selected 1.74 (colored)

In check_exec(), don't bother checking P_TRACED along with
MNT_NOSUID, just check MNT_NOSUID to clear the S{U,G}ID bits
in the attributes for the vnode we're about to exec.

We now check P_TRACED right before we would actually perform
the s{u,g}id function in the exec code.

This closes a race condition between exec of a setuid binary
and ptrace(2).

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jun 14 20:32:47 2001 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored) to selected 1.74 (colored)

Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads.  What we do is stick descriptors in the table, but
mark them as "larval".  This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again.  When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:17 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.22.2.1: +2 -2 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.74 (colored)

Sync with HEAD.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Nov 21 00:37:56 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored) to selected 1.74 (colored)

restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and
  provide single struct emul per emulation
* elf:
  - kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
    per emulation and contains pointer to respective probe function
  - interp is allocated via MALLOC() rather than on stack
  - elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
  to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
  emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
  part of appropriate execsw[] entry
* constify couple of structures

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:08:55 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.22: +4 -8 lines
Diff to previous 1.22 (colored) to selected 1.74 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 3 20:41:21 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) to selected 1.74 (colored)

Convert namei pathname buffer allocation to use the pool allocator.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Aug 1 04:57:29 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored) to selected 1.74 (colored)

ANSI'ify.

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

remove include of <vm/vm.h>

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Tue Feb 1 23:11:20 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored) to selected 1.74 (colored)

Pull up revision 1.23 (requested by assar):
  Move the declaration of `vnops' to a header file, for the
  benefit of LKMs.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 1 01:23:29 2000 UTC (24 years, 2 months ago) by assar
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: netbsd-1-5
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored) to selected 1.74 (colored)

(exec_script_makecmds): remove declaration of vnops, now in
<sys/file.h>

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:23:59 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.74 (colored)

Sync w/ -current.

Revision 1.22 / (download) - annotate - [select for diffs], Fri May 7 17:38:41 1999 UTC (24 years, 10 months ago) by tv
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.74 (colored)

FILE_UNUSE wasn't updated in the FDSCRIPTS block.

Revision 1.21 / (download) - annotate - [select for diffs], Wed May 5 20:01:08 1999 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) to selected 1.74 (colored)

Add "use counting" to file entries.  When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

This is necessary in order for multiple processes to safely share file
descriptor tables.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 26 23:38:55 1999 UTC (25 years, 1 month ago) by wrstuden
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.19: +5 -3 lines
Diff to previous 1.19 (colored) to selected 1.74 (colored)

Modify VOP_CLOSE vnode op to always take a locked vnode. Change vn_close
to pass down a locked node. Modify union_copyup() to call VOP_CLOSE
locked nodes.

Also fix a bug in union_copyup() where a lock on the lower vnode would
only be released if VOP_OPEN didn't fail.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:27 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.74 (colored)

Merge with Lite2 + local changes

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 8 02:32:02 1997 UTC (26 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia
Changes since 1.17: +18 -10 lines
Diff to previous 1.17 (colored) to selected 1.74 (colored)

Make this work for SETUIDSCRIPTS:
- include <sys/stat.h> for S_ISUID, S_ISGID
- fix bug where shortcut to fail would use uninitialized variables.
- elide other warnings.

Revision 1.17 / (download) - annotate - [select for diffs], Thu May 8 10:19:11 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored) to selected 1.74 (colored)

va_mode contains stat bits.  Use S_IS[UG]ID rather than VS[UG]ID.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Wed Dec 11 05:32:44 1996 UTC (27 years, 3 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.13: +14 -9 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.74 (colored)

From trunk:
Change the exec locking protocol to fix a deadlock.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:29 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.74 (colored)

backout previous kprintf change

Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 10 22:46:11 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) to selected 1.74 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 30 23:18:44 1996 UTC (27 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.13: +14 -9 lines
Diff to previous 1.13 (colored) to selected 1.74 (colored)

exec vnode locking protocol changes: in a nutshell, don't keep vnodes
locked for any longer than we have to.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Feb 4 02:15:06 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (colored) to selected 1.74 (colored)

First pass at prototyping

Revision 1.12 / (download) - annotate - [select for diffs], Mon Apr 10 18:27:59 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.74 (colored)

Change `fdclose' to `fdrelease', to avoid confusion with device interfaces.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 9 12:05:47 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored) to selected 1.74 (colored)

copy*str() should use size_t.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 4 03:10:40 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.74 (colored)

Use common fdclose() rather than a private version.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Sun Jul 24 02:47:49 1994 UTC (29 years, 8 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.8: +6 -3 lines
Diff to previous 1.8 (colored) next main 1.9 (colored) to selected 1.74 (colored)

from trunk.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 24 02:38:20 1994 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.8: +6 -3 lines
Diff to previous 1.8 (colored) to selected 1.74 (colored)

only use variables which are defined.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:12 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.74 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 8 11:28:29 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored) to selected 1.74 (colored)

Update to 4.4-Lite fs code.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 24 02:39:13 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.74 (colored)

MIN -> min, MAX -> max

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 29 08:35:29 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (colored) to selected 1.74 (colored)

kill an FDSCRIPTS bug which nobody had found yet.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 16 01:21:00 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.3: +36 -19 lines
Diff to previous 1.3 (colored) to selected 1.74 (colored)

simplify error returns, and fix bugs

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 28 23:47:07 1994 UTC (30 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.74 (colored)

Fix spelling error in Copyright notice

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 22 06:15:54 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) to selected 1.74 (colored)

don't forget to free old pathname buffer

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 16 03:10:03 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Diff to selected 1.74 (colored)

clean up, break script handling out of check_exec(), and comment a bit.

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




CVSweb <webmaster@jp.NetBSD.org>