From: "Liam R. Howlett" <Liam.Howlett@Oracle.com>
To: Juhyung Park <qkrwngud825@gmail.com>
Cc: Michael Keyes <mgkeyes@vigovproductions.net>,
Tad <support@spotco.us>,
akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, rick.p.edgecombe@intel.com
Subject: Re: [PATCH v2] mm/mmap: Regression fix for unmapped_area{_topdown}
Date: Mon, 15 May 2023 10:36:25 -0400 [thread overview]
Message-ID: <20230515143625.jaipn7exqdr3ylzd@revolver> (raw)
In-Reply-To: <9460b08a-7740-42bd-8784-d27ea038e87b@gmail.com>
* Juhyung Park <qkrwngud825@gmail.com> [230515 04:57]:
> Hi Liam,
>
> It's a bit hard to follow this particular issue on v6.1 as there are many
> email threads related to this.
>
> I just wanted to ask if whether this is fixed on mainline and v6.1 stable
> yet.
Not yet. It is in mm-unstable at this time.
>
> If there's a new thread tackling this issue, I'd appreciate it if you can
> link it here.
https://lore.kernel.org/linux-mm/20230505145829.74574-1-zhangpeng.00@bytedance.com/
>
> Thanks,
> regards
>
> On 5/2/23 23:09, Liam R. Howlett wrote:
> > ...Adding Rick to the Cc this time.
> >
> > * Liam R. Howlett <Liam.Howlett@Oracle.com> [230502 10:08]:
> > > * Michael Keyes <mgkeyes@vigovproductions.net> [230430 18:41]:
> > > > On 29.04.23 15:32, Tad wrote:
> > > > > This reintroduces the issue described in
> > > > > https://lore.kernel.org/linux-mm/cb8dc31a-fef2-1d09-f133-e9f7b9f9e77a@sony.com/
> > > > Yes, I also ran into this (even though I'd somehow missed it the
> > > > previous time).
> > >
> > > Rick Edgecombe reported something similar [1].
> > >
> > > This is probably to do with my stack guard checks I recently added.
> > >
> > > >
> > > > Apparently the issue arises at mm/mmap.c:1582, where low_limit is set to
> > > > vm_end_gap(tmp). Occasionally, this returns a 64-bit address (e.g.
> > > > 0x7fedea581000), which is obviously greater than high_limit for a 32-bit
> > > > mmap, and causes the next call to mas_empty_area() to fail.
> > > >
> > > > I'm not sure why vm_end_gap(tmp) occasionally returns a 64-bit address,
> > > > or if the best solution is to just check for this and skip the retry if
> > > > it occurs…
> > > >
> > >
> > > Thanks for the debugging. I will look into it.
> > >
> > > I am currently trying to revise how the iterators, prev/next deal with
> > > shifting outside the requested limits. I suspect it's something to do
> > > with hitting the limit and what someone would assume the next operation
> > > means.
> > >
> > > [1] https://lore.kernel.org/linux-mm/32f156ba80010fd97dbaf0a0cdfc84366608624d.camel@intel.com/
> >
> >
next prev parent reply other threads:[~2023-05-15 14:36 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-14 14:57 [PATCH 1/3] maple_tree: Make maple state reusable after mas_empty_area_rev() Liam R. Howlett
2023-04-14 14:57 ` [PATCH 2/3] maple_tree: Fix mas_empty_area() search Liam R. Howlett
2023-04-14 14:57 ` [PATCH 3/3] mm/mmap: Regression fix for unmapped_area{_topdown} Liam R. Howlett
2023-04-14 16:27 ` Edgecombe, Rick P
2023-04-14 17:26 ` Liam R. Howlett
2023-04-14 17:29 ` Liam R. Howlett
2023-04-14 17:53 ` Edgecombe, Rick P
2023-04-14 18:07 ` Liam R. Howlett
2023-04-14 18:21 ` Edgecombe, Rick P
2023-04-14 18:59 ` [PATCH v2] " Liam R. Howlett
2023-04-14 19:09 ` Andrew Morton
2023-04-29 14:32 ` Tad
2023-04-30 22:41 ` Michael Keyes
2023-05-02 14:08 ` Liam R. Howlett
2023-05-02 14:09 ` Liam R. Howlett
2023-05-15 8:57 ` Juhyung Park
2023-05-15 14:36 ` Liam R. Howlett [this message]
2023-04-19 9:02 ` [PATCH 1/3] maple_tree: Make maple state reusable after mas_empty_area_rev() Peng Zhang
2023-04-19 22:54 ` Liam R. Howlett
2023-04-20 4:21 ` Peng Zhang
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=20230515143625.jaipn7exqdr3ylzd@revolver \
--to=liam.howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgkeyes@vigovproductions.net \
--cc=qkrwngud825@gmail.com \
--cc=rick.p.edgecombe@intel.com \
--cc=support@spotco.us \
/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