linux-uconsole/drivers
Christian Brauner 65d2e4cb02 UPSTREAM: binderfs: prevent renaming the control dentry
- make binderfs control dentry immutable:
  We don't allow to unlink it since it is crucial for binderfs to be
  useable but if we allow to rename it we make the unlink trivial to
  bypass. So prevent renaming too and simply treat the control dentry as
  immutable.

- add is_binderfs_control_device() helper:
  Take the opportunity and turn the check for the control dentry into a
  separate helper is_binderfs_control_device() since it's now used in two
  places.

- simplify binderfs_rename():
  Instead of hand-rolling our custom version of simple_rename() just dumb
  the whole function down to first check whether we're trying to rename the
  control dentry. If we do EPERM the caller and if not call simple_rename().

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christian Brauner <christian@brauner.io>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 136497735
(cherry picked from commit e98e6fa186)
Change-Id: I44e49a144b624c360ab8a277970625c64511da15
Signed-off-by: Hridya Valsaraju <hridya@google.com>
2019-12-08 21:43:43 -08:00
..
accessibility
acpi This is the 4.19.88 stable release 2019-12-05 12:02:49 +01:00
amba
android UPSTREAM: binderfs: prevent renaming the control dentry 2019-12-08 21:43:43 -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