diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2021-02-10 15:39:19 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2021-02-13 19:17:53 +0300 |
commit | 64985c3a223d15f151204b3aa37e587b9466378d (patch) | |
tree | d69076d3eb1e09285a65f1f1454519b1b5bd8f96 /arch/s390/kernel/irq.c | |
parent | b0d31159a46787380353426faaad8febc9bef009 (diff) | |
download | linux-64985c3a223d15f151204b3aa37e587b9466378d.tar.xz |
s390: use WRITE_ONCE when re-allocating async stack
The code does:
S390_lowcore.async_stack = new + STACK_INIT_OFFSET;
But the compiler is free to first assign one value and
add the other value later. If a IRQ would be coming in
between these two operations, it would run with an invalid
stack. Prevent this by using WRITE_ONCE.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/irq.c')
0 files changed, 0 insertions, 0 deletions