version 1.364.2.8, 2019/10/23 19:25:39 |
version 1.364.2.9, 2019/11/11 17:11:07 |
Line 100 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 100 __KERNEL_RCSID(0, "$NetBSD$"); |
|
#include <sys/cpu.h> |
#include <sys/cpu.h> |
#include <sys/module.h> |
#include <sys/module.h> |
#include <sys/sdt.h> |
#include <sys/sdt.h> |
|
#include <sys/compat_stub.h> |
|
|
#ifdef PAX_SEGVGUARD |
#ifdef PAX_SEGVGUARD |
#include <sys/pax.h> |
#include <sys/pax.h> |
Line 131 static void sigswitch_unlock_and_switch_ |
|
Line 132 static void sigswitch_unlock_and_switch_ |
|
static void sigacts_poolpage_free(struct pool *, void *); |
static void sigacts_poolpage_free(struct pool *, void *); |
static void *sigacts_poolpage_alloc(struct pool *, int); |
static void *sigacts_poolpage_alloc(struct pool *, int); |
|
|
void (*sendsig_sigcontext_vec)(const struct ksiginfo *, const sigset_t *); |
|
int (*coredump_vec)(struct lwp *, const char *) = |
|
(int (*)(struct lwp *, const char *))enosys; |
|
|
|
/* |
/* |
* DTrace SDT provider definitions |
* DTrace SDT provider definitions |
*/ |
*/ |
Line 2145 sendsig(const struct ksiginfo *ksi, cons |
|
Line 2142 sendsig(const struct ksiginfo *ksi, cons |
|
case 0: |
case 0: |
case 1: |
case 1: |
/* Compat for 1.6 and earlier. */ |
/* Compat for 1.6 and earlier. */ |
if (sendsig_sigcontext_vec == NULL) { |
MODULE_HOOK_CALL_VOID(sendsig_sigcontext_16_hook, (ksi, mask), |
break; |
break); |
} |
|
(*sendsig_sigcontext_vec)(ksi, mask); |
|
return; |
return; |
case 2: |
case 2: |
case 3: |
case 3: |
Line 2289 sigexit(struct lwp *l, int signo) |
|
Line 2284 sigexit(struct lwp *l, int signo) |
|
|
|
if (docore) { |
if (docore) { |
mutex_exit(p->p_lock); |
mutex_exit(p->p_lock); |
error = (*coredump_vec)(l, NULL); |
MODULE_HOOK_CALL(coredump_hook, (l, NULL), enosys(), error); |
|
|
if (kern_logsigexit) { |
if (kern_logsigexit) { |
int uid = l->l_cred ? |
int uid = l->l_cred ? |