android_kernel_xiaomi_sm8350/drivers
Carlos Llamas 012ab662e2 ANDROID: binder: fix pending prio state for early exit
When calling binder_do_set_priority() with the same policy and priority
values as the current task, we exit early since there is nothing to do.
However, the BINDER_PRIO_PENDING state might be set and in this case we
fail to update it. A subsequent call to binder_transaction_priority()
will then read an incorrect state and save the wrong priority. Fix this
by setting thread->prio_state to BINDER_PRIO_SET on our way out.

Bug: 199309216
Fixes: cac827f2619b ("ANDROID: binder: fix race in priority restore")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Change-Id: I21e906cf4b2ebee908af41fe101ecd458ae1991c
(cherry picked from commit 72193be6d4bd9ad29dacd998c14dff97f7a6c6c9)
2022-08-03 16:21:47 +00:00
..
accessibility
acpi This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
amba This is the 5.4.158 stable release 2021-11-06 14:08:38 +01:00
android ANDROID: binder: fix pending prio state for early exit 2022-08-03 16:21:47 +00:00
ata ata: pata_marvell: Check the 'bmdma_addr' beforing reading 2022-04-27 13:50:48 +02:00
atm atm: eni: Add check for dma_map_single 2022-03-23 09:12:07 +01:00
auxdisplay auxdisplay: ht16k33: Fix frame buffer device blanking 2021-11-17 09:48:45 +01:00
base This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
bcma
block Merge tag 'android11-5.4.197_r00' into 'android11-5.4' 2022-07-27 11:19:48 +02:00
bluetooth This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
bus bus: sunxi-rsb: Fix the return value of sunxi_rsb_device_create() 2022-05-09 09:03:25 +02:00
cdrom
char This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
clk This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
clocksource This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
connector
counter
cpufreq This is the 5.4.192 stable release 2022-05-09 09:42:49 +02:00
cpuidle This is the 5.4.160 stable release 2021-11-17 10:19:21 +01:00
crypto This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
dax dax: make sure inodes are flushed before destroy cache 2022-04-15 14:18:12 +02:00
dca
devfreq
dio
dma This is the 5.4.191 stable release 2022-04-27 14:24:26 +02:00
dma-buf This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
edac EDAC/synopsys: Read the error count from the correct register 2022-04-27 13:50:48 +02:00
eisa
extcon
firewire firewire: core: extend card->lock in fw_core_handle_bus_reset 2022-05-12 12:23:41 +02:00
firmware This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
fpga fpga: machxo2-spi: Fix missing error code in machxo2_write_complete() 2021-09-30 10:09:23 +02:00
fsi
gnss
gpio gpio: mvebu/pwm: Refuse requests with inverted polarity 2022-05-25 09:14:37 +02:00
gpu This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
greybus greybus: svc: fix an error handling bug in gb_svc_hello() 2022-04-15 14:17:58 +02:00
hid This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
hsi HSI: core: Fix return freed object in hsi_new_client 2022-01-27 09:19:41 +01:00
hv Drivers: hv: vmbus: Prevent load re-ordering when reading ring buffer 2022-04-20 09:19:36 +02:00
hwmon Merge 5.4.195 into android11-5.4-lts 2022-05-18 16:50:18 +02:00
hwspinlock
hwtracing coresight: Fix TRCCONFIGR.QE sysfs interface 2022-04-15 14:17:57 +02:00
i2c This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
i3c
ide
idle
iio iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() 2022-05-09 09:03:21 +02:00
infiniband This is the 5.4.193 stable release 2022-05-16 08:51:00 +02:00
input Input: goodix - fix spurious key release events 2022-06-06 08:33:48 +02:00
interconnect
iommu This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
ipack ipack: ipoctal: fix module reference leak 2021-10-06 15:42:36 +02:00
irqchip This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
isdn mISDN: change function names to avoid conflicts 2022-01-11 15:23:33 +01:00
leds
lightnvm lightnvm: disable the subsystem 2022-05-09 09:03:20 +02:00
macintosh
mailbox mailbox: tegra-hsp: Flush whole channel 2022-04-15 14:18:01 +02:00
mcb mcb: fix error handling in mcb_alloc_bus() 2021-09-30 10:09:22 +02:00
md Merge tag 'android11-5.4.197_r00' into 'android11-5.4' 2022-07-27 11:19:48 +02:00
media This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
memory memory: atmel-ebi: Fix missing of_node_put in atmel_ebi_probe 2022-04-20 09:19:34 +02:00
memstick memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-17 09:48:37 +01:00
message
mfd This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
misc This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
mmc This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
mtd This is the 5.4.192 stable release 2022-05-09 09:42:49 +02:00
mux
net This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
nfc BACKPORT: nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs 2022-06-30 11:46:05 +01:00
ntb NTB: perf: Fix an error code in perf_setup_inbuf() 2021-09-22 12:26:44 +02:00
nubus
nvdimm libnvdimm/pmem: Fix crash triggered when I/O in-flight during unbind 2021-10-06 15:42:38 +02:00
nvme nvme-multipath: fix hang when disk goes live over reconnect 2022-05-25 09:14:32 +02:00
nvmem This is the 5.4.155 stable release 2021-10-20 12:35:49 +02:00
of This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
opp This is the 5.4.160 stable release 2021-11-17 10:19:21 +01:00
oprofile
parisc parisc: Fix CPU affinity for Lasi, WAX and Dino chips 2022-04-15 14:18:36 +02:00
parport
pci This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
pcmcia pcmcia: fix setting of kthread task states 2022-01-27 09:19:37 +01:00
perf arm_pmu: Validate single/group leader events 2022-04-27 13:50:50 +02:00
phy This is the 5.4.192 stable release 2022-05-09 09:42:49 +02:00
pinctrl This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
platform This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
pnp
power This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
powercap
pps
ps3
ptp ptp: replace snprintf with sysfs_emit 2022-04-15 14:18:32 +02:00
pwm This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
rapidio
ras
regulator This is the 5.4.190 stable release 2022-04-21 14:13:50 +02:00
remoteproc This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
reset This is the 5.4.191 stable release 2022-04-27 14:24:26 +02:00
rpmsg This is the 5.4.176 stable release 2022-02-01 17:48:27 +01:00
rtc This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
s390 s390/lcs: fix variable dereferenced before check 2022-05-18 09:47:25 +02:00
sbus
scsi Merge tag 'android11-5.4.197_r00' into 'android11-5.4' 2022-07-27 11:19:48 +02:00
sfi
sh maple: fix wrong return value of maple_bus_init(). 2021-11-26 10:47:17 +01:00
siox
slimbus Merge 5.4.195 into android11-5.4-lts 2022-05-18 16:50:18 +02:00
soc This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
soundwire
spi This is the 5.4.191 stable release 2022-04-27 14:24:26 +02:00
spmi
ssb
staging This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
target scsi: target: tcmu: Fix possible page UAF 2022-04-20 09:19:36 +02:00
tc
tee optee: use driver internal tee_context for some rpc 2022-03-02 11:41:04 +01:00
thermal This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
thunderbolt
tty Merge 5.4.195 into android11-5.4-lts 2022-05-18 16:50:18 +02:00
uio
usb Merge 5.4.195 into android11-5.4-lts 2022-05-18 16:50:18 +02:00
vfio This is the 5.4.148 stable release 2021-09-25 14:41:58 +02:00
vhost This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
video This is the 5.4.192 stable release 2022-05-09 09:42:49 +02:00
virt
virtio This is the 5.4.185 stable release 2022-03-16 14:40:31 +01:00
visorbus
vlynq
vme
w1 w1: w1_therm: fixes w1_seq for ds28ea00 sensors 2022-04-15 14:18:35 +02:00
watchdog ar7: fix kernel builds for compiler test 2021-11-17 09:48:46 +01:00
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-11 11:22:39 +01:00
zorro
Kconfig
Makefile
OWNERS