From: Shakeel Butt <shakeelb@google.com>
To: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>,
Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <hannes@cmpxchg.org>,
Michal Hocko <mhocko@kernel.org>,
Muchun Song <muchun.song@linux.dev>,
linux-mm@kvack.org, Vlastimil Babka <vbabka@suse.cz>
Subject: Re: selftests: cgroup: test_core - Unable to handle kernel NULL pointer dereference at virtual address
Date: Tue, 10 Oct 2023 10:22:24 -0700 [thread overview]
Message-ID: <CALvZod4vd--NXNu2gYb998reSUgwqZ8pPBn0RpwyOJZ0v-DrbQ@mail.gmail.com> (raw)
In-Reply-To: <ZSV40ye5BOrYarUp@P9FQF9L96D.corp.robot.car>
On Tue, Oct 10, 2023 at 9:16 AM Roman Gushchin <roman.gushchin@linux.dev> wrote:
>
> On Tue, Oct 10, 2023 at 12:23:06PM +0530, Naresh Kamboju wrote:
> > - mailing list.
> > [ my two cents ]
> >
> > Hi Roman,
> >
> > Thanks for fixing the reported issues.
> >
> > On Tue, 10 Oct 2023 at 03:13, Roman Gushchin <roman.gushchin@linux.dev> wrote:
> > >
> > > On Mon, Oct 09, 2023 at 04:08:13PM +0530, Naresh Kamboju wrote:
> > > > On Sun, 8 Oct 2023 at 21:09, Roman Gushchin <roman.gushchin@linux.dev> wrote:
> > > > >
> > > > > On Sun, Oct 08, 2023 at 11:30:52AM +0530, Naresh Kamboju wrote:
> > > > > > While running selftests: cgroup: test_kmem on FVP following kernel crash
> > > > > > noticed on Linux next 6.6.0-rc4-next-20231006.
> > > > >
> > > > > Hi Naresh!
> > > > >
> > > > > Thank you for the report!
> > > > >
> > > > > I've tried to reproduce it, but wasn't successful so far: I've run test_kmem
> > > > > for several hundred times and haven't seen the crash.
> > > >
> > > > If you look at the problematic test case is
> > > > selftests: cgroup: test_core
> > >
> > > Ah, got it, and immediately reproduced (and fixed).
> > > Thank you once again for all your effort!
>
> Hi Naresh!
>
> > Happy to test anytime.
> > In addition to that, I am happy to test any series of patches from lore
> > or your tree / branch.
>
> I posted v2 yesterday.
>
> >
> > >
> > > The problem happens because some kernel allocations happen after
> > > mem_cgroup_exit(), which was dropping the reference to task->objcg,
> > > but not zeroing the pointer, so it eventually caused a double-free.
> > >
> > > I gonna post an updated version of my patchset, which introduced the issue,
> > > with the fix merged (and some other minor changes).
>
> >
> > Would it be possible to add reported by tags in your patch series / fixes ?
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
>
> You totally deserve credits in the patchset, however reported-by tag will look
> strange in a non-fix commit (given that the fix is merged-in).
>
> This is a common scenario in mm where bugs are discovered and fixed in
> mm-unstable, so there are no separate fix commits. So I wonder if we need to
> introduce a new tag for this type of contribution.
>
> Andrew (and all other mm* maintainers), what do you think?
>
> Tested-by?
> Bugs-found-by?
> Stabilized-by?
>
"Tested-by:" seems reasonable. Is there some automation looking for
"Reported-by:" for backports or contribution stats?
prev parent reply other threads:[~2023-10-10 17:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA+G9fYsJA4fkLCDdXfCdjqJz3q3K0TErgKjypuLmPZ=EU3MbDg@mail.gmail.com>
[not found] ` <ZSLNQjzoYcLq1hEo@P9FQF9L96D>
[not found] ` <CA+G9fYuH_-fRHS2Kjvc8FcoV=pz9jBtYvXHOcsvUgcAHOeqXWA@mail.gmail.com>
[not found] ` <ZSR0BlS164-Y--ib@P9FQF9L96D>
[not found] ` <CA+G9fYsqrVTCd6yQtf=_xo_uGsMmaZNo3S2EJCERc07pwpxYAQ@mail.gmail.com>
2023-10-10 16:16 ` Roman Gushchin
2023-10-10 17:22 ` Shakeel Butt [this message]
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=CALvZod4vd--NXNu2gYb998reSUgwqZ8pPBn0RpwyOJZ0v-DrbQ@mail.gmail.com \
--to=shakeelb@google.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=muchun.song@linux.dev \
--cc=naresh.kamboju@linaro.org \
--cc=roman.gushchin@linux.dev \
--cc=vbabka@suse.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox