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, Aug 28, 12:31 AM
Unknown Object (File)
Sat, Aug 22, 7:34 AM
Unknown Object (File)
Fri, Aug 21, 1:51 PM
Unknown Object (File)
Tue, Aug 18, 9:28 PM
Unknown Object (File)
Tue, Aug 18, 10:36 AM
Unknown Object (File)
Sat, Aug 15, 1:47 PM
Unknown Object (File)
Sat, Aug 15, 1:46 PM
Unknown Object (File)
Tue, Aug 11, 6:57 PM
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