[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <987ab9f6dc844f8584a0224924e13bea@huawei.com>
Date: Mon, 15 Nov 2021 08:02:46 +0000
From: Roberto Sassu <roberto.sassu@...wei.com>
To: Eric Biggers <ebiggers@...nel.org>
CC: "tytso@....edu" <tytso@....edu>, "corbet@....net" <corbet@....net>,
"viro@...iv.linux.org.uk" <viro@...iv.linux.org.uk>,
"hughd@...gle.com" <hughd@...gle.com>,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"linux-fscrypt@...r.kernel.org" <linux-fscrypt@...r.kernel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-integrity@...r.kernel.org" <linux-integrity@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [RFC][PATCH 4/5] shmem: Avoid segfault in
shmem_read_mapping_page_gfp()
> From: Eric Biggers [mailto:ebiggers@...nel.org]
> Sent: Friday, November 12, 2021 7:56 PM
> On Fri, Nov 12, 2021 at 01:44:10PM +0100, Roberto Sassu wrote:
> > Check the hwpoison page flag only if the page is valid in
> > shmem_read_mapping_page_gfp(). The PageHWPoison() macro tries to
> access
> > the page flags and cannot work on an error pointer.
> >
> > Signed-off-by: Roberto Sassu <roberto.sassu@...wei.com>
>
> This looks like a recent regression from the commit:
>
> commit b9d02f1bdd98f38e6e5ecacc9786a8f58f3f8b2c
> Author: Yang Shi <shy828301@...il.com>
> Date: Fri Nov 5 13:41:10 2021 -0700
>
> mm: shmem: don't truncate page if memory failure happens
>
> Can you please send this fix out as a standalone patch, to the right people and
> including the appropriate "Fixes" tag?
Hi Eric
it looks there is another patch. Given that it was proposed before,
I will drop mine. Thanks anyway.
Roberto
HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063
Managing Director: Li Peng, Zhong Ronghua
Powered by blists - more mailing lists