[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZPlWmbu+pLIPgyYC@casper.infradead.org>
Date: Thu, 7 Sep 2023 05:50:33 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Zhiguo Jiang <justinjiang@...o.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, opensource.kernel@...o.com
Subject: Re: [PATCH] mm: vmscan: fix get_swappiness() return value type
On Thu, Sep 07, 2023 at 12:40:45PM +0800, Zhiguo Jiang wrote:
> Fix bool to int of the get_swappiness() return value type in
> lruvec_is_sizable().
>
> The get_swappiness() return value type is int, but the
> get_swappiness() return value type is bool in lruvec_is_sizable().
> So there is a possibility of value overflow.
Have you looked at how the C spec defines int->bool conversion?
Powered by blists - more mailing lists