lkml.org 
[lkml]   [2014]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.13 068/140] s390/compat: fix PSW32_USER_BITS definition
    Date
    3.13-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Heiko Carstens <heiko.carstens@de.ibm.com>

    commit 075dfd82102d2048e43e1cbf48d558d915c50072 upstream.

    PSW32_USER_BITS should define the primary address space for user space
    instead of the home address space.
    Symptom of this bug is that gdb doesn't work in compat mode.

    The bug was introduced with e258d719ff28 "s390/uaccess: always run the kernel
    in home space" and f26946d7ecad "s390/compat: make psw32_user_bits a constant
    value again".

    Reported-by: Andreas Arnez <arnez@linux.vnet.ibm.com>
    Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/s390/include/asm/compat.h | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/arch/s390/include/asm/compat.h
    +++ b/arch/s390/include/asm/compat.h
    @@ -38,7 +38,8 @@

    #define PSW32_USER_BITS (PSW32_MASK_DAT | PSW32_MASK_IO | PSW32_MASK_EXT | \
    PSW32_DEFAULT_KEY | PSW32_MASK_BASE | \
    - PSW32_MASK_MCHECK | PSW32_MASK_PSTATE | PSW32_ASC_HOME)
    + PSW32_MASK_MCHECK | PSW32_MASK_PSTATE | \
    + PSW32_ASC_PRIMARY)

    #define COMPAT_USER_HZ 100
    #define COMPAT_UTS_MACHINE "s390\0\0\0\0"



    \
     
     \ /
      Last update: 2014-02-05 01:01    [W:4.386 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site