Re: [PATCH] powerpc/kprobes: Fix null pointer reference in arch_prepare_kprobe()
From: Naveen N. Rao <hidden>
Date: 2022-10-12 09:53:53
Also in:
lkml
From: Naveen N. Rao <hidden>
Date: 2022-10-12 09:53:53
Also in:
lkml
Li Huafei wrote:
quoted
quoted
# echo 'p cmdline_proc_show' > kprobe_events # echo 'p cmdline_proc_show+16' >> kprobe_eventsI think we should extend multiple_kprobes selftest to also place contiguous probes to catch such errors.Yes. But each architecture implementation is different and it looks a little difficult to decide which offsets need to be tested.
I don't think we need to be accurate here. A test to simply try putting a probe at every byte within the first 256 bytes of a kernel function should help catch many such issues. Some of those probes will be rejected, but we can ignore errors. - Naveen