aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorChris Down <[email protected]>2020-03-22 01:22:20 +0000
committerLinus Torvalds <[email protected]>2020-03-22 01:56:06 +0000
commitd397a45fc741c80c32a14e2de008441e9976f50c (patch)
tree8cfe10ae8aa3e16783822ad867e1d5b8b615228a /drivers/iio/trigger/stm32-timer-trigger.c
parentpage-flags: fix a crash at SetPageError(THP_SWAP) (diff)
downloadkernel-d397a45fc741c80c32a14e2de008441e9976f50c.tar.gz
kernel-d397a45fc741c80c32a14e2de008441e9976f50c.zip
mm, memcg: fix corruption on 64-bit divisor in memory.high throttling
Commit 0e4b01df8659 had a bunch of fixups to use the right division method. However, it seems that after all that it still wasn't right -- div_u64 takes a 32-bit divisor. The headroom is still large (2^32 pages), so on mundane systems you won't hit this, but this should definitely be fixed. Fixes: 0e4b01df8659 ("mm, memcg: throttle allocators when failing reclaim over memory.high") Reported-by: Johannes Weiner <[email protected]> Signed-off-by: Chris Down <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Johannes Weiner <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: <[email protected]> [5.4.x+] Link: http://lkml.kernel.org/r/80780887060514967d414b3cd91f9a316a16ab98.1584036142.git.chris@chrisdown.name Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions