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
F132408078: D24599.id71125.diff
Thu, Oct 16, 4:39 PM
F132408075: D24599.id.diff
Thu, Oct 16, 4:39 PM
F132408070: D24599.id71078.diff
Thu, Oct 16, 4:39 PM
Unknown Object (File)
Thu, Oct 16, 5:41 AM
Unknown Object (File)
Sun, Oct 12, 11:45 AM
Unknown Object (File)
Mon, Sep 29, 9:28 AM
Unknown Object (File)
Sep 17 2025, 5:20 AM
Unknown Object (File)
Sep 15 2025, 6:56 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