Skip to content

Commit 9178caf

Browse files
author
Russell King
committed
Merge branches 'devel-stable' and 'misc' into for-linus
2 parents b54290e + 5f8d561 commit 9178caf

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

arch/arm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ config ARM
77
select ARCH_HAS_DEBUG_VIRTUAL if MMU
88
select ARCH_HAS_DEVMEM_IS_ALLOWED
99
select ARCH_HAS_ELF_RANDOMIZE
10+
select ARCH_HAS_FORTIFY_SOURCE
1011
select ARCH_HAS_SET_MEMORY
1112
select ARCH_HAS_PHYS_TO_DMA
1213
select ARCH_HAS_STRICT_KERNEL_RWX if MMU && !XIP_KERNEL

arch/arm/boot/compressed/decompress.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
#include <linux/stddef.h> /* for NULL */
77
#include <linux/linkage.h>
88
#include <asm/string.h>
9-
10-
extern unsigned long free_mem_ptr;
11-
extern unsigned long free_mem_end_ptr;
12-
extern void error(char *);
9+
#include "misc.h"
1310

1411
#define STATIC static
1512
#define STATIC_RW_DATA /* non-static please */

arch/arm/boot/compressed/misc.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ unsigned int __machine_arch_type;
2222
#include <linux/compiler.h> /* for inline */
2323
#include <linux/types.h>
2424
#include <linux/linkage.h>
25+
#include "misc.h"
2526

2627
static void putstr(const char *ptr);
27-
extern void error(char *x);
2828

2929
#include CONFIG_UNCOMPRESS_INCLUDE
3030

@@ -167,3 +167,8 @@ decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p,
167167
else
168168
putstr(" done, booting the kernel.\n");
169169
}
170+
171+
void fortify_panic(const char *name)
172+
{
173+
error("detected buffer overflow");
174+
}

arch/arm/boot/compressed/misc.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef MISC_H
2+
#define MISC_H
3+
4+
#include <linux/compiler.h>
5+
6+
void error(char *x) __noreturn;
7+
extern unsigned long free_mem_ptr;
8+
extern unsigned long free_mem_end_ptr;
9+
10+
#endif

arch/arm/mm/proc-v7.S

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ ENDPROC(cpu_pj4b_do_resume)
272272
__v7_ca5mp_setup:
273273
__v7_ca9mp_setup:
274274
__v7_cr7mp_setup:
275+
__v7_cr8mp_setup:
275276
mov r10, #(1 << 0) @ Cache/TLB ops broadcasting
276277
b 1f
277278
__v7_ca7mp_setup:
@@ -641,6 +642,16 @@ __v7_cr7mp_proc_info:
641642
__v7_proc __v7_cr7mp_proc_info, __v7_cr7mp_setup
642643
.size __v7_cr7mp_proc_info, . - __v7_cr7mp_proc_info
643644

645+
/*
646+
* ARM Ltd. Cortex R8 processor.
647+
*/
648+
.type __v7_cr8mp_proc_info, #object
649+
__v7_cr8mp_proc_info:
650+
.long 0x410fc180
651+
.long 0xff0ffff0
652+
__v7_proc __v7_cr8mp_proc_info, __v7_cr8mp_setup
653+
.size __v7_cr8mp_proc_info, . - __v7_cr8mp_proc_info
654+
644655
/*
645656
* ARM Ltd. Cortex A7 processor.
646657
*/

0 commit comments

Comments
 (0)