Page MenuHomeFreeBSD

sh: Assert INTOFF rather than applying it in ck*
ClosedPublic

Authored by jilles on Apr 27 2020, 9:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Feb 21, 1:00 PM
Unknown Object (File)
Dec 10 2024, 3:53 PM
Unknown Object (File)
Oct 23 2024, 5:15 AM
Unknown Object (File)
Oct 4 2024, 12:31 AM
Unknown Object (File)
Oct 3 2024, 6:10 PM
Unknown Object (File)
Oct 3 2024, 1:07 AM
Unknown Object (File)
Oct 2 2024, 11:49 PM
Unknown Object (File)
Oct 1 2024, 3:06 AM
Subscribers

Details

Summary

As I noted in https://reviews.freebsd.org/D22756, INTOFF should be in
effect when calling ckmalloc/ckrealloc/ckfree to avoid memory leaks and
double frees. Therefore, change the functions to check if INTOFF is in
effect instead of applying it.

Test Plan

installworld and kyua test
code inspection of poudriere custom builtins

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable