• Heiko Carstens's avatar
    s390: use init_thread_union aka initial stack for the first process · 944c7837
    Heiko Carstens authored
    s390 is the only architecture which switches from the initial stack to a
    later on allocated different stack for the first process.
    This is (at least) problematic for the stackleak feature, which instruments
    functions to save the current stackpointer within the task structure of the
    running process.
    
    The stackleak code compares stack pointers of the current process - and
    doesn't expect that the kernel stack of a task can change. Even though the
    stackleak feature itself will not cause any harm, the assumption about
    kernel stacks being consistent is there, and only s390 doesn't follow that.
    
    Therefore switch back to use init_thread_union, just like all other
    architectures.
    Reviewed-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    944c7837
setup.c 27.6 KB