diff options
| author | Vitaly Lifshits <vitaly.lifshits@intel.com> | 2025-08-17 12:25:47 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-09 19:02:34 +0200 |
| commit | 0aec3211283482cfcdd606d1345e1f9acbcabd31 (patch) | |
| tree | 83d03f2dbadf6a2c002686f804b58bc2ac8ae3f9 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3c26a8d30ed6b53a52a023ec537dc50a6d34a67a (diff) | |
| download | kernel-0aec3211283482cfcdd606d1345e1f9acbcabd31.tar.gz | |
e1000e: fix heap overflow in e1000_set_eeprom
commit 90fb7db49c6dbac961c6b8ebfd741141ffbc8545 upstream.
Fix a possible heap overflow in e1000_set_eeprom function by adding
input validation for the requested length of the change in the EEPROM.
In addition, change the variable type from int to size_t for better
code practices and rearrange declarations to RCT.
Cc: stable@vger.kernel.org
Fixes: bc7f75fa9788 ("[E1000E]: New pci-express e1000 driver (currently for ICH9 devices only)")
Co-developed-by: Mikael Wessel <post@mikaelkw.online>
Signed-off-by: Mikael Wessel <post@mikaelkw.online>
Signed-off-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
