Re: [PATCH 1/1] mm/percpu.c: append alignment sanity checkup to avoid memory leakage

2016-10-19 Thread Tejun Heo
Hello, I updated the patch description and code style a bit and applied to percpu/for-4.10. Thanks. -- 8< -- >From 3ca45a46f8af8c4a92dd8a08eac57787242d5021 Mon Sep 17 00:00:00 2001 From: zijun_hu Date: Fri, 14 Oct 2016 15:12:54 +0800 Subject: [PATCH] percpu: ensure the requested alignme

[PATCH 1/1] mm/percpu.c: append alignment sanity checkup to avoid memory leakage

2016-10-14 Thread zijun_hu
From: zijun_hu the percpu allocator only works well currently when allocates a power of 2 aligned area, but there aren't any hints for alignment requirement, so memory leakage maybe be caused if allocate other alignment areas the alignment must be a even at least since the LSB of a chunk->map el