]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branches 'cleanup', 'fixes', 'misc', 'omap-barrier' and 'uaccess' into for...
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Sep 2015 14:28:37 +0000 (15:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Sep 2015 14:28:37 +0000 (15:28 +0100)
14 files changed:
1  2  3  4  5 
arch/arm/Kconfig
arch/arm/include/asm/assembler.h
arch/arm/include/asm/thread_info.h
arch/arm/include/asm/uaccess.h
arch/arm/kernel/armksyms.c
arch/arm/kernel/entry-armv.S
arch/arm/kernel/entry-common.S
arch/arm/kernel/head.S
arch/arm/kernel/perf_event.c
arch/arm/kernel/process.c
arch/arm/kernel/smp.c
arch/arm/lib/uaccess_with_memcpy.c
arch/arm/mm/dma-mapping.c
arch/arm/mm/mmu.c

index a750c1425c3a64e8a1f2d138b8bc4d9fd2224b8e,1c5021002fe40b06a2e57daad459bf1b4181b822,1bcda7cb2e0405a9d5fda7d8805f9f92ba7d665c,a750c1425c3a64e8a1f2d138b8bc4d9fd2224b8e,e15d5ed4d5f167bcc768d0c4ded4e86f5f444bbd..3458828562873280ab3bbd4c5b5619f9475d032f
@@@@@@ -1693,7 -1693,13 -1696,7 -1693,7 -1693,22 +1696,28 @@@@@@ config HIGHME
     config HIGHPTE
        bool "Allocate 2nd-level pagetables from highmem"
        depends on HIGHMEM
+ +++   help
+ +++     The VM uses one page of physical memory for each page table.
+ +++     For systems with a lot of processes, this can use a lot of
+ +++     precious low memory, eventually leading to low memory being
+ +++     consumed by page tables.  Setting this option will allow
+ +++     user-space 2nd level page tables to reside in high memory.
+ ++ 
++++ config CPU_SW_DOMAIN_PAN
++++    bool "Enable use of CPU domains to implement privileged no-access"
++++    depends on MMU && !ARM_LPAE
++++    default y
++++    help
++++      Increase kernel security by ensuring that normal kernel accesses
++++      are unable to access userspace addresses.  This can help prevent
++++      use-after-free bugs becoming an exploitable privilege escalation
++++      by ensuring that magic values (such as LIST_POISON) will always
++++      fault when dereferenced.
++++ 
++++      CPUs with low-vector mappings use a best-efforts implementation.
++++      Their lower 1MB needs to remain accessible for the vectors, but
++++      the remainder of userspace will become appropriately inaccessible.
 +   
     config HW_PERF_EVENTS
        bool "Enable hardware performance counter support for perf events"
        depends on PERF_EVENTS
Simple merge
Simple merge
index 4cf54ebe408afa5eb41ed49d7bcee138e27f5b48,74b17d09ef7aa54cb98d22ccf5f068b4c39971be,74b17d09ef7aa54cb98d22ccf5f068b4c39971be,74b17d09ef7aa54cb98d22ccf5f068b4c39971be,01bae13b2cea005f7b3d4c828040f368bc04fdab..8cc85a4ebec20a1223f966bb868e5def5f70928e
@@@@@@ -379,11 -391,11 -391,11 -391,11 -429,12 +417,12 @@@@@@ do {                                                                      
        case 8: __put_user_asm_dword(__pu_val, __pu_addr, err); break;  \
        default: __put_user_bad();                                      \
        }                                                               \
++++    uaccess_restore(__ua_flags);                                    \
     } while (0)
     
 ----#define __put_user_asm_byte(x, __pu_addr, err)                     \
 ++++#define __put_user_asm(x, __pu_addr, err, instr)           \
        __asm__ __volatile__(                                   \
 ----   "1:     " TUSER(strb) " %1,[%2],#0\n"                   \
 ++++   "1:     " TUSER(instr) " %1, [%2], #0\n"                \
        "2:\n"                                                  \
        "       .pushsection .text.fixup,\"ax\"\n"              \
        "       .align  2\n"                                    \
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 6ca7d9aa896f4e14804e1096407b16e9b1020456,870838a46d524141a9cb1d65980c1ba7456465cb,fb9e817d08bb800e9234b1d04bbc0c560114f829,6ca7d9aa896f4e14804e1096407b16e9b1020456,a016de2480349f15a2ad7036961992b5478f50ba..7cd15143a507740155ad6dbe01e3dbef371111fe
@@@@@@ -1494,7 -1500,8 -1567,8 -1494,7 -1494,7 +1573,9 @@@@@@ void __init paging_init(const struct ma
        build_mem_type_table();
        prepare_page_table();
        map_lowmem();
+ +++   memblock_set_current_limit(arm_lowmem_limit);
        dma_contiguous_remap();
++ ++   early_fixmap_shutdown();
        devicemaps_init(mdesc);
        kmap_init();
        tcm_init();