Page MenuHomeFreeBSD

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

Authored by jilles on Apr 27 2020, 9:59 PM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.