netdev
[Top] [All Lists]

Re: sch_dsmark bug

To: Hugo Santos <hugo@xxxxxxxxxxxxxx>
Subject: Re: sch_dsmark bug
From: jamal <hadi@xxxxxxxxxx>
Date: 11 Apr 2004 15:43:03 -0400
Cc: netdev@xxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxx>, Werner Almesberger <werner@xxxxxxxxxxxxxxx>
In-reply-to: <40793D5A.9060706@xxxxxxxxxxxxxx>
Organization: jamalopolis
References: <40793D5A.9060706@xxxxxxxxxxxxxx>
Reply-to: hadi@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Looks legit nit. Why are you sending empty opts anyways? ;->
patchlet attached - you should have sent one ;->
Maybe you can inspect other qdiscs.

cheers,
jamal

On Sun, 2004-04-11 at 08:43, Hugo Santos wrote:
> Hi there,
> 
> I tried to contact the person whose name is in the source file but with
> no success. While developing some code that handles with kernel's TC
> objects direcly (by netlink) i found a small problem with dsmark (maybe
> other scheds have it too, but i haven't checked). This is in linux 2.6.4
> (there is no change in this context in 2.6.5); in dsmark_init, if opt is
> NULL, the module will crash and TC will get stuck. the module will have a
> ref count of 1 so i can't unload it, and i can't change any other TC
> stuff since the netlink socket gets stuck when dsmark crashes. So, a simple
> 
> if (!opt) return -EINVAL;
> 
> would prevent such problems.
> 
> If you prefer i may send a patch, but since it's only a one line patch i 
> didn't
> send one.
> 
> Best regards,
> Hugo Santos
> 
> 
> 
> 
> 

Attachment: p1
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>