Re: [PATCH 0/4] fbdev: defio: Protect against device/module removal

From
Thomas Zimmermann <tzimmermann@suse.de>
Date
2026-02-23 12:50:56
Also in
dri-devel
Reply to
Thomas Zimmermann, 2026-01-22
ping for review

Am 22.01.26 um 14:08 schrieb Thomas Zimmermann:
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.

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: a3ecd278f9a05323fab7471760a7ea10081251d6
-- 
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)

Thread (6 messages) 6 messages, 1 author, last reply 2026-02-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help