signal/x86: Pass pkey not vma into __bad_area
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 17 Sep 2018 22:39:49 +0000 (00:39 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 21 Sep 2018 12:54:17 +0000 (14:54 +0200)
commitaba1ecd32c756e5d3c220aae9928d18c43d78cd0
treee1e24b0666e25412c232a686ab82db4e86b6c115
parent988bbc7b1a349a0139d5837d29a91714f8f512f4
signal/x86: Pass pkey not vma into __bad_area

There is only one caller of __bad_area that passes in PKUERR and thus
will generate a siginfo with si_pkey set.  Therefore simplify the
logic and hoist reading of vma_pkey up into that caller, and just
pass *pkey into __bad_area.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/x86/mm/fault.c