lkml.org 
[lkml]   [2021]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] net: sched: sch_netem: Fix a divide error in netem_enqueue during randomized corruption.
On Wed, 24 Nov 2021 02:47:15 -0800 Harshit Mogalapalli wrote:
> In netem_enqueue function the value of skb_headlen(skb) can be zero
> which leads to a division error during randomized corruption of the
> packet. This fix adds a check to skb_headlen(skb) to prevent the division
> error.

Empty skbs are not sane. Is it just the fact that netlink_sendmsg()
does not pay much attention to len that's the problem? Can we fix that
instead?

\
 
 \ /
  Last update: 2021-11-26 05:19    [W:2.058 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site