aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2024-10-23 12:05:34 +0000
committerRussell King (Oracle) <[email protected]>2024-11-13 08:15:23 +0000
commit93ee385254d53849c01dd8ab9bc9d02790ee7f0e (patch)
treea7f915fc8ceae2a2c1c5f541995ef3d13dfff019 /drivers/platform/x86/intel/pmt/class.c
parentARM: 9430/1: entry: Do a dummy read from VMAP shadow (diff)
downloadkernel-93ee385254d53849c01dd8ab9bc9d02790ee7f0e.tar.gz
kernel-93ee385254d53849c01dd8ab9bc9d02790ee7f0e.zip
ARM: 9431/1: mm: Pair atomic_set_release() with _read_acquire()
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: [email protected] Fixes: d31e23aff011 ("ARM: mm: make vmalloc_seq handling SMP safe") Suggested-by: Mark Rutland <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions