summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-08-14 16:02:15 +0800
committerJassi Brar <jassisinghbrar@gmail.com>2026-08-15 15:41:13 -0500
commit11d5af151bcbe78f5a579e0faecd3be9cea0399a (patch)
tree7512c97890f650044fcf593560e9e82414a68991 /include
parent3ccffcc3672af5fc2f5809d349f26d2be8d318a3 (diff)
mailbox: riscv-sbi-mpxy: validate RPMI notification lengths
The SBI return value controls how many bytes are copied from shared memory into the RPMI notification buffer. It is not validated against the negotiated shared-memory size before that copy. The event walker also uses a reversed loop condition and can inspect a short event record. Validate the complete notification length before copying it, iterate only while a full event header remains, and stop when a declared event payload extends beyond the copied notification data. Fixes: bf3022a4eb11 ("mailbox: Add RISC-V SBI message proxy (MPXY) based mailbox driver") Assisted-by: Codex:gpt-5 Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions