Re: [PATCH] kprobes/x86: Use copy_from_kernel_nofault() to read from unsafe address

2024-03-14 Thread Google
On Fri, 15 Mar 2024 00:12:30 +0900 "Masami Hiramatsu (Google)" wrote: > From: Masami Hiramatsu (Google) > > Read from an unsafe address with copy_from_kernel_nofault() in > arch_adjust_kprobe_addr() because this function is used before checking > the address is in text or not. Syzcaller bot

[PATCH] kprobes/x86: Use copy_from_kernel_nofault() to read from unsafe address

2024-03-14 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Read from an unsafe address with copy_from_kernel_nofault() in arch_adjust_kprobe_addr() because this function is used before checking the address is in text or not. Syzcaller bot found a bug and reported the case if user specifies inaccessible data area,