Skip to content

[PW_SID:1145928] [v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths - #2469

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1145928
Closed

[PW_SID:1145928] [v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths#2469
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1145928

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1145928 applied to workflow__riscv__fixes

Name: [v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1145928
Version: 2

Linux RISC-V bot and others added 2 commits August 8, 2026 18:30
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: bf3022a ("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: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 142.49 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1133.86 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1441.86 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 27.21 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.95 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.77 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 89.75 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
kdoc
Desc: Detects for kdoc errors
Duration: 0.92 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
module-param
Desc: Detect module_param changes
Duration: 0.47 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] mailbox: riscv-sbi-mpxy: validate RPMI notification lengths"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch 3 times, most recently from bb1a926 to 6f6f7c0 Compare August 21, 2026 03:35
@linux-riscv-bot
linux-riscv-bot deleted the pw1145928 branch August 22, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants