Skip to content

fbdev: defio: Protect against device/module removal

Thomas Zimmermann dri-devel linux-fbdev stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 1 replySuperseded

Changes in v2 from the cover letter

- use alloc_obj() functions

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fbdev: defio: Disconnect deferred I/O from the lifetime of struct fb_infodrivers/video/fbdev/core/fb_defio.c include/linux/fb.h+145 -370 replies
2/4fbdev: defio: Keep module reference from VMAsdrivers/video/fbdev/core/fb_defio.c+6 -00 replies
3/4fbdev: defio: Move variable state into struct fb_deferred_io_statedrivers/video/fbdev/core/fb_defio.c include/linux/fb.h+22 -180 replies
4/4fbdev: defio: Move pageref array to struct fb_deferred_io_statedrivers/video/fbdev/core/fb_defio.c include/linux/fb.h+27 -300 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] fbdev: defio: Protect against device/module removal

There's a long-standing bug in defio where the framebuffer device or module gets removed while mmap'ed areas of the framebuffer memory persists in userspace. Page faults in the area then operate on defined state.

Patches 1 and 2 fix these problems. Patches 3 and 4 build upon the fix and put defio state into the correct places.

v2:
- use alloc_obj() functions

Thomas Zimmermann (4):
fbdev: defio: Disconnect deferred I/O from the lifetime of struct
fb_info
fbdev: defio: Keep module reference from VMAs
fbdev: defio: Move variable state into struct fb_deferred_io_state
fbdev: defio: Move pageref array to struct fb_deferred_io_state

 drivers/video/fbdev/core/fb_defio.c | 266 ++++++++++++++++++++--------
 include/linux/fb.h                  |   9 +-
 2 files changed, 195 insertions(+), 80 deletions(-)

base-commit: 1c44015babd759b8e5234084dffcc08a0b784333

Signature · 1 line
2.52.0