Skip to content

drop_monitor: Better sanitize notified packets

Ido Schimmel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netdevsim: Set offsets to various protocol layersdrivers/net/netdevsim/dev.c+3 -00 replies
2/2drop_monitor: Better sanitize notified packetsnet/core/drop_monitor.c+6 -00 replies

Reviews trailers per patch

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

PatchJiri Pirko
1/2A-b
2/2A-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/2] drop_monitor: Better sanitize notified packets

From: Ido Schimmel <[email protected]>

When working in 'packet' mode, drop monitor generates a notification with a potentially truncated payload of the dropped packet. The payload is copied from the MAC header, but I forgot to check that the MAC header was set, so do it now.

Patch #1 sets the offsets to the various protocol layers in netdevsim, so that it will continue to work after the MAC header check is added to drop monitor in patch #2.

Ido Schimmel (2):
netdevsim: Set offsets to various protocol layers
drop_monitor: Better sanitize notified packets

 drivers/net/netdevsim/dev.c | 3 +++
 net/core/drop_monitor.c     | 6 ++++++
 2 files changed, 9 insertions(+)
Signature · 1 line
2.21.0