The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.143.32.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:57:40 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.143: preferred, colored; next MAIN 1.144: preferred, colored
Changes since revision 1.143: +4 -4 lines
Sync with HEAD

Revision 1.144: download - view: text, markup, annotated - select for diffs
Fri Dec 6 16:19:41 2024 UTC (23 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, 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, HEAD
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +4 -4 lines
sys/kern/kern_exec.c, exec_*.c: Sprinkle SET_ERROR dtrace probes.

PR kern/58378: Kernel error code origination lacks dtrace probes

Revision 1.142.14.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:51 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.142: preferred, colored; next MAIN 1.143: preferred, colored
Changes since revision 1.142: +3 -9 lines
Merge changes from current as of 20200406

Revision 1.143: download - view: text, markup, annotated - select for diffs
Wed Nov 20 19:37:53 2019 UTC (6 years, 11 months ago) by pgoyette
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, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, perseant-exfatfs-base-20240630, perseant-exfatfs-base, 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, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: perseant-exfatfs
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -9 lines
Move all non-emulation-specific coredump code into the coredump module,
and remove all #ifdef COREDUMP conditional compilation.  Now, the
coredump module is completely separated from the emulation modules, and
they can all be independently loaded and unloaded.

Welcome to 9.99.18 !

Revision 1.137.26.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:44 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.137.26.1: preferred, colored; branchpoint 1.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137.26.1: +2 -2 lines
update from HEAD

Revision 1.141.12.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.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141: +4 -4 lines
Sync with HEAD

Revision 1.141.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:47 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141: +4 -4 lines
Sync with HEAD

Revision 1.141.4.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:56 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141: +4 -4 lines
Sync with HEAD

Revision 1.142: download - view: text, markup, annotated - select for diffs
Wed Jan 25 17:56:45 2017 UTC (9 years, 9 months ago) by christos
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-20191119, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, 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, nick-nhusb-base-20170204, 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, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1
Branch point for: phil-wifi
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +4 -4 lines
The argument length is in bytes; don't use howmany()

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

Revision 1.139.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:58 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139: +26 -4 lines
Rebase.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Tue Jul 22 08:18:33 2014 UTC (12 years, 3 months ago) by maxv
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, 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, 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, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, nick-nhusb, bouyer-socketcan
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +25 -3 lines
1) On 64bit systems, don't add the 32bit execsw[] to the global exec array.
   exec_elf32 works on 32bit systems only, and will crash 32bit binaries on
   64bit systems.
2) Now that exec_elf32 is dormant, we can give the native ELF loaders the
   highest priority.

Binaries will load faster now (system boot, compilation, etc.).

With the help of njloy@. Discussed a bit on tech-kern@, no disagreement.

Revision 1.137.16.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:02 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137: +31 -23 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.137.30.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.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137: +31 -23 lines
sync with head

Revision 1.140: download - view: text, markup, annotated - select for diffs
Mon Apr 7 17:02:15 2014 UTC (12 years, 7 months ago) by rjs
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +3 -3 lines
whitespace.

Revision 1.139: download - view: text, markup, annotated - select for diffs
Fri Mar 7 01:34:29 2014 UTC (12 years, 8 months ago) by christos
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +30 -22 lines
c99 initializers for struct execsw

Revision 1.138: download - view: text, markup, annotated - select for diffs
Thu Sep 19 18:50:59 2013 UTC (13 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -3 lines
exec modules need to be of the exec kind

Revision 1.136.8.2: download - view: text, markup, annotated - select for diffs
Wed Sep 2 17:50:25 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-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.136.8.1: preferred, colored; branchpoint 1.136: preferred, colored; next MAIN 1.137: preferred, colored
Changes since revision 1.136.8.1: +3 -4 lines
If we have a ELF_MD_PROBE_FUNC, let it deal with ELF_INTERP_NON_RELOCATABLE.

Revision 1.136.8.1: download - view: text, markup, annotated - select for diffs
Fri Aug 21 18:00:36 2009 UTC (17 years, 2 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-u1-k1-k5
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +6 -2 lines
Add support for ELF_MD_PROBE_FUNC and ELF_COREDUMP_SETUP so that more
exact checks can be made before committing to execute or better info
about what's being dumped.

Revision 1.132.10.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:46 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.132.10.1: preferred, colored; branchpoint 1.132: preferred, colored; next MAIN 1.133: preferred, colored
Changes since revision 1.132.10.1: +60 -886 lines
sync with head.

Revision 1.136.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:37 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.136: preferred, colored; next MAIN 1.137: preferred, colored
Changes since revision 1.136: +60 -885 lines
Sync with HEAD.

Revision 1.132.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:18 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.132.6.3: preferred, colored; branchpoint 1.132: preferred, colored; next MAIN 1.133: preferred, colored
Changes since revision 1.132.6.3: +59 -884 lines
Sync with HEAD.

Revision 1.134.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:07 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.134.4.1: preferred, colored; branchpoint 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134.4.1: +60 -885 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.137: download - view: text, markup, annotated - select for diffs
Wed Nov 19 18:36:06 2008 UTC (18 years ago) by ad
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, 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, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, 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, mjf-devfs2-base, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, khorben-n900, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, 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, haad-nbase2, haad-dm-base2, haad-dm-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +60 -885 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.134.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:27 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +5 -5 lines
Sync with HEAD.

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

Revision 1.133.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:38:56 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.133.2.2: preferred, colored; branchpoint 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133.2.2: +3 -3 lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.133.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:41 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.133.2.1: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.1: +4 -4 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.136: download - view: text, markup, annotated - select for diffs
Mon Sep 15 18:12:56 2008 UTC (18 years, 2 months ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, 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-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, matt-nb5-mips64
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -3 lines
Replace intptr_t with uintptr_t in few more places.
OK by <matt>.

Revision 1.134.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 28 14:37:36 2008 UTC (18 years, 3 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134: +4 -4 lines
Sync with head.

Revision 1.135: download - view: text, markup, annotated - select for diffs
Fri Jul 18 21:29:48 2008 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +4 -4 lines
fix debugging printf

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

Revision 1.132.8.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:02 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.132.8.1: preferred, colored; branchpoint 1.132: preferred, colored; next MAIN 1.133: preferred, colored
Changes since revision 1.132.8.1: +3 -4 lines
sync with head.

Revision 1.132.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 5 19:14:36 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.132.6.1: preferred, colored; branchpoint 1.132: preferred, colored
Changes since revision 1.132.6.1: +1 -2 lines
Sync with HEAD.

Also fix build.

Revision 1.134: download - view: text, markup, annotated - select for diffs
Tue Jun 3 22:15:14 2008 UTC (18 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl, haad-dm
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +3 -4 lines
Don't use proc specificdata for the PAX stuff. Speeds up mmap() and others.

Revision 1.132.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:07 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +2 -9 lines
Sync with HEAD.

Revision 1.132.8.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:06 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +2 -9 lines
sync with head.

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

Revision 1.133: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:02 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.125.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:45 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.125.2.1: preferred, colored; branchpoint 1.125: preferred, colored; next MAIN 1.126: preferred, colored
Changes since revision 1.125.2.1: +85 -27 lines
Sync with HEAD.

Revision 1.104.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:45:58 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.104.2.5: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.2.5: +85 -27 lines
sync with head

Revision 1.124.10.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:55:56 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.124.10.1: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.10.1: +110 -34 lines
sync with HEAD

Revision 1.127.6.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:28 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.127.6.1: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.6.1: +23 -16 lines
Sync with HEAD

Revision 1.132: download - view: text, markup, annotated - select for diffs
Thu Jan 3 14:30:49 2008 UTC (18 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, 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, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +13 -12 lines
malloc -> kmem_alloc

Revision 1.131: download - view: text, markup, annotated - select for diffs
Wed Jan 2 22:04:56 2008 UTC (18 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +14 -8 lines
- elf_load_file: return ENOEXEC instead of 0 in the case of
 e_phnum > MAXPHNUM.
- exec_elf_makecmds: return an interesting error rather than
 always using ENOEXEC.
- reject e_phnum==0.

Revision 1.127.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:55:43 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +62 -11 lines
Sync with HEAD

Revision 1.130: download - view: text, markup, annotated - select for diffs
Fri Dec 28 17:14:50 2007 UTC (18 years, 10 months ago) by elad
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +8 -5 lines
Provide 8 more bits of stack randomization, from the PaX author.

While here, don't make too much use of one random value, and call
arc4random() directly. Allows for the removal of 'ep_random' from the
exec_package.

Prompted by and okay christos@.

Revision 1.129: download - view: text, markup, annotated - select for diffs
Thu Dec 27 15:21:52 2007 UTC (18 years, 10 months ago) by elad
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +4 -7 lines
PAX_ASLR_DELTA_PROG_LEN -> PAX_ASLR_DELTA_EXEC_LEN, and put it in pax.h.
Export randomized bits # for stack and exec base too via sysctl.

okay christos@.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Wed Dec 26 22:11:47 2007 UTC (18 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +62 -11 lines
Add PaX ASLR (Address Space Layout Randomization) [from elad and myself]

For regular (non PIE) executables randomization is enabled for:
    1. The data segment
    2. The stack

For PIE executables(*) randomization is enabled for:
    1. The program itself
    2. All shared libraries
    3. The data segment
    4. The stack

(*) To generate a PIE executable:
    - compile everything with -fPIC
    - link with -shared-libgcc -Wl,-pie

This feature is experimental, and might change. To use selectively add
    options PAX_ASLR=0
in your kernel.

Currently we are using 12 bits for the stack, program, and data segment and
16 or 24 bits for mmap, depending on __LP64__.

Revision 1.125.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:20:24 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +27 -9 lines
Sync with HEAD.

Revision 1.104.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:32:33 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.104.2.4: preferred, colored
Changes since revision 1.104.2.4: +27 -9 lines
sync with head

Revision 1.124.8.3: download - view: text, markup, annotated - select for diffs
Mon Dec 3 16:14:46 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.124.8.2: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.8.2: +25 -7 lines
Sync with HEAD.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Mon Dec 3 02:06:58 2007 UTC (18 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +25 -7 lines
- add an elf aux vector entry for implementing $ORIGIN.
- the code to convert from a vnode to a path is commented out now until
  a better solution is implemented. Only absolute paths work for now
  (which is most of the cases).

requested by core

Revision 1.124.8.2: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:37:59 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.124.8.1: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.8.1: +4 -4 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.126: download - view: text, markup, annotated - select for diffs
Mon Nov 26 19:01:58 2007 UTC (18 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -4 lines
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.124.10.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:31:26 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -3 lines
sync with HEAD

Revision 1.104.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:35:17 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.104.2.3: preferred, colored
Changes since revision 1.104.2.3: +3 -3 lines
sync with head.

Revision 1.124.8.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:48:26 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -3 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.124.14.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:39:58 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124: +3 -3 lines
Sync with HEAD.

Revision 1.122.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:17:08 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.122.2.2: preferred, colored; branchpoint 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122.2.2: +3 -3 lines
Sync with head.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:16:41 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -3 lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.104.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:40:39 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.104.2.2: preferred, colored
Changes since revision 1.104.2.2: +48 -22 lines
sync with head.

Revision 1.120.8.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:05:02 2007 UTC (19 years, 2 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120: +36 -17 lines
Sync w/ NetBSD-4-RC_1

Revision 1.124.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 18 01:49:49 2007 UTC (19 years, 4 months ago) by matt
Branches: matt-mips64
Diff to: previous 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124: +6 -2 lines
Add ELF core MD hooks and exec hooks to test ABI

Revision 1.122.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:35 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.122.2.1: preferred, colored; branchpoint 1.122: preferred, colored
Changes since revision 1.122.2.1: +36 -17 lines
Sync with head.

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

Revision 1.120.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 9 10:30:57 2007 UTC (19 years, 4 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-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, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120: +36 -17 lines
Pull up following revision(s) (requested by christos in ticket #755):
	sys/sys/pax.h: revision 1.9
	sys/sys/exec_elf.h: revision 1.90
	usr.sbin/paxctl/paxctl.c: revision 1.2
	sys/kern/kern_pax.c: revision 1.16
	sys/sys/exec.h: revision 1.117
	sys/kern/exec_elf32.c: revision 1.124
	libexec/ld.elf_so/sysident.h: revision 1.14
Use an elf note to handle pax arguments. This is a temporary solution to
avoid wasting OS flag bits. In the future we'll probably use fileassoc to
achieve this (once there is a way to make fileassoc persistent) or in the
shorter term libelf, so that we can add and remove the note on demand instead
of burning bits on each binary. Of course since this is a tool, this means
that we'll need to think about how to handle libelf...

Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Jun 24 20:35:37 2007 UTC (19 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm, bouyer-xenamd64
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +36 -17 lines
Use an elf note to handle pax arguments. This is a temporary solution to
avoid wasting OS flag bits. In the future we'll probably use fileassoc to
achieve this (once there is a way to make fileassoc persistent) or in the
shorter term libelf, so that we can add and remove the note on demand instead
of burning bits on each binary. Of course since this is a tool, this means
that we'll need to think about how to handle libelf...

Revision 1.122.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:14 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +14 -7 lines
Sync with head.

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

Revision 1.123: download - view: text, markup, annotated - select for diffs
Sun Apr 22 08:30:00 2007 UTC (19 years, 7 months ago) by dsl
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +14 -7 lines
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.120.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:58:31 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +3 -3 lines
Sync with HEAD.

Revision 1.122: download - view: text, markup, annotated - select for diffs
Mon Mar 5 09:22:02 2007 UTC (19 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -3 lines
netbsd_elf_signature: fix a caddr_t removal botch which
causes "init: not found".

Revision 1.121: download - view: text, markup, annotated - select for diffs
Mon Mar 5 04:59:19 2007 UTC (19 years, 8 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +3 -3 lines
die, caddr_t, die.

Revision 1.115.4.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:06 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.115.4.1: preferred, colored; branchpoint 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115.4.1: +8 -7 lines
Sync with head.

Revision 1.104.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:04 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.104.2.1: preferred, colored
Changes since revision 1.104.2.1: +16 -17 lines
sync with head.

Revision 1.115.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:43 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.115.6.1: preferred, colored; branchpoint 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115.6.1: +12 -11 lines
sync with head.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Fri Nov 24 01:13:11 2006 UTC (19 years, 11 months ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +3 -2 lines
Put back break mistakenly removed in previous commit.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Nov 22 02:02:51 2006 UTC (19 years, 11 months ago) by elad
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +4 -5 lines
Initial implementation of PaX Segvguard (this is still work-in-progress,
it's just to get it out of my local tree).

Revision 1.118: download - view: text, markup, annotated - select for diffs
Wed Nov 22 00:41:38 2006 UTC (19 years, 11 months ago) by elad
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +7 -6 lines
Make PaX MPROTECT use specificdata(9), freeing up two P_* flags.
While here, make more generic for upcoming PaX features.

Revision 1.115.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:21 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +4 -4 lines
Sync with head.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Wed Nov 1 10:17:58 2006 UTC (20 years ago) by yamt
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +6 -6 lines
remove some __unused from function parameters.

Revision 1.115.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:09 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +5 -5 lines
sync with head

Revision 1.116: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:14 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +5 -5 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.108.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:57:15 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108: +30 -13 lines
sync with head

Revision 1.109.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:45 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.109.2.2: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.2.2: +8 -10 lines
sync with head

Revision 1.115: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:10 2006 UTC (20 years, 3 months ago) by ad
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +8 -10 lines
Use the LWP cached credentials where sane.

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

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

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

Revision 1.109.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:40 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.109.2.1: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.1: +22 -8 lines
sync with head.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu May 18 17:35:49 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.113: preferred, colored
Changes since revision 1.113: +4 -2 lines
don't break lkms; pointed out by hannken@ and he@, thanks!

Revision 1.113: download - view: text, markup, annotated - select for diffs
Tue May 16 00:08:25 2006 UTC (20 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +13 -2 lines
Introduce PaX MPROTECT -- mprotect(2) restrictions used to strengthen
W^X mappings.

Disabled by default.

First proposed in:

	http://mail-index.netbsd.org/tech-security/2005/12/18/0000.html

More information in:

	http://pax.grsecurity.net/docs/mprotect.txt

Read relevant parts of options(4) and sysctl(3) before using!

Lots of thanks to the PaX author and Matt Thomas.

Revision 1.112: 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
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +9 -8 lines
integrate kauth.

Revision 1.109.4.3: 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.109.4.2: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.4.2: +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.108.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:58 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +10 -5 lines
Sync with head.

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

Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:38 2006 UTC (20 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +7 -2 lines
sync with head.

Revision 1.109.6.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:26 2006 UTC (20 years, 7 months ago) by tron
Branches: peter-altq
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +7 -2 lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.97.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 17:52:29 2006 UTC (20 years, 8 months ago) by riz
Branches: netbsd-2-0
Diff to: previous 1.97.2.1: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.2.1: +5 -0 lines
Pull up following revision(s) (requested by erh in ticket #10380):
	sys/kern/exec_elf32.c: revisions 1.110-1.111
Found by coverity issue 887.  Check for NULL before using base_ph so
an interpreter that does not have PT_LOAD in the program header doesn't
crash the system.
Also, KNF.

Revision 1.97.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 17:52:23 2006 UTC (20 years, 8 months ago) by riz
Branches: netbsd-2-1
Diff to: previous 1.97.2.1: preferred, colored; next MAIN 1.97.2.2: preferred, colored
Changes since revision 1.97.2.1: +5 -0 lines
Pull up following revision(s) (requested by erh in ticket #10380):
	sys/kern/exec_elf32.c: revisions 1.110-1.111
Found by coverity issue 887.  Check for NULL before using base_ph so
an interpreter that does not have PT_LOAD in the program header doesn't
crash the system.
Also, KNF.

Revision 1.97.2.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 17:52:20 2006 UTC (20 years, 8 months ago) by riz
Branches: netbsd-2
Diff to: previous 1.97.2.1: preferred, colored; next MAIN 1.97.2.2: preferred, colored
Changes since revision 1.97.2.1: +5 -0 lines
Pull up following revision(s) (requested by erh in ticket #10380):
	sys/kern/exec_elf32.c: revisions 1.110-1.111
Found by coverity issue 887.  Check for NULL before using base_ph so
an interpreter that does not have PT_LOAD in the program header doesn't
crash the system.
Also, KNF.

Revision 1.102.2.2.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 17:45:33 2006 UTC (20 years, 8 months ago) by riz
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Diff to: previous 1.102.2.2: preferred, colored; next MAIN 1.102.2.3: preferred, colored
Changes since revision 1.102.2.2: +5 -0 lines
Pull up following revision(s) (requested by erh in ticket #1211):
	sys/kern/exec_elf32.c: revisions 1.110-1.111
Found by coverity issue 887.  Check for NULL before using base_ph so
an interpreter that does not have PT_LOAD in the program header doesn't
crash the system.
Also, KNF.

Revision 1.102.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 20 17:45:24 2006 UTC (20 years, 8 months ago) by riz
Branches: 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
Diff to: previous 1.102.2.2: preferred, colored; branchpoint 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102.2.2: +5 -0 lines
Pull up following revision(s) (requested by erh in ticket #1211):
	sys/kern/exec_elf32.c: revisions 1.110-1.111
Found by coverity issue 887.  Check for NULL before using base_ph so
an interpreter that does not have PT_LOAD in the program header doesn't
crash the system.
Also, KNF.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Fri Mar 17 11:03:07 2006 UTC (20 years, 8 months ago) by skrll
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -4 lines
KNF

Revision 1.110: download - view: text, markup, annotated - select for diffs
Fri Mar 17 08:51:35 2006 UTC (20 years, 8 months ago) by erh
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +8 -2 lines
Found by coverity issue 887.  Check for NULL before using base_ph so
an interpreter that does not have PT_LOAD in the program header doesn't
crash the system.

Revision 1.109.4.1: 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.109: preferred, colored
Changes since revision 1.109: +8 -8 lines
Adapt to kernel authorization KPI.

Revision 1.108.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:18 2006 UTC (20 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108: +5 -5 lines
sync with head.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Sat Feb 4 12:09:50 2006 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +5 -5 lines
for some random places, use PNBUF_GET/PUT rather than
	- on-stack buffer
	- malloc(MAXPATHLEN)

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

Revision 1.92.2.10: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:09:44 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.92.2.9: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.9: +52 -33 lines
Sync with HEAD. Here we go again...

Revision 1.107.4.1: download - view: text, markup, annotated - select for diffs
Sat Oct 29 18:34:17 2005 UTC (21 years ago) by thorpej
Branches: thorpej-vnode-attr
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +2 -7 lines
Don't bother fetching attributes here; they're never used.

Revision 1.102.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 8 08:44:30 2005 UTC (21 years, 1 month ago) by tron
Branches: netbsd-3
CVS tags: 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
Branch point for: netbsd-3-0
Diff to: previous 1.102.2.1: preferred, colored; branchpoint 1.102: preferred, colored
Changes since revision 1.102.2.1: +12 -0 lines
Pull up following revision(s) (requested by simonb in ticket #872):
	sys/kern/exec_elf32.c: revision 1.107
Add a hack to deal with MIPS relocatable shared-linker problem on
COMPAT_16 and earlier that results in a current shared linker running at
address 0 (and thus allows NULL pointer derefs to work).
As noted by Matthias Drochner, this "fix" just checks the first psection
and not the first loadable psection.  This isn't a problem with the
binutils up to now, but might be in the future.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Fri Oct 7 08:33:10 2005 UTC (21 years, 1 month ago) by simonb
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, thorpej-vnode-attr-base, ktrace-lwp-base
Branch point for: thorpej-vnode-attr
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +14 -2 lines
Add a hack to deal with MIPS relocatable shared-linker problem on
COMPAT_16 and earlier that results in a current shared linker running at
address 0 (and thus allows NULL pointer derefs to work).

As noted by Matthias Drochner, this "fix" just checks the first psection
and not the first loadable psection.  This isn't a problem with the
binutils up to now, but might be in the future.

Revision 1.102.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 18 20:09:50 2005 UTC (21 years, 2 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -3 lines
Pull up following revision(s) (requested by fvdl in ticket #798):
	sys/compat/sunos/sunos_exec.c: revision 1.47
	sys/compat/pecoff/pecoff_emul.c: revision 1.11
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.45
	sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.12
	sys/sys/proc.h: revision 1.198
	sys/compat/mach/mach_exec.c: revision 1.56
	sys/compat/freebsd/freebsd_exec.c: revision 1.27
	sys/arch/sparc64/include/vmparam.h: revision 1.27
	sys/kern/kern_resource.c: revision 1.91
	sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.88
	sys/compat/osf1/osf1_exec.c: revision 1.39
	sys/compat/svr4_32/svr4_32_resource.c: revision 1.5
	sys/compat/ultrix/ultrix_misc.c: revision 1.99
	sys/compat/svr4_32/svr4_32_exec.h: revision 1.9
	sys/kern/exec_elf32.c: revision 1.103
	sys/compat/aoutm68k/aoutm68k_exec.c: revision 1.19
	sys/compat/sunos32/sunos32_exec.c: revision 1.20
	sys/compat/hpux/hpux_exec.c: revision 1.46
	sys/compat/darwin/darwin_exec.c: revision 1.40
	sys/kern/sysv_shm.c: revision 1.83
	sys/uvm/uvm_extern.h: revision 1.99
	sys/uvm/uvm_mmap.c: revision 1.89
	sys/kern/kern_exec.c: revision 1.195
	sys/compat/netbsd32/netbsd32.h: revision 1.31
	sys/arch/sparc64/sparc64/svr4_32_machdep.c: revision 1.20
	sys/compat/svr4/svr4_exec.c: revision 1.56
	sys/compat/irix/irix_exec.c: revision 1.41
	sys/compat/ibcs2/ibcs2_exec.c: revision 1.63
	sys/compat/svr4_32/svr4_32_exec.c: revision 1.16
	sys/arch/amd64/include/vmparam.h: revision 1.8
	sys/compat/linux/common/linux_exec.c: revision 1.73
Fix some things regarding COMPAT_NETBSD32 and limits/VM addresses.
* For sparc64 and amd64, define *SIZ32 VM constants.
* Add a new function pointer to struct emul, pointing at a function
  that will return the default VM map address. The default function
  is uvm_map_defaultaddr, which just uses the VM_DEFAULT_ADDRESS
  macro. This gives emulations control over the default map address,
  and allows things to be mapped at the right address (in 32bit range)
  for COMPAT_NETBSD32.
* Add code to adjust the data and stack limits when a COMPAT_NETBSD32
  or COMPAT_SVR4_32 binary is executed.
* Don't use USRSTACK in kern_resource.c, use p_vmspace->vm_minsaddr
  instead (emulations might have set it differently)
* Since this changes struct emul, bump kernel version to 3.99.2
Tested on amd64, compile-tested on sparc64.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Sun Jul 17 23:53:57 2005 UTC (21 years, 4 months ago) by junyoung
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +10 -10 lines
More cosmetic changes.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Sun Jul 17 23:49:49 2005 UTC (21 years, 4 months ago) by junyoung
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +30 -23 lines
Make code prettier.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun May 29 22:24:14 2005 UTC (21 years, 5 months ago) by christos
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +4 -4 lines
- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

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

Revision 1.92.2.9: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:30:56 2005 UTC (21 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.92.2.8: preferred, colored
Changes since revision 1.92.2.8: +4 -3 lines
Sync with HEAD.

Revision 1.99.6.3: download - view: text, markup, annotated - select for diffs
Sat Mar 26 18:19:20 2005 UTC (21 years, 7 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.99.6.2: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.6.2: +4 -3 lines
sync with head.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Sat Mar 26 05:12:36 2005 UTC (21 years, 7 months ago) by fvdl
Branches: MAIN
CVS tags: yamt-km-base4, kent-audio2-base
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -3 lines
Fix some things regarding COMPAT_NETBSD32 and limits/VM addresses.

* For sparc64 and amd64, define *SIZ32 VM constants.
* Add a new function pointer to struct emul, pointing at a function
  that will return the default VM map address. The default function
  is uvm_map_defaultaddr, which just uses the VM_DEFAULT_ADDRESS
  macro. This gives emulations control over the default map address,
  and allows things to be mapped at the right address (in 32bit range)
  for COMPAT_NETBSD32.
* Add code to adjust the data and stack limits when a COMPAT_NETBSD32
  or COMPAT_SVR4_32 binary is executed.
* Don't use USRSTACK in kern_resource.c, use p_vmspace->vm_minsaddr
  instead (emulations might have set it differently)
* Since this changes struct emul, bump kernel version to 3.99.2

Tested on amd64, compile-tested on sparc64.

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

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

Hi Perry!

Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Mar 2 11:05:34 2005 UTC (21 years, 8 months ago) by mycroft
Branches: MAIN
CVS tags: yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -3 lines
Copyright maintenance.

Revision 1.101: 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
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3 lines
nuke trailing whitespace

Revision 1.99.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:52 2005 UTC (21 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -4 lines
sync with head.

Revision 1.92.2.7: download - view: text, markup, annotated - select for diffs
Mon Feb 7 08:36:33 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.92.2.6: preferred, colored
Changes since revision 1.92.2.6: +3 -4 lines
Sunc with HEAD.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Feb 7 00:12:49 2005 UTC (21 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -4 lines
Allow 32K instead of 1K of section headers. Solaris opera binary has 15K
section headers. We only allocate memory for those headers on compat_linux
and compat_ibcs2 while we probe, and although 32K is not such a big number,
we could fix the code in those two places to read section-by-section instead
of all the sections at once as it does now, if we really felt like it.

Revision 1.92.2.6: download - view: text, markup, annotated - select for diffs
Fri Feb 4 07:09:28 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.92.2.5: preferred, colored
Changes since revision 1.92.2.5: +3 -3 lines
Adapt to branch.

Revision 1.92.2.5: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:53:23 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.92.2.4: preferred, colored
Changes since revision 1.92.2.4: +3 -5 lines
Sync with HEAD.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Sat Oct 30 09:38:15 2004 UTC (22 years ago) by skrll
Branches: MAIN
CVS tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -5 lines
We emulate more than SVR4, and IBCS2 on the i386 and Linux on the i386
and the Alpha there days. Remove this statement in a comment.

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

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

Revision 1.97.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 15 13:50:18 2004 UTC (22 years, 3 months ago) by tron
Branches: netbsd-2-0
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-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
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3 lines
Pull up revision 1.98 (requested by jdolecek in ticket #761):
bump the number of allowed sections to 1024; e.g. SuSE 9.1 packaged
Mozilla 1.6 has 726 sections

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

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:16:19 2004 UTC (22 years, 3 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3 lines
bump the number of allowed sections to 1024; e.g. SuSE 9.1 packaged
Mozilla 1.6 has 726 sections

Revision 1.97: download - view: text, markup, annotated - select for diffs
Wed Jan 7 16:42:53 2004 UTC (22 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +15 -34 lines
Back out >2 PT_LOAD changes from rev 1.96.  They cause older GCC3-compiled
PowerPC binaries to fail.  The compiler has since been fixed, but
compatibility with older binaries needs to be maintained.

PR kern/23758.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Dec 7 02:18:53 2003 UTC (22 years, 11 months ago) by chs
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +36 -17 lines
add support for more than 2 PT_LOAD sections.  from OpenBSD.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Fri Oct 31 14:00:52 2003 UTC (23 years ago) by drochner
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +17 -17 lines
-fix ELF_INTERP_NON_RELOCATABLE:
 -obey ELF_LINK_ADDR in ELF_load_file()
 -set ELF_LINK_ADDR in the probe() function if needed
-make ELF_NULL_ADDR the default, so that probe() functions dont need
 to set it explicitely
-allocate buffer for interpreter name only if needed

Revision 1.70.10.2: download - view: text, markup, annotated - select for diffs
Thu Oct 2 09:51:56 2003 UTC (23 years, 1 month ago) by tron
Branches: 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
Diff to: previous 1.70.10.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.10.1: +16 -20 lines
Pull up revision 1.76 via patch (requested by junyoung in ticket #1488):
count executable image pages as executable for vm-usage purposes.
also, always do the VTEXT vs. v_writecount mutual exclusion
(which we previously skipped if the text or data segment was empty).

Revision 1.70.10.1: download - view: text, markup, annotated - select for diffs
Sat Sep 27 15:52:43 2003 UTC (23 years, 1 month ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
Pull up revision 1.74 (requested by junyoung in ticket #1466):
remove trailing \n in panic().  approved perry.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Fri Aug 8 18:53:13 2003 UTC (23 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3 lines
GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for
emulations to override it.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Aug 6 01:02:27 2003 UTC (23 years, 3 months ago) by manu
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -3 lines
Make elf{32|64}_check_header public, as it will be used by irix_elf32_probe.
While we are there, cut to 80 chars, and ANSIfy prototypes

Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:34 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +31 -24 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.92: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:16 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +22 -29 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:52 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +31 -24 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.90: download - view: text, markup, annotated - select for diffs
Wed Jun 25 13:48:06 2003 UTC (23 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +13 -2 lines
Limit the number of program headers we accept to avoid resource exhaustion
by a hand-crafted elf binary.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat Mar 1 05:55:51 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +8 -5 lines
If we are doing TOPDOWN, we want to truncate the address downwards.  If not,
we want to round the address upwards.  I hope this is the last change.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Feb 28 19:44:42 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +6 -3 lines
Make sure that the initial address is aligned correctly.  Note that before
this alignment would have been backward into the dataspace covered by
MAXDSIZ.  Now the alignment is done forward.  XXX  It is expected that
in the TOPDOWN case, VM_DEFAULT_ADDRESS will make sure any address it
returns has the proper alignment for that architecure.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Fri Feb 28 19:09:08 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +28 -21 lines
When aligned to > PAGE_SIZE boundary, don't map any pages before where the
psection starts.  Allocate unused VA space between psections as unreadable.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Feb 28 00:11:14 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -3 lines
Remove MAXDSIZ since VM_DEFAULT_ADDRESS adds it.  Sigh.  It was correct.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu Feb 27 23:48:29 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +6 -4 lines
Note only trunc_page the psection vaddr, but truncate it accordoring to its
psection alignment.  XXX If the psection alignment is greater than the page
alignment, extra pages may be mapped that will never be needed.  This is
inefficient and wasteful of swap space and needs to be fixed.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Feb 27 23:10:52 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -8 lines
Fix a c&p bug when moving VM_DEFAULT_ADDRESS.  (restore MAXDSIZ)

Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu Feb 27 01:58:56 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +73 -58 lines
Remove VMCMD_TOPDOWN since it's no longer.  Redo my last rework.  Move
VM_DEFAULT_ADDRESS from elf*_makecmds to elf*_load_file.  In load_file,
actually determine ahead of time how much space will be needed and pass
that to VM_DEFAULT_ADDRESS.  Now we have a relatistic starting address
so we can do the loading of psections normally with no extra topdown
code in load_psection.  Also, if there is a gap in betweeen psections
zero map an inaccessible region between (just like ld.elf_so does) to
avoid inadvertant mmaps in the gap.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Feb 26 21:18:22 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +44 -10 lines
Make elf32 load_file work properly with TOPDOWN by mapping psections in
reverse order.  Remove TOPDOWN support from VMCMDs since elf32 does the
right stuff now.  With these changes, VAX can now use TOPDOWN.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Feb 21 03:53:43 2003 UTC (23 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
In topdown mode, subtract the page rounded memory size of the psection,
not the rounded file size.  Otherwise if BSS needs more pages beyond
data you'll extend too far.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Feb 20 22:16:07 2003 UTC (23 years, 9 months ago) by atatat
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +11 -6 lines
Introduce "top down" memory management for mmap()ed allocations.  This
means that the dynamic linker gets mapped in at the top of available
user virtual memory (typically just below the stack), shared libraries
get mapped downwards from that point, and calls to mmap() that don't
specify a preferred address will get mapped in below those.

This means that the heap and the mmap()ed allocations will grow
towards each other, allowing one or the other to grow larger than
before.  Previously, the heap was limited to MAXDSIZ by the placement
of the dynamic linker (and the process's rlimits) and the space
available to mmap was hobbled by this reservation.

This is currently only enabled via an *option* for the i386 platform
(though other platforms are expected to follow).  Add "options
USE_TOPDOWN_VM" to your kernel config file, rerun config, and rebuild
your kernel to take advantage of this.

Note that the pmap_prefer() interface has not yet been modified to
play nicely with this, so those platforms require a bit more work
(most notably the sparc) before they can use this new memory
arrangement.

This change also introduces a VM_DEFAULT_ADDRESS() macro that picks
the appropriate default address based on the size of the allocation or
the size of the process's text segment accordingly.  Several drivers
and the SYSV SHM address assignment were changed to use this instead
of each one picking their own "default".

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Jan 30 20:03:46 2003 UTC (23 years, 9 months ago) by atatat
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +13 -9 lines
Two small changes to the ELF exec code:

(1) ELFNAME(load_file)() now takes a pointer to the entry point
offset, instead of taking a pointer to the entry point itself.  This
allows proper adjustment of the ultimate entry point at a higher level
if the object containing the entry point is moved before the exec is
finished.

(2) Introduce VMCMD_FIXED, which means the address at which a given
vmcmd describes a mapping is fixed (ie, should not be moved).  Don't
set this for entries pertaining to ld.so.

Also some minor comment/whitespace tweaks.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Jan 19 22:52:11 2003 UTC (23 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -4 lines
Remove variable that is only assigned too but not referenced.

Revision 1.77.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 18 01:06:03 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.62.2.9: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:43:00 2002 UTC (23 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.62.2.8: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.2.8: +9 -2 lines
Sync with HEAD.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Nov 13 15:49:44 2002 UTC (24 years ago) by jdolecek
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: gmcgarry_ucred
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +11 -4 lines
ELF copyargs: at the time this is executed, process's ucred doesn't
contain the new uid/gid for suid/sgid binaries yet; determine AT_EUID
and AT_EGID by checking executed program vnode attributes in this case

Revision 1.62.2.8: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:44:49 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.62.2.7: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.7: +15 -20 lines
Catch up to -current.

Revision 1.63.2.6: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:43:02 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.63.2.5: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.2.5: +4 -8 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Oct 5 22:34:05 2002 UTC (24 years, 1 month ago) by chs
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +17 -21 lines
count executable image pages as executable for vm-usage purposes.
also, always do the VTEXT vs. v_writecount mutual exclusion
(which we previously skipped if the text or data segment was empty).

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Oct 4 03:17:37 2002 UTC (24 years, 1 month ago) by junyoung
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -3 lines
Remove unnecessary code.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:37:42 2002 UTC (24 years, 1 month ago) by provos
Branches: MAIN
CVS tags: kqueue-base
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3 lines
remove trailing \n in panic().  approved perry.

Revision 1.62.2.7: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:21:56 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.62.2.6: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.6: +1 -5 lines
Catch up to -current.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Sep 12 16:57:44 2002 UTC (24 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -7 lines
The entry point address for the interpreter must be adjusted by the text
section VMA on all platforms.  It just happens to 0 normally on everything but
MIPS.

Revision 1.63.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:47:39 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.63.2.4: preferred, colored
Changes since revision 1.63.2.4: +21 -5 lines
sync kqueue branch with HEAD

Revision 1.70.8.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:23:05 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.70.8.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.8.1: +21 -5 lines
catch up with -current.

Revision 1.62.2.6: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:47:20 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.62.2.5: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.5: +21 -5 lines
Catch up to -current.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Aug 26 21:07:38 2002 UTC (24 years, 2 months ago) by christos
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +21 -5 lines
- Implement passing AT_{R,E}{U,G}ID in the elf aux vector.
- Pass struct proc to copyargs
- fix svr4_copyargs functions

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

Revision 1.70.8.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 16:02:18 2002 UTC (24 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
catch up with -current.

Revision 1.62.2.5: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:47:07 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.62.2.4: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.4: +3 -3 lines
Catch up to -current.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Jun 3 13:07:00 2002 UTC (24 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
Use "#ifdef __mips__" instead of "#ifdef mips"; shared libraries work
for kernels compiled with gcc 3.x.

Revision 1.62.2.4: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:14:43 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.62.2.3: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.3: +5 -2 lines
Catch up to -current.

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

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Jan 28 22:15:55 2002 UTC (24 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: 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, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +5 -2 lines
Define ELF32_EHDR_FLAGS_OK()/ELF64_EHDR_FLAGS_OK() and use it
as an added measure to make sure that we can execute a binary.
These default to (1) if elf_machdep.h does not override them.

On Sun2, ELF32_EHDR_FLAGS_OK() checks for the presense of EF_M68000,
since the 68010 cannot run binaries for the 68020-and-up.

Revision 1.63.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:59:40 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.63.2.1: preferred, colored
Changes since revision 1.63.2.1: +5 -2 lines
Sync kqueue branch with -current.

Revision 1.62.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:16:32 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.62.2.2: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.2: +5 -2 lines
Catch up to -current.

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

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

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Oct 30 15:32:03 2001 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -2 lines
- Add a new vnode flag VEXECMAP, which indicates that a vnode has
  executable mappings.  Stop overloading VTEXT for this purpose (VTEXT
  also has another meaning).
- Rename vn_marktext() to vn_markexec(), and use it when executable
  mappings of a vnode are established.
- In places where we want to set VTEXT, set it in v_flag directly, rather
  than making a function call to do this (it no longer makes sense to
  use a function call, since we no longer overload VTEXT with VEXECMAP's
  meaning).

VEXECMAP suggested by Chuq Silvers.

Revision 1.62.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:11:22 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.62.2.1: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.1: +35 -55 lines
Catch up with -current.

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

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Jul 29 21:24:23 2001 UTC (25 years, 3 months ago) by christos
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.66: preferred, colored
Changes since revision 1.66: +2 -2 lines
simplify an expression.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Jul 29 21:22:58 2001 UTC (25 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +10 -10 lines
adjust to the new copyargs footprint

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Jul 15 20:52:35 2001 UTC (25 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +17 -10 lines
Fix problem reported by Greg Woods, with ld -n generated binaries.
Now if the requested alignment of the psection is less than PAGE_SIZE
we use readvn, not pagedvn and we don't adjust sizes.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Jul 14 02:08:29 2001 UTC (25 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +10 -37 lines
- add exec_read_from and make exec_elf32 use it.
- add a macho probe function

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:06:41 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -2 lines
Catch up to -current.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon May 7 17:09:13 2001 UTC (25 years, 6 months ago) by jdolecek
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -2 lines
In the check_header() function, bump the number of allowed section headers
to 512. Apparently, there are ELF binaries with more than 128 section
headers - an example is one of Linux Word Perfect 8 utilities.

This fixes kern/12455 by Mark Davies.

Revision 1.45.2.6: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:16:43 2001 UTC (25 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.45.2.5: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.5: +5 -2 lines
Sync with HEAD.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sun Feb 4 19:12:09 2001 UTC (25 years, 9 months ago) by eeh
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -2 lines
*NEVER* cast a reference parameter (unless you're using C++).

Revision 1.45.2.5: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:36 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.45.2.4: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.4: +40 -40 lines
Sync with HEAD

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Dec 15 06:14:21 2000 UTC (25 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +41 -41 lines
Tighten up the ELF signature checks, and actually look for the ABI tag added
in newer glibc versions.

Revision 1.45.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:18 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.45.2.3: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.3: +3 -10 lines
Sync with HEAD (for UBC fixes).

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Dec 11 05:29:02 2000 UTC (25 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -11 lines
Introduce 2 new flags in types.h:
* __HAVE_SYSCALL_INTERN.  If this is defined, e_syscall is replaced by
  e_syscall_intern, which is called at key places in the kernel.  This can be
  used to set a MD syscall handler pointer.  This obsoletes and replaces the
  *_HAS_SEPARATED_SYSCALL flags.
* __HAVE_MINIMAL_EMUL.  If this is defined, certain (deprecated) elements in
  struct emul are omitted.

Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:13:52 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.45.2.2: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.2: +2 -2 lines
Sync with HEAD.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Nov 28 13:10:41 2000 UTC (25 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
backout part of execsw/LKM changes:  netbsd_elf32_signature() is used by
the compat/netbsd32 code so de-static it again.

Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:05:16 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.1: +28 -113 lines
Sync with HEAD.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Nov 21 00:37:56 2000 UTC (26 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +27 -106 lines
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.45.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:08:55 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +110 -117 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Nov 14 22:14:53 2000 UTC (26 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +6 -4 lines
NBPG -> PAGE_SIZE.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Nov 13 21:32:15 2000 UTC (26 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -2 lines
change the type of *syscallnames[] array to 'const char * const foo[]'

Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Nov 8 05:47:56 2000 UTC (26 years ago) by chs
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1 -9 lines
remove unneeded includes.

Revision 1.49.2.2: download - view: text, markup, annotated - select for diffs
Fri Nov 3 20:00:38 2000 UTC (26 years ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.1: +31 -17 lines
Pullup 1.53 [matt]:
modify load_file to load at relative vma's as specified in the phdr's.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Aug 1 04:57:28 2000 UTC (26 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +28 -56 lines
ANSI'ify.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Jul 13 02:35:25 2000 UTC (26 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +31 -17 lines
modify load_file to load at relative vms'a as specified in the phdr's.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 01:09:23 2000 UTC (26 years, 4 months ago) by thorpej
Branches: netbsd-1-5
CVS tags: netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -1 lines
Pull up rev. 1.52 (kleink):
Add back a missing failure return statement accidently
deleted in rev. 1.46.  (noticed by cgd)

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Jul 11 06:23:38 2000 UTC (26 years, 4 months ago) by kleink
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -1 lines
Add back a failure return statement in check_header() which I accidently
deleted in rev. 1.46; pointed out by Chris Demetriou.

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

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Jun 26 14:38:54 2000 UTC (26 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +1 -3 lines
remove redundant vm includes.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:09:03 2000 UTC (26 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +2 -1 lines
Sync w/ netbsd-1-5-base.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Jun 6 18:26:34 2000 UTC (26 years, 5 months ago) by soren
Branches: MAIN
CVS tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -1 lines
defopt SYSCALL_DEBUG.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Apr 11 04:37:50 2000 UTC (26 years, 7 months ago) by chs
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -2 lines
add a new function vn_marktext() for exec code to let others know
that the vnode is now being used as process text.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Feb 6 16:49:51 2000 UTC (26 years, 9 months ago) by eeh
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +13 -5 lines
Update for compat_netbsd32.

Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:50 1999 UTC (26 years, 10 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +44 -44 lines
Pull up to last week's -current.

Revision 1.45.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:41:48 1999 UTC (27 years ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +44 -44 lines
Sync with -current

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Oct 25 13:55:07 1999 UTC (27 years ago) by kleink
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +44 -44 lines
Update to match new SVR4-style definition names in <sys/exec_elf.h>.

Revision 1.43.4.3: download - view: text, markup, annotated - select for diffs
Sun Jul 4 01:33:36 1999 UTC (27 years, 4 months ago) by chs
Branches: chs-ubc2
Diff to: previous 1.43.4.2: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.4.2: +10 -1 lines
after setting VTEXT on a vnode, flush any UBC mappings
to try to prevent unnecessary VAC aliases.

Revision 1.43.4.2: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:43:19 1999 UTC (27 years, 4 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.43.4.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.1: +7 -2 lines
Sync w/ -current.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Jun 29 23:39:06 1999 UTC (27 years, 4 months ago) by fvdl
Branches: MAIN
CVS tags: chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +7 -2 lines
Allow execution of shared objects. This is silly, but is allowed in,
for example, Solaris and Linux, and at least one Linux ldd implementation
even depends on it.

Revision 1.43.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:23:59 1999 UTC (27 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2 lines
Sync w/ -current.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Apr 30 23:02:06 1999 UTC (27 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2 lines
ep_arglen is in units of 'sizeof (char *)', not in units of bytes.  use
howmany(value, sizeof (char *)) to get the right value.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Feb 10 17:03:27 1999 UTC (27 years, 9 months ago) by kleink
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
Use of casts as lvalues is a GNU C extension; rearrange slightly.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Feb 9 20:35:04 1999 UTC (27 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +9 -1 lines
PR/6962: Paul Shupak: FreeBSD elf support.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Jan 6 11:52:53 1999 UTC (27 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +6 -6 lines
Fix 3 problems with the new signature code:
- don't set position to 0, set it to NO_ADDR (cgd)
- no need to malloc size + 1 bytes (cgd)
- fix calculation of minimum note size section.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Dec 23 15:08:37 1998 UTC (27 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +84 -1 lines
Add support for parsing OS type note fields.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Oct 3 20:39:32 1998 UTC (28 years, 1 month ago) by christos
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
update for linux file move.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Oct 1 16:06:24 1998 UTC (28 years, 1 month ago) by erh
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -11 lines
Move elf function name macros to exec_elf.h.  COMPAT_LINUX is no longer limited to ELFSIZE==32.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Sep 12 17:20:02 1998 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
Make copyrights consistent; fix weird/trailing spaces add missing (c) etc.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Sep 5 14:35:17 1998 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +37 -2 lines
Assign copyright to TNF.

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 8 03:06:53 1998 UTC (28 years, 3 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +3 -3 lines
Revert cdevsw mmap routines to return int.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Aug 4 04:03:10 1998 UTC (28 years, 3 months ago) by perry
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
  bcopy(x, y, z) ->  memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
   bcmp(x, y, z) ->  memcmp(x, y, z)
  bzero(x, y)    ->  memset(x, 0, y)

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Jul 31 22:50:48 1998 UTC (28 years, 3 months ago) by perry
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3 lines
fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Jul 28 18:37:47 1998 UTC (28 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,
to match the new uio_resid type.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jun 26 00:07:45 1998 UTC (28 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -1 lines
defopt COMPAT_SVR4

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jun 25 23:22:51 1998 UTC (28 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -1 lines
defopt COMPAT_IBCS2

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jun 25 23:19:00 1998 UTC (28 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -1 lines
defopt COMPAT_LINUX

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri May 8 18:18:55 1998 UTC (28 years, 6 months ago) by kleink
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
Fix some arithmetics lossage on typeless pointers.

Revision 1.26.8.1: download - view: text, markup, annotated - select for diffs
Tue May 5 09:56:31 1998 UTC (28 years, 6 months ago) by mycroft
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +11 -2 lines
Pull up 1.27, per request of scottb.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:22:27 1998 UTC (28 years, 8 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Merge with Lite2 + local changes

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Feb 9 01:29:10 1998 UTC (28 years, 9 months ago) by scottb
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -2 lines
added support for SCO UNIX (derived from iBCS2)

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu May 8 16:20:05 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-PATCH001, netbsd-1-3-BETA, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Branch point for: netbsd-1-3
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -9 lines
Pass the vnode type to vaccess(), and use it when checking VEXEC.  Make sure
that the mode bits passed to vaccess() and returned by foo_getattr() contain
only permission bits.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu May 8 12:17:47 1997 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -5 lines
GC some code.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu May 8 10:19:10 1997 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
va_mode contains stat bits.  Use S_IS[UG]ID rather than VS[UG]ID.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Mar 13 02:55:25 1997 UTC (29 years, 8 months ago) by hpeyerl
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
Probe linux emul before svr4 emul. From Christos.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Dec 17 22:04:20 1996 UTC (29 years, 11 months ago) by cgd
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +13 -10 lines
always provide at least a minimal aux vector.  (The minimal version
is one entry long, with the entry's id being AUX_null.)

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Nov 23 11:46:34 1996 UTC (29 years, 11 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -4 lines
Make previous change in interpreter entry point calculation dependant on
a 'mips' define. XXX

Just a temporary patch to get things going again for Linux ELF binaries,
needs to be solved properly.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Nov 11 20:33:10 1996 UTC (30 years ago) by jonathan
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -2 lines
Elf32 fixes for mips shared libraries:

 * handle interpreters with nonzero virtual address of entry-point:
   subtract p_vaddr from computed entrypoint, as the mips elf exec did.

 * Add #ifdef ELF_INTERP_NON_RELOCATABLE/#endif around the code
   that tries to choose a `good' address at which to load an interpreter,
   if none was set by the emul probe  function.
   (the address chosen could be improved to avoid  fragmenting the
    process virtual address space).

 * define ELF_INTERP_NON_RELOCATABLE in machine/elf_machdep.h for mips CPUs,
   which currently use a GNU-derived ld.so.

ELF_INTERP_NON_RELOCATABLE is not necessary for native NetBSD/alpha ELF
binaries. It may be required for GNU-derived ELF dynamic loaders (Linux/i386?)

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Oct 13 22:54:52 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +9 -4 lines
deal more sanely with ELF binaries with only a single program header
section.  Patch come up with by Bob Baron <rvb+@cs.cmu.edu> and myself.
This entire bit of code (the code which sets daddr/dsize and taddr/tsize)
is very bogus, but it's not clear what the 'right' way to fix it is
and this patch fixes a problem preventing some ELF executables from
being run.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Oct 11 19:44:02 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -5 lines
replace ELF_ALIGN with ELF_TRUNC (round to lower alignment boundary) and
ELF_ROUND (round to higher alignment boundary), and use them properly.
Also, change a bit of code in elf_load_psection to use the next ELF_ROUND
macro.  This fixes a bug found by Robert Baron <rvb+@cs.cmu.edu> where
elf_load_psection, if given a properly aligned address at which to load
the section, would round actually load it at the next highest alignment
boundary.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Oct 8 03:40:40 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +68 -65 lines
KNF, de-static the functions that were static (so they'll show up
in ddb, etc.)

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Oct 7 21:43:05 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -2 lines
don't include <machine/exec.h> explicitly.  No other changes needed, since
<sys/exec.h> was already being included.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Oct 7 18:29:24 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -4 lines
clean up a comment added in the last commit

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Oct 7 18:24:48 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +57 -19 lines
when loading interpreter: check its vnode type, check its mount point
for NOEXEC and NOSUID, and make sure the interpreter file is executable.
The mount point checks are done because, even though the interpreter
is not the program being 'executed', code from the interpreter is being
executed, and so the mount point's flags should be respected.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Oct 2 05:30:29 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -6 lines
Remove the implicit inclusion of EXEC_ELF32 when COMPAT_LINUX and/or
COMPAT_SVR4 is included.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 30 23:18:43 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +20 -7 lines
exec vnode locking protocol changes: in a nutshell, don't keep vnodes
locked for any longer than we have to.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Sep 30 23:02:14 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -6 lines
make the check_header and load_file functions static

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Sep 26 21:50:56 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -22 lines
add and use a machine-dependent header, which currently defines some
macros to use to remove #ifdefs from the machine ID case check.
Eventually, these headers will contain other information, e.g.
machine-dependent relocation information, etc.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Sep 26 20:51:05 1996 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +120 -97 lines
add support and reorganize for 64-bit ELF, included by EXEC_ELF64
option.  (Also, make EXEC_ELF32 option a way to explicitly include
32-bit ELF support.)

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jun 14 18:15:55 1996 UTC (30 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +72 -6 lines
Merge pagedvn changes from OpenBSD and added mips defines. Also added
ELF_MAP_PAGE_ZERO define. The entry point computation is different than
the one OpenBSD uses.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Jun 13 18:35:25 1996 UTC (30 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +8 -10 lines
- Pass the Elf exec header in the emulation dependent probe functions.
- remove static from elf_read_from().

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Feb 9 18:59:18 1996 UTC (30 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -2 lines
More proto fixes

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Feb 9 13:25:54 1996 UTC (30 years, 9 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +9 -1 lines
Use a default, 'safe' address to map the loader to in case the an emulation-
specific probe function did not specify it. It picks the same address
as mmap() does for a non-fixed map at address 0. See also the comment
around a similar line of code in vm/vm_mmap.c.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 16 23:07:18 1996 UTC (30 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +40 -93 lines
* Don't rely on the protection bits of segments anymore to decide whether
  it's text or data; use the entry point instead (this solves some trouble
  with ELF executables with strange permissions)
* Incorporate some fixes from r_friedl@informatik.uni-kl.de sent to
  netbsd-bugs a while ago

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Sep 16 00:28:08 1995 UTC (31 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -6 lines
s/memcmp/bcmp/

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Jun 30 02:57:20 1995 UTC (31 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -2 lines
Remove unused define

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 21:29:53 1995 UTC (31 years, 5 months ago) by fvdl
Branches: MAIN
Generic mi ELF loader; delete Linux and Svr4 compat conf entries and
add generic ELF entry to exec_conf.c

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>