svn commit: r184828 - head/sys/compat/freebsd32

Peter Wemm peter at FreeBSD.org
Mon Nov 10 15:26:52 PST 2008


Author: peter
Date: Mon Nov 10 23:26:52 2008
New Revision: 184828
URL: http://svn.freebsd.org/changeset/base/184828

Log:
  Fix a signal emulation bug introduced in r163018 (and present in 7.x).
  This prevents 32 bit signal handlers from finding out what the faulting
  address is.  Both the secret 4th argument and siginfo->si_addr are zero.

Modified:
  head/sys/compat/freebsd32/freebsd32_misc.c

Modified: head/sys/compat/freebsd32/freebsd32_misc.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_misc.c	Mon Nov 10 23:18:10 2008	(r184827)
+++ head/sys/compat/freebsd32/freebsd32_misc.c	Mon Nov 10 23:26:52 2008	(r184828)
@@ -2442,7 +2442,7 @@ siginfo_to_siginfo32(siginfo_t *src, str
 	dst->si_pid = src->si_pid;
 	dst->si_uid = src->si_uid;
 	dst->si_status = src->si_status;
-	dst->si_addr = dst->si_addr;
+	dst->si_addr = src->si_addr;
 	dst->si_value.sigval_int = src->si_value.sival_int;
 	dst->si_timerid = src->si_timerid;
 	dst->si_overrun = src->si_overrun;


More information about the svn-src-all mailing list