opnsense-src/sys/cddl
Mark Johnston 3a56cfedbc fasttrap: Avoid creating WX mappings
fasttrap instruments certain instructions by overwriting them and
copying the original instruction to some per-thread scratch space which
is executed after the probe fires.  This trampoline jumps back to the
tracepoint after executing the original instruction.

The created mapping has both write and execute permissions, and so this
mechanism doesn't work when allow_wx is disabled.  Work around the
restriction by using proc_rwmem() to write to the trampoline.

Reviewed by:	vangyzen
Tested by:	Amit <akamit91@hotmail.com>
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34304
2022-03-01 12:40:35 -05:00
..
boot/zfs stand/zfs: Mark pcount as unused 2021-12-15 19:47:48 -07:00
compat/opensolaris Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
contrib/opensolaris fasttrap: Avoid creating WX mappings 2022-03-01 12:40:35 -05:00
dev fbt: Remove handling for CTFv1 2022-02-23 11:41:22 -05:00