Skip to content

net/eth: Fix stack-buffer-overflow in _eth_get_rss_ex_dst_addr()

Philippe Mathieu-Daudé qemu-devel 6 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 7 repliesApplied
  2. v57 patches 9 repliesSuperseded
  3. v46 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches3 repliesSuperseded
v22 patches4 repliesSuperseded
v12 patches2 repliesSuperseded

Changes in v6 from the cover letter

- addressed Stefano's review comments:
- add now patch fixing in6_address offset

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/7net/eth: Use correct in6_address offset in _eth_get_rss_ex_dst_addr()net/eth.c+1 -11 reply
2/7net/eth: Simplify _eth_get_rss_ex_dst_addr()net/eth.c+7 -70 replies
3/7net/eth: Better describe _eth_get_rss_ex_dst_addr's offset argumentnet/eth.c+3 -30 replies
4/7net/eth: Check size earlier in _eth_get_rss_ex_dst_addr()net/eth.c+6 -80 replies
5/7net/eth: Check iovec has enough data earliernet/eth.c+1 -10 replies
6/7net/eth: Read ip6_ext_hdr_routing buffer before accessing itMAINTAINERS net/eth.c tests/qtest/fuzz-e1000e-test.c +1 more+63 -54 replies
7/7net/eth: Add an assert() and invert if() statement to simplify codenet/eth.c+6 -70 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMiroslav RezaninaStefano Garzarella
SeriesR-b
1/7R-b
2/7R-b R-b
3/7R-b
4/7R-b
5/7
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/7] net/eth: Fix stack-buffer-overflow in _eth_get_rss_ex_dst_addr()

I had a look at the patch from Miroslav trying to silence a compiler warning which in fact is a nasty bug. Here is a fix.
https://www.mail-archive.com/[email protected]/msg772735.html

Since v5:
- addressed Stefano's review comments:
- add now patch fixing in6_address offset

Since v4:
- reworked again, tested it with Fedora Raw Hide

Philippe Mathieu-Daudé (7):
net/eth: Use correct in6_address offset in _eth_get_rss_ex_dst_addr() net/eth: Simplify _eth_get_rss_ex_dst_addr()
net/eth: Better describe _eth_get_rss_ex_dst_addr's offset argument net/eth: Check size earlier in _eth_get_rss_ex_dst_addr() net/eth: Check iovec has enough data earlier
net/eth: Read ip6_ext_hdr_routing buffer before accessing it net/eth: Add an assert() and invert if() statement to simplify code

 net/eth.c                      | 46 ++++++++++++++---------------
 tests/qtest/fuzz-e1000e-test.c | 53 ++++++++++++++++++++++++++++++++++
 MAINTAINERS                    |  1 +
 tests/qtest/meson.build        |  1 +
 4 files changed, 78 insertions(+), 23 deletions(-)
 create mode 100644 tests/qtest/fuzz-e1000e-test.c
Signature · 1 line
2.26.2