Skip to content

V4.14 backport of more 32-bit arm spectre patches

David Long stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17ARM: 8789/1: signal: copy registers using __copy_to_user()arch/arm/kernel/signal.c+27 -220 replies
2/17ARM: 8790/1: signal: always use __copy_to_user to save iwmmxt contextarch/arm/kernel/signal.c+6 -40 replies
3/17ARM: 8791/1: vfp: use __copy_to_user() when saving VFP statearch/arm/include/asm/thread_info.h arch/arm/kernel/signal.c arch/arm/vfp/vfpmodule.c+17 -200 replies
4/17ARM: 8792/1: oabi-compat: copy oabi events using __copy_to_user()arch/arm/kernel/sys_oabi-compat.c+6 -20 replies
5/17ARM: 8793/1: signal: replace __put_user_error with __put_userarch/arm/kernel/signal.c+4 -40 replies
6/17ARM: 8794/1: uaccess: Prevent speculative use of the current addr_limitarch/arm/include/asm/uaccess.h+8 -00 replies
7/17ARM: 8795/1: spectre-v1.1: use put_user() for __put_user()arch/arm/include/asm/uaccess.h+9 -60 replies
8/17ARM: 8796/1: spectre-v1,v1.1: provide helpers for address sanitizationarch/arm/include/asm/assembler.h arch/arm/include/asm/uaccess.h arch/arm/lib/copy_from_user.S+38 -50 replies
9/17ARM: 8797/1: spectre-v1.1: harden __copy_to_userarch/arm/lib/copy_to_user.S arch/arm/lib/uaccess_with_memcpy.c+7 -20 replies
10/17ARM: 8810/1: vfp: Fix wrong assignement to ufp_excarch/arm/vfp/vfpmodule.c+1 -10 replies
11/17ARM: make lookup_processor_type() non-__initarch/arm/kernel/head-common.S+3 -30 replies
12/17ARM: split out processor lookuparch/arm/include/asm/cputype.h arch/arm/kernel/setup.c+20 -120 replies
13/17ARM: clean up per-processor check_bugs method callarch/arm/include/asm/proc-fns.h arch/arm/kernel/bugs.c+3 -20 replies
14/17ARM: add PROC_VTABLE and PROC_TABLE macrosarch/arm/include/asm/proc-fns.h arch/arm/kernel/setup.c+27 -160 replies
15/17ARM: spectre-v2: per-CPU vtables to work around big.Little systemsarch/arm/include/asm/proc-fns.h arch/arm/kernel/setup.c arch/arm/kernel/smp.c +1 more+61 -150 replies
16/17ARM: ensure that processor vtables is not lost after bootarch/arm/mm/proc-macros.S+10 -00 replies
17/17ARM: fix the cockup in the previous patcharch/arm/mm/proc-macros.S+2 -20 replies

Reviews trailers per patch

5 of 17 patches have a Reviewed-by or Acked-by.

PatchJulien ThierryKrzysztof Kozlowski
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17R-b
12/17R-b
13/17R-b
14/17R-b
15/17R-b
16/17T-b
17/17

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 4.14 00/17] V4.14 backport of more 32-bit arm spectre patches

From: "David A. Long" <[email protected]>

V4.14 backport of spectre patches from Russell M. King's spectre branch.

Julien Thierry (10):
ARM: 8789/1: signal: copy registers using __copy_to_user()
ARM: 8790/1: signal: always use __copy_to_user to save iwmmxt context
ARM: 8791/1: vfp: use __copy_to_user() when saving VFP state
ARM: 8792/1: oabi-compat: copy oabi events using __copy_to_user()
ARM: 8793/1: signal: replace __put_user_error with __put_user
ARM: 8794/1: uaccess: Prevent speculative use of the current
addr_limit
ARM: 8795/1: spectre-v1.1: use put_user() for __put_user()
ARM: 8796/1: spectre-v1,v1.1: provide helpers for address sanitization
ARM: 8797/1: spectre-v1.1: harden __copy_to_user
ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc

Russell King (7):
ARM: make lookup_processor_type() non-__init
ARM: split out processor lookup
ARM: clean up per-processor check_bugs method call
ARM: add PROC_VTABLE and PROC_TABLE macros
ARM: spectre-v2: per-CPU vtables to work around big.Little systems
ARM: ensure that processor vtables is not lost after boot
ARM: fix the cockup in the previous patch

 arch/arm/include/asm/assembler.h   | 11 ++++
 arch/arm/include/asm/cputype.h     |  1 +
 arch/arm/include/asm/proc-fns.h    | 61 ++++++++++++++++++-----
 arch/arm/include/asm/thread_info.h |  4 +-
 arch/arm/include/asm/uaccess.h     | 49 +++++++++++++++---
 arch/arm/kernel/bugs.c             |  4 +-
 arch/arm/kernel/head-common.S      |  6 +--
 arch/arm/kernel/setup.c            | 40 +++++++++------
 arch/arm/kernel/signal.c           | 80 ++++++++++++++++--------------
 arch/arm/kernel/smp.c              | 31 ++++++++++++
 arch/arm/kernel/sys_oabi-compat.c  |  8 ++-
 arch/arm/lib/copy_from_user.S      |  6 +--
 arch/arm/lib/copy_to_user.S        |  6 ++-
 arch/arm/lib/uaccess_with_memcpy.c |  3 +-
 arch/arm/mm/proc-macros.S          | 10 ++++
 arch/arm/mm/proc-v7-bugs.c         | 17 +------
 arch/arm/vfp/vfpmodule.c           | 20 +++-----
 17 files changed, 245 insertions(+), 112 deletions(-)
Signature · 1 line
2.17.1