Skip to content

uio backport fixes for 4.14

Rantala, Tommi T. (Nokia - FI/Espoo) lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8uio: Reduce return paths from uio_write()drivers/uio/uio.c+17 -80 replies
2/8uio: Prevent device destruction while fds are opendrivers/uio/uio.c include/linux/uio_driver.h+75 -270 replies
3/8uio: use request_threaded_irq insteaddrivers/uio/uio.c+3 -20 replies
4/8uio: change to use the mutex lock instead of the spin lockdrivers/uio/uio.c include/linux/uio_driver.h+14 -200 replies
5/8uio: fix crash after the device is unregistereddrivers/uio/uio.c+88 -160 replies
6/8uio: fix wrong return value from uio_mmap()drivers/uio/uio.c+1 -10 replies
7/8uio: fix possible circular locking dependencydrivers/uio/uio.c+6 -100 replies
8/8Revert "uio: use request_threaded_irq instead"drivers/uio/uio.c+2 -60 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchChris PackhamHamish Martin
1/8R-b
2/8R-b
3/8
4/8R-b
5/8R-b
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH 4.14 0/8] uio backport fixes for 4.14

Backport uio fixes to 4.14, to fix use-after-free memory errors.

Changed __poll_t to unsigned int as the former not found in 4.14, and resolved some patch context conflicts.

Hailong Liu (1):
uio: fix wrong return value from uio_mmap()

Hamish Martin (2):
uio: Reduce return paths from uio_write()
uio: Prevent device destruction while fds are open

Xiubo Li (5):
uio: use request_threaded_irq instead
uio: change to use the mutex lock instead of the spin lock
uio: fix crash after the device is unregistered
uio: fix possible circular locking dependency Revert "uio: use request_threaded_irq instead"

 drivers/uio/uio.c          | 206 ++++++++++++++++++++++++++++---------
 include/linux/uio_driver.h |   4 +-
 2 files changed, 163 insertions(+), 47 deletions(-)
Signature · 1 line
2.20.1