[RFC PATCH 09/11] bpf: mark helpers explicitly whether they may change

2019-05-21 Thread Kris Van Hees
Some helpers may update the context. Right now, various network filter helpers may make changes to the packet data. This is verified by calling the bpf_helper_changes_pkt_data() function with the function pointer. This function resides in net/core/filter.c and needs to be updated for any helper

[RFC PATCH 09/11] bpf: mark helpers explicitly whether they may change the context

2019-05-20 Thread Kris Van Hees
Some helpers may update the context. Right now, various network filter helpers may make changes to the packet data. This is verified by calling the bpf_helper_changes_pkt_data() function with the function pointer. This function resides in net/core/filter.c and needs to be updated for any helper