summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki2011-03-24 00:42:18 +0100
committerLinus Torvalds2011-03-24 03:46:22 +0100
commit6c191cd01a935e5b53ef43c9403c771bb7a32b60 (patch)
tree70c49b4cb52406ea1d8c60f73ad7733f60f9cee9 /mm/swapfile.c
parentbitops: remove minix bitops from asm/bitops.h (diff)
downloadkernel-qcow2-linux-6c191cd01a935e5b53ef43c9403c771bb7a32b60.tar.gz
kernel-qcow2-linux-6c191cd01a935e5b53ef43c9403c771bb7a32b60.tar.xz
kernel-qcow2-linux-6c191cd01a935e5b53ef43c9403c771bb7a32b60.zip
memcg: res_counter_read_u64(): fix potential races on 32-bit machines
res_counter_read_u64 reads u64 value without lock. It's dangerous in a 32bit environment. Add locking. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Greg Thelen <gthelen@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: David Rientjes <rientjes@google.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Minchan Kim <minchan.kim@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions