gpio: cdev: label sanitization fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | gpio: cdev: fix missed label sanitizing in debounce_setup()drivers/ | +19 | 3 replies | |
| 2/2 | gpio: cdev: check for NULL labels when sanitizing them for irqsdrivers/ | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] gpio: cdev: label sanitization fixes
This series fixes a couple of bugs in the sanitization of labels being passed to irq.
Patch 1 fixes a missed path in the sanitization changes that can result in memory corruption.
Patch 2 fixes the case where userspace provides empty labels.
I've placed my Patch 1 before Bart's Patch 2 as it has to relocate make_irq_label() and free_irq_label(), while Bart's patch modifies them. This order keeps the patch sizes minimal and the attribution where it belongs. Patch 2 has been very lightly modified to rebase it onto Patch 1, including extending it to cover the modified error return for the debounce_setup() case.
Cheers,
Kent.
Bartosz Golaszewski (1):
gpio: cdev: check for NULL labels when sanitizing them for irqs
Kent Gibson (1):
gpio: cdev: fix missed label sanitizing in debounce_setup()
drivers/gpio/gpiolib-cdev.c | 48 ++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 16 deletions(-)
base-commit: 782f4e47ffc19622bf80b3c0cf9cadd2b0b9a644
Signature · 1 line
2.39.2