diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-07-20 19:55:23 +0800 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-08-06 14:07:49 +0100 |
| commit | 0be718b5451bd83865d6e2a8d750ca7886c4772a (patch) | |
| tree | 097ff9075a166aa571869b5609abad8c0cf778f2 /scripts/git.orderFile | |
| parent | 83feedd9d83c0c5199f98c72df0a6196b4aefb4d (diff) | |
| download | linux-0be718b5451bd83865d6e2a8d750ca7886c4772a.tar.gz linux-0be718b5451bd83865d6e2a8d750ca7886c4772a.zip | |
mfd: rave-sp: validate received frame payload lengths
A received RAVE-SP frame contains protocol data followed by a
variant-specific one- or two-byte checksum. rave_sp_receive_frame() derives
a checksum pointer before proving that the frame contains the checksum,
then passes the checksum-inclusive length to handlers that index the
command, acknowledgment ID and event-data bytes or derive a reply payload
length.
Name those protocol field offsets, prove the checksum extent before
deriving the protocol-data length, pass only that data length to the
handlers, and require the complete event or reply prefix before consuming
it.
Fixes: 538ee27290fa ("mfd: Add driver for RAVE Supervisory Processor")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://lore.kernel.org/all/20260706092337.78754-1-pengpeng@iscas.ac.cn/
Link: https://patch.msgid.link/20260720115523.99956-1-pengpeng@iscas.ac.cn
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
