netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] net: netem: fix further issues with packet corruption
@ 2019-10-18 16:16 Jakub Kicinski
  2019-10-18 16:16 ` [PATCH net v2 1/2] net: netem: fix error path for corrupted GSO frames Jakub Kicinski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jakub Kicinski @ 2019-10-18 16:16 UTC (permalink / raw)
  To: davem; +Cc: netdev, oss-drivers, stephen, xiyou.wangcong, Jakub Kicinski

Hi!

This set is fixing two more issues with the netem packet corruption.

First patch (which was previously posted) avoids NULL pointer dereference
if the first frame gets freed due to allocation or checksum failure.
v2 improves the clarity of the code a little as requested by Cong.

Second patch ensures we don't return SUCCESS if the frame was in fact
dropped. Thanks to this commit message for patch 1 no longer needs the
"this will still break with a single-frame failure" disclaimer.

Jakub Kicinski (2):
  net: netem: fix error path for corrupted GSO frames
  net: netem: correct the parent's backlog when corrupted packet was
    dropped

 net/sched/sch_netem.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

-- 
2.23.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-19 19:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-18 16:16 [PATCH net v2 0/2] net: netem: fix further issues with packet corruption Jakub Kicinski
2019-10-18 16:16 ` [PATCH net v2 1/2] net: netem: fix error path for corrupted GSO frames Jakub Kicinski
2019-10-18 16:16 ` [PATCH net v2 2/2] net: netem: correct the parent's backlog when corrupted packet was dropped Jakub Kicinski
2019-10-18 16:36 ` [PATCH net v2 0/2] net: netem: fix further issues with packet corruption Stephen Hemminger
2019-10-19 19:14 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).