From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5144C3368A2 for ; Thu, 13 Aug 2026 02:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786589824; cv=none; b=YBgoQluUnEI5J8J4BanFHycS7QG1KATMYSvG5c9LHeGT1N7GlvK5pTiD6VNNMz4uxQ8oZfypr/+1slxKdYDZmvVPia74lEs1AMB7oxvmuPmLTtw57GHyz4pQ2ZjlRlYiKlEVCAGsbxC0ykZHYgLz6ZIPhH1AnjR9YlzAYZgsUdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786589824; c=relaxed/simple; bh=VRxlFXw96is9D7G3NrAUEYMo3k4A1Oq4s/wRktoxZY4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qiKhjRvgTNAUc2kvB2P9K/4jwBP96OWrhQVkOp5Pe7OO7ZLvpiCdUGmW6gseO8aBAbmGHJFlLLZ3qHV4wydgtPlfLqmROVhI+tPa2AwvbXVJjCH2KZN1O3JUfk6uI49vDOWaz4R9cAv0FuOHtcVx9rr+M2kUSCMFpcHnqTJlXyI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QzMv4ZZx; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QzMv4ZZx" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2ceb096e675so3564625ad.0 for ; Wed, 12 Aug 2026 19:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786589823; x=1787194623; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=7JK2S/jqrD07hGq4xNYBvCWpyA483T1NbLZw1jMz6AQ=; b=QzMv4ZZxF/ilWDWeapRYFoNsLihpfqXqolSmeWzIeXzeB+TgW/wASeKcll9guAmR7d J7yZneRs6kMWwmYgdSlSUIemoY4LCK01IUwpyx48pAEeaioNNFAsgpk5nTa6wN8Knt4w iFIOWhT2cMFMft7v5luv3W73v+jyp5yrWVi4dybO8u6aWjWAzmGjNlDaxXgbHvUw+Nyy 5LL8C2NBDElPjpHIGn9c9s6x4LvRGR3242mNoYIvm4jFoQELmkP/WRjUDRKjB9F4okmJ Bd0TET/7GNgZHAPSSkByG58ZW0kXacQPAFm7DF6wA34cNpQkM18Z/icyCq9Bs/sCoDUS InLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786589823; x=1787194623; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7JK2S/jqrD07hGq4xNYBvCWpyA483T1NbLZw1jMz6AQ=; b=SeLalHurZTpWTBiz/7E7nqpQc0LyoKzayUm4cylVUs8Tx3son8eXIlMdPkmUU4C/3v SmKo6uabNYdV5fhFcWGpw2Ep9lVSnpDzKk81P32jZkqaQjztxWRZGXXa7leIb3BMEdtA VwflNknuTKpy8O/56hm9ODrxIRi3kDWTJ4+4PKXNBjRq06Wp1MXQi/K7Vms+nC5wmqex KNtM/Kb1onYkN4Q0gWTWurfMyP8V+2qd64XMuUGyX//wbgjEWP3ofDALcaXXVCzMCe/J NOVxZwzIhBfe//gK3ciQVn3v3HYbdN4/6nR+gN0MQFd7hP2/0elbDFaXnBwIW1tdglFz hlpQ== X-Forwarded-Encrypted: i=1; AHgh+RqSD429RiyGDTvC5Sm0unuYwsBUpfw2lVYvik4x4v12ZGyTSOUqywgklR9oAqsyfaUhPLu8M+yL4narG2k=@vger.kernel.org X-Gm-Message-State: AOJu0YxfTkiTkaKvjodl+LHxZcDh4qFX3ShsG8hKDhxV4iX0yog904gc VvnivR8w4j6dPzgKIXC1TVUqh7Xn2achSv9d4b8jYm170wN8wbFhw8qR X-Gm-Gg: AR+sD11XrscWXeZj+WHAD1x1R9h7xUtKP834Ot9kboMgXZto8hN8FZVkcH9pqqQc3zi gZp6XcjOf72gDNVJUUS5nGHrQONNULtYHK45Psdsxq7rFf3AKOqsuXWBwyJ7gl5eeVho/z5pXP2 xm22ilpbgL49NPx3ICNyAV4/So99u95fePKaEVAwVpUXx2op1VpQDj1dwMZT3eJo0iE8xYcReVH QI/zTRnTe5HGGcPi9XYs57ZwJeuln3Ra3Ls/OREDGniWGBtBpRgC8W1y+g9EwG8d/0AZTITfANB 0QQZ6VBiw1Dzq8MEapFaUnU85ybn3YOKVGA2RnA5MuQvVuY5aaMF4OFYD/0o4rydbhumgF/1q3n xy0cTNde1rVI/vgyzlmge9ypfoSz85DotBQrm5wVwjPErEqlKOXQPLMbI0fVvopFFs1QwnPwsdG slHDy6xpAjDUXlhQVmiWQtx90myAaW/qOZRkCDIyIWxA1X4wYnLZC6VJcqTs67KL8oKgJz7l3Rp 9g+o80r1iJVY/FB4P0= X-Received: by 2002:a05:6a21:6da9:b0:3c3:9070:96bf with SMTP id adf61e73a8af0-3cc550384e3mr3568373637.9.1786589822495; Wed, 12 Aug 2026 19:57:02 -0700 (PDT) Received: from sonic ([177.181.237.62]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-31ebcf66340sm2097470eec.13.2026.08.12.19.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 19:57:01 -0700 (PDT) From: Hilgad Montelo To: Kenneth Chan , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Hilgad Montelo Subject: [PATCH 0/3] platform/x86: panasonic-laptop: CF-33 hotkey fixes Date: Wed, 12 Aug 2026 23:56:22 -0300 Message-ID: <20260813025626.24266-1-hilgad.montelo@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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