Skip to content

[PW_SID:959422] riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL#372

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

[PW_SID:959422] riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL#372
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw959422

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 959422 applied to workflow__riscv__fixes

Name: riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=959422
Version: 1

Linux RISC-V bot and others added 2 commits April 30, 2025 11:41
When userspace does PR_SET_TAGGED_ADDR_CTRL, but Supm extension is not
available, the kernel crashes:

Oops - illegal instruction [#1]
    [snip]
epc : set_tagged_addr_ctrl+0x112/0x15a
 ra : set_tagged_addr_ctrl+0x74/0x15a
epc : ffffffff80011ace ra : ffffffff80011a30 sp : ffffffc60039be10
    [snip]
status: 0000000200000120 badaddr: 0000000010a79073 cause: 0000000000000002
    set_tagged_addr_ctrl+0x112/0x15a
    __riscv_sys_prctl+0x352/0x73c
    do_trap_ecall_u+0x17c/0x20c
    andle_exception+0x150/0x15c

Fix it by checking if Supm is available.

Fixes: 09d6775 ("riscv: Add support for userspace pointer masking")
Signed-off-by: Nam Cao <namcao@linutronix.de>
Cc: stable@vger.kernel.org
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 106.86 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 983.03 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1278.40 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.39 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.69 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.79 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 66.91 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
kdoc
Desc: Detects for kdoc errors
Duration: 0.86 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch 2 times, most recently from 625be03 to 472f050 Compare May 8, 2025 16:53
@linux-riscv-bot linux-riscv-bot deleted the pw959422 branch May 8, 2025 16:53
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