From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D638C4360F for ; Thu, 4 Apr 2019 00:57:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 09FD92147C for ; Thu, 4 Apr 2019 00:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554339472; bh=mJwodE2gRa2C3WW5YdRbgfUkn8szJ9u1XhmMgYBgYBE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=cSdsdrIASuQaloLMzXKRF9KWPRd79Sf/InfCPtevcsnMDemQBtfDI5fttktnBa/zb 66mf8pK69MNgRB58vNMd4vL+mAU+K66zYj2giyVk0dVcebZIaMJMSEc24tp9iwdG+S LoCImRDnPUMWd8VmR+3LvOHKA00qGrzsSDlqzcbY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726411AbfDDA5v (ORCPT ); Wed, 3 Apr 2019 20:57:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:55684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbfDDA5v (ORCPT ); Wed, 3 Apr 2019 20:57:51 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F278C2082E; Thu, 4 Apr 2019 00:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554339470; bh=mJwodE2gRa2C3WW5YdRbgfUkn8szJ9u1XhmMgYBgYBE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YYg9X80sINpVkIevZK5YRlzuwm0+NB1xTF+vpBpkMQnI4BlXUVa3ItjY0O9e4GYm6 t6Q7tRM3rgDP7r6EYRrh/FJ4mrSr1avZZkifdEoeXcKMQxMSwbznEe3lQd/hjJuUy7 2dByCQhDwXcwg4uZVBI9YgDUAM9WHinBax6BHAU8= Date: Wed, 3 Apr 2019 20:57:49 -0400 From: Sasha Levin To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Catalin Marinas , Christophe Leroy , Christoph Hellwig , "David S. Miller" , Dennis Zhou , Geert Uytterhoeven , Greentime Hu , Greg Kroah-Hartman , Guan Xuetao , Guo Ren , Guo Ren , Heiko Carstens , Juergen Gross , Mark Salter , Matt Turner , Max Filippov , Michal Simek , Paul Burton , Petr Mladek , Richard Weinberger , Rich Felker , Rob Herring , Rob Herring , Russell King , Stafford Horne , Tony Luck , Vineet Gupta , Yoshinori Sato , Andrew Morton , Linus Torvalds , linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org Subject: Re: [PATCH AUTOSEL 5.0 015/262] memblock: memblock_phys_alloc_try_nid(): don't panic Message-ID: <20190404005748.GJ16241@sasha-vm> References: <20190327180158.10245-1-sashal@kernel.org> <20190327180158.10245-15-sashal@kernel.org> <20190328055720.GB14864@rapoport-lnx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190328055720.GB14864@rapoport-lnx> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Mar 28, 2019 at 07:57:21AM +0200, Mike Rapoport wrote: >Hi, > >On Wed, Mar 27, 2019 at 01:57:50PM -0400, Sasha Levin wrote: >> From: Mike Rapoport >> >> [ Upstream commit 337555744e6e39dd1d87698c6084dd88a606d60a ] >> >> The memblock_phys_alloc_try_nid() function tries to allocate memory from >> the requested node and then falls back to allocation from any node in >> the system. The memblock_alloc_base() fallback used by this function >> panics if the allocation fails. >> >> Replace the memblock_alloc_base() fallback with the direct call to >> memblock_alloc_range_nid() and update the memblock_phys_alloc_try_nid() >> callers to check the returned value and panic in case of error. > >This is a part of memblock refactoring, I don't think it should be applied >to -stable. Dropped, thanks! -- Thanks, Sasha