Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drop_monitor: Better sanitize notified packets
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. Fixes: ca30707 ("drop_monitor: Add packet alert mode") Fixes: 5e58109 ("drop_monitor: Add support for packet alert mode for hardware drops") Acked-by: Jiri Pirko <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information