diff options
| author | Erni Sri Satya Vennela <ernis@linux.microsoft.com> | 2026-04-30 01:56:31 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-04 19:13:31 -0700 |
| commit | 93ca1575dd1f43e24ad85663305e13114f9acdf1 (patch) | |
| tree | 772de7ba4b739a54c99b38397a670b531cdefc61 /include/linux/timerqueue.h | |
| parent | db314398f618a3a23315f73c87f7d318eaf06c1b (diff) | |
net: mana: hardening: Reject zero max_num_queues from MANA_QUERY_VPORT_CONFIG
As a part of MANA hardening for CVM, validate that max_num_sq and
max_num_rq returned by MANA_QUERY_VPORT_CONFIG are not zero. These
values flow into apc->num_queues, which is used as an allocation count
and loop bound. A zero value would result in zero-size allocations and
incorrect driver behavior.
Return -EPROTO if either value is zero.
Signed-off-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com>
Link: https://patch.msgid.link/20260430085638.1875400-1-ernis@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
