x86 futex: fix out of bounds shift
8 << 28 needs unsigned to fit, other shifts were done to truncate the input, use a mask instead Change-Id: I81ba41595f4629f1df554e34392116440ff3b641
This commit is contained in:
committed by
Dominique Martinet
parent
6f7c428a34
commit
bc887aab44
@ -25,7 +25,7 @@
|
||||
#define FUTEX_OP_ANDN 3 /* *(int *)UADDR2 &= ~OPARG; */
|
||||
#define FUTEX_OP_XOR 4 /* *(int *)UADDR2 ^= OPARG; */
|
||||
|
||||
#define FUTEX_OP_OPARG_SHIFT 8 /* Use (1 << OPARG) instead of OPARG. */
|
||||
#define FUTEX_OP_OPARG_SHIFT 8U /* Use (1 << OPARG) instead of OPARG. */
|
||||
|
||||
#define FUTEX_OP_CMP_EQ 0 /* if (oldval == CMPARG) wake */
|
||||
#define FUTEX_OP_CMP_NE 1 /* if (oldval != CMPARG) wake */
|
||||
|
||||
Reference in New Issue
Block a user