Module Name: src
Committed By: maxv
Date: Sat Jun 29 11:13:23 UTC 2019
Modified Files:
src/sys/kern: subr_pool.c
Log Message:
The big pool allocators use pool_page_alloc(), which allocates page-aligned
storage. So if we switch to a big pool, set PR_NOALIGN, because the address
of the storage is not aligned to the item size.
Should fix PR/54319.
To generate a diff of this commit:
cvs rdiff -u -r1.251 -r1.252 src/sys/kern/subr_pool.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/subr_pool.c
diff -u src/sys/kern/subr_pool.c:1.251 src/sys/kern/subr_pool.c:1.252
--- src/sys/kern/subr_pool.c:1.251 Thu Jun 13 01:13:12 2019
+++ src/sys/kern/subr_pool.c Sat Jun 29 11:13:23 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pool.c,v 1.251 2019/06/13 01:13:12 christos Exp $ */
+/* $NetBSD: subr_pool.c,v 1.252 2019/06/29 11:13:23 maxv Exp $ */
/*
* Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010, 2014, 2015, 2018
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.251 2019/06/13 01:13:12 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.252 2019/06/29 11:13:23 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1959,6 +1959,7 @@ pool_cache_bootstrap(pool_cache_t pc, si
int bigidx = pool_bigidx(size);
palloc = &pool_allocator_big[bigidx];
+ flags |= PR_NOALIGN;
} else
palloc = &pool_allocator_nointr;
}