Todd Kjos
1fe8a2bb64
BACKPORT: binder: use euid from cred instead of using task
...
Save the 'struct cred' associated with a binder process
at initial open to avoid potential race conditions
when converting to an euid.
Set a transaction's sender_euid from the 'struct cred'
saved at binder_open() instead of looking up the euid
from the binder proc's 'struct task'. This ensures
the euid is associated with the security context that
of the task that opened binder.
Cc: [email protected] # 4.4+
Fixes: 457b9a6f09 ("Staging: android: add binder driver")
Signed-off-by: Todd Kjos <[email protected] >
Suggested-by: Stephen Smalley <[email protected] >
Suggested-by: Jann Horn <[email protected] >
Acked-by: Casey Schaufler <[email protected] >
Signed-off-by: Paul Moore <[email protected] >
Bug: 200688826
(cherry picked from commit 29bc22ac5e5bc63275e850f0c8fc549e3d0e306b)
[ refactored to avoid changing KMI: struct binder_proc ]
Change-Id: Icaf996a7f5543b7d6943dff3cbe89bfc3614044c
2021-11-19 16:25:34 -08:00
..
accessibility
acpi
This is the 5.4.142 stable release
2021-08-27 16:27:13 +02:00
amba
android
BACKPORT: binder: use euid from cred instead of using task
2021-11-19 16:25:34 -08:00
ata
libata: fix ata_host_start()
2021-09-15 09:47:27 +02:00
atm
atm: nicstar: register the interrupt handler in the right place
2021-07-19 08:53:12 +02:00
auxdisplay
base
Merge tag 'android11-5.4.147_r00' android11-5.4
2021-10-20 10:32:16 +02:00
bcma
bcma: Fix memory leak for internally-handled cores
2021-09-15 09:47:37 +02:00
block
Merge tag 'android11-5.4.147_r00' android11-5.4
2021-10-20 10:32:16 +02:00
bluetooth
Merge 5.4.133 into android11-5.4-lts
2021-07-20 11:32:58 +02:00
bus
bus: ti-sysc: Fix flakey idling of uarts and stop using swsup_sidle_act
2021-06-10 13:37:08 +02:00
cdrom
cdrom: gdrom: initialize global variable at init time
2021-05-26 12:05:19 +02:00
char
This is the 5.4.140 stable release
2021-08-12 14:00:44 +02:00
clk
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
clocksource
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
connector
counter
counter: 104-quad-8: Return error when invalid mode during ceiling_write
2021-09-15 09:47:34 +02:00
cpufreq
Linux 5.4.143
2021-08-27 22:38:57 +02:00
cpuidle
crypto
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
dax
dca
devfreq
PM / devfreq: Use more accurate returned new_freq as resume_freq
2021-05-14 09:44:20 +02:00
dio
dma
Linux 5.4.143
2021-08-27 22:38:57 +02:00
dma-buf
This is the 5.4.135 stable release
2021-07-25 15:40:32 +02:00
edac
EDAC/i10nm: Fix NVDIMM detection
2021-09-15 09:47:30 +02:00
eisa
extcon
Merge 5.4.133 into android11-5.4-lts
2021-07-20 11:32:58 +02:00
firewire
firewire: nosy: Fix a use-after-free bug in nosy_ioctl()
2021-04-07 14:47:43 +02:00
firmware
Merge 5.4.139 into android11-5.4-lts
2021-08-11 10:16:17 +02:00
fpga
fpga: stratix10-soc: Add missing fpga_mgr_free() call
2021-07-19 08:53:15 +02:00
fsi
fsi/sbefifo: Fix reset timeout
2021-07-14 16:53:42 +02:00
gnss
gpio
gpio: tqmx86: really make IRQ optional
2021-08-12 13:20:57 +02:00
gpu
Merge tag 'android11-5.4.147_r00' android11-5.4
2021-10-20 10:32:16 +02:00
greybus
hid
Merge tag 'android11-5.4.147_r00' android11-5.4
2021-10-20 10:32:16 +02:00
hsi
HSI: core: fix resource leaks in hsi_add_client_from_dt()
2021-05-14 09:44:25 +02:00
hv
hv_utils: Fix passing zero to 'PTR_ERR' warning
2021-07-14 16:53:16 +02:00
hwmon
This is the 5.4.132 stable release
2021-07-14 17:12:58 +02:00
hwspinlock
hwtracing
intel_th: Wait until port is in reset before programming it
2021-07-20 16:10:46 +02:00
i2c
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
i3c
Revert "i3c master: fix missing destroy_workqueue() on error in i3c_master_register"
2021-05-14 09:44:15 +02:00
ide
idle
iio
iio: adc: Fix incorrect exit of for-loop
2021-08-18 08:56:56 +02:00
infiniband
This is the 5.4.144 stable release
2021-09-03 10:17:46 +02:00
input
Input: hideep - fix the uninitialized use in hideep_nvm_unlock()
2021-07-20 16:10:45 +02:00
interconnect
This is the 5.4.113 stable release
2021-04-16 12:16:55 +02:00
iommu
Linux 5.4.143
2021-08-27 22:38:57 +02:00
ipack
ipack: tpci200: fix memory leak in the tpci200_register
2021-08-26 08:36:21 -04:00
irqchip
This is the 5.4.119 stable release
2021-05-14 10:04:38 +02:00
isdn
mISDN: fix possible use-after-free in HFC_cleanup()
2021-07-19 08:53:08 +02:00
leds
leds: trigger: audio: Add an activate callback to ensure the initial brightness is set
2021-09-15 09:47:33 +02:00
lightnvm
macintosh
mailbox
mcb
md
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
media
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
memory
memory: fsl_ifc: fix leak of private memory on probe failure
2021-07-20 16:10:52 +02:00
memstick
memstick: rtsx_usb_ms: fix UAF
2021-07-14 16:53:13 +02:00
message
mfd
This is the 5.4.134 stable release
2021-07-20 16:30:12 +02:00
misc
This is the 5.4.134 stable release
2021-07-20 16:30:12 +02:00
mmc
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
mtd
Linux 5.4.143
2021-08-27 22:38:57 +02:00
mux
net
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
nfc
nfc: nfcsim: fix use after free during module unload
2021-08-04 12:27:38 +02:00
ntb
nubus
nvdimm
libnvdimm/region: Fix label activation vs errors
2021-08-18 08:56:57 +02:00
nvme
nvmet: pass back cntlid on successful completion
2021-09-15 09:47:27 +02:00
nvmem
UPSTREAM: nvmem: sprd: Fix an error message
2021-10-01 11:32:55 -07:00
of
UPSTREAM: of: property: fw_devlink: do not link ".*,nr-gpios"
2021-10-01 11:32:55 -07:00
opp
This is the 5.4.144 stable release
2021-09-03 10:17:46 +02:00
oprofile
parisc
parport
pci
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
pcmcia
pcmcia: i82092: fix a null pointer dereference bug
2021-08-12 13:21:03 +02:00
perf
drivers/perf: fix the missed ida_simple_remove() in ddr_perf_probe()
2021-07-14 16:53:14 +02:00
phy
This is the 5.4.132 stable release
2021-07-14 17:12:58 +02:00
pinctrl
UPSTREAM: pinctrl: sunxi: fix irq bank map for the Allwinner A100 pin controller
2021-10-01 11:32:54 -07:00
platform
This is the 5.4.142 stable release
2021-08-27 16:27:13 +02:00
pnp
power
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
powercap
pps
ps3
ptp
ptp_pch: Restore dependency on PCI
2021-08-26 08:36:17 -04:00
pwm
This is the 5.4.136 stable release
2021-07-28 13:46:04 +02:00
rapidio
rapidio: handle create_workqueue() failure
2021-05-26 12:05:17 +02:00
ras
RAS/CEC: Correct ce_add_elem()'s returned values
2021-04-14 08:24:18 +02:00
regulator
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
remoteproc
BACKPORT: remoteproc: core: Remove casting to rproc_handle_resource_t
2021-05-05 14:43:46 +00:00
reset
This is the 5.4.145 stable release
2021-09-12 09:54:40 +02:00
rpmsg
This is the 5.4.120 stable release
2021-05-19 10:41:47 +02:00
rtc
This is the 5.4.135 stable release
2021-07-25 15:40:32 +02:00
s390
s390/cio: add dev_busid sysfs entry for each subchannel
2021-09-15 09:47:27 +02:00
sbus
scsi
Merge tag 'android11-5.4.147_r00' android11-5.4
2021-10-20 10:32:16 +02:00
sfi
sh
siox
slimbus
Linux 5.4.143
2021-08-27 22:38:57 +02:00
soc
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
soundwire
soundwire: stream: Fix test for DP prepare complete
2021-07-14 16:53:45 +02:00
spi
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
spmi
ssb
ssb: Fix error return code in ssb_bus_scan()
2021-07-14 16:53:29 +02:00
staging
ANDROID: ion heap: init ion heaps in subsys_initcall
2021-10-22 01:50:31 +00:00
target
scsi: target: Fix protect handling in WRITE SAME(32)
2021-07-28 13:30:56 +02:00
tc
tee
tee: Correct inappropriate usage of TEE_SHM_DMA_BUF flag
2021-08-15 13:08:02 +02:00
thermal
Merge tag 'android11-5.4.147_r00' android11-5.4
2021-10-20 10:32:16 +02:00
thunderbolt
thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue
2021-06-03 08:59:03 +02:00
tty
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
uio
uio_hv_generic: Fix a memory leak in error handling paths
2021-05-26 12:05:17 +02:00
usb
Merge tag 'android11-5.4.147_r00' android11-5.4
2021-10-20 10:32:16 +02:00
vfio
This is the 5.4.132 stable release
2021-07-14 17:12:58 +02:00
vhost
This is the 5.4.144 stable release
2021-09-03 10:17:46 +02:00
video
This is the 5.4.146 stable release
2021-09-15 14:01:16 +02:00
virt
virtio
This is the 5.4.144 stable release
2021-09-03 10:17:46 +02:00
visorbus
visorbus: fix error return code in visorchipset_init()
2021-07-14 16:53:42 +02:00
vlynq
vme
w1
w1: ds2438: fixing bug that would always get page0
2021-07-20 16:10:41 +02:00
watchdog
Revert "watchdog: iTCO_wdt: Account for rebooting on second timeout"
2021-08-08 09:04:08 +02:00
xen
xen/events: Fix race in set_evtchn_to_irq
2021-08-18 08:57:01 +02:00
zorro
Kconfig
Makefile
OWNERS
ANDROID: Add OWNERS files referring to the respective android-mainline OWNERS
2021-04-01 13:45:14 +00:00