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)
Thu, Mar 12, 8:08 PM
Unknown Object (File)
Thu, Mar 12, 8:08 PM
Unknown Object (File)
Wed, Mar 11, 5:06 AM
Unknown Object (File)
Tue, Mar 10, 9:05 AM
Unknown Object (File)
Sun, Mar 8, 3:22 AM
Unknown Object (File)
Sat, Feb 28, 8:31 PM
Unknown Object (File)
Sun, Feb 22, 10:41 PM
Unknown Object (File)
Feb 8 2026, 12:01 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