Michael Tuexen 10731c54b6 Fix getsockopt() for IP_OPTIONS/IP_RETOPTS.
r336616 copies inp->inp_options using the m_dup() function.
However, this function expects an mbuf packet header at the beginning,
which is not true in this case.
Therefore, use m_copym() instead of m_dup().

This issue was found by syzkaller.
Reviewed by:		mmacy@
MFC after:		1 week
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D18753
2019-01-09 06:36:57 +00:00
..
2018-07-11 14:54:56 +00:00
2017-02-28 23:42:47 +00:00
2018-05-29 12:32:08 +00:00
2018-07-01 08:37:07 +00:00
2018-07-01 08:37:07 +00:00
2018-11-22 20:49:41 +00:00
2018-09-18 10:53:07 +00:00
2018-05-19 05:56:21 +00:00
2018-11-22 20:49:41 +00:00
2018-07-31 22:56:03 +00:00