]> Gentwo Git Trees - linux/.git/commit
cramfs: fix incorrect physical page address calculation
authorAlistair Popple <apopple@nvidia.com>
Tue, 23 Sep 2025 00:53:33 +0000 (10:53 +1000)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 28 Sep 2025 18:36:12 +0000 (11:36 -0700)
commit20a8e0454d833d80d0c0cae304841a50a2a126bd
tree11154e8c90a77382f1dde2258d61015491e06a43
parent634cdfd6b394cf4a5bfaeacf3b325998c752df45
cramfs: fix incorrect physical page address calculation

Commit 21aa65bf82a7 ("mm: remove callers of pfn_t functionality")
incorrectly replaced the pfn with the physical address when calling
vmf_insert_mixed().  Instead the phys_to_pfn_t() call should have been
replaced with PHYS_PFN().

Found by inspection after a similar issue was noted in fuse virtio_fs.

Link: https://lkml.kernel.org/r/20250923005333.3165032-1-apopple@nvidia.com
Fixes: 21aa65bf82a7 ("mm: remove callers of pfn_t functionality")
Signed-off-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Haiyue Wang <haiyuewa@163.com>
Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/cramfs/inode.c