]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc64: Fix executable bit testing in set_pmd_at() paths.
authorDavid S. Miller <davem@davemloft.net>
Mon, 21 Apr 2014 01:55:01 +0000 (21:55 -0400)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:09:09 +0000 (15:09 +0100)
commit0ed11e0d7809e6faefd1580260ec1fa68fbdcb0d
tree0687f54214d2d11a18b6b8d6c0a1cd7e0d41011c
parentf68d72bc620b6b562c773ab4ffb26bad18fbc3ce
sparc64: Fix executable bit testing in set_pmd_at() paths.

[ Upstream commit 5b1e94fa439a3227beefad58c28c17f68287a8e9 ]

This code was mistakenly using the exec bit from the PMD in all
cases, even when the PMD isn't a huge PMD.

If it's not a huge PMD, test the exec bit in the individual ptes down
in tlb_batch_pmd_scan().

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/mm/tlb.c