signals/sigaltstack: Change SS_AUTODISARM to (1U << 31)
authorAndy Lutomirski <[email protected]>
Tue, 3 May 2016 17:31:52 +0000 (10:31 -0700)
committerIngo Molnar <[email protected]>
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 <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Aleksa Sarai <[email protected]>
Cc: Amanieu d'Antras <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Jason Low <[email protected]>
Cc: Josh Triplett <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Paul Moore <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Sasha Levin <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Stas Sergeev <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/bb996508a600af14b406810c3d58fe0e0d0afe0d.1462296606.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
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;