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)
Mon, Sep 29, 9:28 AM
Unknown Object (File)
Wed, Sep 17, 5:20 AM
Unknown Object (File)
Mon, Sep 15, 6:56 AM
Unknown Object (File)
Fri, Sep 12, 3:21 PM
Unknown Object (File)
Aug 14 2025, 1:55 PM
Unknown Object (File)
Aug 2 2025, 3:11 AM
Unknown Object (File)
Jul 21 2025, 7:32 AM
Unknown Object (File)
Jul 6 2025, 2:07 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