[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170413.160148.1850150011941347398.davem@davemloft.net>
Date: Thu, 13 Apr 2017 16:01:48 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: johannes@...solutions.net
Cc: alexei.starovoitov@...il.com, netdev@...r.kernel.org,
xdp-newbies@...r.kernel.org
Subject: Re: [PATCH v3 net-next RFC] Generic XDP
From: Johannes Berg <johannes@...solutions.net>
Date: Thu, 13 Apr 2017 21:22:21 +0200
> OTOH, it might depend on the frame data itself, if the program does
> something like
>
> xdp->data[xdp->data[0] & 0xf]
>
> (read or write, doesn't really matter) so then the verifier would have
> to take the maximum possible value there into account.
I am not well versed enough with the verifier to understand exactly
how and to what extent SKB accesses are validated by the verifier.
My, perhaps mistaken, impression is that access range validation is
still at least partially done at run time.
Powered by blists - more mailing lists