• Krzysztof Mazur's avatar
    um: Use POSIX ucontext_t instead of struct ucontext · 5a999c2b
    Krzysztof Mazur authored
    commit 4d1a535b8ec5e74b42dfd9dc809142653b2597f6 upstream.
    
    glibc 2.26 removed the 'struct ucontext' to "improve" POSIX compliance
    and break programs, including User Mode Linux. Fix User Mode Linux
    by using POSIX ucontext_t.
    
    This fixes:
    
    arch/um/os-Linux/signal.c: In function 'hard_handler':
    arch/um/os-Linux/signal.c:163:22: error: dereferencing pointer to incomplete type 'struct ucontext'
      mcontext_t *mc = &uc->uc_mcontext;
    arch/x86/um/stub_segv.c: In function 'stub_segv_handler':
    arch/x86/um/stub_segv.c:16:13: error: dereferencing pointer to incomplete type 'struct ucontext'
              &uc->uc_mcontext);
    
    Cc: stable@vger.kernel.org
    Signed-off-by: 's avatarKrzysztof Mazur <krzysiek@podlesie.net>
    Signed-off-by: Richard Weinberger's avatarRichard Weinberger <richard@nod.at>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    5a999c2b
Name
Last commit
Last update
..
asm Loading commit data...
os-Linux Loading commit data...
shared/sysdep Loading commit data...
vdso Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
bugs_32.c Loading commit data...
bugs_64.c Loading commit data...
checksum_32.S Loading commit data...
delay.c Loading commit data...
elfcore.c Loading commit data...
fault.c Loading commit data...
ldt.c Loading commit data...
mem_32.c Loading commit data...
mem_64.c Loading commit data...
ptrace_32.c Loading commit data...
ptrace_64.c Loading commit data...
ptrace_user.c Loading commit data...
setjmp_32.S Loading commit data...
setjmp_64.S Loading commit data...
signal.c Loading commit data...
stub_32.S Loading commit data...
stub_64.S Loading commit data...
stub_segv.c Loading commit data...
sys_call_table_32.c Loading commit data...
sys_call_table_64.c Loading commit data...
syscalls_32.c Loading commit data...
syscalls_64.c Loading commit data...
sysrq_32.c Loading commit data...
sysrq_64.c Loading commit data...
tls_32.c Loading commit data...
tls_64.c Loading commit data...
user-offsets.c Loading commit data...