signals/sigaltstack: Change SS_AUTODISARM to (1U << 31)
authorAndy Lutomirski <luto@kernel.org>
Tue, 3 May 2016 17:31:52 +0000 (10:31 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 4 May 2016 06:34:14 +0000 (08:34 +0200)
Using bit 4 divides the space of available bits strangely.  Use bit
31 instead so that we have a better chance of keeping flag and mode
bits separate in the long run.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Aleksa Sarai <cyphar@cyphar.com>
Cc: Amanieu d'Antras <amanieu@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Jason Low <jason.low2@hp.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Moore <pmoore@redhat.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Stas Sergeev <stsp@list.ru>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Cc: linux-api@vger.kernel.org
Link: http://lkml.kernel.org/r/bb996508a600af14b406810c3d58fe0e0d0afe0d.1462296606.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/uapi/linux/signal.h
tools/testing/selftests/sigaltstack/sas.c

index 738826048af22f56828069a28b9c6f58ad3f2e22..cd0804b6bfa2ed0980fe1cec8e01201833cbdaef 100644 (file)
@@ -8,7 +8,7 @@
 #define SS_DISABLE     2
 
 /* bit-flags */
-#define SS_AUTODISARM  (1 << 4)        /* disable sas during sighandling */
+#define SS_AUTODISARM  (1U << 31)      /* disable sas during sighandling */
 /* mask for all SS_xxx flags */
 #define SS_FLAG_BITS   SS_AUTODISARM
 
index 4280d0699792cfaf5d5a378bf166553e68bd594f..1bb01258e5596f5d2216588cbef04b8d0297819e 100644 (file)
@@ -18,7 +18,7 @@
 #include <errno.h>
 
 #ifndef SS_AUTODISARM
-#define SS_AUTODISARM  (1 << 4)
+#define SS_AUTODISARM  (1U << 31)
 #endif
 
 static void *sstack, *ustack;