diff options
| author | 2026-08-30 13:52:49 -0700 | |
|---|---|---|
| committer | 2026-09-20 12:52:10 -0700 | |
| commit | 81d577c0c5c602cffb0e0c16cdbde9ffbc8bb1eb (patch) | |
| tree | 1ac9f22474bc4832f232a26bc8e4437ebdb90286 /scripts/Makefile.thinlto | |
| parent | Input: gscps2 - protect buffer access in read and report helpers (diff) | |
Input: gscps2 - serialize hardware and buffer access in gscps2_flush()
gscps2_flush() reads from hardware registers and resets the ring buffer
indices ps2port->act and ps2port->append. In gscps2_enable(), the
trailing gscps2_flush() was called without holding ps2port->lock, racing
with concurrent hardware interrupts and buffer access.
Assert that ps2port->lock is held in gscps2_flush() with
lockdep_assert_held(), and ensure all callers acquire ps2port->lock so
that multi-step hardware sequences remain fully serialized without
unprotected windows.
Reported-by: sashiko-bot@kernel.org
Assisted-by: LLM
Link: https://patch.msgid.link/20260830-gscps2-v1-4-c733d4cae7f9@gmail.com
Acked-by: Helge Deller <deller@gmx.de>
Tested-by: Helge Deller <deller@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
