From: David Heidelberg <david@ixit.cz>
To: Casey Connolly <kcxt@postmarketos.org>,
Kaustabh Chakraborty <kauschluss@disroot.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"Jason A. Donenfeld" <Jason@zx2c4.com>,
Matthias Schiffer <matthias.schiffer@ew.tq-group.com>,
Vincent Huang <vincent.huang@tw.synaptics.com>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org
Subject: Re: [PATCH v7 2/7] Input: synaptics-rmi4 - handle duplicate/unknown PDT entries
Date: Fri, 20 Mar 2026 17:54:07 +0100 [thread overview]
Message-ID: <3dca0fc0-fe1c-4f84-b336-856f55a6e3da@ixit.cz> (raw)
In-Reply-To: <fba73d66-4300-4c4d-9bf6-4b38a4e847d7@postmarketos.org>
On 20/03/2026 17:49, Casey Connolly wrote:
> Hi David,
>
> Nice timing with the series, I hit an OOB access (found it when I
> enabled UBSAN) with this patch the other day.
>
> The pdt_scan_state->pdts array should actually be of size (RMI_PDT_MAX+1).
>
> Additionally, I think rmi_pdt_entry_is_valid() is missing a bounds check.
>
> Kind regards,
Thanks a lot for catching this and for the detailed notes — that’s very helpful.
Since you’re the original author of the commit, I’m completely fine with you
taking over the b4 series if you’d prefer. Alternatively, if it’s easier, feel
free to just send me a fixed patch and I can incorporate it.
Whichever works best for you.
David>
> On 20/03/2026 17:44, David Heidelberg via B4 Relay wrote:
>> From: Casey Connolly <casey.connolly@linaro.org>
>>
>> Some third party rmi4-compatible ICs don't expose their PDT entries
>> very well. Add a few checks to skip duplicate entries as well as entries
>> for unsupported functions.
>>
>> This is required to support some phones with third party displays.
>>
>> Validated on a stock OnePlus 6T (original parts):
>> manufacturer: Synaptics, product: S3706B, fw id: 2852315
>>
>> Co-developed-by: Kaustabh Chakraborty <kauschluss@disroot.org>
>> Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
>> Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
>> Co-developed-by: David Heidelberg <david@ixit.cz>
>> Signed-off-by: David Heidelberg <david@ixit.cz>
[...]
next prev parent reply other threads:[~2026-03-20 16:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 16:44 [PATCH v7 0/7] Input: synaptics-rmi4 - add quirks for third party touchscreen controllers David Heidelberg via B4 Relay
2026-03-20 16:44 ` [PATCH v7 1/7] dt-bindings: input: syna,rmi4: Document syna,rmi4-s3706b David Heidelberg via B4 Relay
2026-03-20 16:44 ` [PATCH v7 2/7] Input: synaptics-rmi4 - handle duplicate/unknown PDT entries David Heidelberg via B4 Relay
2026-03-20 16:49 ` Casey Connolly
2026-03-20 16:54 ` David Heidelberg [this message]
2026-03-20 17:03 ` Casey Connolly
2026-03-20 17:12 ` David Heidelberg
2026-03-20 17:19 ` David Heidelberg
2026-03-20 16:44 ` [PATCH v7 3/7] Input: synaptics-rmi4 - f12: use hardcoded values for aftermarket touch ICs David Heidelberg via B4 Relay
2026-03-20 16:44 ` [PATCH v7 4/7] Input: synaptics-rmi4 - f55: handle zero electrode count David Heidelberg via B4 Relay
2026-03-20 16:44 ` [PATCH v7 5/7] Input: synaptics-rmi4 - don't do unaligned reads in IRQ context David Heidelberg via B4 Relay
2026-03-20 16:44 ` [PATCH v7 6/7] Input: synaptics-rmi4 - read product ID on aftermarket touch ICs David Heidelberg via B4 Relay
2026-03-20 16:44 ` [PATCH v7 7/7] Input: synaptics-rmi4 - support fallback values for PDT descriptor bytes David Heidelberg via B4 Relay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3dca0fc0-fe1c-4f84-b336-856f55a6e3da@ixit.cz \
--to=david@ixit.cz \
--cc=Jason@zx2c4.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=kauschluss@disroot.org \
--cc=kcxt@postmarketos.org \
--cc=krzk+dt@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias.schiffer@ew.tq-group.com \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=vincent.huang@tw.synaptics.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox