Thread (3 messages) 3 messages, 2 authors, 2003-11-18

Re: [PATCH] IPv6: Fix erratic behavior in rt6_dump_route()

flat view

From: David S. Miller <hidden>
Date: 2003-11-17 20:43:07

On Mon, 17 Nov 2003 12:11:52 +0200 (EET)
Ville Nuorvala [off-list ref] wrote:
Hi Dave!

I noticed some erratic behavior when doing "ip -6 r". I traced the problem
to rt6_dump_route() where we typecast NLMSG_DATA() to a rtmsg without
checking the size of the netlink message first. Seems like ip only passes
a rtgenmsg to the kernel when it does a dump, so we end up reading pure
garbage when we interpret it as a rtmsg. Please apply the patch!
Thanks a lot Ville, I will review your patch a bit more and
most likely apply it later today.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help