Re: [PATCH v2] gpio: avoid undersized array bitmap in get fastpath

From: Bartosz Golaszewski

Date: Wed Dec 02 2026 - 03:42:16 EST



On Mon, 30 Nov 2026 09:27:47 +0900, Baek Kyu, Kim wrote:
> The array get fast path passes the caller's value bitmap directly to
> get_multiple(). The bitmap is sized for the requested array, but
> providers such as gpio-sim process it for the entire chip. With a
> 128-line chip and a one-line array on a 64-bit kernel, gpio-sim's
> bitmap_replace() reads and writes two words when the caller has
> allocated only one. The second word is accessed even though its mask
> is zero.
>
> [...]

Applied, thanks!

[1/1] gpio: avoid undersized array bitmap in get fastpath
https://git.kernel.org/brgl/c/f8e9a003d08ed0b0d536836cf6dec454eb544a27

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>