lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <CAM_iQpWGR6zLrGLGsMPM1Y-z45Nd4XO3X_H1KDTedsz2=5mXng@mail.gmail.com> Date: Fri, 6 Feb 2015 21:13:31 -0800 From: Cong Wang <xiyou.wangcong@...il.com> To: Rasmus Villemoes <linux@...musvillemoes.dk> Cc: "David S. Miller" <davem@...emloft.net>, Pravin B Shelar <pshelar@...ira.com>, Nicolas Dichtel <nicolas.dichtel@...nd.com>, Linux Kernel Network Developers <netdev@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org> Subject: Re: [PATCH] vxlan: Wrong type passed to %pIS On Fri, Feb 6, 2015 at 6:17 PM, Rasmus Villemoes <linux@...musvillemoes.dk> wrote: > src_ip is a pointer to a union vxlan_addr, one member of which is a > struct sockaddr. Passing a pointer to src_ip is wrong; one should pass > the value of src_ip itself. Since %pIS formally expects something of > type struct sockaddr*, let's pass a pointer to the appropriate union > member, though this of course doesn't change the generated code. > It is a union, this doesn't harm. > Fixes: e4c7ed415387 ("vxlan: add ipv6 support") > Signed-off-by: Rasmus Villemoes <linux@...musvillemoes.dk> > --- > drivers/net/vxlan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c > index a8c755dcab14..11defbb24183 100644 > --- a/drivers/net/vxlan.c > +++ b/drivers/net/vxlan.c > @@ -991,7 +991,7 @@ static bool vxlan_snoop(struct net_device *dev, > if (net_ratelimit()) > netdev_info(dev, > "%pM migrated from %pIS to %pIS\n", > - src_mac, &rdst->remote_ip, &src_ip); > + src_mac, &rdst->remote_ip.sa, &src_ip->sa); > > rdst->remote_ip = *src_ip; > f->updated = jiffies; Since you are on it, there is another similar place in vxlan too. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists