netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net/stable] ipv6/exthdrs: accept tlv which includes only padding
@ 2013-09-06 14:02 Jiri Pirko
  2013-09-07 12:31 ` Eldad Zack
  2013-09-11 19:53 ` David Miller
  0 siblings, 2 replies; 9+ messages in thread
From: Jiri Pirko @ 2013-09-06 14:02 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuznet, jmorris, yoshfuji, kaber, eldad

In rfc4942 and rfc2460 I cannot find anything which would implicate to
drop packets which have only padding in tlv.

Current behaviour breaks TAHI Test v6LC.1.2.6.

Problem was intruduced in:
9b905fe6843 "ipv6/exthdrs: strict Pad1 and PadN check"

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
 net/ipv6/exthdrs.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index 07a7d65..8d67900 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -162,12 +162,6 @@ static bool ip6_parse_tlv(const struct tlvtype_proc *procs, struct sk_buff *skb)
 		off += optlen;
 		len -= optlen;
 	}
-	/* This case will not be caught by above check since its padding
-	 * length is smaller than 7:
-	 * 1 byte NH + 1 byte Length + 6 bytes Padding
-	 */
-	if ((padlen == 6) && ((off - skb_network_header_len(skb)) == 8))
-		goto bad;
 
 	if (len == 0)
 		return true;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-09-11 19:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 14:02 [patch net/stable] ipv6/exthdrs: accept tlv which includes only padding Jiri Pirko
2013-09-07 12:31 ` Eldad Zack
2013-09-07 15:46   ` Jiri Pirko
2013-09-07 16:46     ` Eldad Zack
2013-09-07 21:34       ` Jiri Pirko
2013-09-07 22:03         ` Hannes Frederic Sowa
2013-09-08  1:50   ` David Miller
2013-09-08  4:20     ` YOSHIFUJI Hideaki
2013-09-11 19:53 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).