diff options
| author | Hangyu Hua <[email protected]> | 2023-09-08 14:19:49 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-09-11 08:26:10 +0100 |
| commit | 51fe0a470543f345e3c62b6798929de3ddcedc1d (patch) | |
| tree | 62cec8092627922f2dce84a41ae46af3dad5ada6 /drivers/gpu/drm/amd/display/modules/inc/mod_shared.h | |
| parent | 9b90aca97f6d5255ca41e716720d138b878cd034 (diff) | |
net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
rules is allocated in ethtool_get_rxnfc and the size is determined by
rule_cnt from user space. So rule_cnt needs to be check before using
rules to avoid OOB writing or NULL pointer dereference.
Fixes: 90b509b39ac9 ("net: mvpp2: cls: Add Classification offload support")
Signed-off-by: Hangyu Hua <[email protected]>
Reviewed-by: Marcin Wojtas <[email protected]>
Reviewed-by: Russell King (Oracle) <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/inc/mod_shared.h')
0 files changed, 0 insertions, 0 deletions