[PATCH 0/3] platform/x86: panasonic-laptop: CF-33 hotkey fixes
From: Hilgad Montelo
Date: Wed Aug 12 2026 - 22:57:11 EST
This series fixes two non-working buttons on the Panasonic Toughbook
CF-33 Mk1 and an independent bug found along the way, all in
drivers/platform/x86/panasonic-laptop.c.
Patch 1 fixes the bezel Rotation Lock button, which turns out to
signal via raw i8042 scancodes that alias the real Left-GUI key,
rather than via ACPI notify like the driver's other hotkeys.
Patch 2 adds support for the bezel A1/A2 buttons, which are wired to a
second ACPI device (MAT003C/TBTN) that nothing currently binds to.
Found by disassembling the platform's ACPI tables, since these buttons
produced no signal through any of evdev, ACPI notify, WMI, or ACPI GPE
interrupt counters.
Patch 3 fixes a latent off-by-one heap overflow in the existing HKEY
SINF-parsing code, independently triggered by this hardware's exact
SQTY/SINF sizes and caught via UBSan while testing patch 2. It's
unrelated to the CF-33-specific work but is included here since it was
found in the course of it and touches the same file.
All three verified on real CF-33 Mk1 hardware, including across a
reboot with the combined patch set installed via DKMS.
Hilgad Montelo (3):
platform/x86: panasonic-laptop: Handle CF-33 rotation-lock button
platform/x86: panasonic-laptop: Add driver for CF-33 A1/A2 buttons
(TBTN)
platform/x86: panasonic-laptop: Fix sentinel write past pcc->sinf[]
drivers/platform/x86/panasonic-laptop.c | 254 +++++++++++++++++++++++-
1 file changed, 251 insertions(+), 3 deletions(-)
--
2.53.0