Re: [PATCH v2 00/11] gpio: Adopt revocable mechanism for UAF prevention
From: Bartosz Golaszewski
Date: Tue Feb 03 2026 - 06:17:30 EST
On Tue, Feb 3, 2026 at 7:11 AM Tzung-Bi Shih <tzungbi@xxxxxxxxxx> wrote:
>
> This series transitions the UAF prevention logic within the GPIO core
> (gpiolib) to use the 'revocable' mechanism.
>
> The existing code aims to prevent UAF issues when the underlying GPIO
> chip is removed. This series replaces that custom logic with the
> generic 'revocable' API, which is designed to handle such lifecycle
> dependencies. There should be no changes in behavior.
>
> The series applies after:
> - https://lore.kernel.org/all/20260129143733.45618-1-tzungbi@xxxxxxxxxx
> - https://lore.kernel.org/all/20260203060210.972243-1-tzungbi@xxxxxxxxxx
>
> Bartosz: the series was planned to send after -rc1 comes. But I think
> it'd be great to send out for your early review and testing if possible.
> The series base on v6.19-rc8, driver-core-next, and gpio/for-next.
> Please use the temporary integration testing branch
> https://git.kernel.org/pub/scm/linux/kernel/git/tzungbi/chrome-platform.git/log/?h=gpio_rev
> if you'd like to.
>
This is not a Reviewed-by yet but FWIW:
Tested-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
With this revision there's no impact on stability or performance and I
haven't seen any KASAN splats or kmemleak reports.
I'll try to review all the patches individually.
Bartosz