diff options
| author | Ben Hutchings <[email protected]> | 2023-06-02 18:28:15 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-06-08 04:25:00 +0000 |
| commit | 7c5d4801ecf0564c860033d89726b99723c55146 (patch) | |
| tree | a522694ee94a491f48f2b09bbd967e7b5c3aeef4 /drivers/platform/surface/aggregator/controller.c | |
| parent | net: sched: fix possible refcount leak in tc_chain_tmplt_add() (diff) | |
| download | kernel-7c5d4801ecf0564c860033d89726b99723c55146.tar.gz kernel-7c5d4801ecf0564c860033d89726b99723c55146.zip | |
lib: cpu_rmap: Fix potential use-after-free in irq_cpu_rmap_release()
irq_cpu_rmap_release() calls cpu_rmap_put(), which may free the rmap.
So we need to clear the pointer to our glue structure in rmap before
doing that, not after.
Fixes: 4e0473f1060a ("lib: cpu_rmap: Avoid use after free on rmap->obj array entries")
Signed-off-by: Ben Hutchings <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions
