From: Davide Caratti <dcara...@redhat.com>
Date: Thu,  4 Apr 2019 12:31:35 +0200

> the control path of 'sample' action does not validate the value of 'rate'
> provided by the user, but then it uses it as divisor in the traffic path.
> Validate it in tcf_sample_init(), and return -EINVAL with a proper extack
> message in case that value is zero, to fix a splat with the script below:
 ...
> Add a TDC selftest to document that 'rate' is now being validated.
> 
> Reported-by: Matteo Croce <mcr...@redhat.com>
> Fixes: 5c5670fae430 ("net/sched: Introduce sample tc action")
> Signed-off-by: Davide Caratti <dcara...@redhat.com>

Applied and queued up for -stable.

Thanks for adding a unit test.

Reply via email to