On Fri, 5 Apr 2019 17:45:34 +0200
Matteo Croce wrote:
> On Fri, Apr 5, 2019 at 2:51 AM Matteo Croce wrote:
> >
> > On Fri, Apr 5, 2019 at 2:20 AM David Miller wrote:
> > >
> > > From: Matteo Croce
> > > Date: Wed, 3 Apr 2019 01:11:36 +0200
> > >
> > > > The thunderx driver forbids to load
On Fri, Apr 5, 2019 at 2:51 AM Matteo Croce wrote:
>
> On Fri, Apr 5, 2019 at 2:20 AM David Miller wrote:
> >
> > From: Matteo Croce
> > Date: Wed, 3 Apr 2019 01:11:36 +0200
> >
> > > The thunderx driver forbids to load an eBPF program if the MTU is
> > > higher than 1500 bytes, but this can be
On Fri, Apr 5, 2019 at 2:20 AM David Miller wrote:
>
> From: Matteo Croce
> Date: Wed, 3 Apr 2019 01:11:36 +0200
>
> > The thunderx driver forbids to load an eBPF program if the MTU is
> > higher than 1500 bytes, but this can be circumvented by first
> > loading the eBPF, and then raising the MT
From: Matteo Croce
Date: Wed, 3 Apr 2019 01:11:36 +0200
> The thunderx driver forbids to load an eBPF program if the MTU is higher
> than 1500 bytes, but this can be circumvented by first loading the eBPF,
> and then raising the MTU.
>
> XDP assumes that SKBs are linear and fit in a single page
On Wed, 3 Apr 2019 01:11:36 +0200
Matteo Croce wrote:
> The thunderx driver forbids to load an eBPF program if the MTU is higher
> than 1500 bytes, but this can be circumvented by first loading the eBPF,
> and then raising the MTU.
>
> XDP assumes that SKBs are linear and fit in a single page,
The thunderx driver forbids to load an eBPF program if the MTU is higher
than 1500 bytes, but this can be circumvented by first loading the eBPF,
and then raising the MTU.
XDP assumes that SKBs are linear and fit in a single page, this can lead
to undefined behaviours.
Fix this by limiting the MTU