commit | 80b73a24a9c94e2a76dc8e6b49160e6792cfc3d3 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <dvlasenk@redhat.com> | Thu Jul 18 10:10:46 2013 +0200 |
committer | Denys Vlasenko <dvlasenk@redhat.com> | Thu Jul 18 10:10:46 2013 +0200 |
tree | a87b6abe932d3bcba6bb6822918d303e8fd0d5f6 | |
parent | 94e10354d888d1f09bc803616869802a13a576bf [diff] |
sys_rt_sigaction: fix sigset copying In practice, we always copy as many bytes as syscall param says (8, or 16 on mips). However, malicious program can call sigaction with wrong sigset size. Such syscall will result in EINVAL, but we (strace) end up copying 128 bytes (sizeof(sigset_t)), which copyes some garbage from stack after struct sigaction. Now we always copy NSIG / 8 bytes (which is 8 bytes, or 16 on mips). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>