[Cake] issue with Cake and bpf filter

Toke Høiland-Jørgensen toke at toke.dk
Wed Aug 22 06:13:29 EDT 2018


Jonathan Morton <chromatix99 at gmail.com> writes:

>> On 22 Aug, 2018, at 12:51 pm, Pete Heist <pete at heistp.net> wrote:
>> 
>> "math between pkt pointer and 4294901760 is not allowed"
>
> As a possible clue here, 4294901760 == (2^32) - (2^16).
>
> I suspect both errors are being caused by the call to memcpy(). This
> potentially inlines a substantial amount of code which may not be
> eBPF-clean.

Yeah, I think this is a good guess. You could try using
__builtin_memcpy() instead; that may do fewer pointer shenanigans than
the function-header-defined one...

-Toke


More information about the Cake mailing list