diff options
| author | Guangshuo Li <liguangshuo@mail.sdu.edu.cn> | 2026-10-31 21:05:41 +0800 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-11-02 15:32:20 +0100 |
| commit | 9e4b35c95fede87bad36f68b7ff1eae94ea6b910 (patch) | |
| tree | 0b5979f7dc5902881dbc5a51103cd86e04e7a4a7 /tools/perf/scripts/python | |
| parent | 925409db963dbae4628d522bc6b14985e749c08b (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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
