lkml.org 
[lkml]   [2021]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] mm: add GFP_ATOMIC flag after local_lock_irqsave
Date
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
\
 
 \ /
  Last update: 2021-07-05 15:58    [W:0.366 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site