summaryrefslogtreecommitdiff
path: root/include/linux/percpu_counter.h
diff options
context:
space:
mode:
authorManfred Spraul <manfred@colorfullife.com>2022-12-16 18:04:39 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-02-03 09:50:01 +0300
commit805afd8300998948d16bdba0358dcfeb202a70d5 (patch)
tree66b0eab28da035317de3d2d178ab680a8a76e005 /include/linux/percpu_counter.h
parenta9dc087fd3c484fd1ed18c5efb290efaaf44ce03 (diff)
downloadlinux-805afd8300998948d16bdba0358dcfeb202a70d5.tar.xz
lib/percpu_counter: percpu_counter_add_batch() overflow/underflow
Patch series "various irq handling fixes/docu updates". If an interrupt happens between __this_cpu_read(*fbc->counters) and this_cpu_add(*fbc->counters, amount), and that interrupt modifies the per_cpu_counter, then the this_cpu_add() after the interrupt returns may under/overflow. Link: https://lkml.kernel.org/r/20221216150155.200389-1-manfred@colorfullife.com Link: https://lkml.kernel.org/r/20221216150441.200533-1-manfred@colorfullife.com Signed-off-by: Manfred Spraul <manfred@colorfullife.com> Cc: "Sun, Jiebin" <jiebin.sun@intel.com> Cc: <1vier1@web.de> Cc: Alexander Sverdlin <alexander.sverdlin@siemens.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/percpu_counter.h')
0 files changed, 0 insertions, 0 deletions