Skip to content

[PW_SID:1129939] irqchip/riscv-aplic: Validate translated source IDs#2310

Open
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1129939
Open

[PW_SID:1129939] irqchip/riscv-aplic: Validate translated source IDs#2310
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1129939

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1129939 applied to workflow__riscv__fixes

Name: irqchip/riscv-aplic: Validate translated source IDs
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1129939
Version: 1

Linux RISC-V bot and others added 2 commits July 15, 2026 17:25
APLIC source IDs are in the range 1..riscv,num-sources. Device Tree
interrupt specifiers contain a source ID directly, while ACPI specifiers
contain a GSI that must first be translated by subtracting gsi_base.

The shared helper currently checks only whether the raw specifier is zero.
An ACPI GSI equal to gsi_base therefore becomes source ID zero, a GSI below
gsi_base underflows, and either firmware interface can provide a source ID
above the configured count. These values later reach d->hwirq - 1 register
and saved-state indexing.

Pass the configured source count to the shared helper and validate the
translated ID before returning it. This covers both direct and MSI modes.

Fixes: 2333df5 ("irqchip: Add RISC-V advanced PLIC driver for direct-mode")
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: "irqchip/riscv-aplic: Validate translated source IDs"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 140.56 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1399.11 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1674.71 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 25.88 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.90 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.47 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 85.91 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
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: "irqchip/riscv-aplic: Validate translated source IDs"
kdoc
Desc: Detects for kdoc errors
Duration: 0.86 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "irqchip/riscv-aplic: Validate translated source IDs"
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: "irqchip/riscv-aplic: Validate translated source IDs"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 8ca72ef to 60e0882 Compare July 19, 2026 17:58
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