All of lore.kernel.org
 help / color / mirror / Atom feed
From: Youngjun Park <youngjun.park@lge.com>
To: Oleksandr Natalenko <oleksandr@natalenko.name>
Cc: linux-mm@kvack.org, Rafael Aquini <aquini@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Chris Li <chrisl@kernel.org>, Kairui Song <kasong@tencent.com>,
	Kemeng Shi <shikemeng@huaweicloud.com>,
	Nhat Pham <nphamcs@gmail.com>, Baoquan He <baoquan.he@linux.dev>,
	Barry Song <baohua@kernel.org>
Subject: Re: [PATCH] mm/swapfile: really fix integer overflow in swap_show() and swapon()
Date: Wed, 18 Nov 2026 22:40:20 +0900	[thread overview]
Message-ID: <av2qxMxZXDIlGsX4@yjaykim-PowerEdge-T330> (raw)
In-Reply-To: <20261118112610.122799-1-oleksandr@natalenko.name>

Hi Oleksandr,

> Cast si->pages to long explicitly so that the bitshift in K() doesn't
> truncate the value to 32 bits.

Nice catch. 642929a2ded0 widened bytes but left the shift in 32 bits.

> Fixes: 642929a2ded0 ("mm/swapfile: fix an integer overflow in swap_show()")

stable kernels show the same wrong size, should this also
carry Cc: stable@vger.kernel.org?

Reviewed-by: Youngjun Park <youngjun.park@lge.com>

Thanks,
Youngjun


  reply	other threads:[~2026-11-18 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 11:26 [PATCH] mm/swapfile: really fix integer overflow in swap_show() and swapon() Oleksandr Natalenko
2026-11-18 13:40 ` Youngjun Park [this message]
2026-11-18 13:42   ` Oleksandr Natalenko
2026-11-18 16:07 ` Nhat Pham
2026-11-23  6:25 ` [merged mm-hotfixes-stable] mm-swapfile-really-fix-integer-overflow-in-swap_show-and-swapon.patch removed from -mm tree Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=av2qxMxZXDIlGsX4@yjaykim-PowerEdge-T330 \
    --to=youngjun.park@lge.com \
    --cc=akpm@linux-foundation.org \
    --cc=aquini@redhat.com \
    --cc=baohua@kernel.org \
    --cc=baoquan.he@linux.dev \
    --cc=chrisl@kernel.org \
    --cc=kasong@tencent.com \
    --cc=linux-mm@kvack.org \
    --cc=nphamcs@gmail.com \
    --cc=oleksandr@natalenko.name \
    --cc=shikemeng@huaweicloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.