Skip to content

gpio: Refactor and add selftest

Tzung-Bi Shih linux-gpio linux-kselftest lkml 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 11 repliesApplied
  2. v311 patches 10 repliesSuperseded
  3. v211 patches 13 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v123 patches25 repliesSuperseded

Changes in v4 from the cover letter

- Separate the first 6 patches from v3.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6gpio: Access `gpio_bus_type` in gpiochip_setup_dev()drivers/gpio/gpiolib.c+4 -33 replies
2/6gpio: Remove redundant check for struct gpio_chipdrivers/gpio/gpiolib.c+2 -110 replies
3/6gpio: sysfs: Remove redundant check for struct gpio_chipdrivers/gpio/gpiolib-sysfs.c drivers/gpio/gpiolib-sysfs.h drivers/gpio/gpiolib.c+6 -110 replies
4/6gpio: Ensure struct gpio_chip for gpiochip_setup_dev()drivers/gpio/gpiolib-cdev.c drivers/gpio/gpiolib-cdev.h drivers/gpio/gpiolib-sysfs.c +2 more+32 -333 replies
5/6gpio: cdev: Don't check struct gpio_chip in gpio_chrdev_open()drivers/gpio/gpiolib-cdev.c+0 -60 replies
6/6selftests: gpio: Add gpio-cdev-uaf teststools/testing/selftests/gpio/Makefile tools/testing/selftests/gpio/gpio-cdev-uaf.c tools/testing/selftests/gpio/gpio-cdev-uaf.sh+358 -20 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchLinus Walleij
1/6R-b
2/6R-b
3/6R-b
4/6
5/6R-b
6/6R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/6] gpio: Refactor and add selftest

The series is separated from v3 to lessen the burden on the subsequent revocable work per suggestion in
https://lore.kernel.org/all/CAMRc=MfQumD1ULx7yU4W2sx=35wyQf7-v4tSf44OqEu3JDBUAg@mail.gmail.com/.

The series is based on v7.0-rc1 and applies after
https://lore.kernel.org/all/[email protected].

---
v4:
- Separate the first 6 patches from v3.

v3: https://lore.kernel.org/all/[email protected]

Tzung-Bi Shih (6):
gpio: Access gpio_bus_type in gpiochip_setup_dev()
gpio: Remove redundant check for struct gpio_chip
gpio: sysfs: Remove redundant check for struct gpio_chip
gpio: Ensure struct gpio_chip for gpiochip_setup_dev()
gpio: cdev: Don't check struct gpio_chip in gpio_chrdev_open()
selftests: gpio: Add gpio-cdev-uaf tests

 drivers/gpio/gpiolib-cdev.c                   |  20 +-
 drivers/gpio/gpiolib-cdev.h                   |   2 +-
 drivers/gpio/gpiolib-sysfs.c                  |  32 +-
 drivers/gpio/gpiolib-sysfs.h                  |   8 +-
 drivers/gpio/gpiolib.c                        |  46 +--
 tools/testing/selftests/gpio/Makefile         |   5 +-
 tools/testing/selftests/gpio/gpio-cdev-uaf.c  | 292 ++++++++++++++++++
 tools/testing/selftests/gpio/gpio-cdev-uaf.sh |  63 ++++
 8 files changed, 402 insertions(+), 66 deletions(-)
 create mode 100644 tools/testing/selftests/gpio/gpio-cdev-uaf.c
 create mode 100755 tools/testing/selftests/gpio/gpio-cdev-uaf.sh
Signature · 1 line
2.51.0