File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ config ARM
4141 select HARDIRQS_SW_RESEND
4242 select HAVE_ARCH_AUDITSYSCALL if (AEABI && !OABI_COMPAT)
4343 select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6
44- select HAVE_ARCH_HARDENED_USERCOPY
4544 select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU
4645 select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU
4746 select HAVE_ARCH_MMAP_RND_BITS if MMU
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ config ARM64
6060 select HAVE_ALIGNED_STRUCT_PAGE if SLUB
6161 select HAVE_ARCH_AUDITSYSCALL
6262 select HAVE_ARCH_BITREVERSE
63- select HAVE_ARCH_HARDENED_USERCOPY
6463 select HAVE_ARCH_HUGE_VMAP
6564 select HAVE_ARCH_JUMP_LABEL
6665 select HAVE_ARCH_KASAN if SPARSEMEM_VMEMMAP && !(ARM64_16K_PAGES && ARM64_VA_BITS_48)
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ config IA64
5252 select MODULES_USE_ELF_RELA
5353 select ARCH_USE_CMPXCHG_LOCKREF
5454 select HAVE_ARCH_AUDITSYSCALL
55- select HAVE_ARCH_HARDENED_USERCOPY
5655 default y
5756 help
5857 The Itanium Processor Family is Intel's 64-bit successor to
Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ config MIPS
6868 select HANDLE_DOMAIN_IRQ
6969 select HAVE_EXIT_THREAD
7070 select HAVE_REGS_AND_STACK_ACCESS_API
71- select HAVE_ARCH_HARDENED_USERCOPY
7271
7372menu "Machine selection"
7473
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ config PARISC
2626 select SYSCTL_ARCH_UNALIGN_ALLOW
2727 select SYSCTL_EXCEPTION_TRACE
2828 select HAVE_MOD_ARCH_SPECIFIC
29- select HAVE_ARCH_HARDENED_USERCOPY
3029 select VIRT_TO_BUS
3130 select MODULES_USE_ELF_RELA
3231 select CLONE_BACKWARDS
Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ config PPC
117117 select GENERIC_STRNLEN_USER
118118 select GENERIC_TIME_VSYSCALL_OLD
119119 select HAVE_ARCH_AUDITSYSCALL
120- select HAVE_ARCH_HARDENED_USERCOPY
121120 select HAVE_ARCH_JUMP_LABEL
122121 select HAVE_ARCH_KGDB
123122 select HAVE_ARCH_SECCOMP_FILTER
Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ config S390
124124 select HAVE_ALIGNED_STRUCT_PAGE if SLUB
125125 select HAVE_ARCH_AUDITSYSCALL
126126 select HAVE_ARCH_EARLY_PFN_TO_NID
127- select HAVE_ARCH_HARDENED_USERCOPY
128127 select HAVE_ARCH_JUMP_LABEL
129128 select CPU_NO_EFFICIENT_FFS if !HAVE_MARCH_Z9_109_FEATURES
130129 select HAVE_ARCH_SECCOMP_FILTER
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ config SPARC
4242 select OLD_SIGSUSPEND
4343 select ARCH_HAS_SG_CHAIN
4444 select CPU_NO_EFFICIENT_FFS
45- select HAVE_ARCH_HARDENED_USERCOPY
4645 select PROVE_LOCKING_SMALL if PROVE_LOCKING
4746 select ARCH_WANT_RELAX_ORDER
4847
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ config X86
9898 select HAVE_ACPI_APEI_NMI if ACPI
9999 select HAVE_ALIGNED_STRUCT_PAGE if SLUB
100100 select HAVE_ARCH_AUDITSYSCALL
101- select HAVE_ARCH_HARDENED_USERCOPY
102101 select HAVE_ARCH_HUGE_VMAP if X86_64 || X86_PAE
103102 select HAVE_ARCH_JUMP_LABEL
104103 select HAVE_ARCH_KASAN if X86_64 && SPARSEMEM_VMEMMAP
Original file line number Diff line number Diff line change @@ -125,17 +125,8 @@ config HAVE_HARDENED_USERCOPY_ALLOCATOR
125125 validating memory ranges against heap object sizes in
126126 support of CONFIG_HARDENED_USERCOPY.
127127
128- config HAVE_ARCH_HARDENED_USERCOPY
129- bool
130- help
131- The architecture supports CONFIG_HARDENED_USERCOPY by
132- calling check_object_size() just before performing the
133- userspace copies in the low level implementation of
134- copy_to_user() and copy_from_user().
135-
136128config HARDENED_USERCOPY
137129 bool "Harden memory copies between kernel and userspace"
138- depends on HAVE_ARCH_HARDENED_USERCOPY
139130 depends on HAVE_HARDENED_USERCOPY_ALLOCATOR
140131 select BUG
141132 help
You can’t perform that action at this time.
0 commit comments