linux/drivers
Christian Brauner dfddd4455e UPSTREAM: binderfs: make each binderfs mount a new instance
When currently mounting binderfs in the same ipc namespace twice:

mount -t binder binder /A
mount -t binder binder /B

then the binderfs instances mounted on /A and /B will be the same, i.e.
they will have the same superblock. This was the first approach that seemed
reasonable. However, this leads to some problems and inconsistencies:

/* private binderfs instance in same ipc namespace */
There is no way for a user to request a private binderfs instance in the
same ipc namespace.
This request has been made in a private mail to me by two independent
people.

/* bind-mounts */
If users want the same binderfs instance to appear in multiple places they
can use bind mounts. So there is no value in having a request for a new
binderfs mount giving them the same instance.

/* unexpected behavior */
It's surprising that request to mount binderfs is not giving the user a new
instance like tmpfs, devpts, ramfs, and others do.

/* past mistakes */
Other pseudo-filesystems once made the same mistakes of giving back the
same superblock when actually requesting a new mount (cf. devpts's
deprecated "newinstance" option).
We should not make the same mistake. Once we've committed to always giving
back the same superblock in the same IPC namespace with the next kernel
release we will not be able to make that change so better to do it now.

/* kdbusfs */
It was pointed out to me that kdbusfs - which is conceptually closely
related to binderfs - also allowed users to get a private kdbusfs instance
in the same IPC namespace by making each mount of kdbusfs a separate
instance. I think that makes a lot of sense.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 136497735
(cherry picked from commit b6c770d7c9)
Change-Id: I7e341524f625802429f89966d9edf9cab9ca59f3
Signed-off-by: Hridya Valsaraju <hridya@google.com>
2019-12-08 21:42:05 -08:00
..
accessibility
acpi This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
amba
android UPSTREAM: binderfs: make each binderfs mount a new instance 2019-12-08 21:42:05 -08:00
ata ata: ahci: mvebu: do Armada 38x configuration only on relevant SoCs 2019-12-05 09:21:06 +01:00
atm atm: zatm: Fix empty body Clang warnings 2019-12-01 09:16:41 +01:00
auxdisplay
base This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
bcma
block This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
bluetooth Bluetooth: hci_bcm: Handle specific unknown packets after firmware loading 2019-12-05 09:20:39 +01:00
bus bus: ti-sysc: Check for no-reset and no-idle flags at the child level 2019-12-05 09:20:00 +01:00
cdrom cdrom: don't attempt to fiddle with cdo->capability 2019-12-01 09:16:20 +01:00
char This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
clk clk: stm32mp1: parent clocks update 2019-12-05 09:21:35 +01:00
clocksource clocksource/drivers/fttmr010: Fix invalid interrupt register access 2019-12-05 09:20:38 +01:00
connector
cpufreq This is the 4.19.87 stable release 2019-12-01 09:53:43 +01:00
cpuidle This is the 4.19.86 stable release 2019-11-25 10:00:06 +01:00
crypto crypto: stm32/hash - Fix hmac issue more than 256 bytes 2019-12-05 09:21:34 +01:00
dax
dca
devfreq PM / devfreq: Fix kernel oops on governor module load 2019-12-01 09:17:46 +01:00
dio
dma dmaengine: stm32-dma: check whether length is aligned on FIFO threshold 2019-12-05 09:21:35 +01:00
dma-buf This is the 4.19.78 stable release 2019-10-07 19:17:35 +02:00
edac EDAC, thunderx: Fix memory leak in thunderx_l2c_threaded_isr() 2019-12-01 09:16:18 +01:00
eisa
energy_model
extcon extcon: cht-wc: Return from default case to avoid warnings 2019-11-20 18:45:26 +01:00
firewire
firmware This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
fmc
fpga
fsi
gnss
gpio This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
gpu This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
hid HID: core: check whether Usage Page item is after Usage ID items 2019-12-05 09:21:34 +01:00
hsi
hv vmbus: keep pointer to ring buffer page 2019-11-20 18:47:31 +01:00
hwmon hwmon: (npcm-750-pwm-fan) Change initial pwm target to 255 2019-11-24 08:21:01 +01:00
hwspinlock
hwtracing BACKPORT: coresight: etm4x: Save/restore state across CPU low power states 2019-12-03 13:44:31 -08:00
i2c UPSTREAM: i2c: of: Populate fwnode in of_i2c_get_board_info() 2019-12-03 16:08:50 -08:00
ide
idle
iio This is the 4.19.85 stable release 2019-11-20 20:43:17 +01:00
infiniband This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
input parisc: Fix HP SDC hpa address output 2019-12-05 09:19:57 +01:00
iommu iommu/amd: Fix NULL dereference bug in match_hid_uid 2019-12-05 09:21:18 +01:00
ipack
irqchip ANDROID: irqchip/gic-v3: rename gic_of_init to work around a ThinLTO+CFI bug 2019-11-27 12:37:20 -08:00
isdn mISDN: Fix type of switch control variable in ctrl_teimanager 2019-12-01 09:16:55 +01:00
leds led: triggers: Fix a memory leak bug 2019-10-05 13:09:45 +02:00
lightnvm lightnvm: pblk: consider max hw sectors supported for max_write_pgs 2019-11-24 08:20:52 +01:00
macintosh macintosh/windfarm_smu_sat: Fix debug output 2019-12-01 09:16:37 +01:00
mailbox mailbox: mailbox-test: fix null pointer if no mmio 2019-12-05 09:21:35 +01:00
mcb
md This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
media This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
memory memory: omap-gpmc: Get the header of the enum 2019-12-05 09:20:29 +01:00
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-29 09:20:07 +01:00
message
mfd mfd: max8997: Enale irq-wakeup unconditionally 2019-12-01 09:16:57 +01:00
misc This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
mmc This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
mtd mtd: spi-nor: cast to u64 to avoid uint overflows 2019-12-05 09:21:33 +01:00
mux
net This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
nfc nfc: port100: handle command failure cleanly 2019-12-01 09:17:38 +01:00
ntb ntb: intel: fix return value for ndev_vec_mask() 2019-12-01 09:17:13 +01:00
nubus
nvdimm libnvdimm/region: Initialize bad block for volatile namespaces 2019-10-11 18:21:20 +02:00
nvme nvme: fix kernel paging oops 2019-12-05 09:20:08 +01:00
nvmem nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-20 18:46:31 +01:00
of UPSTREAM: of: property: Add device link support for interrupt-parent, dmas and -gpio(s) 2019-12-03 16:08:50 -08:00
opp This is the 4.19.86 stable release 2019-11-25 10:00:06 +01:00
oprofile
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2019-10-05 13:10:04 +02:00
parport
pci PCI/MSI: Return -ENOSPC from pci_alloc_irq_vectors_affinity() 2019-12-05 09:21:06 +01:00
pcmcia
perf
phy phy: lantiq: Fix compile warning 2019-11-20 18:47:35 +01:00
pinctrl This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
platform platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size 2019-12-05 09:21:35 +01:00
pnp
power This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
powercap
pps
ps3
ptp
pwm pwm: Clear chip_data in pwm_put() 2019-12-05 09:21:29 +01:00
rapidio
ras
regulator regulator: tps65910: fix a missing check of return value 2019-12-05 09:20:46 +01:00
remoteproc remoteproc: qcom: q6v5: Fix a race condition on fatal crash 2019-11-24 08:20:29 +01:00
reset reset: Fix memory leak in reset_control_array_put() 2019-12-05 09:19:36 +01:00
rpmsg rpmsg: glink: smem: Support rx peak for size less than 4 bytes 2019-11-24 08:20:05 +01:00
rtc rtc: s35390a: Change buf's type to u8 in s35390a_init 2019-12-01 09:16:52 +01:00
s390 s390/zcrypt: make sysfs reset attribute trigger queue reset 2019-12-05 09:20:04 +01:00
sbus
scsi This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
sfi
sh
siox
slimbus silmbus: ngd: register controller after power up. 2019-11-20 18:47:30 +01:00
sn
soc This is the 4.19.87 stable release 2019-12-01 09:53:43 +01:00
soundwire soundwire: intel: Fix uninitialized adev deref 2019-11-20 18:45:22 +01:00
spi This is the 4.19.87 stable release 2019-12-01 09:53:43 +01:00
spmi
ssb
staging staging: rtl8723bs: Add 024c:0525 to the list of SDIO device-ids 2019-12-05 09:21:26 +01:00
target scsi: target/tcmu: Fix queue_cmd_ring() declaration 2019-12-05 09:19:47 +01:00
tc
tee This is the 4.19.86 stable release 2019-11-25 10:00:06 +01:00
thermal This is the 4.19.87 stable release 2019-12-01 09:53:43 +01:00
thunderbolt thunderbolt: Power cycle the router if NVM authentication fails 2019-12-05 09:21:27 +01:00
tty serial: 8250: Fix serial8250 initialization crash 2019-12-05 09:21:06 +01:00
uio vmbus: keep pointer to ring buffer page 2019-11-20 18:47:31 +01:00
usb This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
uwb
vfio This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
vhost vhost/vsock: split packets to send using multiple buffers 2019-12-01 09:16:08 +01:00
video backlight: lm3639: Unconditionally call led_classdev_unregister 2019-11-24 08:20:45 +01:00
virt virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr 2019-11-06 13:06:04 +01:00
virtio This is the 4.19.87 stable release 2019-12-01 09:53:43 +01:00
visorbus
vlynq
vme
w1 w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size). 2019-12-01 09:16:22 +01:00
watchdog watchdog: sama5d4: fix WDD value to be always set to max 2019-12-05 09:21:32 +01:00
xen xen/pciback: Check dev_data before using it 2019-12-05 09:20:26 +01:00
zorro
Kconfig
Makefile