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

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

2019-03-05 Thread Christophe Leroy
This patch implements Kernel Userspace Access Protection for book3s/32. Due to limitations of the processor page protection capabilities, the protection is only against writing. read protection cannot be achieved using page protection. The previous patch modifies the page protection so that RW us