Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1028373pxv; Fri, 9 Jul 2021 15:34:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhlFkM+44jJG73py2frMlUbQuT6u26i8uvewqkblPyo0+O0UU60p3mJjqLzoM4Vw143T7x X-Received: by 2002:a92:364f:: with SMTP id d15mr28715826ilf.26.1625870051537; Fri, 09 Jul 2021 15:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625870051; cv=none; d=google.com; s=arc-20160816; b=Eo7DM7ehPt3SnWE+IbUDAeZGO6rfbgM6kvdmvq7mFPYrSYDTL9fMeRcowxKVdFuPRD 9v/IDuobCZ5cwVNNrJ5FTXfCRAItH8+v2k3HyJf7I+J9jjAbvIDCmsI5fiaW7V7nEVmX Sx4IQ+DRY4KpH/AAXjyPsK6ocVzTPe6ZMQjaKyTLVCoKtpDIuoGMYSob0EHR6nZ/gSDK bX5Bo7fSZVU/d8EuR5OBs4JjIXuAe3gyWX1jEZ1j2tBGMcVl2NayM7kbbGyANrQ11KxK VCWbS6GYU1qB18XCB5clK1kz4+eCQ4taPLFsTWUkASxp24aFCy0X6Um0NX1nuMJrf850 +32Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=H1eUnQPUXGrkVZK1LWZg8DZW2+AgRHcJATs+gDgiB+c=; b=hYfT9GrqL3cvhwXqZnW7qCvAFGTqDK8NgGKRsinWyLWNwgoWRyFb16qgJnRlED/JHi NudxXNTaUmpKGNsJEmttjylN0eUeq4Y71nw2UHd/eZ8AaQkKIixBf8wYUh4VWwvguDa1 /4KZc9WoGtRWikAt1FEpEfIUNKmyEjC8YJArlUKV5KtWl1X2bCUSFrUPn873gB181cRR QmN1Aqx7kQs1NpwU/sqnnjjwBgXcZjO0Ay2oIe0CzbfY2A4zpxzBXJJfHd2To6oj+Xix Ip2U+39xN4oEXsO3x7Xdt1t/Mx8VscGmacWQHaBXhwjHYELmkGv3HOrBqVqqDBzcRXVd y+fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=oIhUGKAS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h41si7099226jaa.50.2021.07.09.15.33.58; Fri, 09 Jul 2021 15:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=oIhUGKAS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbhGIWgC (ORCPT + 99 others); Fri, 9 Jul 2021 18:36:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:53974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbhGIWgB (ORCPT ); Fri, 9 Jul 2021 18:36:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BFCA4613B0; Fri, 9 Jul 2021 22:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1625869996; bh=vB6UUDCayTxmA7o4zqOKFTp2vJ9b5CMA+bhTA3+T6UY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oIhUGKASaH0OdOwF/jv5ekgOeIjfDYZ4SnnN43ojN2s7HF2+TkRCDxTG4tSwWzwN1 PidrWQdd+CRTVHnLi5TAImaovQJ6KRAnnbzDyhb80y/hQARBuWd6cfAjx/np8C6S0F o9lKhO5RnWM5z6oC6UQ0Y2BtROjGmca7lB+3lKVQ= Date: Fri, 9 Jul 2021 15:33:16 -0700 From: Andrew Morton To: Yang Huan Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel@vivo.com, syzbot+b07d8440edb5f8988eea@syzkaller.appspotmail.com, Wang Qing Subject: Re: [PATCH] mm/page_alloc: fix alloc_pages_bulk/set_page_owner panic on irq disabled Message-Id: <20210709153316.a81214a453920dbcc2714ae6@linux-foundation.org> In-Reply-To: <20210709090600.9804-1-link@vivo.com> References: <20210709090600.9804-1-link@vivo.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Jul 2021 17:05:59 +0800 Yang Huan wrote: > 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. And if you are able to identify the patch which introduced the bug, a Fixes: tag would be helpful as well. Thanks.