* [bug report] ipv6: implement dataplane support for rthdr type 4 (Segment Routing Header)
@ 2017-04-19 13:55 Dan Carpenter
2017-04-19 14:05 ` David Lebrun
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2017-04-19 13:55 UTC (permalink / raw)
To: kernel-janitors
Hello David Lebrun,
The patch 1ababeba4a21: "ipv6: implement dataplane support for rthdr
type 4 (Segment Routing Header)" from Nov 8, 2016, leads to the
following static checker warning:
net/ipv6/exthdrs.c:391 ipv6_srh_rcv()
error: double free of 'skb'
net/ipv6/exthdrs.c
384
385 if (hdr->segments_left >= (hdr->hdrlen >> 1)) {
386 __IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)),
387 IPSTATS_MIB_INHDRERRORS);
388 icmpv6_param_prob(skb, ICMPV6_HDR_FIELD,
^^^
Freed here.
389 ((&hdr->segments_left) -
390 skb_network_header(skb)));
391 kfree_skb(skb);
^^^
And again here.
392 return -1;
393 }
394
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [bug report] ipv6: implement dataplane support for rthdr type 4 (Segment Routing Header)
2017-04-19 13:55 [bug report] ipv6: implement dataplane support for rthdr type 4 (Segment Routing Header) Dan Carpenter
@ 2017-04-19 14:05 ` David Lebrun
0 siblings, 0 replies; 2+ messages in thread
From: David Lebrun @ 2017-04-19 14:05 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1.1: Type: text/plain, Size: 408 bytes --]
On 04/19/2017 03:55 PM, Dan Carpenter wrote:
> Hello David Lebrun,
>
> The patch 1ababeba4a21: "ipv6: implement dataplane support for rthdr
> type 4 (Segment Routing Header)" from Nov 8, 2016, leads to the
> following static checker warning:
>
> net/ipv6/exthdrs.c:391 ipv6_srh_rcv()
> error: double free of 'skb'
Thanks for the report ! I'll send a patch to fix that right now :)
David
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-19 14:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-19 13:55 [bug report] ipv6: implement dataplane support for rthdr type 4 (Segment Routing Header) Dan Carpenter
2017-04-19 14:05 ` David Lebrun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.