UPSTREAM: Make anon_inodes unconditional

Make the anon_inodes facility unconditional so that it can be used by core
VFS code.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

(cherry picked from commit dadd2299ab61fc2b55b95b7b3a8f674cdd3b69c9)

Bug: 135608568
Test: test program using syscall(__NR_sys_pidfd_open,..) and poll()
Change-Id: I2f97bda4f360d8d05bbb603de839717b3d8067ae
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
This commit is contained in:
David Howells 2018-11-05 17:40:31 +00:00 committed by Suren Baghdasaryan
parent 68defbc4c8
commit 1999644115
18 changed files with 1 additions and 27 deletions

View file

@ -20,7 +20,6 @@ config KVM
bool "Kernel-based Virtual Machine (KVM) support" bool "Kernel-based Virtual Machine (KVM) support"
depends on MMU && OF depends on MMU && OF
select PREEMPT_NOTIFIERS select PREEMPT_NOTIFIERS
select ANON_INODES
select ARM_GIC select ARM_GIC
select HAVE_KVM_CPU_RELAX_INTERCEPT select HAVE_KVM_CPU_RELAX_INTERCEPT
select HAVE_KVM_ARCH_TLB_FLUSH_ALL select HAVE_KVM_ARCH_TLB_FLUSH_ALL

View file

@ -24,7 +24,6 @@ config KVM
depends on OF depends on OF
select MMU_NOTIFIER select MMU_NOTIFIER
select PREEMPT_NOTIFIERS select PREEMPT_NOTIFIERS
select ANON_INODES
select HAVE_KVM_CPU_RELAX_INTERCEPT select HAVE_KVM_CPU_RELAX_INTERCEPT
select HAVE_KVM_ARCH_TLB_FLUSH_ALL select HAVE_KVM_ARCH_TLB_FLUSH_ALL
select KVM_MMIO select KVM_MMIO

View file

@ -19,7 +19,6 @@ config KVM
depends on HAVE_KVM depends on HAVE_KVM
select EXPORT_UASM select EXPORT_UASM
select PREEMPT_NOTIFIERS select PREEMPT_NOTIFIERS
select ANON_INODES
select KVM_MMIO select KVM_MMIO
select SRCU select SRCU
---help--- ---help---

View file

@ -19,7 +19,6 @@ if VIRTUALIZATION
config KVM config KVM
bool bool
select PREEMPT_NOTIFIERS select PREEMPT_NOTIFIERS
select ANON_INODES
select HAVE_KVM_EVENTFD select HAVE_KVM_EVENTFD
select SRCU select SRCU
select KVM_VFIO select KVM_VFIO

View file

@ -20,7 +20,6 @@ config KVM
prompt "Kernel-based Virtual Machine (KVM) support" prompt "Kernel-based Virtual Machine (KVM) support"
depends on HAVE_KVM depends on HAVE_KVM
select PREEMPT_NOTIFIERS select PREEMPT_NOTIFIERS
select ANON_INODES
select HAVE_KVM_CPU_RELAX_INTERCEPT select HAVE_KVM_CPU_RELAX_INTERCEPT
select HAVE_KVM_EVENTFD select HAVE_KVM_EVENTFD
select KVM_ASYNC_PF select KVM_ASYNC_PF

View file

@ -19,7 +19,6 @@ config X86
def_bool y def_bool y
select ACPI_LEGACY_TABLES_LOOKUP if ACPI select ACPI_LEGACY_TABLES_LOOKUP if ACPI
select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
select ANON_INODES
select ARCH_CLOCKSOURCE_DATA select ARCH_CLOCKSOURCE_DATA
select ARCH_DISCARD_MEMBLOCK select ARCH_DISCARD_MEMBLOCK
select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI

View file

