summaryrefslogtreecommitdiff
path: root/mm/percpu.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2014-02-27 21:46:48 (GMT)
committerMike Snitzer <snitzer@redhat.com>2014-02-28 14:23:02 (GMT)
commite0d849fad746cb36a6822e4595d8ba9bf0adf7fa (patch)
treed5ea46f6692bc8de0260843a59d386db4bb9030c /mm/percpu.c
parent7d48935eff401bb7970e73e822871a10e3643df1 (diff)
downloadlinux-e0d849fad746cb36a6822e4595d8ba9bf0adf7fa.tar.xz
dm cache: fix truncation bug when mapping I/O to >2TB fast device
When remapping a block to the cache's fast device that is larger than 2TB we must not truncate the destination sector to 32bits. The 32bit temporary result of from_cblock() was being overflowed in remap_to_cache() due to the logical left shift. Use an intermediate 64bit type to store the 32bit from_cblock() result to fix the overflow. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'mm/percpu.c')
0 files changed, 0 insertions, 0 deletions