History log of /src/sys/arch/hppa/hppa/sig_machdep.c |
Revision | | Date | Author | Comments |
1.28 |
| 27-Oct-2021 |
thorpej | Use the signal trampoline version constants from <sys/signal.h>.
|
1.27 |
| 15-Apr-2019 |
skrll | Trailing whitespace
|
1.26 |
| 27-Nov-2018 |
maxv | Fix widespread leak in the sendsig_siginfo() functions. sigframe_siginfo has padding, so zero it out properly. While here I'm also zeroing out some other things in several ports, for safety. Same problem in netbsd32, so fix that too.
I can't compile-test on each architecture, but there should be no breakage (tm).
Overall this fixes at least 14 info leaks. Prompted by the discovery by KLEAK of a leak in amd64's sendsig_siginfo.
|
1.25 |
| 08-Feb-2011 |
rmind | branches: 1.25.30; 1.25.34; 1.25.42; 1.25.48; 1.25.54; 1.25.56; Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
1.24 |
| 14-Jan-2011 |
rmind | branches: 1.24.2; 1.24.4; Retire struct user, remove sys/user.h inclusions. Note sys/user.h header as obsolete. Remove USER_TO_UAREA/UAREA_TO_USER macros.
Various #include fixes and review by matt@.
|
1.23 |
| 21-Nov-2009 |
rmind | branches: 1.23.4; Use lwp_getpcb() on hppa and ia64, clean from struct user usage.
|
1.22 |
| 21-Nov-2008 |
he | Rename sendsig() to sendsig_siginfo(), so that we don't conflict with the newly added sendsig() in kern_sig.c.
|
1.21 |
| 28-Apr-2008 |
martin | branches: 1.21.2; 1.21.6; 1.21.8; Remove clause 3 and 4 from TNF licenses
|
1.20 |
| 24-Apr-2008 |
ad | branches: 1.20.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.19 |
| 22-Dec-2007 |
skrll | branches: 1.19.6; 1.19.8; Align the stack when delivering signals and don't waste a HPPA_FRAME_SIZE.
|
1.18 |
| 13-Dec-2007 |
skrll | g/c __HPPA_SIGNAL_PRIVATE
|
1.17 |
| 17-Oct-2007 |
garbled | branches: 1.17.4; 1.17.8; Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
|
1.16 |
| 08-Jul-2007 |
pooka | branches: 1.16.10; Initialize the link context in a signal frame to the receiving lwp's link context instead of NULL. Otherwise, if we got a signal while the lwp had a link context set, the link context would be set to NULL upon return from signal delivery.
christos@tech-kern: "I think you are right."
|
1.15 |
| 09-Feb-2007 |
ad | branches: 1.15.6; 1.15.8; 1.15.14; Merge newlock2 to head.
|
1.14 |
| 11-Dec-2005 |
christos | branches: 1.14.20; merge ktrace-lwp.
|
1.13 |
| 07-May-2005 |
chs | branches: 1.13.2; in sendsig(), set tf->tf_iisq_* as well, since a thread might take a signal while it's executing in the gateway page.
|
1.12 |
| 01-May-2005 |
chs | remove the sigcontext signal stuff, we've never used it.
|
1.11 |
| 24-Jul-2004 |
chs | real siginfo support.
|
1.10 |
| 18-Jul-2004 |
chs | add hppa support for RAS, context stuff, siginfo and scheduler activations: - add a RAS hook in cpu_switch(). - fill in the definition of struct mcontext. - implement cpu_upcall(), cpu_getmcontext(), cpu_getmcontext() and cpu_switchto(). - for now, force the right priviledge bits and space regs in setcontext(). - use correct values for __SIMPLELOCK_*. - move the user stack to start at a multiple of the pthread stack size so that libpthread can use the sp-masking trick.
|
1.9 |
| 11-Jun-2004 |
chs | change sigdebug default to not print anything.
|
1.8 |
| 26-Mar-2004 |
drochner | To the rest of the kernel, pretend that hppa supports SIGINFO. There are still only "sigcontext" stackframes passed to the user, but at least we can clean up the MI sources now.
|
1.7 |
| 28-Nov-2003 |
chs | de-__P, remove register, ansify.
|
1.6 |
| 26-Sep-2003 |
simonb | Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Test compiled on most architectures.
|
1.5 |
| 31-Aug-2003 |
chs | update for LWPs, and some lite cleanup.
|
1.4 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.3 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.2 |
| 04-Jul-2002 |
thorpej | branches: 1.2.2; 1.2.8; 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.1 |
| 05-Jun-2002 |
fredette | branches: 1.1.2; Added files to support generic HP PA-RISC based machines. hp700-specific files to follow.
|
1.1.2.3 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.1.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.1.2.1 |
| 05-Jun-2002 |
jdolecek | file sig_machdep.c was added on branch kqueue on 2002-06-23 17:37:05 +0000
|
1.2.8.3 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.2.8.2 |
| 06-Aug-2004 |
skrll | Fix merge mistakes.
|
1.2.8.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.2.2.3 |
| 16-Jul-2002 |
gehenna | catch up with -current.
|
1.2.2.2 |
| 14-Jul-2002 |
gehenna | catch up with -current.
|
1.2.2.1 |
| 04-Jul-2002 |
gehenna | file sig_machdep.c was added on branch gehenna-devsw on 2002-07-14 17:47:13 +0000
|
1.13.2.3 |
| 21-Jan-2008 |
yamt | sync with head
|
1.13.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.13.2.1 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.14.20.2 |
| 30-Jan-2007 |
ad | Remove support for SA. Ok core@.
|
1.14.20.1 |
| 29-Jan-2007 |
ad | Make hp700 compile.
|
1.15.14.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.15.8.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.15.6.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.16.10.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.16.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.17.8.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.17.4.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.19.8.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.19.6.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.19.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.20.2.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.20.2.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.20.2.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.21.8.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.21.6.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.21.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.21.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.21.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.23.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.24.4.1 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.24.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.25.56.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.25.54.1 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
1.25.48.1 |
| 27-Jan-2019 |
martin | Pull up following revision(s) (requested by maxv in ticket #1173): sys/arch/hppa/hppa/sig_machdep.c: revision 1.26 sys/arch/arm/arm/sig_machdep.c: revision 1.51 sys/arch/i386/i386/machdep.c: revision 1.813 sys/arch/alpha/alpha/machdep.c: revision 1.352 sys/arch/m68k/m68k/sig_machdep.c: revision 1.50 sys/arch/usermode/target/i386/cpu_i386.c: revision 1.8 sys/arch/sparc64/sparc64/machdep.c: revision 1.289 sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.111 sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.46 sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.117 sys/arch/sh3/sh3/sh3_machdep.c: revision 1.106 sys/arch/mips/mips/netbsd32_machdep.c: revision 1.16 sys/arch/mips/mips/sig_machdep.c: revision 1.24 sys/arch/riscv/riscv/sig_machdep.c: revision 1.2 sys/arch/usermode/target/x86_64/cpu_x86_64.c: revision 1.7 sys/arch/vax/vax/sig_machdep.c: revision 1.23
Fix widespread leak in the sendsig_siginfo() functions. sigframe_siginfo has padding, so zero it out properly. While here I'm also zeroing out some other things in several ports, for safety. Same problem in netbsd32, so fix that too.
I can't compile-test on each architecture, but there should be no breakage (tm).
Overall this fixes at least 14 info leaks. Prompted by the discovery by KLEAK of a leak in amd64's sendsig_siginfo.
|
1.25.42.1 |
| 30-Jan-2019 |
martin | Pull up following revision(s) (requested by maxv in ticket #1677):
sys/arch/hppa/hppa/sig_machdep.c: revision 1.26 sys/arch/arm/arm/sig_machdep.c: revision 1.51 sys/arch/i386/i386/machdep.c: revision 1.813 sys/arch/alpha/alpha/machdep.c: revision 1.352 sys/arch/m68k/m68k/sig_machdep.c: revision 1.50 sys/arch/usermode/target/i386/cpu_i386.c: revision 1.8 sys/arch/sparc64/sparc64/machdep.c: revision 1.289 sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.111 sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.46 sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.117 sys/arch/sh3/sh3/sh3_machdep.c: revision 1.106 sys/arch/mips/mips/netbsd32_machdep.c: revision 1.16 sys/arch/mips/mips/sig_machdep.c: revision 1.24 sys/arch/usermode/target/x86_64/cpu_x86_64.c: revision 1.7 sys/arch/vax/vax/sig_machdep.c: revision 1.23
Fix widespread leak in the sendsig_siginfo() functions. sigframe_siginfo has padding, so zero it out properly. While here I'm also zeroing out some other things in several ports, for safety. Same problem in netbsd32, so fix that too.
I can't compile-test on each architecture, but there should be no breakage (tm).
Overall this fixes at least 14 info leaks. Prompted by the discovery by KLEAK of a leak in amd64's sendsig_siginfo.
|
1.25.34.1 |
| 30-Jan-2019 |
martin | Pull up following revision(s) (requested by maxv in ticket #1677):
sys/arch/hppa/hppa/sig_machdep.c: revision 1.26 sys/arch/arm/arm/sig_machdep.c: revision 1.51 sys/arch/i386/i386/machdep.c: revision 1.813 sys/arch/alpha/alpha/machdep.c: revision 1.352 sys/arch/m68k/m68k/sig_machdep.c: revision 1.50 sys/arch/usermode/target/i386/cpu_i386.c: revision 1.8 sys/arch/sparc64/sparc64/machdep.c: revision 1.289 sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.111 sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.46 sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.117 sys/arch/sh3/sh3/sh3_machdep.c: revision 1.106 sys/arch/mips/mips/netbsd32_machdep.c: revision 1.16 sys/arch/mips/mips/sig_machdep.c: revision 1.24 sys/arch/usermode/target/x86_64/cpu_x86_64.c: revision 1.7 sys/arch/vax/vax/sig_machdep.c: revision 1.23
Fix widespread leak in the sendsig_siginfo() functions. sigframe_siginfo has padding, so zero it out properly. While here I'm also zeroing out some other things in several ports, for safety. Same problem in netbsd32, so fix that too.
I can't compile-test on each architecture, but there should be no breakage (tm).
Overall this fixes at least 14 info leaks. Prompted by the discovery by KLEAK of a leak in amd64's sendsig_siginfo.
|
1.25.30.1 |
| 30-Jan-2019 |
martin | Pull up following revision(s) (requested by maxv in ticket #1677):
sys/arch/hppa/hppa/sig_machdep.c: revision 1.26 sys/arch/arm/arm/sig_machdep.c: revision 1.51 sys/arch/i386/i386/machdep.c: revision 1.813 sys/arch/alpha/alpha/machdep.c: revision 1.352 sys/arch/m68k/m68k/sig_machdep.c: revision 1.50 sys/arch/usermode/target/i386/cpu_i386.c: revision 1.8 sys/arch/sparc64/sparc64/machdep.c: revision 1.289 sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.111 sys/arch/powerpc/powerpc/sig_machdep.c: revision 1.46 sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.117 sys/arch/sh3/sh3/sh3_machdep.c: revision 1.106 sys/arch/mips/mips/netbsd32_machdep.c: revision 1.16 sys/arch/mips/mips/sig_machdep.c: revision 1.24 sys/arch/usermode/target/x86_64/cpu_x86_64.c: revision 1.7 sys/arch/vax/vax/sig_machdep.c: revision 1.23
Fix widespread leak in the sendsig_siginfo() functions. sigframe_siginfo has padding, so zero it out properly. While here I'm also zeroing out some other things in several ports, for safety. Same problem in netbsd32, so fix that too.
I can't compile-test on each architecture, but there should be no breakage (tm).
Overall this fixes at least 14 info leaks. Prompted by the discovery by KLEAK of a leak in amd64's sendsig_siginfo.
|