@ -26,7 +26,6 @@ config KVM
depends on X86_LOCAL_APIC depends on X86_LOCAL_APIC
select PREEMPT_NOTIFIERS select PREEMPT_NOTIFIERS
select MMU_NOTIFIER select MMU_NOTIFIER
select ANON_INODES
select HAVE_KVM_IRQCHIP select HAVE_KVM_IRQCHIP
select HAVE_KVM_IRQFD select HAVE_KVM_IRQFD
select IRQ_BYPASS_MANAGER select IRQ_BYPASS_MANAGER

View file

@ -246,7 +246,6 @@ source "drivers/base/regmap/Kconfig"
config DMA_SHARED_BUFFER config DMA_SHARED_BUFFER
bool bool
default n default n
select ANON_INODES
help help
This option enables the framework for buffer-sharing between This option enables the framework for buffer-sharing between
multiple drivers. A buffer is associated with a file using driver multiple drivers. A buffer is associated with a file using driver

View file

@ -144,7 +144,6 @@ config TCG_CRB
config TCG_VTPM_PROXY config TCG_VTPM_PROXY
tristate "VTPM Proxy Interface" tristate "VTPM Proxy Interface"
depends on TCG_TPM depends on TCG_TPM
select ANON_INODES
---help--- ---help---
This driver proxies for an emulated TPM (vTPM) running in userspace. This driver proxies for an emulated TPM (vTPM) running in userspace.
A device /dev/vtpmx is provided that creates a device pair A device /dev/vtpmx is provided that creates a device pair

View file

@ -3,7 +3,6 @@ menu "DMABUF options"
config SYNC_FILE config SYNC_FILE
bool "Explicit Synchronization Framework" bool "Explicit Synchronization Framework"
default n default n
select ANON_INODES
select DMA_SHARED_BUFFER select DMA_SHARED_BUFFER
---help--- ---help---
The Sync File Framework adds explicit syncronization via The Sync File Framework adds explicit syncronization via

View file

@ -12,7 +12,6 @@ config ARCH_HAVE_CUSTOM_GPIO_H
menuconfig GPIOLIB menuconfig GPIOLIB
bool "GPIO Support" bool "GPIO Support"
select ANON_INODES
help help
This enables GPIO support through the generic GPIO library. This enables GPIO support through the generic GPIO library.
You only need to enable this, if you also want to enable You only need to enable this, if you also want to enable

View file

@ -4,7 +4,6 @@
menuconfig IIO menuconfig IIO
tristate "Industrial I/O support" tristate "Industrial I/O support"
select ANON_INODES
help help
The industrial I/O subsystem provides a unified framework for The industrial I/O subsystem provides a unified framework for
drivers for many different types of embedded sensors using a drivers for many different types of embedded sensors using a

View file

@ -24,7 +24,6 @@ config INFINIBAND_USER_MAD
config INFINIBAND_USER_ACCESS config INFINIBAND_USER_ACCESS
tristate "InfiniBand userspace access (verbs and CM)" tristate "InfiniBand userspace access (verbs and CM)"
select ANON_INODES
---help--- ---help---
Userspace InfiniBand access support. This enables the Userspace InfiniBand access support. This enables the
kernel side of userspace verbs and the userspace kernel side of userspace verbs and the userspace

View file

@ -24,7 +24,6 @@ menuconfig VFIO
select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM_SMMU || ARM_SMMU_V3) select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM_SMMU || ARM_SMMU_V3)
select VFIO_IOMMU_SPAPR_TCE if (PPC_POWERNV || PPC_PSERIES) select VFIO_IOMMU_SPAPR_TCE if (PPC_POWERNV || PPC_PSERIES)
select VFIO_SPAPR_EEH if (PPC_POWERNV || PPC_PSERIES) select VFIO_SPAPR_EEH if (PPC_POWERNV || PPC_PSERIES)
select ANON_INODES
help help
VFIO provides a framework for secure userspace device drivers. VFIO provides a framework for secure userspace device drivers.
See Documentation/vfio.txt for more details. See Documentation/vfio.txt for more details.

View file

@ -23,7 +23,7 @@ obj-$(CONFIG_PROC_FS) += proc_namespace.o
obj-y += notify/ obj-y += notify/
obj-$(CONFIG_EPOLL) += eventpoll.o obj-$(CONFIG_EPOLL) += eventpoll.o
obj-$(CONFIG_ANON_INODES) += anon_inodes.o obj-y += anon_inodes.o
obj-$(CONFIG_SIGNALFD) += signalfd.o obj-$(CONFIG_SIGNALFD) += signalfd.o
obj-$(CONFIG_TIMERFD) += timerfd.o obj-$(CONFIG_TIMERFD) += timerfd.o
obj-$(CONFIG_EVENTFD) += eventfd.o obj-$(CONFIG_EVENTFD) += eventfd.o

View file

@ -1,7 +1,6 @@
config FANOTIFY config FANOTIFY
bool "Filesystem wide access notification" bool "Filesystem wide access notification"
select FSNOTIFY select FSNOTIFY
select ANON_INODES
default n default n
---help--- ---help---
Say Y here to enable fanotify support. fanotify is a file access Say Y here to enable fanotify support. fanotify is a file access

View file

@ -1,6 +1,5 @@
config INOTIFY_USER config INOTIFY_USER
bool "Inotify support for userspace" bool "Inotify support for userspace"
select ANON_INODES
select FSNOTIFY select FSNOTIFY
default y default y
---help--- ---help---

View file

@ -1523,9 +1523,6 @@ endchoice
config SYSCTL config SYSCTL
bool bool
config ANON_INODES
bool
config HAVE_UID16 config HAVE_UID16
bool bool
@ -1743,14 +1740,12 @@ config HAVE_FUTEX_CMPXCHG
config EPOLL config EPOLL
bool "Enable eventpoll support" if EXPERT bool "Enable eventpoll support" if EXPERT
default y default y
select ANON_INODES
help help
Disabling this option will cause the kernel to be built without Disabling this option will cause the kernel to be built without
support for epoll family of system calls. support for epoll family of system calls.
config SIGNALFD config SIGNALFD
bool "Enable signalfd() system call" if EXPERT bool "Enable signalfd() system call" if EXPERT
select ANON_INODES
default y default y
help help
Enable the signalfd() system call that allows to receive signals Enable the signalfd() system call that allows to receive signals
@ -1760,7 +1755,6 @@ config SIGNALFD
config TIMERFD config TIMERFD
bool "Enable timerfd() system call" if EXPERT bool "Enable timerfd() system call" if EXPERT
select ANON_INODES
default y default y
help help
Enable the timerfd() system call that allows to receive timer Enable the timerfd() system call that allows to receive timer
@ -1770,7 +1764,6 @@ config TIMERFD
config EVENTFD config EVENTFD
bool "Enable eventfd() system call" if EXPERT bool "Enable eventfd() system call" if EXPERT
select ANON_INODES
default y default y
help help
Enable the eventfd() system call that allows to receive both Enable the eventfd() system call that allows to receive both
@ -1781,7 +1774,6 @@ config EVENTFD
# syscall, maps, verifier # syscall, maps, verifier
config BPF_SYSCALL config BPF_SYSCALL
bool "Enable bpf() system call" bool "Enable bpf() system call"
select ANON_INODES
select BPF select BPF
default n default n
help help
@ -1826,7 +1818,6 @@ config ADVISE_SYSCALLS
config USERFAULTFD config USERFAULTFD
bool "Enable userfaultfd() system call" bool "Enable userfaultfd() system call"
select ANON_INODES
depends on MMU depends on MMU
help help
Enable the userfaultfd() system call that allows to intercept and Enable the userfaultfd() system call that allows to intercept and
@ -1878,7 +1869,6 @@ config PERF_EVENTS
bool "Kernel performance events and counters" bool "Kernel performance events and counters"
default y if PROFILING default y if PROFILING
depends on HAVE_PERF_EVENTS depends on HAVE_PERF_EVENTS
select ANON_INODES
select IRQ_WORK select IRQ_WORK
select SRCU select SRCU
help help