Skip to content

Commit 140c818

Browse files
author
Christian Brauner
committed
arch: remove HAVE_COPY_THREAD_TLS
All architectures support copy_thread_tls() now, so remove the legacy copy_thread() function and the HAVE_COPY_THREAD_TLS config option. Everyone uses the same process creation calling convention based on copy_thread_tls() and struct kernel_clone_args. This will make it easier to maintain the core process creation code under kernel/, simplifies the callpaths and makes the identical for all architectures. Cc: [email protected] Acked-by: Thomas Bogendoerfer <[email protected]> Acked-by: Greentime Hu <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 8496da0 commit 140c818

File tree

28 files changed

+1
-55
lines changed

28 files changed

+1
-55
lines changed

arch/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -754,13 +754,6 @@ config ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
754754
depends on MMU
755755
select ARCH_HAS_ELF_RANDOMIZE
756756

757-
config HAVE_COPY_THREAD_TLS
758-
bool
759-
help
760-
Architecture provides copy_thread_tls to accept tls argument via
761-
normal C parameter passing, rather than extracting the syscall
762-
argument from pt_regs.
763-
764757
config HAVE_STACK_VALIDATION
765758
bool
766759
help

arch/alpha/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ config ALPHA
3838
select OLD_SIGSUSPEND
3939
select CPU_NO_EFFICIENT_FFS if !ALPHA_EV67
4040
select MMU_GATHER_NO_RANGE
41-
select HAVE_COPY_THREAD_TLS
4241
help
4342
The Alpha is a 64-bit general-purpose processor designed and
4443
marketed by the Digital Equipment Corporation of blessed memory,

arch/arc/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ config ARC
2929
select GENERIC_SMP_IDLE_THREAD
3030
select HAVE_ARCH_KGDB
3131
select HAVE_ARCH_TRACEHOOK
32-
select HAVE_COPY_THREAD_TLS
3332
select HAVE_DEBUG_STACKOVERFLOW
3433
select HAVE_DEBUG_KMEMLEAK
3534
select HAVE_FUTEX_CMPXCHG if FUTEX

arch/arm/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ config ARM
7272
select HAVE_ARM_SMCCC if CPU_V7
7373
select HAVE_EBPF_JIT if !CPU_ENDIAN_BE32
7474
select HAVE_CONTEXT_TRACKING
75-
select HAVE_COPY_THREAD_TLS
7675
select HAVE_C_RECORDMCOUNT
7776
select HAVE_DEBUG_KMEMLEAK if !XIP_KERNEL
7877
select HAVE_DMA_CONTIGUOUS if MMU

arch/arm64/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ config ARM64
148148
select HAVE_CMPXCHG_DOUBLE
149149
select HAVE_CMPXCHG_LOCAL
150150
select HAVE_CONTEXT_TRACKING
151-
select HAVE_COPY_THREAD_TLS
152151
select HAVE_DEBUG_BUGVERBOSE
153152
select HAVE_DEBUG_KMEMLEAK
154153
select HAVE_DMA_CONTIGUOUS

arch/c6x/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ config C6X
2222
select GENERIC_CLOCKEVENTS
2323
select MODULES_USE_ELF_RELA
2424
select MMU_GATHER_NO_RANGE if MMU
25-
select HAVE_COPY_THREAD_TLS
2625

2726
config MMU
2827
def_bool n

arch/csky/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ config CSKY
3838
select GX6605S_TIMER if CPU_CK610
3939
select HAVE_ARCH_TRACEHOOK
4040
select HAVE_ARCH_AUDITSYSCALL
41-
select HAVE_COPY_THREAD_TLS
4241
select HAVE_DEBUG_BUGVERBOSE
4342
select HAVE_DYNAMIC_FTRACE
4443
select HAVE_DYNAMIC_FTRACE_WITH_REGS

arch/h8300/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ config H8300
2626
select HAVE_ARCH_HASH
2727
select CPU_NO_EFFICIENT_FFS
2828
select UACCESS_MEMCPY
29-
select HAVE_COPY_THREAD_TLS
3029

3130
config CPU_BIG_ENDIAN
3231
def_bool y

arch/hexagon/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ config HEXAGON
3131
select GENERIC_CLOCKEVENTS_BROADCAST
3232
select MODULES_USE_ELF_RELA
3333
select GENERIC_CPU_DEVICES
34-
select HAVE_COPY_THREAD_TLS
3534
help
3635
Qualcomm Hexagon is a processor architecture designed for high
3736
performance and low power across a wide variety of applications.

arch/ia64/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ config IA64
5555
select HAVE_ARCH_AUDITSYSCALL
5656
select NEED_DMA_MAP_STATE
5757
select NEED_SG_DMA_LENGTH
58-
select HAVE_COPY_THREAD_TLS
5958
select NUMA if !FLATMEM
6059
default y
6160
help

0 commit comments

Comments
 (0)