Re: [RFC v2][PATCH 08/11] ARM: Implement __arch_rare_write_begin/end()
From: Peter Zijlstra
Date: Fri Apr 07 2017 - 05:37:36 EST
On Wed, Mar 29, 2017 at 11:16:00AM -0700, Kees Cook wrote:
> +static inline unsigned long __arch_rare_write_end(void)
> +{
> + BUG_ON(test_domain(DOMAIN_WR_RARE, DOMAIN_CLIENT));
> + modify_domain(DOMAIN_WR_RARE, DOMAIN_CLIENT);
> + preempt_enable_no_resched();
NAK
> + return 0;
> +}