Re: [PATCH v1] auxdisplay: linedisp: prepare message before registration
From: Andy Shevchenko
Date: Thu Nov 19 2026 - 06:01:59 EST
On Sun, 13 Sep 2026 00:11:52 +0800, Yibo Tan wrote:
> Since the line-display attachment support was added, linedisp_register()
> has displayed its initial message before calling device_add(). The
> HT16K33, MAX6959 and GPIO segment drivers implement display updates with
> delayed work, so that display operation can publish driver-owned work
> before the final fallible registration step.
>
> If device_add() fails, the registration error path releases the display
> buffers and the caller's probe failure releases its managed private data.
> The admitted worker can then access both freed objects. In an HT16K33
> KASAN reproducer, a real device_add() -EEXIST failure produced a
> slab-use-after-free first in __pwq_activate_work() and then in
> ht16k33_seg7_update().
>
> [...]
Applied, thanks!
[1/1] auxdisplay: linedisp: prepare message before registration
commit: 29133e66ae15efcbaedd185cf16a09357c6d9486
Best regards,
--
With Best Regards,
Andy Shevchenko