History log of /src/sys/compat/linux/arch/alpha/linux_machdep.c |
Revision | | Date | Author | Comments |
1.52 |
| 07-Sep-2021 |
riastradh | sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|
1.51 |
| 03-Sep-2020 |
thorpej | The conversion of FPU tracking to PCU rendered the fpcurlwp variable unmaintained, which broke FP status info in the COMPAT_LINUX sigcontext. Use the new API, which will at least be closer to correct.
|
1.50 |
| 09-Nov-2014 |
maxv | branches: 1.50.12; 1.50.24; Do not uselessly include <sys/malloc.h>.
|
1.49 |
| 18-Nov-2011 |
christos | branches: 1.49.10; 1.49.26; - add sigtimedwait support. - merge the siginfo population code.
|
1.48 |
| 09-Jun-2011 |
matt | branches: 1.48.2; Adapt to change to PCU.
|
1.47 |
| 04-Mar-2011 |
joerg | branches: 1.47.2; Refactor ps_strings access. Based on PK_32, write either the normal version or the 32bit compat layout in execve1. Introduce a new function copyin_psstrings for reading it back from userland and converting it to the native layout. Refactor procfs to share most of the code with the kern.proc_args sysctl handler.
This material is based upon work partially supported by The NetBSD Foundation under a contract with Joerg Sonnenberger.
|
1.46 |
| 07-Jul-2010 |
chs | branches: 1.46.2; 1.46.4; many changes for COMPAT_LINUX: - update the linux syscall table for each platform. - support new-style (NPTL) linux pthreads on all platforms. clone() with CLONE_THREAD uses 1 process with many LWPs instead of separate processes. - move the contents of sys__lwp_setprivate() into a new lwp_setprivate() and use that everywhere. - update linux_release[] and linux32_release[] to "2.6.18". - adjust placement of emul fork/exec/exit hooks as needed and adjust other emul code to match. - convert all struct emul definitions to use named initializers. - change the pid allocator to allow multiple pids to refer to the same proc. - remove a few fields from struct proc that are no longer needed. - disable the non-functional "vdso" code in linux32/amd64, glibc works fine without it. - fix a race in the futex code where we could miss a wakeup after a requeue operation. - redo futex locking to be a little more efficient.
|
1.45 |
| 23-Nov-2009 |
rmind | branches: 1.45.2; 1.45.4; Use lwp_getpcb() in compat code, clean from struct user.
|
1.44 |
| 18-Mar-2009 |
cegger | bcopy -> memcpy
|
1.43 |
| 28-Apr-2008 |
martin | branches: 1.43.2; 1.43.8; 1.43.14; Remove clause 3 and 4 from TNF licenses
|
1.42 |
| 24-Apr-2008 |
ad | branches: 1.42.2; Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since we no longer need to guard against access from hardware interrupt handlers.
Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the child process share the parent's lock so that signal state may be kept in sync. Partially addresses PR kern/37437.
|
1.41 |
| 20-Dec-2007 |
dsl | branches: 1.41.6; 1.41.8; Convert all the system call entry points from: int foo(struct lwp *l, void *v, register_t *retval) to: int foo(struct lwp *l, const struct foo_args *uap, register_t *retval) Fixup compat code to not write into 'uap' and (in some cases) to actually pass a correctly formatted 'uap' structure with the right name to the next routine. A few 'compat' routines that just call standard ones have been deleted. All the 'compat' code compiles (along with the kernels required to test build it). 98% done by automated scripts.
|
1.40 |
| 08-Dec-2007 |
dsl | branches: 1.40.4; ANSIfy most of the function definitions in sys/compat (but not ndis). All by the magic of sed ...
|
1.39 |
| 08-Jul-2007 |
pooka | branches: 1.39.6; 1.39.8; 1.39.16; fix pasto: sigframe.sf_sc is of type linux_sigcontext
|
1.38 |
| 04-Mar-2007 |
yamt | branches: 1.38.2; 1.38.4; fix fallout from caddr_t changes.
|
1.37 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.36 |
| 09-Feb-2007 |
ad | branches: 1.36.2; Merge newlock2 to head.
|
1.35 |
| 23-Jul-2006 |
ad | branches: 1.35.4; Use the LWP cached credentials where sane.
|
1.34 |
| 15-May-2006 |
yamt | include kauth.h for kauth_cred_geteuid.
|
1.33 |
| 14-May-2006 |
elad | integrate kauth.
|
1.32 |
| 11-Dec-2005 |
christos | branches: 1.32.4; 1.32.6; 1.32.8; 1.32.10; 1.32.12; merge ktrace-lwp.
|
1.31 |
| 20-May-2005 |
fvdl | branches: 1.31.2; Define linux_usertrap function, and set it in struct emul. For all but amd64, it just returns 0, doing nothing.
For amd64, it implements vsyscalls through cheating: if the faulting address is in the vsyscall area (which is statically known on Linux/amd64), and the intruction pointer is too, it must have been a vsyscall. In that case, retrieve the return address from the user stack, fix up %rip and %rsp, and just execute the normal system call. It will return as if the vsyscall has been executed.
|
1.30 |
| 10-Oct-2003 |
matt | Adapt to SIGINFO changes.
|
1.29 |
| 26-Sep-2003 |
simonb | Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Test compiled on most architectures.
|
1.28 |
| 29-Jun-2003 |
fvdl | branches: 1.28.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.27 |
| 29-Jun-2003 |
simonb | Fix 'struct lwp *' lossage.
|
1.26 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.25 |
| 25-Sep-2002 |
thorpej | Don't include <sys/map.h>.
|
1.24 |
| 04-Jul-2002 |
thorpej | Add kernel support for having userland provide the signal trampoline:
* struct sigacts gets a new sigact_sigdesc structure, which has the sigaction and the trampoline/version. Version 0 means "legacy kernel provided trampoline". Other versions are coordinated with machine- dependent code in libc. * sigaction1() grows two more arguments -- the trampoline pointer and the trampoline version. * A new __sigaction_sigtramp() system call is provided to register a trampoline along with a signal handler. * The handler is no longer passed to sensig() functions. Instead, sendsig() looks up the handler by peeking in the sigacts for the process getting the signal (since it has to look in there for the trampoline anyway). * Native sendsig() functions now select the appropriate trampoline and its arguments based on the trampoline version in the sigacts.
Changes to libc to use the new facility will be checked in later. Kernel version not bumped; we will ride the 1.6C bump made recently.
|
1.23 |
| 31-Mar-2002 |
christos | branches: 1.23.2; make signal array handling uniform, and put signal arrays in a separate file. This is simular to errno array handling.
|
1.22 |
| 23-Mar-2002 |
chs | make this compile again (PS_STRINGS is gone).
|
1.21 |
| 18-Feb-2002 |
christos | Resolve alpha compile issues: - bug with order in args in mask conversion md code. - flags can be both int and long on the alpha. kludge around that, by not passing pointers to the conversion function. - something is wrong with the toolchain look at the void * cast in copyout(). - sa_restorer is in a different place on the aplha. Deal with that, by not initializing it as before. XXX: this should be changed in the MD signal definition.
|
1.20 |
| 15-Feb-2002 |
christos | - add a real linux_sys___sysctl because the mib numbers are different. implement only the kernel version getting entries. - make the signal conversion functions consistent; dest is arg 1. - make linux_fakedev deal with block and char devices differently. - add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so that they work properly. - add linux_mmap2 [untested]. - bump kernel to 2.4.18, and make the date be valentine's day :-) - linux_sys_*stat64 family was totally busted. Fix it.
tested only on i386.
Status: gdb, telnet, work jdk-1.4.0 extractor works, jdk still coredumps.
christos
|
1.19 |
| 13-Nov-2001 |
lukem | add RCSIDs (including regeneration of files as appropriate)
|
1.18 |
| 30-Sep-2001 |
simonb | DEBUG kernels fill the registers with garbage on process startup and Linux program don't like that. Explicitly zero out the registers for DEBUG kernels.
|
1.17 |
| 30-May-2001 |
mrg | branches: 1.17.2; 1.17.4; use _KERNEL_OPT.
|
1.16 |
| 26-Apr-2001 |
ross | o IEEE 754 floating-point completion code. o Implement the architected FP_C "Floating Point Control Quadword"
|
1.15 |
| 26-Jan-2001 |
manu | branches: 1.15.2; Moved include <sys/ioctl.h> so that we can build without WSCONS enabled.
|
1.14 |
| 27-Dec-2000 |
sommerfeld | Let COMPAT_LINUX build with DEBUG
|
1.13 |
| 22-Dec-2000 |
jdolecek | split off thread specific stuff from struct sigacts to struct sigctx, leaving only signal handler array sharable between threads move other random signal stuff from struct proc to struct sigctx
This addresses kern/10981 by Matthew Orgass.
|
1.12 |
| 29-Nov-2000 |
jdolecek | LKMify
|
1.11 |
| 27-Nov-2000 |
jdolecek | don't use linux_emuldata for now, so that this compiles after rev 1.2 of compat/linux/common/linux_emuldata.h
|
1.10 |
| 29-Jun-2000 |
mrg | remove include of <vm/vm.h>
|
1.9 |
| 30-Mar-2000 |
augustss | Kill register declarations.
|
1.8 |
| 18-Mar-2000 |
erh | Add sigset_t parameter to restore_sigcontext, created by the sigreturn functions. linux_sigreturn still needs to use frame->extramask. In setup_linux_rt_sigframe copy the signal mask to both possible locations.
|
1.7 |
| 12-Sep-1999 |
chs | branches: 1.7.2; eliminate the PMAP_NEW option by making it required for all ports. ports which previously had no support for PMAP_NEW now implement the pmap_k* interfaces as wrappers around the non-k versions.
|
1.6 |
| 24-Mar-1999 |
mrg | completely remove Mach VM support. all that is left is the all the header files as UVM still uses (most of) these.
|
1.5 |
| 03-Jan-1999 |
erh | Make consistent: si_ -> lsi_
|
1.4 |
| 03-Jan-1999 |
erh | Avoid name clash with standard si_{uid,pid} fields.
|
1.3 |
| 08-Dec-1998 |
erh | At least make this compile. Add linux compat version of auxillary data eventually to be used to make the emulation work correctly.
|
1.2 |
| 03-Oct-1998 |
christos | Attempt to fix the mess.
|
1.1 |
| 01-Oct-1998 |
erh | Alpha version of the linux compat machdep signal and machdep ioctl stuff.
|
1.7.2.4 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.7.2.3 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.7.2.2 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.7.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago
|
1.15.2.12 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.15.2.11 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.15.2.10 |
| 24-Jun-2002 |
nathanw | Curproc->curlwp renaming.
Change uses of "curproc->l_proc" back to "curproc", which is more like the original use. Bare uses of "curproc" are now "curlwp".
"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL) so that it is always safe to reference curproc (*de*referencing curproc is another story, but that's always been true).
|
1.15.2.9 |
| 29-May-2002 |
nathanw | #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t now that <sys/param.h> doesn't include <sys/sa.h>.
(Behold the Power of Ed)
|
1.15.2.8 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.15.2.7 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.15.2.6 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.15.2.5 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.15.2.4 |
| 08-Oct-2001 |
nathanw | Catch up to -current.
|
1.15.2.3 |
| 13-Sep-2001 |
nathanw | A couple more p => l->l_proc inside #ifdef DEBUG.
|
1.15.2.2 |
| 30-Aug-2001 |
nathanw | First cut at LWP and SA support on the alpha. Doesn't break in ordinary multiuser mode; LWPs and SAs not yet tested.
|
1.15.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.17.4.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.17.2.5 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.17.2.4 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.17.2.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.17.2.2 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.17.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.23.2.1 |
| 15-Jul-2002 |
gehenna | catch up with -current.
|
1.28.2.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.28.2.4 |
| 21-Nov-2004 |
skrll | Adapt to branch. Alpha kernels now compile.
|
1.28.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.28.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.28.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.31.2.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.31.2.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.31.2.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.31.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.31.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.32.12.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.32.10.1 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
|
1.32.8.2 |
| 11-Aug-2006 |
yamt | sync with head
|
1.32.8.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.32.6.1 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.32.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.35.4.3 |
| 06-Feb-2007 |
ad | More compat changes.
XXX compat_irix, compat_mach and compat_darwin need work.
|
1.35.4.2 |
| 30-Jan-2007 |
ad | Remove support for SA. Ok core@.
|
1.35.4.1 |
| 11-Jan-2007 |
ad | Checkpoint work in progress.
|
1.36.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.38.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.38.2.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.39.16.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.39.8.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.39.6.1 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.40.4.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.41.8.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.41.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.42.2.4 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.42.2.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.42.2.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.42.2.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.43.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.43.8.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.43.2.3 |
| 14-May-2008 |
wrstuden | Per discussion with ad at n dot o, revert signal mask handling changes.
The l_sigstk changes are most likely totally un-needed as SA will never use a signal stack - we send an upcall (or will as other diffs are brought in).
The l_sigmask changes were too controvertial. In all honesty, I think it's probably best to revert them. The main reason they were there is the fact that in an SA process, we don't mask signals per kernel thread, we mask them per user thread. In the kernel, we want them all to get turned into upcalls. Thus the normal state of l_sigmask in an SA process is for it to always be empty.
While we are in the process of delivering a signal, we want to temporarily mask a signal (so we don't recursively exhaust our upcall stacks). However signal delivery is rare (important, but rare), and delivering back-to-back signals is even rarer. So rather than cause every user of a signal mask to be prepared for this very rare case, we will just add a second check later in the signal delivery code. Said change is not in this diff.
This also un-compensates all of our compatability code for dealing with SA. SA is a NetBSD-specific thing, so there's no need for Irix, Linux, Solaris, SVR4 and so on to cope with it.
As previously, everything other than kern_sa.c compiles in i386 GENERIC as of this checkin. I will switch to ALL soon for compile testing.
|
1.43.2.2 |
| 14-May-2008 |
wrstuden | Per discussion with ad, remove most of the #include <sys/sa.h> lines as they were including sa.h just for the type(s) needed for syscallargs.h.
Instead, create a new file, sys/satypes.h, which contains just the types needed for syscallargs.h. Yes, there's only one now, but that may change and it's probably more likely to change if it'd be difficult to handle. :-)
Per discussion with matt at n dot o, add an include of satypes.h to sigtypes.h. Upcall handlers are kinda signal handlers, and signalling is the header file that's already included for syscallargs.h that closest matches SA.
This shaves about 3000 lines off of the diff of the branch relative to the base. That also represents about 18% of the total before this checkin.
I think this reduction is very good thing.
|
1.43.2.1 |
| 10-May-2008 |
wrstuden | Initial checkin of re-adding SA. Everything except kern_sa.c compiles in GENERIC for i386. This is still a work-in-progress, but this checkin covers most of the mechanical work (changing signalling to be able to accomidate SA's process-wide signalling and re-adding includes of sys/sa.h and savar.h). Subsequent changes will be much more interesting.
Also, kern_sa.c has received partial cleanup. There's still more to do, though.
|
1.45.4.2 |
| 12-Jun-2011 |
rmind | sync with head
|
1.45.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.45.2.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.46.4.1 |
| 05-Mar-2011 |
bouyer | Sync with HEAD
|
1.46.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.47.2.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.48.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.49.26.1 |
| 17-Jan-2015 |
martin | Pull up following revision(s) (requested by maxv in ticket #427): sys/compat/svr4/svr4_schedctl.c: revision 1.8 sys/netinet/tcp_timer.c: revision 1.88 sys/miscfs/genfs/layer_vfsops.c: revision 1.45 sys/compat/svr4/svr4_ioctl.c: revision 1.37 sys/ufs/chfs/chfs_vfsops.c: revision 1.14 sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30 sys/compat/common/kern_time_50.c: revision 1.28 sys/netinet6/ip6_forward.c: revision 1.74 sys/miscfs/umapfs/umap_vnops.c: revision 1.57 sys/compat/svr4/svr4_fcntl.c: revision 1.74 distrib/sets/lists/comp/mi: revision 1.1931 sys/netinet6/udp6_output.c: revision 1.46 sys/fs/puffs/puffs_compat.c: revision 1.3 sys/fs/udf/udf_rename.c: revision 1.11 sys/compat/svr4/svr4_filio.c: revision 1.24 sys/fs/udf/udf_rename.c: revision 1.12 sys/netinet/tcp_usrreq.c: revision 1.202 sys/miscfs/umapfs/umap_subr.c: revision 1.29 sys/compat/linux/common/linux_fadvise64.c: revision 1.3 sys/netinet/if_atm.c: revision 1.34 sys/miscfs/procfs/procfs_subr.c: revision 1.106 sys/miscfs/genfs/layer_subr.c: revision 1.37 sys/netinet/tcp_sack.c: revision 1.30 sys/compat/freebsd/freebsd_misc.c: revision 1.33 sys/compat/freebsd/freebsd_file.c: revision 1.33 sys/ufs/chfs/chfs_vnode.c: revision 1.12 sys/compat/svr4/svr4_ttold.c: revision 1.34 sys/compat/linux/common/linux_file.c: revision 1.114 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43 sys/compat/linux/common/linux_signal.c: revision 1.76 sys/compat/common/compat_util.c: revision 1.46 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18 sys/compat/svr4/svr4_sockio.c: revision 1.36 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32 sys/compat/svr4/svr4_signal.c: revision 1.66 sys/kern/kern_exec.c: revision 1.410 sys/fs/puffs/puffs_vfsops.c: revision 1.115 sys/compat/svr4/svr4_exec_elf64.c: revision 1.15 sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50 sys/compat/linux32/common/linux32_misc.c: revision 1.24 sys/netinet/in_pcb.c: revision 1.153 sys/sys/malloc.h: revision 1.116 sys/compat/common/if_43.c: revision 1.9 share/man/man9/Makefile: revision 1.380 sys/netinet/tcp_vtw.c: revision 1.12 sys/miscfs/umapfs/umap_vfsops.c: revision 1.95 sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186 sys/compat/common/uipc_syscalls_43.c: revision 1.46 sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115 sys/fs/puffs/puffs_msgif.c: revision 1.97 sys/compat/svr4/svr4_ipc.c: revision 1.27 sys/compat/linux/common/linux_exec.c: revision 1.117 sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66 sys/netinet/tcp_output.c: revision 1.179 sys/compat/svr4/svr4_termios.c: revision 1.28 sys/fs/udf/udf_strat_bootstrap.c: revision 1.4 sys/fs/puffs/puffs_subr.c: revision 1.67 sys/fs/puffs/puffs_node.c: revision 1.36 sys/miscfs/overlay/overlay_vnops.c: revision 1.21 sys/fs/cd9660/cd9660_node.c: revision 1.34 sys/netinet/raw_ip.c: revision 1.146 sys/sys/mallocvar.h: revision 1.13 sys/miscfs/overlay/overlay_vfsops.c: revision 1.63 share/man/man9/malloc.9: revision 1.50 sys/netinet6/dest6.c: revision 1.18 sys/compat/linux/common/linux_uselib.c: revision 1.33 sys/compat/linux/common/linux_socket.c: revision 1.120 share/man/man9/malloc.9: revision 1.51 sys/netinet/tcp_subr.c: revision 1.257 sys/compat/linux/common/linux_socketcall.c: revision 1.45 sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3 sys/compat/freebsd/freebsd_ipc.c: revision 1.17 sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109 sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17 sys/netinet6/in6_pcb.c: revision 1.132 sys/netinet6/in6_ifattach.c: revision 1.94 sys/compat/svr4/svr4_exec_elf32.c: revision 1.15 sys/miscfs/nullfs/null_vfsops.c: revision 1.90 sys/fs/cd9660/cd9660_util.c: revision 1.12 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48 sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20 sys/miscfs/procfs/procfs_vfsops.c: revision 1.94 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28 sys/compat/linux/common/linux_sched.c: revision 1.67 sys/compat/linux/common/linux_exec_aout.c: revision 1.67 sys/compat/linux/common/linux_pipe.c: revision 1.67 sys/compat/linux/common/linux_llseek.c: revision 1.34 sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10 Do not uselessly include <sys/malloc.h>. Cleanup: - remove struct kmembuckets (dead) - correctly deadify MALLOC_XX - remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead) - remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT() and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc New sentence, new line. Bump date for previous. Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9) man pages.
|
1.49.10.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.50.24.1 |
| 03-Aug-2022 |
martin | Pull up following revision(s), all via patch (requested by riastradh in ticket #1487):
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168 sys/compat/sunos/sunos_misc.c: revision 1.177 sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52 sys/compat/common/kern_resource_43.c: revision 1.23 sys/compat/netbsd32/netbsd32_conv.h: revision 1.46 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35 sys/compat/common/vfs_syscalls_12.c: revision 1.38 sys/compat/ultrix/ultrix_misc.c: revision 1.126 sys/compat/common/kern_sig_43.c: revision 1.37 sys/compat/linux/common/linux_mtio.c: revision 1.8 sys/compat/freebsd/freebsd_misc.c: revision 1.34 sys/compat/freebsd/freebsd_machdep.c: revision 1.5 sys/compat/linux/common/linux_olduname.c: revision 1.67 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44 sys/compat/freebsd/freebsd_sched.c: revision 1.23 sys/compat/ossaudio/ossaudio.c: revision 1.84 sys/compat/sys/time_types.h: revision 1.6 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51 sys/compat/common/ieee80211_20.c: revision 1.7 sys/compat/linux/common/linux_file.c: revision 1.119 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34 sys/compat/netbsd32/netbsd32_wait.c: revision 1.25 sys/compat/linux32/common/linux32_time.c: revision 1.38 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52 sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46 sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36 sys/compat/ultrix/ultrix_ioctl.c: revision 1.39 sys/compat/linux/common/linux_misc.c: revision 1.252 sys/compat/linux/common/linux_hdio.c: revision 1.19 sys/compat/sunos/sunos_ioctl.c: revision 1.71 sys/compat/linux/common/linux_sched.c: revision 1.79 sys/compat/common/kern_info_43.c: revision 1.40 sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20 sys/compat/linux/common/linux_socket.c: revision 1.153 sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60 sys/compat/common/vfs_syscalls_43.c: revision 1.68 sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9 sys/compat/common/kern_time_50.c: revision 1.37 sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42 sys/compat/linux/common/linux_cdrom.c: revision 1.28 sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43 sys/compat/common/kern_info_09.c: revision 1.22 sys/compat/linux32/common/linux32_resource.c: revision 1.12 sys/compat/linux/common/linux_oldolduname.c: revision 1.67 sys/compat/common/if_media_80.c: revision 1.4 sys/compat/linux/arch/alpha/linux_osf1.c: revision 1.5 sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8 sys/compat/linux32/common/linux32_signal.c: revision 1.21 sys/compat/common/kern_sig_13.c: revision 1.22 sys/compat/sunos32/sunos32_ioctl.c: revision 1.36 sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23 sys/compat/netbsd32/netbsd32_time.c: revision 1.56 sys/compat/linux/common/linux_signal.c: revision 1.84 sys/compat/netbsd32/netbsd32_signal.c: revision 1.52 sys/compat/sunos32/sunos32_misc.c: revision 1.85 sys/compat/linux/common/linux_time.c: revision 1.40 sys/compat/linux/common/linux_fdio.c: revision 1.14 sys/compat/common/vfs_syscalls_30.c: revision 1.43
sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|
1.50.12.1 |
| 21-Jun-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1836):
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168 sys/compat/sunos/sunos_misc.c: revision 1.177 sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52 sys/compat/common/kern_resource_43.c: revision 1.23 sys/compat/netbsd32/netbsd32_conv.h: revision 1.46 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35 sys/compat/common/vfs_syscalls_12.c: revision 1.38 sys/compat/ultrix/ultrix_misc.c: revision 1.126 sys/compat/common/kern_sig_43.c: revision 1.37 sys/compat/linux/common/linux_mtio.c: revision 1.8 sys/compat/freebsd/freebsd_misc.c: revision 1.34 sys/compat/linux/common/linux_olduname.c: revision 1.67 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44 sys/compat/freebsd/freebsd_sched.c: revision 1.23 sys/compat/ossaudio/ossaudio.c: revision 1.84 sys/compat/sys/time_types.h: revision 1.6 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51 sys/compat/linux/common/linux_file.c: revision 1.119 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34 sys/compat/netbsd32/netbsd32_wait.c: revision 1.25 sys/compat/linux32/common/linux32_time.c: revision 1.38 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52 sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46 sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36 sys/compat/ultrix/ultrix_ioctl.c: revision 1.39 sys/compat/linux/common/linux_misc.c: revision 1.252 sys/compat/linux/common/linux_hdio.c: revision 1.19 sys/compat/sunos/sunos_ioctl.c: revision 1.71 sys/compat/linux/common/linux_sched.c: revision 1.79 sys/compat/common/kern_info_43.c: revision 1.40 sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20 sys/compat/linux/common/linux_socket.c: revision 1.153 sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60 sys/compat/common/vfs_syscalls_43.c: revision 1.68 sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9 sys/compat/common/kern_time_50.c: revision 1.37 sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42 sys/compat/linux/common/linux_cdrom.c: revision 1.28 sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43 sys/compat/common/kern_info_09.c: revision 1.22 sys/compat/linux32/common/linux32_resource.c: revision 1.12 sys/compat/linux/common/linux_oldolduname.c: revision 1.67 sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8 sys/compat/linux32/common/linux32_signal.c: revision 1.21 sys/compat/common/kern_sig_13.c: revision 1.22 sys/compat/sunos32/sunos32_ioctl.c: revision 1.36 sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23 sys/compat/netbsd32/netbsd32_time.c: revision 1.56 sys/compat/linux/common/linux_signal.c: revision 1.84 sys/compat/netbsd32/netbsd32_signal.c: revision 1.52 sys/compat/sunos32/sunos32_misc.c: revision 1.85 sys/compat/linux/common/linux_time.c: revision 1.40 sys/compat/linux/common/linux_fdio.c: revision 1.14 sys/compat/common/vfs_syscalls_30.c: revision 1.43
sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|