Skip to content

Commit

Permalink
csky: Fixup libgcc unwind error
Browse files Browse the repository at this point in the history
The struct rt_sigframe is also defined in libgcc/config/csky/linux-unwind.h
of gcc. Although there is no use for the first three word space, we must
keep them the same with linux-unwind.h for member position.

The BUG is found in glibc test with the tst-cancel02.
The BUG is from commit:bf2416829362 of linux-5.2-rc1 merge window.

Signed-off-by: Guo Ren <[email protected]>
Signed-off-by: Mao Han <[email protected]>
Cc: Arnd Bergmann <[email protected]>
  • Loading branch information
guoren83 committed Jun 26, 2019
1 parent 9e0babf commit 19e5e2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/csky/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ static int save_fpu_state(struct sigcontext __user *sc)
#endif

struct rt_sigframe {
/*
* pad[3] is compatible with the same struct defined in
* gcc/libgcc/config/csky/linux-unwind.h
*/
int pad[3];
struct siginfo info;
struct ucontext uc;
};
Expand Down

0 comments on commit 19e5e2a

Please sign in to comment.