diff options
author | loli10K <[email protected]> | 2020-01-14 18:09:59 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-01-14 09:09:59 -0800 |
commit | 7e2da7786ec089d1b9f9010677dc8e8a65dc01a1 (patch) | |
tree | ccd99b4a45c9a1dc0a58b500eebf750101b1df52 /module/unicode | |
parent | 68a192e4b7627f8f00d412ba68c291fcc90d3de9 (diff) |
KMC_KVMEM disrupts kv_alloc() memory alignment expectations
On kernels with KASAN enabled the following failure can be observed as
soon as the zfs module is loaded:
VERIFY(IS_P2ALIGNED(ptr, PAGE_SIZE)) failed
PANIC at spl-kmem-cache.c:228:kv_alloc()
The problem is kmalloc() has never guaranteed aligned allocations; this
requirement resulted in zfsonlinux/spl@8b45dda which removed all
kmalloc() usage in kv_alloc().
Until a GFP_ALIGNED flag (or equivalent functionality) is provided by
the kernel this commit partially reverts 66955885 and 6d948c35 to
prevent k(v)malloc() allocations in kv_alloc().
Reviewed-by: Kjeld Schouten <[email protected]>
Reviewed-by: Michael Niewöhner <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #9813
Diffstat (limited to 'module/unicode')
0 files changed, 0 insertions, 0 deletions