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)
Feb 23 2024, 4:54 PM
Unknown Object (File)
Feb 23 2024, 4:54 PM
Unknown Object (File)
Feb 23 2024, 4:54 PM
Unknown Object (File)
Feb 23 2024, 4:40 PM
Unknown Object (File)
Dec 29 2023, 9:53 AM
Unknown Object (File)
Dec 28 2023, 2:18 AM
Unknown Object (File)
Dec 24 2023, 7:38 AM
Unknown Object (File)
Dec 20 2023, 6:43 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