[PATCH] powerpc/irq: drop __irq_offset_value

2019-03-09 Thread Christophe Leroy
This patch drops__irq_offset_value which has not been used since commit 9c4cb8251513 ("powerpc: Remove use of CONFIG_PPC_MERGE") This removes a sparse warning. Fixes: 9c4cb8251513 ("powerpc: Remove use of CONFIG_PPC_MERGE") Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/irq.c | 3 ---

Re: [PATCH 7/7] powerpc/book3s32: Implement Kernel Userspace Access Protection

2019-03-09 Thread christophe leroy
Hi Russel, As you can see in patchwork, snowpatch report 3477 new sparse warning(s) with this series. Half of them are because of a cast of __user pointer to u32. I'll fix it by adding __force to the cast. The other half comes from the use of min() macro. The induced warning is "warning: e

Re: [PATCH v5 10/10] powerpc/mm: Detect bad KUAP faults

2019-03-09 Thread christophe leroy
Le 08/03/2019 à 09:53, Christophe Leroy a écrit : Le 08/03/2019 à 02:16, Michael Ellerman a écrit : When KUAP is enabled we have logic to detect page faults that occur outside of a valid user access region and are blocked by the AMR. What we don't have at the moment is logic to detect a fa

[PATCH v2] fs/dax: deposit pagetable even when installing zero page

2019-03-09 Thread Aneesh Kumar K.V
Architectures like ppc64 use the deposited page table to store hardware page table slot information. Make sure we deposit a page table when using zero page at the pmd level for hash. Without this we hit Unable to handle kernel paging request for data at address 0x Faulting instruction add

Re: [PATCH v6 4/4] hugetlb: allow to free gigantic pages regardless of the configuration

2019-03-09 Thread Alex Ghiti
On 3/8/19 2:05 PM, Mike Kravetz wrote: On 3/7/19 5:20 AM, Alexandre Ghiti wrote: On systems without CONTIG_ALLOC activated but that support gigantic pages, boottime reserved gigantic pages can not be freed at all. This patch simply enables the possibility to hand back those pages to memory alloc