path: root/lib/vsprintf.c
diff options
authorHugh Dickins <>2012-03-05 20:52:55 -0800
committerLinus Torvalds <>2012-03-06 08:18:23 -0800
commitc09ff089aa62380ad904ea785bd713c56720270e (patch)
tree6ddc11131cd557d0d3a32ddeb829bfefe542101b /lib/vsprintf.c
parentf3969bf78f140f437f51787dfc2751943ba454d1 (diff)
page_cgroup: fix horrid swap accounting regression
Why is memcg's swap accounting so broken? Insane counts, wrong ownership, unfreeable structures, which later get freed and then accessed after free. Turns out to be a tiny a little 3.3-rc1 regression in 9fb4b7cc0724 "page_cgroup: add helper function to get swap_cgroup": the helper function (actually named lookup_swap_cgroup()) returns an address using void* arithmetic, but the structure in question is a short. Signed-off-by: Hugh Dickins <> Reviewed-by: Bob Liu <> Cc: Michal Hocko <> Cc: KAMEZAWA Hiroyuki <> Cc: Johannes Weiner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions