Please sign in to comment.
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 6695588 and 6d948c3 to prevent k(v)malloc() allocations in kv_alloc(). Reviewed-by: Kjeld Schouten <firstname.lastname@example.org> Reviewed-by: Michael Niewöhner <email@example.com> Reviewed-by: Brian Behlendorf <firstname.lastname@example.org> Signed-off-by: loli10K <email@example.com> Closes #9813
- Loading branch information
Showing with 2 additions and 20 deletions.