• Eric Dumazet's avatar
    netem: add limitation to reordered packets · 960fb66e
    Eric Dumazet authored
    Fix two netem bugs :
    
    1) When a frame was dropped by tfifo_enqueue(), drop counter
       was incremented twice.
    
    2) When reordering is triggered, we enqueue a packet without
       checking queue limit. This can OOM pretty fast when this
       is repeated enough, since skbs are orphaned, no socket limit
       can help in this situation.
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Cc: Mark Gordon <msg@google.com>
    Cc: Andreas Terzis <aterzis@google.com>
    Cc: Yuchung Cheng <ycheng@google.com>
    Cc: Hagen Paul Pfeifer <hagen@jauu.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    960fb66e
sch_netem.c 23.7 KB