HomeFreeBSD

kinst: fix memcpy() tracing crash

Description

kinst: fix memcpy() tracing crash

Tracing memcpy() would crash the kernel, because we'd also trace the
memcpy() calls from kinst_invop(). To fix this, introduce kinst_memcpy()
whose arguments are 'volatile', so that we avoid having the compiler
replace it with a regular memcpy().

Reviewed by: markj
Approved by: markj (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40284

Details

Provenance
christosAuthored on May 26 2023, 3:43 PM
Reviewer
markj
Differential Revision
D40284: kinst: fix memcpy() tracing crash
Parents
rG9c80ad6839cd: kinst: add kinst_excluded()
Branches
Unknown
Tags
Unknown