Skip to content

gpio: cdev: label sanitization fixes

Bartosz Golaszewski linux-gpio lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

- switched the order of the patches in order to avoid introducing buggy code in one just to fix it in the second

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpio: cdev: check for NULL labels when sanitizing them for irqsdrivers/gpio/gpiolib-cdev.c+14 -51 reply
2/2gpio: cdev: fix missed label sanitizing in debounce_setup()drivers/gpio/gpiolib-cdev.c+27 -202 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchAnders Roxell
1/2T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] gpio: cdev: label sanitization fixes

From: Bartosz Golaszewski <[email protected]>

This series fixes a couple of bugs in the sanitization of labels being passed to irq.

Patch 1 fixes the case where userspace provides empty labels.

Patch 2 fixes a missed path in the sanitization changes that can result in memory corruption.

v1 -> v2:
- switched the order of the patches in order to avoid introducing buggy code in one just to fix it in the second

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 | 46 +++++++++++++++++++++++++------------
 1 file changed, 31 insertions(+), 15 deletions(-)
Signature · 1 line
2.40.1