Re: [PATCH] riscv: Fix early ftrace nop patching
Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Thu, 23 May 2024 13:51:34 +0200 you wrote: > Commit c97bf629963e ("riscv: Fix text patching when IPI are used") > converted ftrace_make_nop() to use patch_insn_write() which does not > emit any icache flush relying entirely on __ftrace_modify_code() to do > that. > > But we missed that ftrace_make_nop() was called very early directly when > converting mcount calls into nops (actually on riscv it converts 2B nops > emitted by the compiler into 4B nops). > > [...] Here is the summary with links: - riscv: Fix early ftrace nop patching https://git.kernel.org/riscv/c/6ca445d8af0e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH] ftrace: riscv: move from REGS to ARGS
Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Fri, 5 Apr 2024 14:24:53 + you wrote: > This commit replaces riscv's support for FTRACE_WITH_REGS with support > for FTRACE_WITH_ARGS. This is required for the ongoing effort to stop > relying on stop_machine() for RISCV's implementation of ftrace. > > The main relevant benefit that this change will bring for the above > use-case is that now we don't have separate ftrace_caller and > ftrace_regs_caller trampolines. This will allow the callsite to call > ftrace_caller by modifying a single instruction. Now the callsite can > do something similar to: > > [...] Here is the summary with links: - ftrace: riscv: move from REGS to ARGS https://git.kernel.org/riscv/c/aa4cc1761cca You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH v3 0/2] riscv: fix patching with IPI
Hello: This series was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Thu, 29 Feb 2024 13:10:54 +0100 you wrote: > patch 1 removes a useless memory barrier and patch 2 actually fixes the > issue with IPI in the patching code. > > Changes in v3: > - Remove wrong cleanup as noted by Samuel > - Enhance comment about usage of release semantics as suggested by > Andrea > - Add RBs from Andrea > > [...] Here is the summary with links: - [v3,1/2] riscv: Remove superfluous smp_mb() https://git.kernel.org/riscv/c/29cee75fb66e - [v3,2/2] riscv: Fix text patching when IPI are used https://git.kernel.org/riscv/c/c97bf629963e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH v12 for-next 0/4] riscv: ftrace: Miscellaneous ftrace improvements
Hello: This series was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Thu, 30 Nov 2023 13:15:27 +0100 you wrote: > From: Björn Töpel > > NB! Song told me that he would not have the time work on this series, > so I picked it up. > > This series includes a three ftrace improvements for RISC-V: > > [...] Here is the summary with links: - [v12,for-next,1/4] riscv: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY https://git.kernel.org/riscv/c/b546d6363af4 - [v12,for-next,2/4] riscv: ftrace: Make function graph use ftrace directly https://git.kernel.org/riscv/c/35e61e8827ee - [v12,for-next,3/4] riscv: ftrace: Add DYNAMIC_FTRACE_WITH_DIRECT_CALLS support https://git.kernel.org/riscv/c/196c79f19a92 - [v12,for-next,4/4] samples: ftrace: Add RISC-V support for SAMPLE_FTRACE_DIRECT[_MULTI] https://git.kernel.org/riscv/c/629291dd8499 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH v2 1/2] kbuild: unify vdso_install rules
Hello: This series was applied to riscv/linux.git (fixes) by Masahiro Yamada : On Sat, 14 Oct 2023 19:54:35 +0900 you wrote: > Currently, there is no standard implementation for vdso_install, > leading to various issues: > > 1. Code duplication > > Many architectures duplicate similar code just for copying files > to the install destination. > > [...] Here is the summary with links: - [v2,1/2] kbuild: unify vdso_install rules https://git.kernel.org/riscv/c/56769ba4b297 - [v2,2/2] kbuild: unify no-compiler-targets and no-sync-config-targets https://git.kernel.org/riscv/c/9d361173edc4 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH -fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_
Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Tue, 3 Oct 2023 20:24:07 +0200 you wrote: > ftrace creates entries for each syscall in the tracefs but has failed > since commit 08d0ce30e0e4 ("riscv: Implement syscall wrappers") which > prefixes all riscv syscalls with __riscv_. > > So fix this by implementing arch_syscall_match_sym_name() which allows us > to ignore this prefix. > > [...] Here is the summary with links: - [-fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_ https://git.kernel.org/riscv/c/a87e7d3e8832 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH v3] riscv: Only consider swbp/ss handlers for correct privileged mode
Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Tue, 12 Sep 2023 08:56:19 +0200 you wrote: > From: Björn Töpel > > RISC-V software breakpoint trap handlers are used for {k,u}probes. > > When trapping from kernelmode, only the kernelmode handlers should be > considered. Vice versa, only usermode handlers for usermode > traps. This is not the case on RISC-V, which can trigger a bug if a > userspace process uses uprobes, and a WARN() is triggered from > kernelmode (which is implemented via {c.,}ebreak). > > [...] Here is the summary with links: - [v3] riscv: Only consider swbp/ss handlers for correct privileged mode https://git.kernel.org/riscv/c/9f564b92cf6d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html