summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2024-10-23 13:05:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:41:03 +0100
commit0cfd6929fa780a3ec417858ab4fe2e8e46b16659 (patch)
tree5a04c3f6ae5905d07c7671c6a43e74543c4a2c51 /drivers/pci/controller/dwc
parentc86d26b4b089ca294b3b7d915a7da61edb77935f (diff)
ARM: 9431/1: mm: Pair atomic_set_release() with _read_acquire()
commit 93ee385254d53849c01dd8ab9bc9d02790ee7f0e upstream. The code for syncing vmalloc memory PGD pointers is using atomic_read() in pair with atomic_set_release() but the proper pairing is atomic_read_acquire() paired with atomic_set_release(). This is done to clearly instruct the compiler to not reorder the memcpy() or similar calls inside the section so that we do not observe changes to init_mm. memcpy() calls should be identified by the compiler as having unpredictable side effects, but let's try to be on the safe side. Cc: stable@vger.kernel.org Fixes: d31e23aff011 ("ARM: mm: make vmalloc_seq handling SMP safe") Suggested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions