diff options
author | kib <kib@FreeBSD.org> | 2008-10-19 10:02:26 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-10-19 10:02:26 +0000 |
commit | 29ccf7d1668ab3c3e3e82c53dbf69d4c5a9be824 (patch) | |
tree | b27837b90bdbe0e63b7ff72ce0c5c2b29bb7cbd5 /sys/i386/linux/linux_sysvec.c | |
parent | 40d90afbe6bf6ae24e4859c61cb929f3f0ccc441 (diff) | |
download | FreeBSD-src-29ccf7d1668ab3c3e3e82c53dbf69d4c5a9be824.zip FreeBSD-src-29ccf7d1668ab3c3e3e82c53dbf69d4c5a9be824.tar.gz |
Correctly fill siginfo for the signals delivered by linux tkill/tgkill.
It is required for async cancellation to work.
Fix PROC_LOCK leak in linux_tgkill when signal delivery attempt is made
to not linux process.
Do not call em_find(p, ...) with p unlocked.
Move common code for linux_tkill() and linux_tgkill() into
linux_do_tkill().
Change linux siginfo_t definition to match actual linux one. Extend
uid fields to 4 bytes from 2. The extension does not change structure
layout and is binary compatible with previous definition, because i386
is little endian, and each uid field has 2 byte padding after it.
Reported by: Nicolas Joly <njoly pasteur fr>
Submitted by: dchangin
MFC after: 1 month
Diffstat (limited to 'sys/i386/linux/linux_sysvec.c')
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index 91f943d..a3acfc9 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -323,9 +323,7 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) frame.sf_ucontext = &fp->sf_sc; /* Fill in POSIX parts */ - frame.sf_si.lsi_signo = sig; - frame.sf_si.lsi_code = code; - frame.sf_si.lsi_addr = ksi->ksi_addr; + ksiginfo_to_lsiginfo(ksi, &frame.sf_si, sig); /* * Build the signal context to be used by sigreturn. |