linux-stable/arch/arm
Linus Torvalds d0989d01c6 hardening updates for v6.1-rc1
Various fixes across several hardening areas:
 
 - loadpin: Fix verity target enforcement (Matthias Kaehlcke).
 
 - zero-call-used-regs: Add missing clobbers in paravirt (Bill Wendling).
 
 - CFI: clean up sparc function pointer type mismatches (Bart Van Assche).
 
 - Clang: Adjust compiler flag detection for various Clang changes (Sami
   Tolvanen, Kees Cook).
 
 - fortify: Fix warnings in arch-specific code in sh, ARM, and xen.
 
 Improvements to existing features:
 
 - testing: improve overflow KUnit test, introduce fortify KUnit test,
   add more coverage to LKDTM tests (Bart Van Assche, Kees Cook).
 
 - overflow: Relax overflow type checking for wider utility.
 
 New features:
 
 - string: Introduce strtomem() and strtomem_pad() to fill a gap in
   strncpy() replacement needs.
 
 - um: Enable FORTIFY_SOURCE support.
 
 - fortify: Enable run-time struct member memcpy() overflow warning.
 -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEpcP2jyKd1g9yPm4TiXL039xtwCYFAmM4chcWHGtlZXNjb29r
 QGNocm9taXVtLm9yZwAKCRCJcvTf3G3AJvq1D/9uKU03RozAOnzhi4gcgRnHZSAK
 oOQOkPwnkUgFU0yOnMkNYOZ7njLnM+CjCN3RJ9SSpD2lrQ23PwLeThAuOzy0brPO
 0iAksIztSF3e5tAyFjtFkjswrY8MSv/TkF0WttTOSOj3lCUcwatF0FBkclCOXtwu
 ILXfG7K8E17r/wsUejN+oMAI42ih/YeVQAZpKRymEEJsK+Lly7OT4uu3fdFWVb1P
 M77eRLI2Vg1eSgMVwv6XdwGakpUdwsboK7do0GGX+JOrhayJoCfY2IpwyPz9ciel
 jsp9OQs8NrlPJMa2sQ7LDl+b5EQl/MtggX3JlQEbLs2LV7gDtYgAWNo6vxCT5Lvd
 zB7TZqIR3lrVjbtw4FAKQ+41bS4VOajk2NB3Mkiy5AfivB+6zKF+P56a+xSoNhOl
 iktpjCEP7bp4oxmTMXpOfmywjh/ZsyoMhQ2ABP7S+JZ5rHUndpPAjjuBetIcHxX2
 28Wlr4aFIF9ff9caasg4sMYXcQMGnuLUlUKngceUbd1umZZRNZ1gaIxYpm9poefm
 qd/lvTIvzn9V8IB8wHVmvafbvDbV88A+2bKJdSUDA352Dt9PvqT7yI0dmbMNliGL
 os+iLPW6Y6x38BxhXax0HR9FEhO3Eq7kLdNdc4J29NvISg8HHaifwNrG41lNwaWL
 cuc6IAjLxiRk3NsUpg==
 =HZ6+
 -----END PGP SIGNATURE-----

