From 5aacc3718e8e1cccc89e543837bf56b2532936e2 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 3 Apr 2017 09:51:17 +0200 Subject: [PATCH] linux: Add stable version 4.9.20 Changes for Linux 4.9.19 [1][2][3]: > Immediately after releasing the Linux 4.10.7 kernel, Greg > Kroah-Hartman announced today the availability of the nineteenth > maintenance update to the long-term supported Linux 4.9 kernel series. > > Just like Linux kernel 4.10.7, the Linux kernel 4.9.19 LTS release > comes, surprisingly, only three days after the release of the previous > maintenance update, in this case, Linux kernel 4.9.18 LTS. According > to the appended shortlog, this is also a major patch that changes a > total 98 files, with 812 insertions and 403 deletions. As expected, > most of the patch are updated drivers. > > "I'm announcing the release of the 4.9.19 kernel. All users of the 4.9 > kernel series must upgrade. The updated 4.9.y git tree can be found > at: > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > linux-4.9.y and can be browsed at the normal kernel.org git web > browser: > http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary," > said Greg Kroah-Hartman. > > ### Updated USB and networking drivers, various improvements ### > > Among the changes implemented in the Linux 4.9.19 LTS kernel, we can > mention updated CLK, CPUFreq, crypto, DAX, GPU (AMDGPU, analogix), HV, > hwtracing, iiO, input (joystick, mouse, tablet, touchscreen), IOMMU, > MMC, Ethernet (amd-xgbe, Broadcom GENET, Mellanox mlx5), Wireless > (Marvell mwifiex), USB, UWB, and Xen drivers, as well as improvements > to the EXT4 and JBD2 filesystems. > > The networking and sound stacks have been improved as well, with > various improvements for Ceph, IPv4, IPv6, Open vSwitch, nl80211, > cthw20k1, and Realtek, and there are a few bugs fixed for the ARM, > ARM64, and PowerPC (PPC) architectures as well. If you're using a > GNU/Linux distribution powered by a kernel from the Linux 4.9 LTS > series, you are urged to update to version 4.9.19 as soon as possible. > Download Linux kernel 4.9.19 LTS from kernel.org or via our website. Changes for Linux 4.9.20 [4][5]. There are some small driver and scheduler fixes. Most importantly, a local privilege-escalation vulnerability is fixed [6]. > Update: It appears that the urgency for getting these stable kernels > out comes from a fix for CVE-2017-7184, which is a local > privilege-escalation vulnerability. [1] https://lkml.org/lkml/2017/3/30/254 [2] http://news.softpedia.com/news/linux-kernel-4-9-19-lts-has-many-updated-drivers-many-networking-improvements-514430.shtml [3] https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.19 [4] https://lkml.org/lkml/2017/3/31/196 [5] https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.20 [6] https://lwn.net/Articles/718616/ --- linux-4.9.20-147.bee | 79 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 linux-4.9.20-147.bee diff --git a/linux-4.9.20-147.bee b/linux-4.9.20-147.bee new file mode 100755 index 000000000..fc68c0aaa --- /dev/null +++ b/linux-4.9.20-147.bee @@ -0,0 +1,79 @@ +#!/bin/env beesh + +# note: CONFIG=/boot/config-WHATEVER BEE_MAKEFLAGS='-j 40' ./linux-xxx.bee + +KERNELVERSION=${PKGVERSION} +if [ -z "${PKGVERSION[3]}" ] ; then + KERNELVERSION=${KERNELVERSION}.0 +fi + +# append extra version to get for example 4.8.0-rc4 +KERNELVERSION=${KERNELVERSION}${PKGEXTRAVERSION_DASH} + +echo $KERNELVERSION + +SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v${PKGVERSION[1]}.x/linux-${PKGVERSION}${PKGEXTRAVERSION_DASH}.tar.xz" + +# EXCLUDE="" + +#CONFIG= + +KERNELLOCAL=".mx64.${PKGREVISION}" +FULLKERNELVERSION="${KERNELVERSION}${KERNELLOCAL}" + +B=${S} + +mee_patch() { + echo "PATCH $@" + bee_patch $@ +} + +mee_configure() { + echo "configure $@" + if [ -e /proc/config.gz ] ; then + zcat /proc/config.gz >config-current + RUNNING=config-current + else + RUNNING=/boot/config-$(uname -r) + fi + + : ${CONFIG:=${RUNNING}} + + if [ ! -e ${CONFIG} ] ; then + echo "can't find config '${CONFIG}'" + exit 1 + fi + + cp -v ${CONFIG} .config + + LOCALVERSION="\"${KERNELLOCAL}\"" + sed -i -e "s@CONFIG_LOCALVERSION=.*@CONFIG_LOCALVERSION=${LOCALVERSION}@" .config + + echo "doing make -C ${S} olddefconfig in ${PWD} .." + + make olddefconfig + + echo "doing make -C ${S} menuconfig in ${PWD} .." + + make menuconfig +} + +mee_build() { + echo "build $@" + make ${BEE_MAKEFLAGS} +} + +mee_install() { + echo "install $@" + + make modules_install INSTALL_MOD_PATH=${D} + make install INSTALL_PATH=${D}/boot +# make firmware_install INSTALL_MOD_PATH=${D} + + rm -v ${D}/lib/modules/${FULLKERNELVERSION}/{source,build} + + ln -sv /usr/src/linux/${PKGALLPKG}/source ${D}/lib/modules/${FULLKERNELVERSION}/source + ln -sv /usr/src/linux/${PKGALLPKG}/build ${D}/lib/modules/${FULLKERNELVERSION}/build + + ln -sv bzImage-${FULLKERNELVERSION} ${D}/boot/mariux.${PKGREVISION} +}