* re: firewire net, ipv4 arp: Extend hardware address and remove driver-level packet inspection.
@ 2013-04-02 6:36 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-04-02 6:36 UTC (permalink / raw)
To: yoshfuji; +Cc: linux1394-devel, netdev, kbuild
Hello YOSHIFUJI Hideaki / 吉藤英明,
The patch 6752c8db8e0c: "firewire net, ipv4 arp: Extend hardware
address and remove driver-level packet inspection." from Mar 25,
2013, leads to the following warning:
"drivers/firewire/net.c:278 fwnet_header_parse()
error: memcpy() 'haddr' too small (8 vs 16)"
drivers/firewire/net.c
276 static int fwnet_header_parse(const struct sk_buff *skb, unsigned char *haddr)
277 {
278 memcpy(haddr, skb->dev->dev_addr, FWNET_ALEN);
^^^^^^^^^^
We bumped this to 16 bytes and made the fwnet_header and fwnet_hwaddr
structs bigger. But according to Smatch this is still an 8 byte buffer
here. Either phw.hw_addr or sll->sll_addr.
The call tree would be:
-> packet_rcv()
-> dev_parse_header()
-> fwnet_header_parse()
279
280 return FWNET_ALEN;
281 }
282
regards,
dan carpenter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-02 6:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02 6:36 firewire net, ipv4 arp: Extend hardware address and remove driver-level packet inspection Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox