summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec
diff options
context:
space:
mode:
authorGuangshuo Li <liguangshuo@mail.sdu.edu.cn>2026-10-31 21:05:41 +0800
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-11-02 15:32:20 +0100
commit9e4b35c95fede87bad36f68b7ff1eae94ea6b910 (patch)
tree0b5979f7dc5902881dbc5a51103cd86e04e7a4a7 /rust/kernel/alloc/kvec
parent925409db963dbae4628d522bc6b14985e749c08b (diff)
gpio: mpc8xxx: Fix potential use-after-free of IRQ domain
GPIO chip cleanup can call the to_irq callback while releasing requested GPIOs. Removing the IRQ domain first leaves that callback using a freed domain, both on removal and after an IRQ request failure. Register domain cleanup before GPIO chip registration so devres removes the chip before freeing the domain. This issue was found by our static analysis tool under development. Fixes: 257e10752c13 ("gpio: mpc8xxx: Use of_mm_gpiochip_remove") Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn> Link: https://patch.msgid.link/a4fec7fe970d6fc9135b488f57ba7e145b809359.1793377433.git.liguangshuo@mail.sdu.edu.cn Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'rust/kernel/alloc/kvec')
0 files changed, 0 insertions, 0 deletions