[PATCH 0/4] Some randome fixes and cleanups to swapfile

Kemeng Shi posted 4 patches 6 months, 3 weeks ago
mm/swapfile.c | 64 ++++++++++++++++++++++++---------------------------
1 file changed, 30 insertions(+), 34 deletions(-)
[PATCH 0/4] Some randome fixes and cleanups to swapfile
Posted by Kemeng Shi 6 months, 3 weeks ago
Patch 0-3 are some random fixes. Patch 4 is a cleanup. More details can
be found in respective patches. Thanks.

Kemeng Shi (4):
  mm: swap: move nr_swap_pages counter decrement from folio_alloc_swap()
    to swap_range_alloc()
  mm: swap: correctly use maxpages in swapon syscall to avoid potensial
    deadloop
  mm: swap: fix potensial buffer overflow in setup_clusters()
  mm: swap: remove stale comment stale comment in
    cluster_alloc_swap_entry()

 mm/swapfile.c | 64 ++++++++++++++++++++++++---------------------------
 1 file changed, 30 insertions(+), 34 deletions(-)

-- 
2.30.0
Re: [PATCH 0/4] Some randome fixes and cleanups to swapfile
Posted by Andrew Morton 6 months, 3 weeks ago
On Thu, 22 May 2025 20:25:50 +0800 Kemeng Shi <shikemeng@huaweicloud.com> wrote:

> Patch 0-3 are some random fixes. Patch 4 is a cleanup. More details can
> be found in respective patches. Thanks.

Cool.  I'll add these to mm-new but I won't advance them to mm-unstable
until after the merge window, so we have 2+ weeks for review and test.

I added cc:stable to patches 1-3, so they'll eventually find their way
into earlier kernels.