From: Uladzislau Rezki <urezki@gmail.com>
To: Jaeseon Sim <jason.sim@samsung.com>
Cc: "bhe@redhat.com" <bhe@redhat.com>,
"urezki@gmail.com" <urezki@gmail.com>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"hch@infradead.org" <hch@infradead.org>,
"lstoakes@gmail.com" <lstoakes@gmail.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Jaewon Kim <jaewon31.kim@samsung.com>
Subject: Re: [PATCH] mm/vmalloc: Remove WARN_ON_ONCE related to adjust_va_to_fit_type
Date: Mon, 25 Sep 2023 15:40:32 +0200 [thread overview]
Message-ID: <ZRGN0DkJ/MHsYloz@pc636> (raw)
In-Reply-To: <20230925105154epcms1p782c335c2355f39a9b583489c56e972f6@epcms1p7>
On Mon, Sep 25, 2023 at 07:51:54PM +0900, Jaeseon Sim wrote:
> > On 09/22/23 at 05:34pm, Baoquan He wrote:
> > > Hi Jaeseon,
> Hello Baoquan,
> > >
> > > On 09/22/23 at 03:27pm, Jaeseon Sim wrote:
> > > > There's panic issue as follows when do alloc_vmap_area:
> > > >
> > > > Kernel panic - not syncing: kernel: panic_on_warn set ...
> > > >
> > > > page allocation failure: order:0, mode:0x800(GFP_NOWAIT)
> > > > Call Trace:
> > > > warn_alloc+0xf4/0x190
> > > > __alloc_pages_slowpath+0xe0c/0xffc
> > > > __alloc_pages+0x250/0x2d0
> > > > new_slab+0x17c/0x4e0
> > > > ___slab_alloc+0x4e4/0x8a8
> > > > __slab_alloc+0x34/0x6c
> > > > kmem_cache_alloc+0x20c/0x2f0
> > > > adjust_va_to_fit_type
> > > > __alloc_vmap_area
> > > > alloc_vmap_area+0x298/0x7fc
> > > > __get_vm_area_node+0x10c/0x1b4
> > > > __vmalloc_node_range+0x19c/0x7c0
>
> To Uladzislau,
> Sorry. The path is as below.
>
> Call trace:
> alloc_vmap_area+0x298/0x7fc
> __get_vm_area_node+0x10c/0x1b4
> __vmalloc_node_range+0x19c/0x7c0
> dup_task_struct+0x1b8/0x3b0
> copy_process+0x170/0xc40
>
> > > >
> > > > Commit 1b23ff80b399 ("mm/vmalloc: invoke classify_va_fit_type() in
> > > > adjust_va_to_fit_type()") moved classify_va_fit_type() into
> > > > adjust_va_to_fit_type() and used WARN_ON_ONCE() to handle return
> > > > value of adjust_va_to_fit_type(), just as classify_va_fit_type()
> > > > was handled.
> > >
> > > I don't get what you are fixing. In commit 1b23ff80b399, we have
> > ~~ s/In/Before/, typo
> > > "if (WARN_ON_ONCE(type == NOTHING_FIT))", it's the same as the current
> > > code. You set panic_on_warn, it will panic in old code before commit
> > > 1b23ff80b399. Isn't it an expected behaviour?
> There is a call path which didn't panic in old code, but does on the current.
>
> static __always_inline int adjust_va_to_fit_type()
>
> } else if (type == NE_FIT_TYPE) {
> lva = kmem_cache_alloc(vmap_area_cachep, GFP_NOWAIT);
> if (!lva)
> return -1;
>
>
We do not have above code anymore:
<snip>
commit 82dd23e84be3ead53b6d584d836f51852d1096e6
Author: Uladzislau Rezki (Sony) <urezki@gmail.com>
Date: Thu Jul 11 20:58:57 2019 -0700
mm/vmalloc.c: preload a CPU with one object for split purpose
<snip>
Which kernel are you testing?
Thanks!
--
Uladzislau Rezki
next prev parent reply other threads:[~2023-09-25 13:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230922061715epcms1p7cd5a37f4bba0abf4bc159b844bd8ee65@epcms1p1>
2023-09-22 6:27 ` Jaeseon Sim
2023-09-22 9:34 ` bhe
2023-09-22 9:42 ` bhe
[not found] ` <CGME20230922061715epcms1p7cd5a37f4bba0abf4bc159b844bd8ee65@epcms1p7>
2023-09-25 10:51 ` Jaeseon Sim
2023-09-25 13:40 ` Uladzislau Rezki [this message]
2023-09-26 5:21 ` Jaeseon Sim
2023-09-26 6:05 ` Uladzislau Rezki
[not found] ` <CGME20230922061715epcms1p7cd5a37f4bba0abf4bc159b844bd8ee65@epcms1p4>
2023-09-26 12:05 ` Jaeseon Sim
2023-09-26 12:35 ` Uladzislau Rezki
2023-09-27 11:49 ` Uladzislau Rezki
2023-09-27 13:33 ` bhe
2023-09-27 15:25 ` Uladzislau Rezki
2023-09-22 13:41 ` Uladzislau Rezki
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=ZRGN0DkJ/MHsYloz@pc636 \
--to=urezki@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bhe@redhat.com \
--cc=hch@infradead.org \
--cc=jaewon31.kim@samsung.com \
--cc=jason.sim@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lstoakes@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox