LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Question related to ( commit 9f691549f76d "bpf: fix struct htab_elem layout" )
@ 2021-08-30 14:16 Etienne Martineau
2021-08-30 16:39 ` Alexei Starovoitov
0 siblings, 1 reply; 3+ messages in thread
From: Etienne Martineau @ 2021-08-30 14:16 UTC (permalink / raw)
To: ast, jonperry, daniel, fengc, sashal; +Cc: linux-kernel, Etienne Martineau
Hi,
I've been staring at this commit for some time and I wonder what were the
symptoms when the issue was reproduced?
"The bug was discovered by manual code analysis and reproducible
only with explicit udelay() in lookup_elem_raw()."
I tried various stress test + timing combinations in lookup_elem_raw() but no
luck.
I believe that one of our production boxes ran into that issue lately with a GPF
in the area of htab_map_lookup_elem(). The crash was seen on an outdated
4.9 stable.
Please CC me as I'm not on the list.
thanks in advance,
Etienne
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question related to ( commit 9f691549f76d "bpf: fix struct htab_elem layout" )
2021-08-30 14:16 Question related to ( commit 9f691549f76d "bpf: fix struct htab_elem layout" ) Etienne Martineau
@ 2021-08-30 16:39 ` Alexei Starovoitov
2021-08-30 17:41 ` Etienne Martineau
0 siblings, 1 reply; 3+ messages in thread
From: Alexei Starovoitov @ 2021-08-30 16:39 UTC (permalink / raw)
To: Etienne Martineau, yonch
Cc: Alexei Starovoitov, Daniel Borkmann, Chenbo Feng, sashal, LKML
On Mon, Aug 30, 2021 at 7:17 AM Etienne Martineau <etmartin101@gmail.com> wrote:
>
> Hi,
>
> I've been staring at this commit for some time and I wonder what were the
> symptoms when the issue was reproduced?
> "The bug was discovered by manual code analysis and reproducible
> only with explicit udelay() in lookup_elem_raw()."
>
> I tried various stress test + timing combinations in lookup_elem_raw() but no
> luck.
That fix was a long time ago :)
afair the issue will not look like a crash, but rather an element
will not be found.
That's what lookup_nulls_elem_raw() is fixing.
> I believe that one of our production boxes ran into that issue lately with a GPF
> in the area of htab_map_lookup_elem(). The crash was seen on an outdated
> 4.9 stable.
Would be great if you can reproduce it on the latest kernel.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question related to ( commit 9f691549f76d "bpf: fix struct htab_elem layout" )
2021-08-30 16:39 ` Alexei Starovoitov
@ 2021-08-30 17:41 ` Etienne Martineau
0 siblings, 0 replies; 3+ messages in thread
From: Etienne Martineau @ 2021-08-30 17:41 UTC (permalink / raw)
To: Alexei Starovoitov
Cc: yonch, Alexei Starovoitov, Daniel Borkmann, Chenbo Feng, sashal, LKML
On Mon, Aug 30, 2021 at 12:39 PM Alexei Starovoitov
<alexei.starovoitov@gmail.com> wrote:
>
> On Mon, Aug 30, 2021 at 7:17 AM Etienne Martineau <etmartin101@gmail.com> wrote:
> >
> > Hi,
> >
> > I've been staring at this commit for some time and I wonder what were the
> > symptoms when the issue was reproduced?
> > "The bug was discovered by manual code analysis and reproducible
> > only with explicit udelay() in lookup_elem_raw()."
> >
> > I tried various stress test + timing combinations in lookup_elem_raw() but no
> > luck.
>
> That fix was a long time ago :)
> afair the issue will not look like a crash, but rather an element
> will not be found.
> That's what lookup_nulls_elem_raw() is fixing.
Under that same scenario I wonder if it's also possible to have a
messed up element somehow?
>
> > I believe that one of our production boxes ran into that issue lately with a GPF
> > in the area of htab_map_lookup_elem(). The crash was seen on an outdated
> > 4.9 stable.
>
> Would be great if you can reproduce it on the latest kernel.
We have another deployment on 5.4 stable running the same bpf code so
will let you know.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-30 17:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 14:16 Question related to ( commit 9f691549f76d "bpf: fix struct htab_elem layout" ) Etienne Martineau
2021-08-30 16:39 ` Alexei Starovoitov
2021-08-30 17:41 ` Etienne Martineau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).