[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170510.115720.1396306489898364855.davem@davemloft.net>
Date: Wed, 10 May 2017 11:57:20 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: daniel@...earbox.net
Cc: alexei.starovoitov@...il.com, ast@...com, netdev@...r.kernel.org
Subject: Re: bpf pointer alignment validation
From: Daniel Borkmann <daniel@...earbox.net>
Date: Wed, 10 May 2017 17:51:50 +0200
> Would probably be good nevertheless to have this as a flag for
> program loads, which gets then passed through to the verifier to
> explicitly enable strict alignment checks.
>
> Might certainly aide developing & testing programs on archs with
> efficient unaligned access and later actually running them on archs
> that don't have it. (And at minimum, it also helps for checking
> the test suite against the verifier.)
Ok, I can implement this flag.
The only question is where to put it? An unused bit in the program
type? :-)
Powered by blists - more mailing lists