From: Bartosz Golaszewski <[email protected]>
Linus,
Here are some last-minute fixes for this release from the GPIO subsystem.
The first two address a regression in performance reported to me after the
conversion to using SRCU in GPIOLIB that was merged during the v6.9 merge
window. The second patch is not technically a fix but since after the
first one we no longer need to use a per-descriptor SRCU struct, I think
it's worth to simplify the code before it gets released on Sunday.
The next two commits fix two memory issues: one use-after-free bug and
one instance of possibly leaking kernel stack memory to user-space.
Please pull,
Bartosz
The following changes since commit e67572cd2204894179d89bd7b984072f19313b03:
Linux 6.9-rc6 (2024-04-28 13:47:24 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git tags/gpio-fixes-for-v6.9
for you to fetch changes up to ee0166b637a5e376118e9659e5b4148080f1d27e:
gpiolib: cdev: fix uninitialised kfifo (2024-05-10 16:38:27 +0200)
----------------------------------------------------------------
gpio fixes for v6.9
- fix a performance regression in GPIO requesting and releasing after
the conversion to SRCU
- fix a use-after-free bug due to a race-condition
- fix leaking stack memory to user-space in a GPIO uABI corner case
----------------------------------------------------------------
Bartosz Golaszewski (2):
gpiolib: fix the speed of descriptor label setting with SRCU
gpiolib: use a single SRCU struct for all GPIO descriptors
Kent Gibson (1):
gpiolib: cdev: fix uninitialised kfifo
Zhongqiu Han (1):
gpiolib: cdev: Fix use after free in lineinfo_changed_notify
drivers/gpio/gpiolib-cdev.c | 18 ++++++++++++--
drivers/gpio/gpiolib.c | 58 ++++++++++++++++++++++++++++-----------------
drivers/gpio/gpiolib.h | 17 ++++++++-----
3 files changed, 63 insertions(+), 30 deletions(-)
The pull request you sent on Fri, 10 May 2024 20:26:40 +0200:
> git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git tags/gpio-fixes-for-v6.9
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/cfb4be1a61200fbbd29f2699b11899789855bbe4
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html