Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 fix inverted logic in NETBSD32 user...



details:   https://anonhg.NetBSD.org/src/rev/be7533e08a1b
branches:  trunk
changeset: 1009457:be7533e08a1b
user:      tnn <tnn%NetBSD.org@localhost>
date:      Thu Apr 23 16:37:39 2020 +0000

description:
fix inverted logic in NETBSD32 user signal stack handling (PR evbarm/55200)

diffstat:

 sys/arch/aarch64/aarch64/netbsd32_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 042de33006f1 -r be7533e08a1b sys/arch/aarch64/aarch64/netbsd32_machdep.c
--- a/sys/arch/aarch64/aarch64/netbsd32_machdep.c       Thu Apr 23 16:16:14 2020 +0000
+++ b/sys/arch/aarch64/aarch64/netbsd32_machdep.c       Thu Apr 23 16:37:39 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.10 2020/01/31 09:08:57 maxv Exp $       */
+/*     $NetBSD: netbsd32_machdep.c,v 1.11 2020/04/23 16:37:39 tnn Exp $        */
 
 /*
  * Copyright (c) 2018 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.10 2020/01/31 09:08:57 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.11 2020/04/23 16:37:39 tnn Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -217,7 +217,7 @@
        int error;
 
        const bool onstack_p =
-           (ss->ss_flags & (SS_DISABLE | SS_ONSTACK)) &&
+           (ss->ss_flags & (SS_DISABLE | SS_ONSTACK)) == 0 &&
            (sa->sa_flags & SA_ONSTACK);
 
        vaddr_t sp = onstack_p ?



Home | Main Index | Thread Index | Old Index