android_kernel_motorola_sm6375/drivers/char
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Santosh Sakore c2adf7dc3f msm:adsprpc: Fix UAF of ctx->perf in async invoke perf counter
In async invoke path, fastrpc_update_invoke_count is called at
invoke_end with perf_counter pointing into ctx->perf.
After fastrpc_invoke_send returns, the async response thread may
call context_free(ctx), freeing ctx->perf before invoke_end.
This causes a use-after-free write that corrupts the SLUB
freelist and may trigger a kernel panic on next allocation.
Fix by storing submission timestamp in ctx->invoke_start_time
before send, removing unsafe call from invoke_end, and moving
fastrpc_update_invoke_count to fastrpc_wait_on_async_queue.
There, ctx is guaranteed valid before context_free. This also
aligns async perf->invoke with sync, measuring full end-to-end
latency instead of submission-only latency.

Acked-by: Sharad Kumar <sharku@qti.qualcomm.com>
Change-Id: I91f2a2479b508fde2fe7c26783ee56dc9391eb17
Signed-off-by: Santosh Sakore <ssakore@qti.qualcomm.com>
2026-06-05 12:18:57 +05:30
..
agp Merge 1d28224d49 ("selftests/ftrace: Correctly enable event in instance-event.tc") into android11-5.4-lts 2023-10-24 16:45:58 +00:00
hw_random Merge android11-5.4.302(91d385eb) into msm-5.4 2026-01-30 11:41:11 +05:30
ipmi ipmi: Fix strcpy source and destination the same 2025-08-28 16:21:29 +02:00
mwave
pcmcia
tpm tpm_tis: Fix incorrect arguments in tpm_tis_probe_irq_single 2025-10-29 13:59:52 +01:00
virtio_eavb char: virtio_eavb: use new update_marker api 2023-08-15 11:24:49 +05:30
xilinx_hwicap
xillybus
adi.c
adsprpc.c msm:adsprpc: Fix UAF of ctx->perf in async invoke perf counter 2026-06-05 12:18:57 +05:30
adsprpc_compat.c
adsprpc_compat.h
adsprpc_shared.h
apm-emulation.c
applicom.c
applicom.h
bsr.c
ds1620.c
dsp56k.c
dtlk.c
efirtc.c
fastcvpd.c
hangcheck-timer.c
hpet.c hpet: Support 32-bit userspace 2024-07-18 11:40:55 +02:00
Kconfig
lp.c
Makefile
mem.c
misc.c This is the 5.4.302 stable release 2025-12-11 09:41:30 +00:00
msm_smd_pkt.c
mspec.c
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
powernv-op-panel.c
ppdev.c ppdev: Add an error check in register_device 2024-06-16 13:28:43 +02:00
ps3flash.c
random.c
raw.c
rdbg.c
rtc.c
scx200_gpio.c
sonypi.c
tb0219.c
tlclk.c
toshiba.c
ttyprintk.c
uv_mmtimer.c
virtio_console.c virtio_console: fix missing byte order handling for cols and rows 2025-05-02 07:39:26 +02:00
virtio_fastrpc.c