]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linker_set: Disable ASAN only in userspace
authorMark Johnston <markj@FreeBSD.org>
Fri, 7 May 2021 18:24:37 +0000 (14:24 -0400)
committerMark Johnston <markj@FreeBSD.org>
Fri, 7 May 2021 18:31:08 +0000 (14:31 -0400)
commit2d499d505262c9c965fc5f4fd36afdd2bb7cad3d
treeeae9ca27cb24aa80ca93786e2addfd3cea35433a
parent1a212abd54c0e4323f11e3bc2fd94ca26f7e5329
linker_set: Disable ASAN only in userspace

KASAN does not insert redzones around global variables and so is not
susceptible to the problem that led to us disabling ASAN for linker set
elements in the first place (see commit fe3d8086fb6f).

Reviewed by: andrew, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30126
sys/sys/linker_set.h