Skip to content

genirq/irq_sim: fix a use-after-free bug + some

Bartosz Golaszewski lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4genirq/irq_sim: dispose of remaining mappings before removing the domainkernel/irq/irq_sim.c+12 -07 replies
2/4genirq/irq_sim: order includes alphabeticallykernel/irq/irq_sim.c+2 -21 reply
3/4bitmap: define a cleanup function for bitmapsinclude/linux/bitmap.h+3 -02 replies
4/4genirq/irq_sim: shrink code by using cleanup helperskernel/irq/irq_sim.c+10 -142 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] genirq/irq_sim: fix a use-after-free bug + some

From: Bartosz Golaszewski <[email protected]>

The first patch is an issue reported by KASAN. We're accessing freed memory if we remove the simulator domain with irs still requested. We must dispose of all existing mappings before we remove the domain.

The following three patches are some improvements to the interrupt simulator. A simple header cleanup and code shrink using the new cleanup.h helpers.

Bartosz Golaszewski (4):
genirq/irq_sim: dispose of remaining mappings before removing the
domain
genirq/irq_sim: order includes alphabetically
bitmap: define a cleanup function for bitmaps genirq/irq_sim: shrink code by using cleanup helpers

 include/linux/bitmap.h |  3 +++
 kernel/irq/irq_sim.c   | 38 +++++++++++++++++++++++---------------
 2 files changed, 26 insertions(+), 15 deletions(-)
Signature · 1 line
2.39.2