Re: [PATCH net] net: DCB: Validate DCB_ATTR_DCB_BUFFER argument

2020-09-10 Thread David Miller
From: Petr Machata Date: Thu, 10 Sep 2020 14:09:05 +0200 > The parameter passed via DCB_ATTR_DCB_BUFFER is a struct dcbnl_buffer. The > field prio2buffer is an array of IEEE_8021Q_MAX_PRIORITIES bytes, where > each value is a number of a buffer to direct that priority's traffic to. > That value i

[PATCH net] net: DCB: Validate DCB_ATTR_DCB_BUFFER argument

2020-09-10 Thread Petr Machata
The parameter passed via DCB_ATTR_DCB_BUFFER is a struct dcbnl_buffer. The field prio2buffer is an array of IEEE_8021Q_MAX_PRIORITIES bytes, where each value is a number of a buffer to direct that priority's traffic to. That value is however never validated to lie within the bounds set by DCBX_MAX_