Skip to content

x86, mpx: Support 32-bit binaries on 64-bit kernels

Dave Hansen lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86: make is_64bit_mm() widely availablearch/x86/include/asm/mmu_context.h arch/x86/kernel/uprobes.c+14 -90 replies
2/9x86: make __VIRTUAL_MASK safe to use on 32 bitarch/x86/include/asm/page_types.h+8 -00 replies
3/9x86, mpx: we do not allocate the bounds directoryarch/x86/mm/mpx.c+2 -20 replies
4/9x86, mpx: remove redundant MPX_BNDCFG_ADDR_MASKarch/x86/include/asm/mpx.h+0 -10 replies
5/9x86, mpx: Add temporary variable to reduce maskingarch/x86/mm/mpx.c+4 -30 replies
6/9x86, mpx: new directory entry to addr helperarch/x86/include/asm/mpx.h arch/x86/mm/mpx.c+34 -80 replies
7/9x86, mpx: do 32-bit-only cmpxchg for 32-bit appsarch/x86/mm/mpx.c+36 -50 replies
8/9x86, mpx: support 32bit binaries on 64bit kernelarch/x86/include/asm/mpx.h arch/x86/mm/mpx.c+163 -550 replies
9/9x86, mpx: allow mixed binaries againarch/x86/mm/mpx.c+0 -60 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by.

PatchQiaowei Ren
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9Based-on-patch-by
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] x86, mpx: Support 32-bit binaries on 64-bit kernels

The MPX hardware structures differ in layout in 32 and 64-bit mode. A 32-bit binary running on a 64-bit kernel needs the 32-bit structures, so we need code which switches between the two modes.

x86: make is_64bit_mm() widely available
x86: make __VIRTUAL_MASK safe to use on 32 bit x86, mpx: we do not allocate the bounds directory x86, mpx: remove redundant MPX_BNDCFG_ADDR_MASK x86, mpx: Add temporary variable to reduce masking x86, mpx: new directory entry to addr helper x86, mpx: do 32-bit-only cmpxchg for 32-bit apps x86, mpx: support 32bit binaries on 64bit kernel

 include/asm/mmu_context.h |   13 ++
 include/asm/mpx.h         |   66 ++++++------
 include/asm/page_types.h  |    8 +
 kernel/uprobes.c          |   10 -
 mm/mpx.c                  |  241 ++++++++++++++++++++++++++++++++++++++--------
 5 files changed, 255 insertions(+), 83 deletions(-)