HomeFreeBSD

kasan: disable kasan_mark() after a violation

Description

kasan: disable kasan_mark() after a violation

Specifically, when we receive a violation and we're configured to panic,
kasan_enabled gets unset before we descend into panic(). At this point,
there's no longer any reason to allow marking as kasan_shadow_check() is
disabled -- we have some inherent risk of faulting or panicking if the
system's in a bad enough state with no benefit.

Reviewed by: markj
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D36742

Details

Provenance
mhorneAuthored on Sep 27 2022, 4:01 PM
kevansCommitted on Sep 27 2022, 4:01 PM
Reviewer
markj
Differential Revision
D36742: kasan: disable kasan_mark() after a violation
Parents
rG27d673fbbb79: When taking a snapshot on a UFS/FFS filesystem, it must be mounted.
Branches
Unknown
Tags
Unknown