Merge tag 'hardening-v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull kernel hardening updates from Kees Cook:
 "Most of the collected changes here are fixes across the tree for
  various hardening features (details noted below).

  The most notable new feature here is the addition of the memcpy()
  overflow warning (under CONFIG_FORTIFY_SOURCE), which is the next step
  on the path to killing the common class of "trivially detectable"
  buffer overflow conditions (i.e. on arrays with sizes known at compile
  time) that have resulted in many exploitable vulnerabilities over the
  years (e.g. BleedingTooth).

  This feature is expected to still have some undiscovered false
  positives. It's been in -next for a full development cycle and all the
  reported false positives have been fixed in their respective trees.
  All the known-bad code patterns we could find with Coccinelle are also
  either fixed in their respective trees or in flight.

  The commit message in commit 54d9469bc5 ("fortify: Add run-time WARN
  for cross-field memcpy()") for the feature has extensive details, but
  I'll repeat here that this is a warning _only_, and is not intended to
  actually block overflows (yet). The many patches fixing array sizes
  and struct members have been landing for several years now, and we're
  finally able to turn this on to find any remaining stragglers.

  Summary:

  Various fixes across several hardening areas:

   - loadpin: Fix verity target enforcement (Matthias Kaehlcke).

   - zero-call-used-regs: Add missing clobbers in paravirt (Bill
     Wendling).

   - CFI: clean up sparc function pointer type mismatches (Bart Van
     Assche).

   - Clang: Adjust compiler flag detection for various Clang changes
     (Sami Tolvanen, Kees Cook).

   - fortify: Fix warnings in arch-specific code in sh, ARM, and xen.

  Improvements to existing features:

   - testing: improve overflow KUnit test, introduce fortify KUnit test,
     add more coverage to LKDTM tests (Bart Van Assche, Kees Cook).

   - overflow: Relax overflow type checking for wider utility.

  New features:

   - string: Introduce strtomem() and strtomem_pad() to fill a gap in
     strncpy() replacement needs.

   - um: Enable FORTIFY_SOURCE support.

   - fortify: Enable run-time struct member memcpy() overflow warning"

* tag 'hardening-v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: (27 commits)
  Makefile.extrawarn: Move -Wcast-function-type-strict to W=1
  hardening: Remove Clang's enable flag for -ftrivial-auto-var-init=zero
  sparc: Unbreak the build
  x86/paravirt: add extra clobbers with ZERO_CALL_USED_REGS enabled
  x86/paravirt: clean up typos and grammaros
  fortify: Convert to struct vs member helpers
  fortify: Explicitly check bounds are compile-time constants
  x86/entry: Work around Clang __bdos() bug
  ARM: decompressor: Include .data.rel.ro.local
  fortify: Adjust KUnit test for modular build
  sh: machvec: Use char[] for section boundaries
  kunit/memcpy: Avoid pathological compile-time string size
  lib: Improve the is_signed_type() kunit test
  LoadPin: Require file with verity root digests to have a header
  dm: verity-loadpin: Only trust verity targets with enforcement
  LoadPin: Fix Kconfig doc about format of file with verity digests
  um: Enable FORTIFY_SOURCE
  lkdtm: Update tests for memcpy() run-time warnings
  fortify: Add run-time WARN for cross-field memcpy()
  fortify: Use SIZE_MAX instead of (size_t)-1
  ...
2022-10-03 17:24:22 -07:00
..
boot hardening updates for v6.1-rc1 2022-10-03 17:24:22 -07:00
common ARM/dma-mapping: remove dmabounce 2022-07-07 18:18:56 +02:00
configs execve updates for v6.1-rc1 2022-10-03 16:56:40 -07:00
crypto
include Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
kernel asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00
lib - The usual batches of cleanups from Baoquan He, Muchun Song, Miaohe 2022-08-05 16:32:45 -07:00
mach-actions
mach-airoha
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: fix DDR recalibration when resuming from backup and self-refresh 2022-08-31 10:28:18 +03:00
mach-axxia
mach-bcm SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: add CONFIG_UNUSED_BOARD_FILES dependency 2022-07-22 14:18:52 +02:00
mach-davinci SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-digicolor
mach-dove SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-ep93xx ARM: ep93xx: mark most board files as unused 2022-07-22 13:11:21 +02:00
mach-exynos
mach-footbridge dma-mapping updates 2022-08-06 10:56:45 -07:00
mach-gemini
mach-highbank ARM/dma-mapping: use dma-direct unconditionally 2022-07-07 18:18:57 +02:00
mach-hisi genirq: GENERIC_IRQ_EFFECTIVE_AFF_MASK depends on SMP 2022-07-07 09:38:04 +01:00
mach-hpe
mach-imx RCU pull request for v5.20 (or whatever) 2022-08-02 19:12:45 -07:00
mach-iop32x ARM: iop32x: mark as unused 2022-07-22 14:18:52 +02:00
mach-ixp4xx ARM: ixp4xx: fix typos in comments 2022-08-29 11:06:16 +02:00
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp ARM: boardfile deprecation for 6.0 2022-08-02 08:35:17 -07:00
mach-moxart
mach-mstar
mach-mv78xx0 SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-mvebu dma-mapping updates 2022-08-06 10:56:45 -07:00
mach-mxs
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-omap2 SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-orion5x SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-oxnas
mach-pxa - Core Frameworks 2022-08-06 10:25:16 -07:00
mach-qcom ARM: mach-qcom: Add support for MSM8909 2022-07-18 18:06:08 -05:00
mach-rda
mach-realtek
mach-rockchip
mach-rpc
mach-s3c ARM: boardfile deprecation for 6.0 2022-08-02 08:35:17 -07:00
mach-s5pv210
mach-sa1100 ARM: sa1100: mark most boards as unused 2022-07-22 14:18:39 +02:00
mach-shmobile
mach-socfpga
mach-spear SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-sti
mach-stm32
mach-sunplus ARM: sunplus: fix serial console kconfig and build problems 2022-09-23 14:20:00 +02:00
mach-sunxi
mach-tegra
mach-uniphier
mach-ux500
mach-versatile
mach-vt8500
mach-zynq
mm ARM: 9247/1: mm: set readonly for MT_MEMORY_RO with ARM_LPAE 2022-09-22 08:29:04 +01:00
net
nwfpe
plat-orion
probes ARM: 9214/1: alignment: advance IT state after emulating Thumb instruction 2022-07-06 22:44:49 +01:00
tools
vdso
vfp
xen xen: don't require virtio with grants for non-PV guests 2022-08-01 07:43:03 +02:00
Kbuild
Kconfig dma-mapping updates 2022-08-06 10:56:45 -07:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug ARM: debug: bcmbca: Replace ARCH_BCM_63XX with ARCH_BCMBCA 2022-07-08 14:08:51 -07:00
Makefile ARM: sunplus: Add initial support for Sunplus SP7021 SoC 2022-07-08 14:24:14 +02:00