Skip to content

pps: fix a UAF and clean up code

Michal Schmidt linux-mm lkml llvm oe-kbuild-all stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6pps: fix cdev use-after-freedrivers/pps/pps.c+5 -120 replies
2/6pps: simplify pps_idr_lock lockingdrivers/pps/pps.c+3 -40 replies
3/6pps: use scoped_guard for pps_idr_lockdrivers/pps/pps.c+6 -91 reply
4/6pps: print error in both cdev and dev error paths in pps_register_cdev()drivers/pps/pps.c+4 -40 replies
5/6pps: embed "dev" in the pps_devicedrivers/pps/clients/pps-gpio.c drivers/pps/clients/pps-ldisc.c drivers/pps/clients/pps_parport.c +3 more+42 -430 replies
6/6pps: use cdev_device_add()drivers/pps/pps.c+3 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] pps: fix a UAF and clean up code

The 1st patch fixes a UAF bug. The fix is quite minimal, although a bit ugly. The rest of the series are cleanups in the area.

Michal Schmidt (6):
pps: fix cdev use-after-free
pps: simplify pps_idr_lock locking
pps: use scoped_guard for pps_idr_lock
pps: print error in both cdev and dev error paths in
pps_register_cdev()
pps: embed "dev" in the pps_device
pps: use cdev_device_add()

 drivers/pps/clients/pps-gpio.c    |  2 +-
 drivers/pps/clients/pps-ldisc.c   |  6 +-
 drivers/pps/clients/pps_parport.c |  4 +-
 drivers/pps/kapi.c                | 10 ++--
 drivers/pps/pps.c                 | 94 +++++++++++++------------------
 include/linux/pps_kernel.h        |  2 +-
 6 files changed, 50 insertions(+), 68 deletions(-)

base-commit: 7af08b57bcb9ebf78675c50069c54125c0a8b795

Signature · 1 line
2.47.0