Use GFP_ATOMIC when local_lock_irqsave in __alloc_pages_bulk Reported-by: syzbot+e45919db2eab5e837646@xxxxxxxxxxxxxxxxxxxxxxxxx Signed-off-by: Wang Qing <wangqing@xxxxxxxx> --- 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