Summary: | geli leaks memory | ||
---|---|---|---|
Product: | Base System | Reporter: | Li-Wen Hsu <lwhsu> |
Component: | kern | Assignee: | Gleb Smirnoff <glebius> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | glebius |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Li-Wen Hsu
2021-09-29 19:10:12 UTC
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b984d153e057b7879632b8e6015a05ce3f177580 commit b984d153e057b7879632b8e6015a05ce3f177580 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2021-10-01 17:24:50 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2021-10-01 17:31:17 +0000 Don't set GELI UMA zone as UMA_ZONE_NOFREE. That fixes memory leak on last GELI provider destroyed, introduced in 2dbc9a388ee. This patch was originally developed late 2019 and the flag was necessary to prevent zone drainage under memory pressure. Today, with f09cbea31a3f the UMA is fixed not to drain into reserves. Discussed with: jtl, markj Fixes: 2dbc9a388ee PR: 258787 sys/geom/eli/g_eli.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) Li-Wen, can you please re-enable GELI tests in CI. Sorry for the problem. (In reply to Gleb Smirnoff from comment #3) Tested and re-enabled the geli tests in https://github.com/freebsd/freebsd-ci/commit/db3e2f8eaf414ccd7efb162e46778eb36f32ce60 |