From e449e335dfcda55b7675c183a08e793352f163e6 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 10 Apr 2015 13:34:44 +0000 Subject: Apply a fix for FreeBSD-SA-15:09.ipv6. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/91 by nigoro. (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) --- sys-freebsd/freebsd-sources/ChangeLog | 10 +- .../files/freebsd-sources-10.1-cve-2015-2923.patch | 23 ++++ .../freebsd-sources/freebsd-sources-10.1-r1.ebuild | 135 -------------------- .../freebsd-sources/freebsd-sources-10.1-r2.ebuild | 138 +++++++++++++++++++++ 4 files changed, 170 insertions(+), 136 deletions(-) create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-10.1-cve-2015-2923.patch delete mode 100644 sys-freebsd/freebsd-sources/freebsd-sources-10.1-r1.ebuild create mode 100644 sys-freebsd/freebsd-sources/freebsd-sources-10.1-r2.ebuild (limited to 'sys-freebsd') diff --git a/sys-freebsd/freebsd-sources/ChangeLog b/sys-freebsd/freebsd-sources/ChangeLog index 58ae308345d8..fb5f038f2fde 100644 --- a/sys-freebsd/freebsd-sources/ChangeLog +++ b/sys-freebsd/freebsd-sources/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-freebsd/freebsd-sources # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.109 2015/03/15 18:06:56 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.110 2015/04/10 13:34:44 mgorny Exp $ + +*freebsd-sources-10.1-r2 (10 Apr 2015) + + 10 Apr 2015; Michał Górny + +files/freebsd-sources-10.1-cve-2015-2923.patch, + +freebsd-sources-10.1-r2.ebuild, -freebsd-sources-10.1-r1.ebuild: + Apply a fix for FreeBSD-SA-15:09.ipv6. https://github.com/gentoo/gentoo- + portage-rsync-mirror/pull/91 by nigoro. 15 Mar 2015; Michał Górny freebsd-sources-10.1-r1.ebuild: Support upgrades from 9.x. https://github.com/gentoo/gentoo-portage-rsync- diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-10.1-cve-2015-2923.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-10.1-cve-2015-2923.patch new file mode 100644 index 000000000000..430e1b192ab1 --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-10.1-cve-2015-2923.patch @@ -0,0 +1,23 @@ +Index: sys/netinet6/nd6_rtr.c +=================================================================== +--- sys/netinet6/nd6_rtr.c (revision 280920) ++++ sys/netinet6/nd6_rtr.c (working copy) +@@ -296,8 +296,16 @@ nd6_ra_input(struct mbuf *m, int off, int icmp6len + } + if (nd_ra->nd_ra_retransmit) + ndi->retrans = ntohl(nd_ra->nd_ra_retransmit); +- if (nd_ra->nd_ra_curhoplimit) +- ndi->chlim = nd_ra->nd_ra_curhoplimit; ++ if (nd_ra->nd_ra_curhoplimit) { ++ if (ndi->chlim < nd_ra->nd_ra_curhoplimit) ++ ndi->chlim = nd_ra->nd_ra_curhoplimit; ++ else if (ndi->chlim != nd_ra->nd_ra_curhoplimit) { ++ log(LOG_ERR, "RA with a lower CurHopLimit sent from " ++ "%s on %s (current = %d, received = %d). " ++ "Ignored.\n", ip6_sprintf(ip6bufs, &ip6->ip6_src), ++ if_name(ifp), ndi->chlim, nd_ra->nd_ra_curhoplimit); ++ } ++ } + dr = defrtrlist_update(&dr0); + } + diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-10.1-r1.ebuild b/sys-freebsd/freebsd-sources/freebsd-sources-10.1-r1.ebuild deleted file mode 100644 index c54b8bdb8f24..000000000000 --- a/sys-freebsd/freebsd-sources/freebsd-sources-10.1-r1.ebuild +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-10.1-r1.ebuild,v 1.2 2015/03/15 18:06:56 mgorny Exp $ - -EAPI=5 - -inherit bsdmk freebsd flag-o-matic toolchain-funcs - -DESCRIPTION="FreeBSD kernel sources" -SLOT="0" - -IUSE="+build-kernel debug dtrace profile zfs" - -if [[ ${PV} != *9999* ]]; then - KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" - SRC_URI="http://dev.gentoo.org/~mgorny/dist/freebsd/${RV}/${SYS}.tar.xz - http://dev.gentoo.org/~mgorny/dist/freebsd/${RV}/${CONTRIB}.tar.xz - http://dev.gentoo.org/~mgorny/dist/freebsd/${RV}/${UBIN}.tar.xz" -fi - -RDEPEND="dtrace? ( >=sys-freebsd/freebsd-cddl-9.2_rc1 ) - =sys-freebsd/freebsd-mk-defs-${RV}* - !sys-freebsd/virtio-kmod - !sys-fs/fuse4bsd - !> "${conf}" - use dtrace || echo 'nomakeoptions WITH_CTF' >> "${conf}" - - # Only used with USE=build-kernel, let the kernel build with its own flags, its safer. - unset LDFLAGS CFLAGS CXXFLAGS ASFLAGS KERNEL -} - -src_configure() { - if use build-kernel ; then - tc-export CC - cd "${S}/$(tc-arch-kernel)/conf" || die - config ${KERN_BUILD} || die - fi -} - -src_compile() { - if use build-kernel ; then - if has_version "> "${conf}" + use dtrace || echo 'nomakeoptions WITH_CTF' >> "${conf}" + + # Only used with USE=build-kernel, let the kernel build with its own flags, its safer. + unset LDFLAGS CFLAGS CXXFLAGS ASFLAGS KERNEL +} + +src_configure() { + if use build-kernel ; then + tc-export CC + cd "${S}/$(tc-arch-kernel)/conf" || die + config ${KERN_BUILD} || die + fi +} + +src_compile() { + if use build-kernel ; then + if has_version "