summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-12-18 14:58:37 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-20 22:46:20 +0100
commit39ebd6dce62d8cfe3864e16148927a139f11bc9a (patch)
tree4f4f8bf8c76244f796cf8d44610d296e1a6a5ef6 /rust
parentmm/memory-failure: check the mapcount of the precise page (diff)
downloadlinux-39ebd6dce62d8cfe3864e16148927a139f11bc9a.tar.xz
linux-39ebd6dce62d8cfe3864e16148927a139f11bc9a.zip
mm/memory-failure: cast index to loff_t before shifting it
On 32-bit systems, we'll lose the top bits of index because arithmetic will be performed in unsigned long instead of unsigned long long. This affects files over 4GB in size. Link: https://lkml.kernel.org/r/20231218135837.3310403-4-willy@infradead.org Fixes: 6100e34b2526 ("mm, memory_failure: Teach memory_failure() about dev_pagemap pages") Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions