git: 0aca7ce7af35 - main - malloc: Fix domainset usage in malloc_domainset() for large allocs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Jul 2026 13:29:25 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=0aca7ce7af35fdf87db2b8866c623b0c275ee3e9
commit 0aca7ce7af35fdf87db2b8866c623b0c275ee3e9
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-07-31 12:56:31 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-07-31 12:57:11 +0000
malloc: Fix domainset usage in malloc_domainset() for large allocs
We should of course pass the provided domainset rather than copying what
plain malloc() does.
Fixes: 89deca0a3361 ("malloc: make malloc_large closer to standalone")
Reviewed by: rlibby
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58316
---
sys/kern/kern_malloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 0be0a417e19c..b0bb4511cb16 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -729,7 +729,7 @@ malloc_domainset(size_t size, struct malloc_type *mtp, struct domainset *ds,
#endif
if (__predict_false(size > kmem_zmax || (flags & M_EXEC) != 0)) {
- va = malloc_large(&size, mtp, DOMAINSET_RR(), flags);
+ va = malloc_large(&size, mtp, ds, flags);
} else {
int indx;