Page MenuHomeFreeBSD

kasan: disable kasan_mark() after a violation
ClosedPublic

Authored by kevans on Sep 27 2022, 6:28 AM.
Tags
None
Referenced Files
F159950056: D36742.diff
Fri, Jun 19, 8:52 PM
Unknown Object (File)
Tue, Jun 16, 9:49 PM
Unknown Object (File)
Tue, Jun 16, 12:47 PM
Unknown Object (File)
May 16 2026, 4:51 PM
Unknown Object (File)
May 15 2026, 2:02 PM
Unknown Object (File)
May 14 2026, 4:09 PM
Unknown Object (File)
May 10 2026, 10:18 AM
Unknown Object (File)
May 10 2026, 10:13 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 Passed
Unit
No Test Coverage
Build Status
Buildable 47561
Build 44448: arc lint + arc unit