linux-brain/arch/arm
Christian Brauner d68dbb0c9a
arch: handle arches who do not yet define clone3
This cleanly handles arches who do not yet define clone3.

clone3() was initially placed under __ARCH_WANT_SYS_CLONE under the
assumption that this would cleanly handle all architectures. It does
not.
Architectures such as nios2 or h8300 simply take the asm-generic syscall
definitions and generate their syscall table from it. Since they don't
define __ARCH_WANT_SYS_CLONE the build would fail complaining about
sys_clone3 missing. The reason this doesn't happen for legacy clone is
that nios2 and h8300 provide assembly stubs for sys_clone. This seems to
be done for architectural reasons.

The build failures for nios2 and h8300 were caught int -next luckily.
The solution is to define __ARCH_WANT_SYS_CLONE3 that architectures can
add. Additionally, we need a cond_syscall(clone3) for architectures such
as nios2 or h8300 that generate their syscall table in the way I
explained above.

Fixes: 8f3220a806 ("arch: wire-up clone3() syscall")
Signed-off-by: Christian Brauner <christian@brauner.io>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Kees Cook <keescook@chromium.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Adrian Reber <adrian@lisas.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: linux-api@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: x86@kernel.org
2019-06-21 01:54:53 +02:00
..
boot Merge tag 'omap-for-v5.1/fixes-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/late 2019-05-16 10:53:18 -07:00
common treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
configs ARM: SoC: late updates 2019-05-19 10:16:39 -07:00
crypto crypto: shash - remove shash_desc::flags 2019-04-25 15:38:12 +08:00
include arch: handle arches who do not yet define clone3 2019-06-21 01:54:53 +02:00
kernel More power management updates for 5.2-rc1 2019-05-15 08:46:44 -07:00
kvm Make anon_inodes unconditional 2019-04-19 14:03:11 +02:00
lib
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2019-05-19 11:11:20 -07:00
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-cns3xxx
mach-davinci One more patch to remove io.h from clk-provider.h. We used to need this 2019-05-16 19:05:35 -07:00
mach-digicolor
mach-dove clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
mach-ebsa110
mach-efm32
mach-ep93xx ARM: SoC platform updates 2019-05-16 08:31:32 -07:00
mach-exynos
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-imx ARM: SoC platform updates 2019-05-16 08:31:32 -07:00
mach-integrator treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-iop13xx treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-iop32x
mach-iop33x
mach-ixp4xx ARM: ixp4xx: Remove duplicated include from common.c 2019-05-16 10:53:15 -07:00
mach-keystone
mach-ks8695 treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-lpc18xx
mach-lpc32xx ARM: lpc32xx: use SPDX license identifier 2019-04-19 22:59:30 +03:00
mach-mediatek clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
mach-meson
mach-milbeaut
mach-mmp
mach-moxart
mach-mv78xx0 clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
mach-mvebu Merge tag 'mvebu-arm-5.2-1' of git://git.infradead.org/linux-mvebu into arm/late 2019-05-16 10:53:23 -07:00
mach-mxs
mach-netx
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 Merge tag 'omap-for-v5.1/fixes-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/late 2019-05-16 10:53:18 -07:00
mach-omap2 ARM: SoC-related driver updates 2019-05-16 09:19:14 -07:00
mach-orion5x clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
mach-oxnas
mach-picoxcell
mach-prima2 treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-pxa treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-qcom
mach-rda
mach-realview
mach-rockchip One more patch to remove io.h from clk-provider.h. We used to need this 2019-05-16 19:05:35 -07:00
mach-rpc
mach-s3c24xx treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-s3c64xx ARM: s3c64xx: Tidy up handling of regulator GPIO lookups 2019-04-14 12:53:03 +02:00
mach-s5pv210
mach-sa1100 treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-shmobile
mach-socfpga
mach-spear
mach-sti
mach-stm32 ARM: stm32: add AMBA support for stm32 family 2019-04-28 23:01:47 -07:00
mach-sunxi
mach-tango
mach-tegra ARM: SoC-related driver updates 2019-05-16 09:19:14 -07:00
mach-u300 ARM: u300: regulator: add MODULE_LICENSE() 2019-04-28 23:10:36 -07:00
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress
mach-vt8500
mach-w90x900 treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-zx
mach-zynq clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
mm ARM development updates: 2019-05-16 09:41:54 -07:00
net
nwfpe
oprofile
plat-iop
plat-omap Remove MODULE_ALIAS() calls that take undefined macro 2019-05-07 21:50:24 +09:00
plat-orion
plat-pxa ARM: pxa: ssp: Fix "WARNING: invalid free of devm_ allocated data" 2019-04-14 21:54:50 +02:00
plat-samsung
plat-versatile
probes
tools arch: wire-up clone3() syscall 2019-06-09 09:29:46 +02:00
vdso ARM development updates: 2019-05-16 09:41:54 -07:00
vfp
xen xen/arm: Use p2m entry with lock protection 2019-04-30 11:26:08 -07:00
Kconfig ARM: SoC platform updates 2019-05-16 08:31:32 -07:00
Kconfig-nommu
Kconfig.debug ARM: SoC platform updates 2019-05-16 08:31:32 -07:00
Makefile ARM development updates: 2019-05-16 09:41:54 -07:00