[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87d10s9tyz.fsf@concordia.ellerman.id.au>
Date: Mon, 26 Feb 2018 16:54:12 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Khalid Aziz <khalid.aziz@...cle.com>, akpm@...ux-foundation.org,
benh@...nel.crashing.org, paulus@...ba.org, davem@...emloft.net,
dave.hansen@...ux.intel.com
Cc: Khalid Aziz <khalid.aziz@...cle.com>, bsingharora@...il.com,
nborisov@...e.com, aarcange@...hat.com, anthony.yznaga@...cle.com,
mgorman@...e.de, linuxram@...ibm.com,
kirill.shutemov@...ux.intel.com, dan.j.williams@...el.com,
jack@...e.cz, ross.zwisler@...ux.intel.com,
gregkh@...uxfoundation.org, tglx@...utronix.de, mhocko@...e.com,
n-horiguchi@...jp.nec.com, jglisse@...hat.com,
henry.willard@...cle.com, aneesh.kumar@...ux.vnet.ibm.com,
khandual@...ux.vnet.ibm.com, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
sparclinux@...r.kernel.org, Khalid Aziz <khalid@...ehiking.org>
Subject: Re: [PATCH v12 07/11] mm: Add address parameter to arch_validate_prot()
Khalid Aziz <khalid.aziz@...cle.com> writes:
> A protection flag may not be valid across entire address space and
> hence arch_validate_prot() might need the address a protection bit is
> being set on to ensure it is a valid protection flag. For example, sparc
> processors support memory corruption detection (as part of ADI feature)
> flag on memory addresses mapped on to physical RAM but not on PFN mapped
> pages or addresses mapped on to devices. This patch adds address to the
> parameters being passed to arch_validate_prot() so protection bits can
> be validated in the relevant context.
>
> Signed-off-by: Khalid Aziz <khalid.aziz@...cle.com>
> Cc: Khalid Aziz <khalid@...ehiking.org>
> Reviewed-by: Anthony Yznaga <anthony.yznaga@...cle.com>
> ---
> v8:
> - Added addr parameter to powerpc arch_validate_prot() (suggested
> by Michael Ellerman)
> v9:
> - new patch
>
> arch/powerpc/include/asm/mman.h | 4 ++--
> arch/powerpc/kernel/syscalls.c | 2 +-
These changes look fine to me:
Acked-by: Michael Ellerman <mpe@...erman.id.au> (powerpc)
cheers
Powered by blists - more mailing lists