summaryrefslogtreecommitdiff
path: root/scripts/git.orderFile
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-07-20 19:55:23 +0800
committerLee Jones <lee@kernel.org>2026-08-06 14:07:49 +0100
commit0be718b5451bd83865d6e2a8d750ca7886c4772a (patch)
tree097ff9075a166aa571869b5609abad8c0cf778f2 /scripts/git.orderFile
parent83feedd9d83c0c5199f98c72df0a6196b4aefb4d (diff)
downloadlinux-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