Up to [cvs.netbsd.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.136.8.2 / (download) - annotate - [select for diffs], Wed Sep 2 17:50:25 2009 UTC (2 years, 8 months ago) by matt
Branch: 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
Changes since 1.136.8.1: +3 -4
lines
Diff to previous 1.136.8.1 (colored) to branchpoint 1.136 (colored) next main 1.137 (colored)
If we have a ELF_MD_PROBE_FUNC, let it deal with ELF_INTERP_NON_RELOCATABLE.
Revision 1.136.8.1 / (download) - annotate - [select for diffs], Fri Aug 21 18:00:36 2009 UTC (2 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-u1-k1-k5
Changes since 1.136: +6 -2
lines
Diff to previous 1.136 (colored)
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) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.132.10.1: +60 -886
lines
Diff to previous 1.132.10.1 (colored) to branchpoint 1.132 (colored) next main 1.133 (colored)
sync with head.
Revision 1.136.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:37 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.136: +60 -885
lines
Diff to previous 1.136 (colored) next main 1.137 (colored)
Sync with HEAD.
Revision 1.132.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.132.6.3: +59 -884
lines
Diff to previous 1.132.6.3 (colored) to branchpoint 1.132 (colored) next main 1.133 (colored)
Sync with HEAD.
Revision 1.134.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:07 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.134.4.1: +60 -885
lines
Diff to previous 1.134.4.1 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored)
Update haad-dm branch to haad-dm-base2.
Revision 1.137 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:06 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-pagecache,
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,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
netbsd-6-base,
netbsd-6,
mjf-devfs2-base,
matt-premerge-20091211,
matt-mips64-premerge-20101231,
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-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,
ad-audiomp2-base,
ad-audiomp2,
HEAD
Changes since 1.136: +60 -885
lines
Diff to previous 1.136 (colored)
Make the emulations, exec formats, coredump, NFS, and the NFS server into modules. By and large this commit: - shuffles header files and ifdefs - splits code out where necessary to be modular - adds module glue for each of the components - adds/replaces hooks for things that can be installed at runtime
Revision 1.134.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:27 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.134: +5 -5
lines
Diff to previous 1.134 (colored)
Sync with HEAD.
Revision 1.132.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:51 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.132.6.2: +3 -3
lines
Diff to previous 1.132.6.2 (colored) to branchpoint 1.132 (colored)
Sync with HEAD.
Revision 1.133.2.3 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:56 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.133.2.2: +3 -3
lines
Diff to previous 1.133.2.2 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)
Merge in changes between wrstuden-revivesa-base-2 and wrstuden-revivesa-base-3.
Revision 1.133.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:41 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.133.2.1: +4 -4
lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.136 / (download) - annotate - [select for diffs], Mon Sep 15 18:12:56 2008 UTC (3 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
netbsd-5-base,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-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
Changes since 1.135: +3 -3
lines
Diff to previous 1.135 (colored)
Replace intptr_t with uintptr_t in few more places. OK by <matt>.
Revision 1.134.2.1 / (download) - annotate - [select for diffs], Mon Jul 28 14:37:36 2008 UTC (3 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.134: +4 -4
lines
Diff to previous 1.134 (colored) next main 1.135 (colored)
Sync with head.
Revision 1.135 / (download) - annotate - [select for diffs], Fri Jul 18 21:29:48 2008 UTC (3 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Changes since 1.134: +4 -4
lines
Diff to previous 1.134 (colored)
fix debugging printf
Revision 1.133.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:50 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.133: +3 -4
lines
Diff to previous 1.133 (colored)
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.132.8.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:02 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.132.8.1: +3 -4
lines
Diff to previous 1.132.8.1 (colored) to branchpoint 1.132 (colored) next main 1.133 (colored)
sync with head.
Revision 1.132.6.2 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:36 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.132.6.1: +1 -2
lines
Diff to previous 1.132.6.1 (colored) to branchpoint 1.132 (colored)
Sync with HEAD. Also fix build.
Revision 1.134 / (download) - annotate - [select for diffs], Tue Jun 3 22:15:14 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: simonb-wapbl,
haad-dm
Changes since 1.133: +3 -4
lines
Diff to previous 1.133 (colored)
Don't use proc specificdata for the PAX stuff. Speeds up mmap() and others.
Revision 1.132.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:07 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.132: +2 -9
lines
Diff to previous 1.132 (colored)
Sync with HEAD.
Revision 1.132.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:06 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.132: +2 -9
lines
Diff to previous 1.132 (colored)
sync with head.
Revision 1.132.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:24 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.132: +2 -9
lines
Diff to previous 1.132 (colored)
sync with head.
Revision 1.133 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (4 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.132: +2 -9
lines
Diff to previous 1.132 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.125.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.125.2.1: +85 -27
lines
Diff to previous 1.125.2.1 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored)
Sync with HEAD.
Revision 1.104.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:58 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.5: +85 -27
lines
Diff to previous 1.104.2.5 (colored) next main 1.105 (colored)
sync with head
Revision 1.124.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:56 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.124.10.1: +110 -34
lines
Diff to previous 1.124.10.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)
sync with HEAD
Revision 1.127.6.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:28 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.127.6.1: +23 -16
lines
Diff to previous 1.127.6.1 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)
Sync with HEAD
Revision 1.132 / (download) - annotate - [select for diffs], Thu Jan 3 14:30:49 2008 UTC (4 years, 4 months ago) by yamt
Branch: 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
Changes since 1.131: +13 -12
lines
Diff to previous 1.131 (colored)
malloc -> kmem_alloc
Revision 1.131 / (download) - annotate - [select for diffs], Wed Jan 2 22:04:56 2008 UTC (4 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.130: +14 -8
lines
Diff to previous 1.130 (colored)
- 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) - annotate - [select for diffs], Wed Jan 2 21:55:43 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.127: +62 -11
lines
Diff to previous 1.127 (colored)
Sync with HEAD
Revision 1.130 / (download) - annotate - [select for diffs], Fri Dec 28 17:14:50 2007 UTC (4 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.129: +8 -5
lines
Diff to previous 1.129 (colored)
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) - annotate - [select for diffs], Thu Dec 27 15:21:52 2007 UTC (4 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.128: +4 -7
lines
Diff to previous 1.128 (colored)
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) - annotate - [select for diffs], Wed Dec 26 22:11:47 2007 UTC (4 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.127: +62 -11
lines
Diff to previous 1.127 (colored)
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) - annotate - [select for diffs], Sat Dec 8 18:20:24 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.125: +27 -9
lines
Diff to previous 1.125 (colored)
Sync with HEAD.
Revision 1.104.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:33 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.4: +27 -9
lines
Diff to previous 1.104.2.4 (colored)
sync with head
Revision 1.124.8.3 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:46 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.124.8.2: +25 -7
lines
Diff to previous 1.124.8.2 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)
Sync with HEAD.
Revision 1.127 / (download) - annotate - [select for diffs], Mon Dec 3 02:06:58 2007 UTC (4 years, 5 months ago) by christos
Branch: 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
Changes since 1.126: +25 -7
lines
Diff to previous 1.126 (colored)
- 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) - annotate - [select for diffs], Tue Nov 27 19:37:59 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.124.8.1: +4 -4
lines
Diff to previous 1.124.8.1 (colored) to branchpoint 1.124 (colored)
Sync with HEAD. amd64 Xen support needs testing.
Revision 1.126 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:58 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.125: +4 -4
lines
Diff to previous 1.125 (colored)
Remove the "struct lwp *" argument from all VFS and VOP interfaces. The general trend is to remove it from all kernel interfaces and this is a start. In case the calling lwp is desired, curlwp should be used. quick consensus on tech-kern
Revision 1.124.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:26 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.124: +3 -3
lines
Diff to previous 1.124 (colored)
sync with HEAD
Revision 1.104.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:17 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.3: +3 -3
lines
Diff to previous 1.104.2.3 (colored)
sync with head.
Revision 1.124.8.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:26 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.124: +3 -3
lines
Diff to previous 1.124 (colored)
Sync with HEAD. Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
Revision 1.124.14.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:58 2007 UTC (4 years, 7 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.124: +3 -3
lines
Diff to previous 1.124 (colored) next main 1.125 (colored)
Sync with HEAD.
Revision 1.122.2.3 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:08 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.122.2.2: +3 -3
lines
Diff to previous 1.122.2.2 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)
Sync with head.
Revision 1.125 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:41 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.124: +3 -3
lines
Diff to previous 1.124 (colored)
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.104.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:39 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.2: +48 -22
lines
Diff to previous 1.104.2.2 (colored)
sync with head.
Revision 1.120.8.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:05:02 2007 UTC (4 years, 8 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.120: +36 -17
lines
Diff to previous 1.120 (colored) next main 1.121 (colored)
Sync w/ NetBSD-4-RC_1
Revision 1.124.2.1 / (download) - annotate - [select for diffs], Wed Jul 18 01:49:49 2007 UTC (4 years, 10 months ago) by matt
Branch: matt-mips64
Changes since 1.124: +6 -2
lines
Diff to previous 1.124 (colored) next main 1.125 (colored)
Add ELF core MD hooks and exec hooks to test ABI
Revision 1.122.2.2 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:35 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.122.2.1: +36 -17
lines
Diff to previous 1.122.2.1 (colored) to branchpoint 1.122 (colored)
Sync with head.
Revision 1.122.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:39 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.122: +48 -22
lines
Diff to previous 1.122 (colored) next main 1.123 (colored)
Sync with head.
Revision 1.120.2.1 / (download) - annotate - [select for diffs], Mon Jul 9 10:30:57 2007 UTC (4 years, 10 months ago) by liamjfoy
Branch: 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
Changes since 1.120: +36 -17
lines
Diff to previous 1.120 (colored) next main 1.121 (colored)
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) - annotate - [select for diffs], Sun Jun 24 20:35:37 2007 UTC (4 years, 11 months ago) by christos
Branch: 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
Changes since 1.123: +36 -17
lines
Diff to previous 1.123 (colored)
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) - annotate - [select for diffs], Fri Jun 8 14:17:14 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.122: +14 -7
lines
Diff to previous 1.122 (colored)
Sync with head.
Revision 1.120.4.2 / (download) - annotate - [select for diffs], Mon May 7 10:55:44 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.120.4.1: +14 -7
lines
Diff to previous 1.120.4.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)
sync with head.
Revision 1.123 / (download) - annotate - [select for diffs], Sun Apr 22 08:30:00 2007 UTC (5 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.122: +14 -7
lines
Diff to previous 1.122 (colored)
Change the way that emulations locate files within the emulation root to avoid having to allocate space in the 'stackgap' - which is very LWP unfriendly. The additional code for non-emulation namei() is trivial, the reduction for the emulations is massive. The vnode for a processes emulation root is saved in the cwdi structure during process exec. If the emulation root the TRYEMULROOT flag are set, namei() will do an initial search for absolute pathnames in the emulation root, if that fails it will retry from the normal root. ".." at the emulation root will always go to the real root, even in the middle of paths and when expanding symlinks. Absolute symlinks found using absolute paths in the emulation root will be relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links inside the emulation root don't need changing). If the root of the emulation would be returned (for an emulation lookup), then the real root is returned instead (matching the behaviour of emul_lookup, but being a cheap comparison here) so that programs that scan "../.." looking for the root dircetory don't loop forever. The target for symbolic links is no longer mangled (it used to get the CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended). CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding TRYEMULROOT to the flags to NDINIT(). A lot of the emulation system call stubs could now be deleted.
Revision 1.120.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:31 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.120: +3 -3
lines
Diff to previous 1.120 (colored)
Sync with HEAD.
Revision 1.122 / (download) - annotate - [select for diffs], Mon Mar 5 09:22:02 2007 UTC (5 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Changes since 1.121: +3 -3
lines
Diff to previous 1.121 (colored)
netbsd_elf_signature: fix a caddr_t removal botch which causes "init: not found".
Revision 1.121 / (download) - annotate - [select for diffs], Mon Mar 5 04:59:19 2007 UTC (5 years, 2 months ago) by dogcow
Branch: MAIN
Changes since 1.120: +3 -3
lines
Diff to previous 1.120 (colored)
die, caddr_t, die.
Revision 1.115.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:06 2007 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.115.4.1: +8 -7
lines
Diff to previous 1.115.4.1 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored)
Sync with head.
Revision 1.104.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:04 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.1: +16 -17
lines
Diff to previous 1.104.2.1 (colored)
sync with head.
Revision 1.115.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:43 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.115.6.1: +12 -11
lines
Diff to previous 1.115.6.1 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored)
sync with head.
Revision 1.120 / (download) - annotate - [select for diffs], Fri Nov 24 01:13:11 2006 UTC (5 years, 6 months ago) by elad
Branch: 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
Changes since 1.119: +3 -2
lines
Diff to previous 1.119 (colored)
Put back break mistakenly removed in previous commit.
Revision 1.119 / (download) - annotate - [select for diffs], Wed Nov 22 02:02:51 2006 UTC (5 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.118: +4 -5
lines
Diff to previous 1.118 (colored)
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) - annotate - [select for diffs], Wed Nov 22 00:41:38 2006 UTC (5 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.117: +7 -6
lines
Diff to previous 1.117 (colored)
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) - annotate - [select for diffs], Sat Nov 18 21:39:21 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.115: +4 -4
lines
Diff to previous 1.115 (colored)
Sync with head.
Revision 1.117 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.116: +6 -6
lines
Diff to previous 1.116 (colored)
remove some __unused from function parameters.
Revision 1.115.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:09 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.115: +5 -5
lines
Diff to previous 1.115 (colored)
sync with head
Revision 1.116 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:14 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.115: +5 -5
lines
Diff to previous 1.115 (colored)
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
Revision 1.108.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:15 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.108: +30 -13
lines
Diff to previous 1.108 (colored) next main 1.109 (colored)
sync with head
Revision 1.109.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:45 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.109.2.2: +8 -10
lines
Diff to previous 1.109.2.2 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)
sync with head
Revision 1.115 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:10 2006 UTC (5 years, 10 months ago) by ad
Branch: 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
Changes since 1.114: +8 -10
lines
Diff to previous 1.114 (colored)
Use the LWP cached credentials where sane.
Revision 1.104.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104: +95 -50
lines
Diff to previous 1.104 (colored)
sync with head.
Revision 1.108.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:06 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.108.6.1: +22 -8
lines
Diff to previous 1.108.6.1 (colored) next main 1.109 (colored)
Sync with head.
Revision 1.109.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (6 years ago) by tron
Branch: peter-altq
Changes since 1.109.6.1: +22 -8
lines
Diff to previous 1.109.6.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.109.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (6 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.109.2.1: +22 -8
lines
Diff to previous 1.109.2.1 (colored) to branchpoint 1.109 (colored)
sync with head.
Revision 1.114 / (download) - annotate - [select for diffs], Thu May 18 17:35:49 2006 UTC (6 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
chap-midi
Changes since 1.113: +4 -2
lines
Diff to previous 1.113 (colored)
don't break lkms; pointed out by hannken@ and he@, thanks!
Revision 1.113 / (download) - annotate - [select for diffs], Tue May 16 00:08:25 2006 UTC (6 years ago) by elad
Branch: MAIN
Changes since 1.112: +13 -2
lines
Diff to previous 1.112 (colored)
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) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (6 years ago) by elad
Branch: MAIN
Changes since 1.111: +9 -8
lines
Diff to previous 1.111 (colored)
integrate kauth.
Revision 1.109.4.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:30 2006 UTC (6 years ago) by christos
Branch: elad-kernelauth
Changes since 1.109.4.2: +3 -2
lines
Diff to previous 1.109.4.2 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)
- Move kauth_cred_t declaration to <sys/types.h> - Cleanup struct ucred; forward declarations that are unused. - Don't include <sys/kauth.h> in any header, but include it in the c files that need it. Approved by core.
Revision 1.108.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.108: +10 -5
lines
Diff to previous 1.108 (colored)
Sync with head.
Revision 1.109.4.2 / (download) - annotate - [select for diffs], Wed Apr 19 05:13:59 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.109.4.1: +7 -2
lines
Diff to previous 1.109.4.1 (colored) to branchpoint 1.109 (colored)
sync with head.
Revision 1.109.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:38 2006 UTC (6 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.109: +7 -2
lines
Diff to previous 1.109 (colored)
sync with head.
Revision 1.109.6.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:26 2006 UTC (6 years, 2 months ago) by tron
Branch: peter-altq
Changes since 1.109: +7 -2
lines
Diff to previous 1.109 (colored)
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.97.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 17:52:29 2006 UTC (6 years, 2 months ago) by riz
Branch: netbsd-2-0
Changes since 1.97.2.1: +5 -0
lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)
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) - annotate - [select for diffs], Mon Mar 20 17:52:23 2006 UTC (6 years, 2 months ago) by riz
Branch: netbsd-2-1
Changes since 1.97.2.1: +5 -0
lines
Diff to previous 1.97.2.1 (colored) next main 1.97.2.2 (colored)
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) - annotate - [select for diffs], Mon Mar 20 17:52:20 2006 UTC (6 years, 2 months ago) by riz
Branch: netbsd-2
Changes since 1.97.2.1: +5 -0
lines
Diff to previous 1.97.2.1 (colored) next main 1.97.2.2 (colored)
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) - annotate - [select for diffs], Mon Mar 20 17:45:33 2006 UTC (6 years, 2 months ago) by riz
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE
Changes since 1.102.2.2: +5 -0
lines
Diff to previous 1.102.2.2 (colored) next main 1.102.2.3 (colored)
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) - annotate - [select for diffs], Mon Mar 20 17:45:24 2006 UTC (6 years, 2 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1
Changes since 1.102.2.2: +5 -0
lines
Diff to previous 1.102.2.2 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored)
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) - annotate - [select for diffs], Fri Mar 17 11:03:07 2006 UTC (6 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
elad-kernelauth-base
Changes since 1.110: +3 -4
lines
Diff to previous 1.110 (colored)
KNF
Revision 1.110 / (download) - annotate - [select for diffs], Fri Mar 17 08:51:35 2006 UTC (6 years, 2 months ago) by erh
Branch: MAIN
Changes since 1.109: +8 -2
lines
Diff to previous 1.109 (colored)
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) - annotate - [select for diffs], Wed Mar 8 00:53:40 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.109: +8 -8
lines
Diff to previous 1.109 (colored)
Adapt to kernel authorization KPI.
Revision 1.108.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:18 2006 UTC (6 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.108: +5 -5
lines
Diff to previous 1.108 (colored) next main 1.109 (colored)
sync with head.
Revision 1.109 / (download) - annotate - [select for diffs], Sat Feb 4 12:09:50 2006 UTC (6 years, 3 months ago) by yamt
Branch: 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
Changes since 1.108: +5 -5
lines
Diff to previous 1.108 (colored)
for some random places, use PNBUF_GET/PUT rather than - on-stack buffer - malloc(MAXPATHLEN)
Revision 1.108 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Changes since 1.107: +31 -24
lines
Diff to previous 1.107 (colored)
merge ktrace-lwp.
Revision 1.92.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.9: +52 -33
lines
Diff to previous 1.92.2.9 (colored) next main 1.93 (colored)
Sync with HEAD. Here we go again...
Revision 1.107.4.1 / (download) - annotate - [select for diffs], Sat Oct 29 18:34:17 2005 UTC (6 years, 6 months ago) by thorpej
Branch: thorpej-vnode-attr
Changes since 1.107: +2 -7
lines
Diff to previous 1.107 (colored) next main 1.108 (colored)
Don't bother fetching attributes here; they're never used.
Revision 1.102.2.2 / (download) - annotate - [select for diffs], Sat Oct 8 08:44:30 2005 UTC (6 years, 7 months ago) by tron
Branch: 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
Changes since 1.102.2.1: +12 -0
lines
Diff to previous 1.102.2.1 (colored) to branchpoint 1.102 (colored)
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) - annotate - [select for diffs], Fri Oct 7 08:33:10 2005 UTC (6 years, 7 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
ktrace-lwp-base
Branch point for: thorpej-vnode-attr
Changes since 1.106: +14 -2
lines
Diff to previous 1.106 (colored)
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) - annotate - [select for diffs], Sun Sep 18 20:09:50 2005 UTC (6 years, 8 months ago) by tron
Branch: netbsd-3
Changes since 1.102: +4 -3
lines
Diff to previous 1.102 (colored)
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) - annotate - [select for diffs], Sun Jul 17 23:53:57 2005 UTC (6 years, 10 months ago) by junyoung
Branch: MAIN
Changes since 1.105: +10 -10
lines
Diff to previous 1.105 (colored)
More cosmetic changes.
Revision 1.105 / (download) - annotate - [select for diffs], Sun Jul 17 23:49:49 2005 UTC (6 years, 10 months ago) by junyoung
Branch: MAIN
Changes since 1.104: +30 -23
lines
Diff to previous 1.104 (colored)
Make code prettier.
Revision 1.104 / (download) - annotate - [select for diffs], Sun May 29 22:24:14 2005 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.103: +4 -4
lines
Diff to previous 1.103 (colored)
- add const. - remove unnecessary casts. - add __UNCONST casts and mark them with XXXUNCONST as necessary.
Revision 1.99.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:23 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.99: +7 -7
lines
Diff to previous 1.99 (colored) next main 1.100 (colored)
sync with -current
Revision 1.92.2.9 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:56 2005 UTC (7 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.8: +4 -3
lines
Diff to previous 1.92.2.8 (colored)
Sync with HEAD.
Revision 1.99.6.3 / (download) - annotate - [select for diffs], Sat Mar 26 18:19:20 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.99.6.2: +4 -3
lines
Diff to previous 1.99.6.2 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)
sync with head.
Revision 1.103 / (download) - annotate - [select for diffs], Sat Mar 26 05:12:36 2005 UTC (7 years, 2 months ago) by fvdl
Branch: MAIN
CVS Tags: yamt-km-base4,
kent-audio2-base
Changes since 1.102: +4 -3
lines
Diff to previous 1.102 (colored)
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) - annotate - [select for diffs], Sat Mar 19 08:36:11 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.99.6.1: +4 -4
lines
Diff to previous 1.99.6.1 (colored) to branchpoint 1.99 (colored)
sync with head. xen and whitespace. xen part is not finished.
Revision 1.92.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:58 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.7: +4 -4
lines
Diff to previous 1.92.2.7 (colored)
Sync with HEAD. Hi Perry!
Revision 1.102 / (download) - annotate - [select for diffs], Wed Mar 2 11:05:34 2005 UTC (7 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3
Changes since 1.101: +3 -3
lines
Diff to previous 1.101 (colored)
Copyright maintenance.
Revision 1.101 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.100: +3 -3
lines
Diff to previous 1.100 (colored)
nuke trailing whitespace
Revision 1.99.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:52 2005 UTC (7 years, 3 months ago) by yamt
Branch: yamt-km
Changes since 1.99: +3 -4
lines
Diff to previous 1.99 (colored)
sync with head.
Revision 1.92.2.7 / (download) - annotate - [select for diffs], Mon Feb 7 08:36:33 2005 UTC (7 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.6: +3 -4
lines
Diff to previous 1.92.2.6 (colored)
Sunc with HEAD.
Revision 1.100 / (download) - annotate - [select for diffs], Mon Feb 7 00:12:49 2005 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base2,
matt-timespec
Changes since 1.99: +3 -4
lines
Diff to previous 1.99 (colored)
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) - annotate - [select for diffs], Fri Feb 4 07:09:28 2005 UTC (7 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.5: +3 -3
lines
Diff to previous 1.92.2.5 (colored)
Adapt to branch.
Revision 1.92.2.5 / (download) - annotate - [select for diffs], Tue Nov 2 07:53:23 2004 UTC (7 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.4: +3 -5
lines
Diff to previous 1.92.2.4 (colored)
Sync with HEAD.
Revision 1.99 / (download) - annotate - [select for diffs], Sat Oct 30 09:38:15 2004 UTC (7 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Changes since 1.98: +3 -5
lines
Diff to previous 1.98 (colored)
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) - annotate - [select for diffs], Tue Sep 21 13:35:03 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.3: +31 -24
lines
Diff to previous 1.92.2.3 (colored)
Fix the sync with head I botched.
Revision 1.92.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:02 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.2: +24 -31
lines
Diff to previous 1.92.2.2 (colored)
Sync with HEAD.
Revision 1.97.2.1 / (download) - annotate - [select for diffs], Sun Aug 15 13:50:18 2004 UTC (7 years, 9 months ago) by tron
Branch: 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
Changes since 1.97: +3 -3
lines
Diff to previous 1.97 (colored)
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) - annotate - [select for diffs], Tue Aug 3 10:52:43 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.1: +19 -20
lines
Diff to previous 1.92.2.1 (colored)
Sync with HEAD
Revision 1.98 / (download) - annotate - [select for diffs], Sun Aug 1 22:16:19 2004 UTC (7 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.97: +3 -3
lines
Diff to previous 1.97 (colored)
bump the number of allowed sections to 1024; e.g. SuSE 9.1 packaged Mozilla 1.6 has 726 sections
Revision 1.97 / (download) - annotate - [select for diffs], Wed Jan 7 16:42:53 2004 UTC (8 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.96: +15 -34
lines
Diff to previous 1.96 (colored)
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) - annotate - [select for diffs], Sun Dec 7 02:18:53 2003 UTC (8 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.95: +36 -17
lines
Diff to previous 1.95 (colored)
add support for more than 2 PT_LOAD sections. from OpenBSD.
Revision 1.95 / (download) - annotate - [select for diffs], Fri Oct 31 14:00:52 2003 UTC (8 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.94: +17 -17
lines
Diff to previous 1.94 (colored)
-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) - annotate - [select for diffs], Thu Oct 2 09:51:56 2003 UTC (8 years, 7 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002
Changes since 1.70.10.1: +16 -20
lines
Diff to previous 1.70.10.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)
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) - annotate - [select for diffs], Sat Sep 27 15:52:43 2003 UTC (8 years, 8 months ago) by tron
Branch: netbsd-1-6
Changes since 1.70: +3 -3
lines
Diff to previous 1.70 (colored)
Pull up revision 1.74 (requested by junyoung in ticket #1466): remove trailing \n in panic(). approved perry.
Revision 1.94 / (download) - annotate - [select for diffs], Fri Aug 8 18:53:13 2003 UTC (8 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.93: +3 -3
lines
Diff to previous 1.93 (colored)
GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for emulations to override it.
Revision 1.93 / (download) - annotate - [select for diffs], Wed Aug 6 01:02:27 2003 UTC (8 years, 9 months ago) by manu
Branch: MAIN
Changes since 1.92: +2 -3
lines
Diff to previous 1.92 (colored)
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) - annotate - [select for diffs], Wed Jul 2 15:26:34 2003 UTC (8 years, 10 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.92: +31 -24
lines
Diff to previous 1.92 (colored)
Apply the aborted ktrace-lwp changes to a specific branch. This is just for others to review, I'm concerned that patch fuziness may have resulted in some errant code being generated but I'll look at that later by comparing the diff from the base to the branch with the file I attempt to apply to it. This will, at the very least, put the changes in a better context for others to review them and attempt to tinker with removing passing of 'struct lwp' through the kernel.
Revision 1.92 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:16 2003 UTC (8 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.91: +22 -29
lines
Diff to previous 1.91 (colored)
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) - annotate - [select for diffs], Sat Jun 28 14:21:52 2003 UTC (8 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.90: +31 -24
lines
Diff to previous 1.90 (colored)
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
Revision 1.90 / (download) - annotate - [select for diffs], Wed Jun 25 13:48:06 2003 UTC (8 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.89: +13 -2
lines
Diff to previous 1.89 (colored)
Limit the number of program headers we accept to avoid resource exhaustion by a hand-crafted elf binary.
Revision 1.89 / (download) - annotate - [select for diffs], Sat Mar 1 05:55:51 2003 UTC (9 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.88: +8 -5
lines
Diff to previous 1.88 (colored)
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) - annotate - [select for diffs], Fri Feb 28 19:44:42 2003 UTC (9 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.87: +6 -3
lines
Diff to previous 1.87 (colored)
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) - annotate - [select for diffs], Fri Feb 28 19:09:08 2003 UTC (9 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.86: +28 -21
lines
Diff to previous 1.86 (colored)
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) - annotate - [select for diffs], Fri Feb 28 00:11:14 2003 UTC (9 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.85: +3 -3
lines
Diff to previous 1.85 (colored)
Remove MAXDSIZ since VM_DEFAULT_ADDRESS adds it. Sigh. It was correct.
Revision 1.85 / (download) - annotate - [select for diffs], Thu Feb 27 23:48:29 2003 UTC (9 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.84: +6 -4
lines
Diff to previous 1.84 (colored)
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) - annotate - [select for diffs], Thu Feb 27 23:10:52 2003 UTC (9 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.83: +4 -8
lines
Diff to previous 1.83 (colored)
Fix a c&p bug when moving VM_DEFAULT_ADDRESS. (restore MAXDSIZ)
Revision 1.83 / (download) - annotate - [select for diffs], Thu Feb 27 01:58:56 2003 UTC (9 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.82: +73 -58
lines
Diff to previous 1.82 (colored)
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) - annotate - [select for diffs], Wed Feb 26 21:18:22 2003 UTC (9 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.81: +44 -10
lines
Diff to previous 1.81 (colored)
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) - annotate - [select for diffs], Fri Feb 21 03:53:43 2003 UTC (9 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.80: +3 -3
lines
Diff to previous 1.80 (colored)
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) - annotate - [select for diffs], Thu Feb 20 22:16:07 2003 UTC (9 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.79: +11 -6
lines
Diff to previous 1.79 (colored)
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) - annotate - [select for diffs], Thu Jan 30 20:03:46 2003 UTC (9 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.78: +13 -9
lines
Diff to previous 1.78 (colored)
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) - annotate - [select for diffs], Sun Jan 19 22:52:11 2003 UTC (9 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.77: +2 -4
lines
Diff to previous 1.77 (colored)
Remove variable that is only assigned too but not referenced.
Revision 1.77.2.1 / (download) - annotate - [select for diffs], Wed Dec 18 01:06:03 2002 UTC (9 years, 5 months ago) by gmcgarry
Branch: gmcgarry_ucred
Changes since 1.77: +4 -4
lines
Diff to previous 1.77 (colored) next main 1.78 (colored)
Merge pcred and ucred, and poolify. TBD: check backward compatibility and factor-out some higher-level functionality.
Revision 1.62.2.9 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:00 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.62.2.8: +9 -2
lines
Diff to previous 1.62.2.8 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored)
Sync with HEAD.
Revision 1.77 / (download) - annotate - [select for diffs], Wed Nov 13 15:49:44 2002 UTC (9 years, 6 months ago) by jdolecek
Branch: 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
Changes since 1.76: +11 -4
lines
Diff to previous 1.76 (colored)
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) - annotate - [select for diffs], Fri Oct 18 02:44:49 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.62.2.7: +15 -20
lines
Diff to previous 1.62.2.7 (colored) to branchpoint 1.62 (colored)
Catch up to -current.
Revision 1.63.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:02 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.63.2.5: +4 -8
lines
Diff to previous 1.63.2.5 (colored) next main 1.64 (colored)
sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
Revision 1.76 / (download) - annotate - [select for diffs], Sat Oct 5 22:34:05 2002 UTC (9 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: kqueue-beforemerge,
kqueue-aftermerge
Changes since 1.75: +17 -21
lines
Diff to previous 1.75 (colored)
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) - annotate - [select for diffs], Fri Oct 4 03:17:37 2002 UTC (9 years, 7 months ago) by junyoung
Branch: MAIN
Changes since 1.74: +2 -3
lines
Diff to previous 1.74 (colored)
Remove unnecessary code.
Revision 1.74 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:42 2002 UTC (9 years, 8 months ago) by provos
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.73: +3 -3
lines
Diff to previous 1.73 (colored)
remove trailing \n in panic(). approved perry.
Revision 1.62.2.7 / (download) - annotate - [select for diffs], Tue Sep 17 21:21:56 2002 UTC (9 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.62.2.6: +1 -5
lines
Diff to previous 1.62.2.6 (colored) to branchpoint 1.62 (colored)
Catch up to -current.
Revision 1.73 / (download) - annotate - [select for diffs], Thu Sep 12 16:57:44 2002 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.72: +3 -7
lines
Diff to previous 1.72 (colored)
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) - annotate - [select for diffs], Fri Sep 6 08:47:39 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.63.2.4: +21 -5
lines
Diff to previous 1.63.2.4 (colored)
sync kqueue branch with HEAD
Revision 1.70.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:05 2002 UTC (9 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.70.8.1: +21 -5
lines
Diff to previous 1.70.8.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)
catch up with -current.
Revision 1.62.2.6 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:20 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.62.2.5: +21 -5
lines
Diff to previous 1.62.2.5 (colored) to branchpoint 1.62 (colored)
Catch up to -current.
Revision 1.72 / (download) - annotate - [select for diffs], Mon Aug 26 21:07:38 2002 UTC (9 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.71: +21 -5
lines
Diff to previous 1.71 (colored)
- 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) - annotate - [select for diffs], Sun Jun 23 17:49:23 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.63.2.3: +3 -3
lines
Diff to previous 1.63.2.3 (colored)
catch up with -current on kqueue branch
Revision 1.70.8.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:02:18 2002 UTC (9 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.70: +3 -3
lines
Diff to previous 1.70 (colored)
catch up with -current.
Revision 1.62.2.5 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:07 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.62.2.4: +3 -3
lines
Diff to previous 1.62.2.4 (colored) to branchpoint 1.62 (colored)
Catch up to -current.
Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 3 13:07:00 2002 UTC (9 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.70: +3 -3
lines
Diff to previous 1.70 (colored)
Use "#ifdef __mips__" instead of "#ifdef mips"; shared libraries work for kernels compiled with gcc 3.x.
Revision 1.62.2.4 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:43 2002 UTC (10 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.62.2.3: +5 -2
lines
Diff to previous 1.62.2.3 (colored) to branchpoint 1.62 (colored)
Catch up to -current.
Revision 1.63.2.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:22 2002 UTC (10 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.63.2.2: +5 -2
lines
Diff to previous 1.63.2.2 (colored)
Sync w/ -current.
Revision 1.70 / (download) - annotate - [select for diffs], Mon Jan 28 22:15:55 2002 UTC (10 years, 3 months ago) by thorpej
Branch: 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,
ifpoll,
eeh-devprop-base,
eeh-devprop
Branch point for: netbsd-1-6,
gehenna-devsw
Changes since 1.69: +5 -2
lines
Diff to previous 1.69 (colored)
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) - annotate - [select for diffs], Thu Jan 10 19:59:40 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.63.2.1: +5 -2
lines
Diff to previous 1.63.2.1 (colored)
Sync kqueue branch with -current.
Revision 1.62.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:32 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.62.2.2: +5 -2
lines
Diff to previous 1.62.2.2 (colored) to branchpoint 1.62 (colored)
Catch up to -current.
Revision 1.67.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:43 2001 UTC (10 years, 6 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.67: +5 -2
lines
Diff to previous 1.67 (colored) next main 1.68 (colored)
Sync the thorpej-mips-cache branch with -current.
Revision 1.69 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:03 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.68: +4 -1
lines
Diff to previous 1.68 (colored)
add RCSIDs
Revision 1.68 / (download) - annotate - [select for diffs], Tue Oct 30 15:32:03 2001 UTC (10 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.67: +2 -2
lines
Diff to previous 1.67 (colored)
- 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) - annotate - [select for diffs], Fri Aug 24 00:11:22 2001 UTC (10 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.62.2.1: +35 -55
lines
Diff to previous 1.62.2.1 (colored) to branchpoint 1.62 (colored)
Catch up with -current.
Revision 1.63.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:39 2001 UTC (10 years, 9 months ago) by lukem
Branch: kqueue
Changes since 1.63: +35 -55
lines
Diff to previous 1.63 (colored)
update to -current
Revision 1.67 / (download) - annotate - [select for diffs], Sun Jul 29 21:24:23 2001 UTC (10 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.66: +2 -2
lines
Diff to previous 1.66 (colored)
simplify an expression.
Revision 1.66 / (download) - annotate - [select for diffs], Sun Jul 29 21:22:58 2001 UTC (10 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.65: +10 -10
lines
Diff to previous 1.65 (colored)
adjust to the new copyargs footprint
Revision 1.65 / (download) - annotate - [select for diffs], Sun Jul 15 20:52:35 2001 UTC (10 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.64: +17 -10
lines
Diff to previous 1.64 (colored)
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) - annotate - [select for diffs], Sat Jul 14 02:08:29 2001 UTC (10 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.63: +10 -37
lines
Diff to previous 1.63 (colored)
- add exec_read_from and make exec_elf32 use it. - add a macho probe function
Revision 1.62.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:41 2001 UTC (10 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.62: +2 -2
lines
Diff to previous 1.62 (colored)
Catch up to -current.
Revision 1.63 / (download) - annotate - [select for diffs], Mon May 7 17:09:13 2001 UTC (11 years ago) by jdolecek
Branch: MAIN
Branch point for: kqueue
Changes since 1.62: +2 -2
lines
Diff to previous 1.62 (colored)
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) - annotate - [select for diffs], Sun Feb 11 19:16:43 2001 UTC (11 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.5: +5 -2
lines
Diff to previous 1.45.2.5 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)
Sync with HEAD.
Revision 1.62 / (download) - annotate - [select for diffs], Sun Feb 4 19:12:09 2001 UTC (11 years, 3 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.61: +5 -2
lines
Diff to previous 1.61 (colored)
*NEVER* cast a reference parameter (unless you're using C++).
Revision 1.45.2.5 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:36 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.4: +40 -40
lines
Diff to previous 1.45.2.4 (colored) to branchpoint 1.45 (colored)
Sync with HEAD
Revision 1.61 / (download) - annotate - [select for diffs], Fri Dec 15 06:14:21 2000 UTC (11 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.60: +41 -41
lines
Diff to previous 1.60 (colored)
Tighten up the ELF signature checks, and actually look for the ABI tag added in newer glibc versions.
Revision 1.45.2.4 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:18 2000 UTC (11 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.3: +3 -10
lines
Diff to previous 1.45.2.3 (colored) to branchpoint 1.45 (colored)
Sync with HEAD (for UBC fixes).
Revision 1.60 / (download) - annotate - [select for diffs], Mon Dec 11 05:29:02 2000 UTC (11 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.59: +4 -11
lines
Diff to previous 1.59 (colored)
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) - annotate - [select for diffs], Fri Dec 8 09:13:52 2000 UTC (11 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.2: +2 -2
lines
Diff to previous 1.45.2.2 (colored) to branchpoint 1.45 (colored)
Sync with HEAD.
Revision 1.59 / (download) - annotate - [select for diffs], Tue Nov 28 13:10:41 2000 UTC (11 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.58: +3 -3
lines
Diff to previous 1.58 (colored)
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) - annotate - [select for diffs], Wed Nov 22 16:05:16 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.1: +28 -113
lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored)
Sync with HEAD.
Revision 1.58 / (download) - annotate - [select for diffs], Tue Nov 21 00:37:56 2000 UTC (11 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.57: +27 -106
lines
Diff to previous 1.57 (colored)
restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and
provide single struct emul per emulation
* elf:
- kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
per emulation and contains pointer to respective probe function
- interp is allocated via MALLOC() rather than on stack
- elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
part of appropriate execsw[] entry
* constify couple of structures
Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:08:55 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45: +110 -117
lines
Diff to previous 1.45 (colored)
Update thorpej_scsipi to -current as of a month ago
Revision 1.57 / (download) - annotate - [select for diffs], Tue Nov 14 22:14:53 2000 UTC (11 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +6 -4
lines
Diff to previous 1.56 (colored)
NBPG -> PAGE_SIZE.
Revision 1.56 / (download) - annotate - [select for diffs], Mon Nov 13 21:32:15 2000 UTC (11 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.55: +2 -2
lines
Diff to previous 1.55 (colored)
change the type of *syscallnames[] array to 'const char * const foo[]'
Revision 1.55 / (download) - annotate - [select for diffs], Wed Nov 8 05:47:56 2000 UTC (11 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.54: +1 -9
lines
Diff to previous 1.54 (colored)
remove unneeded includes.
Revision 1.49.2.2 / (download) - annotate - [select for diffs], Fri Nov 3 20:00:38 2000 UTC (11 years, 6 months ago) by tv
Branch: 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
Changes since 1.49.2.1: +31 -17
lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)
Pullup 1.53 [matt]: modify load_file to load at relative vma's as specified in the phdr's.
Revision 1.54 / (download) - annotate - [select for diffs], Tue Aug 1 04:57:28 2000 UTC (11 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.53: +28 -56
lines
Diff to previous 1.53 (colored)
ANSI'ify.
Revision 1.53 / (download) - annotate - [select for diffs], Thu Jul 13 02:35:25 2000 UTC (11 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.52: +31 -17
lines
Diff to previous 1.52 (colored)
modify load_file to load at relative vms'a as specified in the phdr's.
Revision 1.49.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 01:09:23 2000 UTC (11 years, 10 months ago) by thorpej
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-BETA,
netbsd-1-5-ALPHA2
Changes since 1.49: +2 -1
lines
Diff to previous 1.49 (colored)
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) - annotate - [select for diffs], Tue Jul 11 06:23:38 2000 UTC (11 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.51: +2 -1
lines
Diff to previous 1.51 (colored)
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) - annotate - [select for diffs], Tue Jun 27 17:41:09 2000 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.50: +1 -2
lines
Diff to previous 1.50 (colored)
remove include of <vm/vm.h>
Revision 1.50 / (download) - annotate - [select for diffs], Mon Jun 26 14:38:54 2000 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.49: +1 -3
lines
Diff to previous 1.49 (colored)
remove redundant vm includes.
Revision 1.48.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:03 2000 UTC (11 years, 11 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.48: +2 -1
lines
Diff to previous 1.48 (colored) next main 1.49 (colored)
Sync w/ netbsd-1-5-base.
Revision 1.49 / (download) - annotate - [select for diffs], Tue Jun 6 18:26:34 2000 UTC (11 years, 11 months ago) by soren
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.48: +2 -1
lines
Diff to previous 1.48 (colored)
defopt SYSCALL_DEBUG.
Revision 1.48 / (download) - annotate - [select for diffs], Tue Apr 11 04:37:50 2000 UTC (12 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.47: +2 -2
lines
Diff to previous 1.47 (colored)
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) - annotate - [select for diffs], Sun Feb 6 16:49:51 2000 UTC (12 years, 3 months ago) by eeh
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.46: +13 -5
lines
Diff to previous 1.46 (colored)
Update for compat_netbsd32.
Revision 1.45.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:50 1999 UTC (12 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.45: +44 -44
lines
Diff to previous 1.45 (colored) next main 1.46 (colored)
Pull up to last week's -current.
Revision 1.45.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:48 1999 UTC (12 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.45: +44 -44
lines
Diff to previous 1.45 (colored) next main 1.46 (colored)
Sync with -current
Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 25 13:55:07 1999 UTC (12 years, 7 months ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
fvdl-softdep-base,
comdex-fall-1999-base,
comdex-fall-1999
Changes since 1.45: +44 -44
lines
Diff to previous 1.45 (colored)
Update to match new SVR4-style definition names in <sys/exec_elf.h>.
Revision 1.43.4.3 / (download) - annotate - [select for diffs], Sun Jul 4 01:33:36 1999 UTC (12 years, 10 months ago) by chs
Branch: chs-ubc2
Changes since 1.43.4.2: +10 -1
lines
Diff to previous 1.43.4.2 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)
after setting VTEXT on a vnode, flush any UBC mappings to try to prevent unnecessary VAC aliases.
Revision 1.43.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:43:19 1999 UTC (12 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.43.4.1: +7 -2
lines
Diff to previous 1.43.4.1 (colored) to branchpoint 1.43 (colored)
Sync w/ -current.
Revision 1.45 / (download) - annotate - [select for diffs], Tue Jun 29 23:39:06 1999 UTC (12 years, 10 months ago) by fvdl
Branch: MAIN
CVS Tags: chs-ubc2-base
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Changes since 1.44: +7 -2
lines
Diff to previous 1.44 (colored)
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) - annotate - [select for diffs], Mon Jun 21 01:23:59 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.43: +2 -2
lines
Diff to previous 1.43 (colored)
Sync w/ -current.
Revision 1.44 / (download) - annotate - [select for diffs], Fri Apr 30 23:02:06 1999 UTC (13 years ago) by cgd
Branch: MAIN
Changes since 1.43: +2 -2
lines
Diff to previous 1.43 (colored)
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) - annotate - [select for diffs], Wed Feb 10 17:03:27 1999 UTC (13 years, 3 months ago) by kleink
Branch: 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
Changes since 1.42: +2 -2
lines
Diff to previous 1.42 (colored)
Use of casts as lvalues is a GNU C extension; rearrange slightly.
Revision 1.42 / (download) - annotate - [select for diffs], Tue Feb 9 20:35:04 1999 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.41: +9 -1
lines
Diff to previous 1.41 (colored)
PR/6962: Paul Shupak: FreeBSD elf support.
Revision 1.41 / (download) - annotate - [select for diffs], Wed Jan 6 11:52:53 1999 UTC (13 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.40: +6 -6
lines
Diff to previous 1.40 (colored)
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) - annotate - [select for diffs], Wed Dec 23 15:08:37 1998 UTC (13 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.39: +84 -1
lines
Diff to previous 1.39 (colored)
Add support for parsing OS type note fields.
Revision 1.39 / (download) - annotate - [select for diffs], Sat Oct 3 20:39:32 1998 UTC (13 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: kenh-if-detach-base,
kenh-if-detach,
chs-ubc-base,
chs-ubc
Changes since 1.38: +2 -2
lines
Diff to previous 1.38 (colored)
update for linux file move.
Revision 1.38 / (download) - annotate - [select for diffs], Thu Oct 1 16:06:24 1998 UTC (13 years, 7 months ago) by erh
Branch: MAIN
Changes since 1.37: +5 -11
lines
Diff to previous 1.37 (colored)
Move elf function name macros to exec_elf.h. COMPAT_LINUX is no longer limited to ELFSIZE==32.
Revision 1.37 / (download) - annotate - [select for diffs], Sat Sep 12 17:20:02 1998 UTC (13 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.36: +3 -3
lines
Diff to previous 1.36 (colored)
Make copyrights consistent; fix weird/trailing spaces add missing (c) etc.
Revision 1.36 / (download) - annotate - [select for diffs], Sat Sep 5 14:35:17 1998 UTC (13 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.35: +37 -2
lines
Diff to previous 1.35 (colored)
Assign copyright to TNF.
Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:53 1998 UTC (13 years, 9 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.33: +3 -3
lines
Diff to previous 1.33 (colored) next main 1.34 (colored)
Revert cdevsw mmap routines to return int.
Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:10 1998 UTC (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.34: +2 -2
lines
Diff to previous 1.34 (colored)
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) - annotate - [select for diffs], Fri Jul 31 22:50:48 1998 UTC (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.33: +3 -3
lines
Diff to previous 1.33 (colored)
fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.
Revision 1.33 / (download) - annotate - [select for diffs], Tue Jul 28 18:37:47 1998 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.32: +2 -2
lines
Diff to previous 1.32 (colored)
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) - annotate - [select for diffs], Fri Jun 26 00:07:45 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +2 -1
lines
Diff to previous 1.31 (colored)
defopt COMPAT_SVR4
Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 25 23:22:51 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +2 -1
lines
Diff to previous 1.30 (colored)
defopt COMPAT_IBCS2
Revision 1.30 / (download) - annotate - [select for diffs], Thu Jun 25 23:19:00 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.29: +3 -1
lines
Diff to previous 1.29 (colored)
defopt COMPAT_LINUX
Revision 1.29 / (download) - annotate - [select for diffs], Fri May 8 18:18:55 1998 UTC (14 years ago) by kleink
Branch: MAIN
Changes since 1.28: +2 -2
lines
Diff to previous 1.28 (colored)
Fix some arithmetics lossage on typeless pointers.
Revision 1.26.8.1 / (download) - annotate - [select for diffs], Tue May 5 09:56:31 1998 UTC (14 years ago) by mycroft
Branch: 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
Changes since 1.26: +11 -2
lines
Diff to previous 1.26 (colored) next main 1.27 (colored)
Pull up 1.27, per request of scottb.
Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:27 1998 UTC (14 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.27: +3 -3
lines
Diff to previous 1.27 (colored)
Merge with Lite2 + local changes
Revision 1.27 / (download) - annotate - [select for diffs], Mon Feb 9 01:29:10 1998 UTC (14 years, 3 months ago) by scottb
Branch: MAIN
Changes since 1.26: +11 -2
lines
Diff to previous 1.26 (colored)
added support for SCO UNIX (derived from iBCS2)
Revision 1.26 / (download) - annotate - [select for diffs], Thu May 8 16:20:05 1997 UTC (15 years ago) by mycroft
Branch: 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
Changes since 1.25: +7 -9
lines
Diff to previous 1.25 (colored)
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) - annotate - [select for diffs], Thu May 8 12:17:47 1997 UTC (15 years ago) by mycroft
Branch: MAIN
Changes since 1.24: +1 -5
lines
Diff to previous 1.24 (colored)
GC some code.
Revision 1.24 / (download) - annotate - [select for diffs], Thu May 8 10:19:10 1997 UTC (15 years ago) by mycroft
Branch: MAIN
Changes since 1.23: +2 -2
lines
Diff to previous 1.23 (colored)
va_mode contains stat bits. Use S_IS[UG]ID rather than VS[UG]ID.
Revision 1.23 / (download) - annotate - [select for diffs], Thu Mar 13 02:55:25 1997 UTC (15 years, 2 months ago) by hpeyerl
Branch: MAIN
Changes since 1.22: +4 -4
lines
Diff to previous 1.22 (colored)
Probe linux emul before svr4 emul. From Christos.
Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 17 22:04:20 1996 UTC (15 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot,
mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Changes since 1.21: +13 -10
lines
Diff to previous 1.21 (colored)
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) - annotate - [select for diffs], Sat Nov 23 11:46:34 1996 UTC (15 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.20: +7 -4
lines
Diff to previous 1.20 (colored)
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) - annotate - [select for diffs], Mon Nov 11 20:33:10 1996 UTC (15 years, 6 months ago) by jonathan
Branch: MAIN
Changes since 1.19: +5 -2
lines
Diff to previous 1.19 (colored)
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) - annotate - [select for diffs], Sun Oct 13 22:54:52 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.18: +9 -4
lines
Diff to previous 1.18 (colored)
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) - annotate - [select for diffs], Fri Oct 11 19:44:02 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.17: +7 -5
lines
Diff to previous 1.17 (colored)
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) - annotate - [select for diffs], Tue Oct 8 03:40:40 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.16: +68 -65
lines
Diff to previous 1.16 (colored)
KNF, de-static the functions that were static (so they'll show up in ddb, etc.)
Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 7 21:43:05 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.15: +1 -2
lines
Diff to previous 1.15 (colored)
don't include <machine/exec.h> explicitly. No other changes needed, since <sys/exec.h> was already being included.
Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 7 18:29:24 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.14: +3 -4
lines
Diff to previous 1.14 (colored)
clean up a comment added in the last commit
Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 7 18:24:48 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.13: +57 -19
lines
Diff to previous 1.13 (colored)
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) - annotate - [select for diffs], Wed Oct 2 05:30:29 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.12: +1 -6
lines
Diff to previous 1.12 (colored)
Remove the implicit inclusion of EXEC_ELF32 when COMPAT_LINUX and/or COMPAT_SVR4 is included.
Revision 1.12 / (download) - annotate - [select for diffs], Mon Sep 30 23:18:43 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.11: +20 -7
lines
Diff to previous 1.11 (colored)
exec vnode locking protocol changes: in a nutshell, don't keep vnodes locked for any longer than we have to.
Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 30 23:02:14 1996 UTC (15 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.10: +6 -6
lines
Diff to previous 1.10 (colored)
make the check_header and load_file functions static
Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 26 21:50:56 1996 UTC (15 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.9: +2 -22
lines
Diff to previous 1.9 (colored)
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) - annotate - [select for diffs], Thu Sep 26 20:51:05 1996 UTC (15 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.8: +120 -97
lines
Diff to previous 1.8 (colored)
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) - annotate - [select for diffs], Fri Jun 14 18:15:55 1996 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.7: +72 -6
lines
Diff to previous 1.7 (colored)
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) - annotate - [select for diffs], Thu Jun 13 18:35:25 1996 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.6: +8 -10
lines
Diff to previous 1.6 (colored)
- Pass the Elf exec header in the emulation dependent probe functions. - remove static from elf_read_from().
Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 9 18:59:18 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.5: +7 -2
lines
Diff to previous 1.5 (colored)
More proto fixes
Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 9 13:25:54 1996 UTC (16 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.4: +9 -1
lines
Diff to previous 1.4 (colored)
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) - annotate - [select for diffs], Tue Jan 16 23:07:18 1996 UTC (16 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.3: +40 -93
lines
Diff to previous 1.3 (colored)
* 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) - annotate - [select for diffs], Sat Sep 16 00:28:08 1995 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +3 -6
lines
Diff to previous 1.2 (colored)
s/memcmp/bcmp/
Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 30 02:57:20 1995 UTC (16 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.1: +1 -2
lines
Diff to previous 1.1 (colored)
Remove unused define
Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 22 21:29:53 1995 UTC (16 years, 11 months ago) by fvdl
Branch: MAIN
Generic mi ELF loader; delete Linux and Svr4 compat conf entries and add generic ELF entry to exec_conf.c