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.

(cherry picked from commit f2963b530e17c5eff66bc5f4860b1cd224d3d033)

Details

Provenance
mhorneAuthored on Sep 27 2022, 4:01 PM
kevansCommitted on Nov 2 2022, 5:02 PM
Parents
rGffcb2897471b: kasan: provide bus peek/poke definitions
Branches
Unknown
Tags
Unknown