Re: [PATCH] x86 bpf: Fix extable offset calculation

From: Alexei Starovoitov
Date: Fri Jun 25 2021 - 11:07:28 EST


On Thu, Jun 24, 2021 at 11:22 PM Ravi Bangoria
<ravi.bangoria@xxxxxxxxxxxxx> wrote:
> > Could you send a followup patch with a selftest, so I don't make
> > the same mistake again ? ;)
>
> Unfortunately extable gets involved only for bad kernel pointers and
> ideally there should not be any bad pointer in kernel. So there is no
> easy way to create a proper selftest for this.

Right. We have lib/test_bpf.c kernel module for such cases.