lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250528-gpio_keys_preempt_rt-v2-0-3fc55a9c3619@foss.st.com>
Date: Wed, 28 May 2025 10:50:20 +0200
From: Gatien Chevallier <gatien.chevallier@...s.st.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>,
        Sebastian Andrzej Siewior
	<bigeasy@...utronix.de>,
        Clark Williams <clrkwllms@...nel.org>,
        Steven
 Rostedt <rostedt@...dmis.org>,
        Paul Cercueil <paul@...pouillou.net>
CC: <linux-input@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <linux-rt-devel@...ts.linux.dev>,
        Gatien Chevallier
	<gatien.chevallier@...s.st.com>,
        <fabrice.gasnier@...s.st.com>
Subject: [PATCH v2 0/2] Input: gpio-keys - Fixes for interrupt callbacks

This patchset fixes a "BUG: sleeping function called from invalid
context" when CFG_PREEMPT_RT is enabled and a possible concurrent access
on button data between gpio_keys_irq_timer() and gpio_keys_irq_isr().

Signed-off-by: Gatien Chevallier <gatien.chevallier@...s.st.com>
---
Changes in v2:
- Split fixes into two commits
- Use guard() macro to handle spinlock
- Link to v1: https://lore.kernel.org/r/20250526-gpio_keys_preempt_rt-v1-1-09ddadf8e19d@foss.st.com

---
Fabrice Gasnier (1):
      Input: gpio-keys - fix a sleep while atomic with PREEMPT_RT

Gatien Chevallier (1):
      Input: gpio-keys - fix possible concurrent access in gpio_keys_irq_timer()

 drivers/input/keyboard/gpio_keys.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
change-id: 20250526-gpio_keys_preempt_rt-10619c8fa916

Best regards,
-- 
Gatien Chevallier <gatien.chevallier@...s.st.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