mbox series

[5.4.y,0/4] Backport fix of CVE-2024-47674 to 5.10

Message ID 20241114153443.505015-1-harshvardhan.j.jha@oracle.com (mailing list archive)
Headers show
Series Backport fix of CVE-2024-47674 to 5.10 | expand

Message

Harshvardhan Jha Nov. 14, 2024, 3:34 p.m. UTC
Following series is a backport of CVE-2024-47674 fix "mm: avoid leaving
partial pfn mappings around in error case" to 5.10.

This required 3 extra commits to make sure all picks were clean. The
patchset shows no regression compared to v5.4.285 tag.

Alex Zhang (1):
  mm/memory.c: make remap_pfn_range() reject unaligned addr

Christoph Hellwig (1):
  mm: add remap_pfn_range_notrack

WANG Wenhu (1):
  mm: clarify a confusing comment for remap_pfn_range()

chenqiwu (1):
  mm: fix ambiguous comments for better code readability

 include/linux/mm.h       |  2 ++
 include/linux/mm_types.h |  4 +--
 mm/memory.c              | 54 +++++++++++++++++++++++++---------------
 3 files changed, 38 insertions(+), 22 deletions(-)

Comments

Harshvardhan Jha Nov. 14, 2024, 3:51 p.m. UTC | #1
Hi there,

On 14/11/24 9:04 PM, Harshvardhan Jha wrote:
> Following series is a backport of CVE-2024-47674 fix "mm: avoid leaving
> partial pfn mappings around in error case" to 5.10.
A small correction, the 5.10 here should be 5.4 and similarly on the
subject line also.
If you want I can send a v2 but I hope that's not necessary.
>
> This required 3 extra commits to make sure all picks were clean. The
> patchset shows no regression compared to v5.4.285 tag.
>
> Alex Zhang (1):
>   mm/memory.c: make remap_pfn_range() reject unaligned addr
>
> Christoph Hellwig (1):
>   mm: add remap_pfn_range_notrack
>
> WANG Wenhu (1):
>   mm: clarify a confusing comment for remap_pfn_range()
>
> chenqiwu (1):
>   mm: fix ambiguous comments for better code readability
>
>  include/linux/mm.h       |  2 ++
>  include/linux/mm_types.h |  4 +--
>  mm/memory.c              | 54 +++++++++++++++++++++++++---------------
>  3 files changed, 38 insertions(+), 22 deletions(-)
>
Thanks & Regards,

Harshvardhan
Greg KH Nov. 15, 2024, 5:27 a.m. UTC | #2
On Thu, Nov 14, 2024 at 09:21:16PM +0530, Harshvardhan Jha wrote:
> Hi there,
> 
> On 14/11/24 9:04 PM, Harshvardhan Jha wrote:
> > Following series is a backport of CVE-2024-47674 fix "mm: avoid leaving
> > partial pfn mappings around in error case" to 5.10.
> A small correction, the 5.10 here should be 5.4 and similarly on the
> subject line also.
> If you want I can send a v2 but I hope that's not necessary.

No need, all now queued up, thanks!

greg k-h