From ac61f2985b6d33c97c57506d2276cbc8fa63f235 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 24 May 2013 12:50:30 -0700 Subject: [PATCH] 3.0-stable patches added patches: avr32-fix-relocation-check-for-signed-18-bit-offset.patch --- ...ation-check-for-signed-18-bit-offset.patch | 30 +++++++++++++++++++ queue-3.0/series | 1 + 2 files changed, 31 insertions(+) create mode 100644 queue-3.0/avr32-fix-relocation-check-for-signed-18-bit-offset.patch create mode 100644 queue-3.0/series diff --git a/queue-3.0/avr32-fix-relocation-check-for-signed-18-bit-offset.patch b/queue-3.0/avr32-fix-relocation-check-for-signed-18-bit-offset.patch new file mode 100644 index 00000000000..d04d03e894f --- /dev/null +++ b/queue-3.0/avr32-fix-relocation-check-for-signed-18-bit-offset.patch @@ -0,0 +1,30 @@ +From e68c636d88db3fda74e664ecb1a213ae0d50a7d8 Mon Sep 17 00:00:00 2001 +From: Hans-Christian Egtvedt +Date: Mon, 13 May 2013 22:22:10 +0200 +Subject: avr32: fix relocation check for signed 18-bit offset + +From: Hans-Christian Egtvedt + +commit e68c636d88db3fda74e664ecb1a213ae0d50a7d8 upstream. + +Caught by static code analysis by David. + +Reported-by: David Binderman +Signed-off-by: Hans-Christian Egtvedt +Signed-off-by: Greg Kroah-Hartman + +--- + arch/avr32/kernel/module.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/avr32/kernel/module.c ++++ b/arch/avr32/kernel/module.c +@@ -271,7 +271,7 @@ int apply_relocate_add(Elf32_Shdr *sechd + break; + case R_AVR32_GOT18SW: + if ((relocation & 0xfffe0003) != 0 +- && (relocation & 0xfffc0003) != 0xffff0000) ++ && (relocation & 0xfffc0000) != 0xfffc0000) + return reloc_overflow(module, "R_AVR32_GOT18SW", + relocation); + relocation >>= 2; diff --git a/queue-3.0/series b/queue-3.0/series new file mode 100644 index 00000000000..57dd9f2dcff --- /dev/null +++ b/queue-3.0/series @@ -0,0 +1 @@ +avr32-fix-relocation-check-for-signed-18-bit-offset.patch -- 2.47.3