aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/zynqmp-fpga.c
diff options
context:
space:
mode:
authorChristoph Berg <[email protected]>2025-06-24 14:44:27 +0000
committerAndrew Morton <[email protected]>2025-07-10 04:07:54 +0000
commit10d04c26ab2b7da31dd66973f5a09d6fd8ff2a46 (patch)
tree67fb88836e40ca5f91054d6e4346e4fda83fc9c0 /drivers/fpga/zynqmp-fpga.c
parentmm/damon/core: handle damon_call_control as normal under kdmond deactivation (diff)
downloadkernel-10d04c26ab2b7da31dd66973f5a09d6fd8ff2a46.tar.gz
kernel-10d04c26ab2b7da31dd66973f5a09d6fd8ff2a46.zip
mm/migrate: fix do_pages_stat in compat mode
For arrays with more than 16 entries, the old code would incorrectly advance the pages pointer by 16 words instead of 16 compat_uptr_t. Fix by doing the pointer arithmetic inside get_compat_pages_array where pages32 is already a correctly-typed pointer. Discovered while working on PostgreSQL 18's new NUMA introspection code. Link: https://lkml.kernel.org/r/[email protected] Fixes: 5b1b561ba73c ("mm: simplify compat_sys_move_pages") Signed-off-by: Christoph Berg <[email protected]> Acked-by: David Hildenbrand <[email protected]> Suggested-by: David Hildenbrand <[email protected]> Reported-by: Bertrand Drouvot <[email protected]> Reported-by: Tomas Vondra <[email protected]> Closes: https://www.postgresql.org/message-id/flat/6342f601-77de-4ee0-8c2a-3deb50ceac5b%40vondra.me#86402e3d80c031788f5f55b42c459471 Cc: Alistair Popple <[email protected]> Cc: Byungchul Park <[email protected]> Cc: Gregory Price <[email protected]> Cc: "Huang, Ying" <[email protected]> Cc: Joshua Hahn <[email protected]> Cc: Mathew Brost <[email protected]> Cc: Rakie Kim <[email protected]> Cc: Zi Yan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/zynqmp-fpga.c')
0 files changed, 0 insertions, 0 deletions