Re: [PATCH net-next v3 2/5] net/sched: user-space can't set unknown tcfa_action values

2018-07-25 Thread Jiri Pirko
Tue, Jul 24, 2018 at 10:06:40PM CEST, pab...@redhat.com wrote: >Currently, when initializing an action, the user-space can specify >and use arbitrary values for the tcfa_action field. If the value >is unknown by the kernel, is implicitly threaded as TC_ACT_UNSPEC. > >This change explicitly checks f

[PATCH net-next v3 2/5] net/sched: user-space can't set unknown tcfa_action values

2018-07-24 Thread Paolo Abeni
Currently, when initializing an action, the user-space can specify and use arbitrary values for the tcfa_action field. If the value is unknown by the kernel, is implicitly threaded as TC_ACT_UNSPEC. This change explicitly checks for unknown values at action creation time, and explicitly convert th