[GIT PULL] asm-generic changes for 5.15

From: Arnd Bergmann
Date: Wed Sep 01 2021 - 15:53:55 EST


The following changes since commit 2734d6c1b1a089fb593ef6a23d4b70903526fe0c:

Linux 5.14-rc2 (2021-07-18 14:13:49 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git
tags/asm-generic-5.15

for you to fetch changes up to 8f76f9c46952659dd925c21c3f62a0d05a3f3e71:

bitops/non-atomic: make @nr unsigned to avoid any DIV (2021-08-14
13:07:42 +0200)

----------------------------------------------------------------
asm-generic changes for 5.15

The main content for 5.15 is a series that cleans up the handling of
strncpy_from_user() and strnlen_user(), removing a lot of slightly
incorrect versions of these in favor of the lib/strn*.c helpers
that implement these correctly and more efficiently.

The only architectures that retain a private version now are
mips, ia64, um and parisc. I had offered to convert those at all,
but Thomas Bogendoerfer wanted to keep the mips version for the
moment until he had a chance to do regression testing.

The branch also contains two patches for bitops and for ffs().

Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

----------------------------------------------------------------
Arnd Bergmann (10):
asm-generic/uaccess.h: remove __strncpy_from_user/__strnlen_user
h8300: remove stale strncpy_from_user
hexagon: use generic strncpy/strnlen from_user
arc: use generic strncpy/strnlen from_user
csky: use generic strncpy/strnlen from_user
microblaze: use generic strncpy/strnlen from_user
asm-generic: uaccess: remove inline strncpy_from_user/strnlen_user
asm-generic: remove extra strn{cpy_from,len}_user declarations
asm-generic: reverse GENERIC_{STRNCPY_FROM,STRNLEN}_USER symbols
Merge branch 'asm-generic-uaccess-7' of
git://git.kernel.org/.../arnd/asm-generic into asm-generic

Geert Uytterhoeven (1):
asm-generic: ffs: Drop bogus reference to ffz location

Heiko Carstens (1):
s390: use generic strncpy/strnlen from_user

Vineet Gupta (1):
bitops/non-atomic: make @nr unsigned to avoid any DIV

arch/alpha/Kconfig | 2 -
arch/arc/include/asm/uaccess.h | 72 -----------------
arch/arc/mm/extable.c | 12 ---
arch/arm/Kconfig | 2 -
arch/arm64/Kconfig | 2 -
arch/csky/include/asm/uaccess.h | 6 --
arch/csky/lib/usercopy.c | 102 ------------------------
arch/h8300/kernel/h8300_ksyms.c | 2 -
arch/h8300/lib/Makefile | 2 +-
arch/h8300/lib/strncpy.S | 35 ---------
arch/hexagon/include/asm/uaccess.h | 31 --------
arch/hexagon/kernel/hexagon_ksyms.c | 1 -
arch/hexagon/mm/Makefile | 2 +-
arch/hexagon/mm/strnlen_user.S | 126 ------------------------------
arch/ia64/Kconfig | 2 +
arch/m68k/Kconfig | 2 -
arch/microblaze/include/asm/uaccess.h | 21 +----
arch/microblaze/kernel/microblaze_ksyms.c | 1 -
arch/microblaze/lib/uaccess_old.S | 90 ---------------------
arch/mips/Kconfig | 2 +
arch/nds32/Kconfig | 2 -
arch/nios2/Kconfig | 2 -
arch/openrisc/Kconfig | 2 -
arch/parisc/Kconfig | 2 +-
arch/powerpc/Kconfig | 2 -
arch/riscv/Kconfig | 2 -
arch/s390/include/asm/uaccess.h | 18 +----
arch/s390/lib/uaccess.c | 52 ------------
arch/sh/Kconfig | 2 -
arch/sparc/Kconfig | 2 -
arch/um/Kconfig | 2 +
arch/um/include/asm/uaccess.h | 5 +-
arch/um/kernel/skas/uaccess.c | 14 +++-
arch/x86/Kconfig | 2 -
arch/xtensa/Kconfig | 3 +-
arch/xtensa/include/asm/uaccess.h | 3 +-
arch/xtensa/kernel/xtensa_ksyms.c | 2 +-
include/asm-generic/bitops/builtin-ffs.h | 2 +-
include/asm-generic/bitops/ffs.h | 2 +-
include/asm-generic/bitops/non-atomic.h | 14 ++--
include/asm-generic/uaccess.h | 53 +++----------
lib/Kconfig | 10 ++-
42 files changed, 56 insertions(+), 657 deletions(-)
delete mode 100644 arch/h8300/lib/strncpy.S
delete mode 100644 arch/hexagon/mm/strnlen_user.S