Browse Source

linux: update to 4.8.11, fix sparc32 invalid frame-pointer check

Waldemar Brodkorb 7 years ago
parent
commit
1839a591e8

+ 2 - 2
mk/kernel-ver.mk

@@ -16,10 +16,10 @@ KERNEL_RELEASE:=	1
 KERNEL_VERSION:=	$(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
 endif
 ifeq ($(ADK_TARGET_KERNEL_VERSION_4_8),y)
-KERNEL_FILE_VER:=	4.8.6
+KERNEL_FILE_VER:=	4.8.11
 KERNEL_RELEASE:=	1
 KERNEL_VERSION:=	$(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
-KERNEL_HASH:=		74744e00420856cfc8049fa3b3a55e57a116994226a498ef56801bc9492df36b
+KERNEL_HASH:=		cc0f42f408ba3e51f8b0e93e3d8050ff18569456d286cb2a1aca3327dd06890f
 endif
 ifeq ($(ADK_TARGET_KERNEL_VERSION_4_4),y)
 KERNEL_FILE_VER:=	4.4.30

+ 0 - 0
target/avr32/grasshopper/patches/4.8.6/0001-grasshopper.patch → target/avr32/grasshopper/patches/4.8.11/0001-grasshopper.patch


+ 0 - 0
target/avr32/grasshopper/patches/4.8.6/0002-grasshopper-led-pwm.patch → target/avr32/grasshopper/patches/4.8.11/0002-grasshopper-led-pwm.patch


+ 0 - 0
target/avr32/grasshopper/patches/4.8.6/0003-grasshopper-mmc.patch → target/avr32/grasshopper/patches/4.8.11/0003-grasshopper-mmc.patch


+ 0 - 0
target/avr32/grasshopper/patches/4.8.6/0004-grasshopper-i2c.patch → target/avr32/grasshopper/patches/4.8.11/0004-grasshopper-i2c.patch


+ 0 - 0
target/avr32/grasshopper/patches/4.8.6/0005-grasshopper-usart.patch → target/avr32/grasshopper/patches/4.8.11/0005-grasshopper-usart.patch


+ 0 - 0
target/avr32/grasshopper/patches/4.8.6/0100-netfilter-init-fix.patch → target/avr32/grasshopper/patches/4.8.11/0100-netfilter-init-fix.patch


+ 1 - 3
target/config/Config.in.kernelversion

@@ -12,7 +12,6 @@ default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_ARCH_LM32
 default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_ARCH_OR1K
 default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_CRIS
 default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_METAG
-default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_SPARC
 default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
 default ADK_TARGET_KERNEL_VERSION_4_8
 
@@ -25,12 +24,11 @@ config ADK_TARGET_KERNEL_VERSION_GIT
 	select ADK_TARGET_KERNEL_IMAGE if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 
 config ADK_TARGET_KERNEL_VERSION_4_8
-	bool "4.8.6"
+	bool "4.8.11"
 	depends on !ADK_TARGET_ARCH_CRIS
 	depends on !ADK_TARGET_ARCH_METAG
 	depends on !ADK_TARGET_ARCH_NDS32
 	depends on !ADK_TARGET_ARCH_OR1K
-	depends on !ADK_TARGET_ARCH_SPARC
 	depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
 
 config ADK_TARGET_KERNEL_VERSION_4_4

+ 0 - 0
target/linux/patches/4.8.6/crisv32.patch → target/linux/patches/4.8.11/crisv32.patch


+ 0 - 0
target/linux/patches/4.8.6/crisv32_ethernet_driver.patch → target/linux/patches/4.8.11/crisv32_ethernet_driver.patch


+ 0 - 0
target/linux/patches/4.8.6/initramfs-nosizelimit.patch → target/linux/patches/4.8.11/initramfs-nosizelimit.patch


+ 0 - 0
target/linux/patches/4.8.6/ld-or1k.patch → target/linux/patches/4.8.11/ld-or1k.patch


+ 0 - 0
target/linux/patches/4.8.6/macsonic.patch → target/linux/patches/4.8.11/macsonic.patch


+ 0 - 0
target/linux/patches/4.8.6/microblaze-sigaltstack.patch → target/linux/patches/4.8.11/microblaze-sigaltstack.patch


+ 0 - 0
target/linux/patches/4.8.6/patch-realtime → target/linux/patches/4.8.11/patch-realtime


+ 31 - 0
target/linux/patches/4.8.11/sparc32.patch

@@ -0,0 +1,31 @@
+commit 07b5ab3f71d318e52c18cc3b73c1d44c908aacfa
+Author: Andreas Larsson <andreas@gaisler.com>
+Date:   Wed Nov 9 10:43:05 2016 +0100
+
+    sparc32: Fix inverted invalid_frame_pointer checks on sigreturns
+    
+    Signed-off-by: Andreas Larsson <andreas@gaisler.com>
+    Signed-off-by: David S. Miller <davem@davemloft.net>
+
+diff --git a/arch/sparc/kernel/signal_32.c b/arch/sparc/kernel/signal_32.c
+index c3c12ef..9c0c8fd 100644
+--- a/arch/sparc/kernel/signal_32.c
++++ b/arch/sparc/kernel/signal_32.c
+@@ -89,7 +89,7 @@ asmlinkage void do_sigreturn(struct pt_regs *regs)
+ 	sf = (struct signal_frame __user *) regs->u_regs[UREG_FP];
+ 
+ 	/* 1. Make sure we are not getting garbage from the user */
+-	if (!invalid_frame_pointer(sf, sizeof(*sf)))
++	if (invalid_frame_pointer(sf, sizeof(*sf)))
+ 		goto segv_and_exit;
+ 
+ 	if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP]))
+@@ -150,7 +150,7 @@ asmlinkage void do_rt_sigreturn(struct pt_regs *regs)
+ 
+ 	synchronize_user_stack();
+ 	sf = (struct rt_signal_frame __user *) regs->u_regs[UREG_FP];
+-	if (!invalid_frame_pointer(sf, sizeof(*sf)))
++	if (invalid_frame_pointer(sf, sizeof(*sf)))
+ 		goto segv;
+ 
+ 	if (get_user(ufp, &sf->regs.u_regs[UREG_FP]))

+ 0 - 0
target/linux/patches/4.8.6/startup.patch → target/linux/patches/4.8.11/startup.patch


+ 0 - 0
target/linux/patches/4.8.6/vdso2.patch → target/linux/patches/4.8.11/vdso2.patch


+ 0 - 11
target/linux/patches/4.8.6/fix-atm_zam_h.patch

@@ -1,11 +0,0 @@
-diff -Naur linux-4.8.6.orig/include/uapi/linux/atm_zatm.h linux-4.8.6/include/uapi/linux/atm_zatm.h
---- linux-4.8.6.orig/include/uapi/linux/atm_zatm.h	2016-10-31 12:26:46.000000000 +0100
-+++ linux-4.8.6/include/uapi/linux/atm_zatm.h	2016-11-07 10:04:37.142753084 +0100
-@@ -14,7 +14,6 @@
- 
- #include <linux/atmapi.h>
- #include <linux/atmioc.h>
--#include <linux/time.h>
- 
- #define ZATM_GETPOOL	_IOW('a',ATMIOC_SARPRV+1,struct atmif_sioc)
- 						/* get pool statistics */