Skip to content

net: sched: ife: malformed ife packet fixes

Alexander Aring netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyIn review
  2. v33 patches 1 replySuperseded
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches7 repliesSuperseded

Changes in v4 from the cover letter

- use pskb_may_pull

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: sched: ife: signal not finding metaidnet/sched/act_ife.c+1 -10 replies
2/3net: sched: ife: handle malformed tlv lengthinclude/net/ife.h net/ife/ife.c net/sched/act_ife.c+41 -40 replies
3/3net: sched: ife: check on metadata lengthnet/ife/ife.c+3 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchYotam GigiJamal Hadi Salim
1/3R-b A-b
2/3R-b A-b
3/3R-b A-b

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

Read the v4 thread

Cover letter [PATCHv4 net 0/3] net: sched: ife: malformed ife packet fixes

As promised at netdev 2.2 tc workshop I am working on adding scapy support for tdc testing. It is still work in progress. I will submit the patches to tdc later (they are not in good shape yet). The good news is I have been able to find bugs which normal packet testing would not be able to find. With fuzzy testing I was able to craft certain malformed packets that IFE action was not able to deal with. This patch set fixes those bugs.

changes since v4:
- use pskb_may_pull before pointer assign

changes since v3:
- use pskb_may_pull

changes since v2:
- remove inline from __ife_tlv_meta_valid
- add const to cast to meta_tlvhdr
- add acked and reviewed tags

Alexander Aring (3):
net: sched: ife: signal not finding metaid
net: sched: ife: handle malformed tlv length
net: sched: ife: check on metadata length

 include/net/ife.h   |  3 ++-
 net/ife/ife.c       | 38 ++++++++++++++++++++++++++++++++++++--
 net/sched/act_ife.c |  9 +++++++--
 3 files changed, 45 insertions(+), 5 deletions(-)
Signature · 1 line
2.11.0