diff options
author | Hiroshi Shimamoto <[email protected]> | 2009-03-26 10:03:08 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-04-01 17:13:17 +0200 |
commit | 0f8f308925ebe0480bd9831d32963ee0b885e24b (patch) | |
tree | 3a4bef09e978eb314b7172738bc92dfdfece65c3 /net/lapb/lapb_iface.c | |
parent | 93394a761d78503f11d05b1a7b23d5a9ccc8dad2 (diff) |
x86: signal: check sas_ss_size instead of sas_ss_flags()
Impact: fix redundant and incorrect check
Oleg Nesterov noticed wrt commit:
14fc9fb: x86: signal: check signal stack overflow properly
>> No need to check SA_ONSTACK if we're already using alternate signal stack.
>
> Yes, but this also mean that we don't need sas_ss_flags() under
> "if (!onsigstack)",
Checking on_sig_stack() in sas_ss_flags() at get_sigframe() is redundant
and not correct on 64 bit. To check sas_ss_size is enough.
Reported-by: Oleg Nesterov <[email protected]>
Signed-off-by: Hiroshi Shimamoto <[email protected]>
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions