Page MenuHomeFreeBSD

kasan: disable kasan_mark() after a violation
ClosedPublic

Authored by kevans on Sep 27 2022, 6:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 18, 5:48 AM
Unknown Object (File)
Thu, Apr 17, 1:33 PM
Unknown Object (File)
Sat, Apr 5, 1:15 AM
Unknown Object (File)
Mar 28 2025, 1:33 AM
Unknown Object (File)
Mar 5 2025, 11:58 PM
Unknown Object (File)
Feb 23 2025, 3:22 PM
Unknown Object (File)
Feb 10 2025, 2:43 AM
Unknown Object (File)
Jan 24 2025, 5:26 PM
Subscribers

Details

Summary

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.

Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable