Skip to content

Commit f56e65d

Browse files
committed
Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull initial set_fs() removal from Al Viro: "Christoph's set_fs base series + fixups" * 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fs: Allow a NULL pos pointer to __kernel_read fs: Allow a NULL pos pointer to __kernel_write powerpc: remove address space overrides using set_fs() powerpc: use non-set_fs based maccess routines x86: remove address space overrides using set_fs() x86: make TASK_SIZE_MAX usable from assembly code x86: move PAGE_OFFSET, TASK_SIZE & friends to page_{32,64}_types.h lkdtm: remove set_fs-based tests test_bitmap: remove user bitmap tests uaccess: add infrastructure for kernel builds with set_fs() fs: don't allow splice read/write without explicit ops fs: don't allow kernel reads and writes without iter ops sysctl: Convert to iter interfaces proc: add a read_iter method to proc proc_ops proc: cleanup the compat vs no compat file ops proc: remove a level of indentation in proc_get_inode
2 parents 24717cf + 7b84b66 commit f56e65d

52 files changed

Lines changed: 346 additions & 495 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ config KEXEC_ELF
2424
config HAVE_IMA_KEXEC
2525
bool
2626

27+
config SET_FS
28+
bool
29+
2730
config HOTPLUG_SMT
2831
bool
2932

‎arch/alpha/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ config ALPHA
3939
select OLD_SIGSUSPEND
4040
select CPU_NO_EFFICIENT_FFS if !ALPHA_EV67
4141
select MMU_GATHER_NO_RANGE
42+
select SET_FS
4243
help
4344
The Alpha is a 64-bit general-purpose processor designed and
4445
marketed by the Digital Equipment Corporation of blessed memory,

‎arch/arc/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ config ARC
4848
select PCI_SYSCALL if PCI
4949
select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING
5050
select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32
51+
select SET_FS
5152

5253
config ARCH_HAS_CACHE_LINE_SIZE
5354
def_bool y

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ config ARM
120120
select PCI_SYSCALL if PCI
121121
select PERF_USE_VMALLOC
122122
select RTC_LIB
123+
select SET_FS
123124
select SYS_SUPPORTS_APM_EMULATION
124125
# Above selects are sorted alphabetically; please add new ones
125126
# according to that. Thanks.

‎arch/arm64/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ config ARM64
194194
select PCI_SYSCALL if PCI
195195
select POWER_RESET
196196
select POWER_SUPPLY
197+
select SET_FS
197198
select SPARSE_IRQ
198199
select SWIOTLB
199200
select SYSCTL_EXCEPTION_TRACE

‎arch/c6x/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ config C6X
2222
select GENERIC_CLOCKEVENTS
2323
select MODULES_USE_ELF_RELA
2424
select MMU_GATHER_NO_RANGE if MMU
25+
select SET_FS
2526

2627
config MMU
2728
def_bool n

‎arch/csky/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ config CSKY
7878
select PCI_DOMAINS_GENERIC if PCI
7979
select PCI_SYSCALL if PCI
8080
select PCI_MSI if PCI
81+
select SET_FS
8182

8283
config LOCKDEP_SUPPORT
8384
def_bool y

‎arch/h8300/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ config H8300
2525
select HAVE_ARCH_KGDB
2626
select HAVE_ARCH_HASH
2727
select CPU_NO_EFFICIENT_FFS
28+
select SET_FS
2829
select UACCESS_MEMCPY
2930

3031
config CPU_BIG_ENDIAN

‎arch/hexagon/Kconfig‎

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

‎arch/ia64/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ config IA64
5656
select NEED_SG_DMA_LENGTH
5757
select NUMA if !FLATMEM
5858
select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
59+
select SET_FS
5960
default y
6061
help
6162
The Itanium Processor Family is Intel's 64-bit successor to

0 commit comments

Comments
 (0)