History log of /netbsd/sys/compat/netbsd32/netbsd32_exec_aout.c (Results 1 – 25 of 31)
Revision Date Author Comments
# 4e7ce818 19-Jan-2021 simonb <simonb@NetBSD.org>

KNF consistency: No parentheses are needed around the return value.


# e9652cc8 06-Aug-2016 maxv <maxv@NetBSD.org>

The way the kernel tries to prevent a userland process from allocating page
zero is hugely flawed. It is easy to demonstrate that one can trick UVM
into chosing a NULL hint after the user_va0_disable

The way the kernel tries to prevent a userland process from allocating page
zero is hugely flawed. It is easy to demonstrate that one can trick UVM
into chosing a NULL hint after the user_va0_disable check from uvm_map.
Such a bypass allows kernel NULL pointer dereferences to be exploitable on
architectures with a shared userland<->kernel VA, like amd64.

Fix this by increasing the limit of the vm space made available for
userland processes. This way, UVM will never chose a NULL hint, since it
would be outside of the vm space.

The user_va0_disable sysctl still controls this feature.

show more ...


# 0e3f35b6 05-Dec-2014 christos <christos@NetBSD.org>

Add compatibility for pre MIDMAGIC a.out binaries (with COMPAT_NOMID)
Oldzmagic binaries need "sysctl -w vm.user_va0_disable=0"


# 82f992a5 24-Oct-2014 christos <christos@NetBSD.org>

remove unused prototypes


# 01c8c919 25-Jan-2014 christos <christos@NetBSD.org>

Clear the VM_TOPDOWN flag only when we succeed.


# cc020ee5 25-Jan-2014 christos <christos@NetBSD.org>

a.out binaries can't handle topdown.
Now 1.0 binaries work correctly on NetBSD-current.


# d00df284 23-Apr-2010 rmind <rmind@NetBSD.org>

Replace M_IOV and some malloc(9)s with kmem(9), and while there:
- Fix invalid free (M_TEMP vs M_IOV) in do_sys_recvmsg(), spotted by jakllsch@.
Also, same fix in osf1_sys_sendmsg_xopen().
- Fix at

Replace M_IOV and some malloc(9)s with kmem(9), and while there:
- Fix invalid free (M_TEMP vs M_IOV) in do_sys_recvmsg(), spotted by jakllsch@.
Also, same fix in osf1_sys_sendmsg_xopen().
- Fix attempt to free non-allocated memory in error path in netbsd32___getfh30().
- Plug a memory leak in compat_43_netbsd32_orecvmsg().

show more ...


# c2b95373 29-May-2008 mrg <mrg@NetBSD.org>

remove clause #3 from my license where there are no other
copyright holders involved.


# 28bae79b 08-Dec-2007 dsl <dsl@NetBSD.org>

ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...


# f2af9174 04-Dec-2007 dsl <dsl@NetBSD.org>

Remove all the __P


# 95e1ffb1 11-Dec-2005 christos <christos@NetBSD.org>

merge ktrace-lwp.


# 477853c3 26-Feb-2005 perry <perry@NetBSD.org>

nuke trailing whitespace


# b07c6160 20-Feb-2004 drochner <drochner@NetBSD.org>

did this ever work? The EXEC_32 flag must be set _before_
exec_aout_prep_*magic(), otherwise setup_stack() fails.


# f0423dfa 20-Feb-2004 drochner <drochner@NetBSD.org>

-MID_SPARC->NETBSD32_MID_MACHINE
-check for zero BSS size, as in kern/exec_aout.c rev. 1.23


# b2b49933 13-Oct-2003 agc <agc@NetBSD.org>

Move Matt Green's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.


# 3b9c3c5a 08-Aug-2003 christos <christos@NetBSD.org>

- GC all the setup_stack functions
- add one for linux/i386


# d5aece61 29-Jun-2003 fvdl <fvdl@NetBSD.org>

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


# 960df3c8 28-Jun-2003 darrenr <darrenr@NetBSD.org>

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 fu

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

show more ...


# f4a068d5 01-Apr-2003 thorpej <thorpej@NetBSD.org>

Use PAGE_SIZE rather than NBPG.


# e8cc3884 10-Dec-2002 thorpej <thorpej@NetBSD.org>

Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is.


# 78ea2dd3 10-Dec-2002 thorpej <thorpej@NetBSD.org>

Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out
executables, and eliminate the USRTEXT constant, which was only used
by the a.out exec code.


# 993948e9 05-Oct-2002 chs <chs@NetBSD.org>

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).


# 0f09ed48 27-Sep-2002 provos <provos@NetBSD.org>

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


# dab6ef8b 13-Nov-2001 lukem <lukem@NetBSD.org>

add RCSIDs (including regeneration of files as appropriate)


# e8ee0447 30-Oct-2001 thorpej <thorpej@NetBSD.org>

- 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_mark

- 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.

show more ...


12