• Christian Borntraeger's avatar
    [S390] stacktrace bug. · 75e9de18
    Christian Borntraeger authored
    The latest kernel 2.6.19-rc1 triggers a bug in the s390 specific stack
    trace code when compiled with gcc 3.4.
    This patch fixes the latest lock dependency validator code (2.6.19-rc1)
    on s390 gcc 3.4. The variable sp was fixed to r15 (which is the stack
    pointer in the s390 abi) and assigned new values to r15. Therefore,
    gcc 3.4 assigns a new value to r15 and does not restore it on exit (r15
    is supposed to be call save) - the kernel stack is broken. Avoid trouble
    by not assigning any new value to sp (r15).
    Signed-off-by: default avatarChristian Borntraeger <cborntra@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    75e9de18
stacktrace.c 2.25 KB