From: Hannes Frederic Sowa <han...@stressinduktion.org> Date: Wed, 28 Oct 2015 13:21:04 +0100
> Raw sockets with hdrincl enabled can insert ipv6 extension headers > right into the data stream. In case we need to fragment those packets, > we reparse the options header to find the place where we can insert > the fragment header. If the extension headers exceed the link's MTU we > actually cannot make progress in such a case. > > Instead of ending up in broken arithmetic or rounding towards 0 and > entering an endless loop in ip6_fragment, just prevent those cases by > aborting early and signal -EMSGSIZE to user space. > > This is the second version of the patch which doesn't use the > overflow_usub function, which got reverted for now. > > Suggested-by: Linus Torvalds <torva...@linux-foundation.org> > Cc: Linus Torvalds <torva...@linux-foundation.org> > Reported-by: Dmitry Vyukov <dvyu...@google.com> > Cc: Dmitry Vyukov <dvyu...@google.com> > Signed-off-by: Hannes Frederic Sowa <han...@stressinduktion.org> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html