History log of /netbsd-src/sys/kern/kern_hook.c (Results 1 – 15 of 15)
Revision Date Author Comments
# 29964953 17-Jan-2024 hannken <hannken@NetBSD.org>

Protect kernel hooks exechook, exithook and forkhook with rwlock.
Lock as writer on establish/disestablish and as reader on list traverse.

For exechook ride "exec_lock" as it is already take as read

Protect kernel hooks exechook, exithook and forkhook with rwlock.
Lock as writer on establish/disestablish and as reader on list traverse.

For exechook ride "exec_lock" as it is already take as reader when
traversing the list. Add local locks for exithook and forkhook.

Move exec_init before signal_init as signal_init calls exechook_establish()
that needs "exec_lock".

PR kern/39913 "exec, fork, exit hooks need locking"

show more ...


# 18d5b72e 26-Oct-2022 riastradh <riastradh@NetBSD.org>

kern/kern_hook.c: Get exec_lock from sys/exec.h.


# ff23aff6 31-May-2022 andvar <andvar@NetBSD.org>

fix various typos in comments, documentation and messages.


# c7446659 03-Dec-2021 gson <gson@NetBSD.org>

Only one space after comma


# 49c38685 30-Sep-2021 skrll <skrll@NetBSD.org>

Some platforms need sys/cpu.h for curlwp so #include it


# e18e8cbc 30-Sep-2021 skrll <skrll@NetBSD.org>

KNF


# 8085a44f 30-Sep-2021 yamaguchi <yamaguchi@NetBSD.org>

Introduce a generic linear hook list


# 176ada4b 16-Oct-2019 christos <christos@NetBSD.org>

Add and use __FPTRCAST, requested by uwe@


# d2348edc 16-Oct-2019 christos <christos@NetBSD.org>

Add void * function pointer casts. There are different ways to "fix" those
warnings:
1. this one: add a void * cast (which I think is the least intrusive)
2. add pragmas to elide the warning

Add void * function pointer casts. There are different ways to "fix" those
warnings:
1. this one: add a void * cast (which I think is the least intrusive)
2. add pragmas to elide the warning
3. add intermediate inline conversion functions
4. change the called function prototypes, adding unused arguments and
converting some of the pointer arguments to void *.
5. make the functions varyadic (which defeats the purpose of checking)
6. pass command line flags to elide the warning
I did try 3 and 4 and I was not pleased with the result (sys_ptrace_common.c)
(3) added too much code and defines, and (4) made the regular use clumsy.

show more ...


# 471b216b 22-Nov-2013 christos <christos@NetBSD.org>

convert vmem, signals, powerhooks from CIRCLEQ -> TAILQ.


# cbab9cad 27-Oct-2012 chs <chs@NetBSD.org>

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.


# e66ccad2 11-Dec-2010 matt <matt@NetBSD.org>

Add critpoll (critical polling) hooks. These are keep things like watchdogs
from firing when the system is doing stuff like waiting at a ddb prompt or
the kernel is doing a lot of printing.


# 476c17bc 31-Jan-2010 martin <martin@NetBSD.org>

This is using device_t, so it needs to include <sys/device.h>.


# 3cba3248 31-Jan-2010 pooka <pooka@NetBSD.org>

Pass root device as a parameter to domountroothook().


# 04b824ef 31-Jan-2010 pooka <pooka@NetBSD.org>

Place *hook implementations in kern_hook.c instead of them floating
around in the kern_subr.c gruel. Arrrrr.