diff options
| author | Nick Child <[email protected]> | 2023-03-21 15:07:25 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-03-23 05:38:25 +0000 |
| commit | 1cc6571f562774f1d928dc8b3cff50829b86e970 (patch) | |
| tree | da3bb41a3d09eb114f8844fc55744a261a16bd0b /net/unix/af_unix.c | |
| parent | net: Catch invalid index in XPS mapping (diff) | |
| download | kernel-1cc6571f562774f1d928dc8b3cff50829b86e970.tar.gz kernel-1cc6571f562774f1d928dc8b3cff50829b86e970.zip | |
netdev: Enforce index cap in netdev_get_tx_queue
When requesting a TX queue at a given index, warn on out-of-bounds
referencing if the index is greater than the allocated number of
queues.
Specifically, since this function is used heavily in the networking
stack use DEBUG_NET_WARN_ON_ONCE to avoid executing a new branch on
every packet.
Signed-off-by: Nick Child <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
