From: Huan Yang <link@vivo.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"kernel@vivo.com" <kernel@vivo.com>,
"syzbot+b07d8440edb5f8988eea@syzkaller.appspotmail.com"
<syzbot+b07d8440edb5f8988eea@syzkaller.appspotmail.com>,
Wang Qing <wangqing@vivo.com>
Subject: Re: [PATCH] mm/page_alloc: fix alloc_pages_bulk/set_page_owner panic on irq disabled
Date: Fri, 26 Apr 2024 10:59:51 +0800 [thread overview]
Message-ID: <fef9f0e9-33d6-4e64-80b5-095b4794d7c8@vivo.com> (raw)
In-Reply-To: <AJMANAB3D*gl9w79jvWlvaqZ.3.1626053734064.Hmail.link@vivo.com>
HI Andrew
在 2024/4/25 17:52, 杨欢 写道:
>>> The problem is caused by set_page_owner alloc memory to save stack with
>>> GFP_KERNEL in local_riq disabled.
>>> So, we just can't assume that alloc flags should be same with new page,
>>> let's split it. But in most situation, same is ok, in alloc_pages_bulk,
>>> input GFP_ATOMIC when prep_new_pages
>> Please more fully describe the bug which is being fixed. A link to the
>> sysbot report would be helpful. I assume there was a stack backtrace
>> available? Seeing the will help others to understand the bug.
> Sorry, here is the backtrace:
> __dump_stack lib/dump_stack.c:79 [inline]
> dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:96
> ___might_sleep.cold+0x1f1/0x237 kernel/sched/core.c:9153
> prepare_alloc_pages+0x3da/0x580 mm/page_alloc.c:5179
> __alloc_pages+0x12f/0x500 mm/page_alloc.c:5375
> alloc_pages+0x18c/0x2a0 mm/mempolicy.c:2272
> stack_depot_save+0x39d/0x4e0 lib/stackdepot.c:303
> save_stack+0x15e/0x1e0 mm/page_owner.c:120
> __set_page_owner+0x50/0x290 mm/page_owner.c:181
> prep_new_page mm/page_alloc.c:2445 [inline]
> __alloc_pages_bulk+0x8b9/0x1870 mm/page_alloc.c:5313
Thanks for your reply, but this patch was submitted in 2021, at that
time it was believed that bypassing
alloc bulk would suffice when page_owner is enabled, so this patch was
not considered.
Have you recently encountered any issues related to this?
Thanks.
>> And if you are able to identify the patch which introduced the bug, a
>> Fixes: tag would be helpful as well.
>> Thanks.
>>
>
>
>
next parent reply other threads:[~2024-04-26 3:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AJMANAB3D*gl9w79jvWlvaqZ.3.1626053734064.Hmail.link@vivo.com>
2024-04-26 2:59 ` Huan Yang [this message]
2021-07-09 9:05 Yang Huan
2021-07-09 22:33 ` Andrew Morton
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=fef9f0e9-33d6-4e64-80b5-095b4794d7c8@vivo.com \
--to=link@vivo.com \
--cc=akpm@linux-foundation.org \
--cc=kernel@vivo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=syzbot+b07d8440edb5f8988eea@syzkaller.appspotmail.com \
--cc=wangqing@vivo.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