[PATCH] strace: sys_pselect6: Decode signal mask when entering syscall

Dmitry V. Levin ldv at altlinux.org
Sat Sep 22 23:49:06 UTC 2007


2007-09-22  Dmitry V. Levin <ldv at altlinux.org>

	* desc.c (sprintflags): Decode signal mask when entering syscall.
	Relax signal mask size check.

--- a/strace/desc.c
+++ b/strace/desc.c
@@ -868,7 +868,7 @@ int
 sys_pselect6(struct tcb *tcp)
 {
 	int rc = decode_select(tcp, tcp->u_arg, BITNESS_CURRENT);
-	if (exiting(tcp)) {
+	if (entering(tcp)) {
 		struct {
 			void *ss;
 			unsigned long len;
@@ -877,7 +877,7 @@ sys_pselect6(struct tcb *tcp)
 			tprintf(", %#lx", tcp->u_arg[5]);
 		else {
 			tprintf(", {");
-			if (data.len < sizeof(sigset_t))
+			if (data.len < sizeof(long))
 				tprintf("%#lx", (long)data.ss);
 			else
 				print_sigset(tcp, (long)data.ss, 0);

-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20070923/568daaa4/attachment.bin>


More information about the Strace-devel mailing list