From: Wang Qing <wangqing@vivo.com>
To: Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Cc: Wang Qing <wangqing@vivo.com>
Subject: [PATCH] mm: add GFP_ATOMIC flag after local_lock_irqsave
Date: Mon, 5 Jul 2021 21:57:12 +0800 [thread overview]
Message-ID: <1625493432-9945-1-git-send-email-wangqing@vivo.com> (raw)
Use GFP_ATOMIC when local_lock_irqsave in __alloc_pages_bulk
Reported-by: syzbot+e45919db2eab5e837646@syzkaller.appspotmail.com
Signed-off-by: Wang Qing <wangqing@vivo.com>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index d6e94cc..3016ba5
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5309,7 +5309,7 @@ unsigned long __alloc_pages_bulk(gfp_t gfp, int preferred_nid,
}
nr_account++;
- prep_new_page(page, 0, gfp, 0);
+ prep_new_page(page, 0, gfp | GFP_ATOMIC, 0);
if (page_list)
list_add(&page->lru, page_list);
else
--
2.7.4
next reply other threads:[~2021-07-05 13:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-05 13:57 Wang Qing [this message]
2021-07-06 2:32 ` [Phishing Risk] [External] " Muchun Song
2021-07-06 2:41 ` 王擎
2021-07-06 3:05 ` Muchun Song
2021-07-06 3:13 ` 王擎
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=1625493432-9945-1-git-send-email-wangqing@vivo.com \
--to=wangqing@vivo.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/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