]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
execve: Mark exec argument buffers
authorMark Johnston <markj@FreeBSD.org>
Tue, 13 Apr 2021 21:40:19 +0000 (17:40 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 13 Apr 2021 21:42:21 +0000 (17:42 -0400)
commitf1c3adefd95d35115bd4597293e0b904ae401245
tree57260036b2a63d129373567d64e79acf5aa6210d
parentb261bb4057f4abbc1366e4af8e9e4081d039be4a
execve: Mark exec argument buffers

We cache mapped execve argument buffers to avoid the overhead of TLB
shootdowns.  Mark them invalid when they are freed to the cache.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29460
sys/kern/kern_exec.c
sys/kern/subr_asan.c
sys/sys/asan.h