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)
Dec 23 2023, 12:44 AM
Unknown Object (File)
Dec 12 2023, 12:02 PM
Unknown Object (File)
Sep 29 2023, 6:50 PM
Unknown Object (File)
Aug 17 2023, 9:34 AM
Unknown Object (File)
Jul 5 2023, 8:28 PM
Unknown Object (File)
Jul 3 2023, 9:32 AM
Unknown Object (File)
Jul 3 2023, 9:30 AM
Unknown Object (File)
Jul 3 2023, 9:23 AM
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