commit | e6f39e87b6439939a14cb7fdd94086a082b63b87 | [log] [tgz] |
---|---|---|
author | Joerg Roedel <jroedel@suse.de> | Mon Apr 16 11:43:57 2018 +0200 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Apr 16 11:20:34 2018 -0700 |
tree | 6df2d211a3e49359466e8b0dd3183a5d2d285495 | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 [diff] |
x86/ldt: Fix support_pte_mask filtering in map_ldt_struct() The |= operator will let us end up with an invalid PTE. Use the correct &= instead. [ The bug was also independently reported by Shuah Khan ] Fixes: fb43d6cb91ef ('x86/mm: Do not auto-massage page protections') Acked-by: Andy Lutomirski <luto@kernel.org> Acked-by: Dave Hansen <dave.hansen@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>