[PATCH v3] riscv: fix kprobe __user string arg print fault issue

Palmer Dabbelt palmer at rivosinc.com
Thu Jun 8 11:53:54 PDT 2023


On Thu, 04 May 2023 15:29:10 +0800, Ruan Jinjie wrote:
> On riscv qemu platform, when add kprobe event on do_sys_open() to show
> filename string arg, it just print fault as follow:
> 
> echo 'p:myprobe do_sys_open dfd=$arg1 filename=+0($arg2):string flags=$arg3
> mode=$arg4' > kprobe_events
> 
> bash-166     [000] ...1.   360.195367: myprobe: (do_sys_open+0x0/0x84)
> dfd=0xffffffffffffff9c filename=(fault) flags=0x8241 mode=0x1b6
> 
> [...]

Applied, thanks!

[1/1] riscv: fix kprobe __user string arg print fault issue
      https://git.kernel.org/palmer/c/99a670b2069c

Best regards,
-- 
Palmer Dabbelt <palmer at rivosinc.com>




More information about the linux-riscv mailing list