Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4466680imu; Tue, 29 Jan 2019 01:58:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN42L1VoXAd/g6l3GghWeX5Fq0h9Av35USKz15xSfKxp+FcoxKklEvWJgUCqObvePKCS0Vkf X-Received: by 2002:a17:902:d202:: with SMTP id t2mr25732703ply.193.1548755919181; Tue, 29 Jan 2019 01:58:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548755919; cv=none; d=google.com; s=arc-20160816; b=l+BsBvtIYgwVDIuC9dF32+xlFa/ZezcFuX6Kcmr1qHl4tX3LOcvLNaJa+WcuUMebiI bX7w7VXTGJajeyawLUTZ01LoWug31lAUasBgJ+hIPLnGMY4QLfpbL5e1PJYAxx4F3FGf Ur71anAsv3Km3J/5GKEULc9XLoVLtYarJG36BPRDMJs3RUpyjbYXJ013znu8nEghF/s9 aCh20Zl/WVtXAXw/2sdaryWzuI8EX8KFJ6yp58DaidbX6Fb/ZeMvUqnRQHSTnTFpFpZV TzXsgKp3BJk3dRSBREq+YESLFgYax2co6Gx++43h7z5jxoSVgMy0l8W0ifP951E27YpA T8pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=0NRfL9GOIyoxY+GY1nSLganS+2HOjHuRBaQ5XaL3c7A=; b=rHzmz9Dx/dieB75e7EAkSEomak0s/59DcyRmL8rfq2lXC39SRv6dWxKVuaYydupASl MZUkp9AJJIb8r3Zz1L7ILmtH157r00bYuW+n2Gx6EukpaIbRKSQEb9DJgUBuCNbptrqN OFLqPFcO9QEgaJ4Rf3+DsAXixOOBNNY9lPatBoIt0jnBCVrHFx99xmSDC/SExZZXslO/ Dwmfzd8bdRV/9fJkqB66D9298H/aRjI7cnheZ8MgOxaSPhhItmTvf9fPeEn0L8phN5rq vAjkQtKCRvXWpmzGLRc6AHcl3cnsi+dXv5H6YeW5hdn+jvsErTOd7NtwtIKzeMC6Xtnh XN+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si24097122pll.201.2019.01.29.01.58.23; Tue, 29 Jan 2019 01:58:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727550AbfA2J6U (ORCPT + 99 others); Tue, 29 Jan 2019 04:58:20 -0500 Received: from ozlabs.org ([203.11.71.1]:48469 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbfA2J6T (ORCPT ); Tue, 29 Jan 2019 04:58:19 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43phlB1Pcgz9sMM; Tue, 29 Jan 2019 20:58:14 +1100 (AEDT) From: Michael Ellerman To: Mike Rapoport , linux-mm@kvack.org Cc: Andrew Morton , Catalin Marinas , Christoph Hellwig , "David S. Miller" , Dennis Zhou , Geert Uytterhoeven , Greentime Hu , Greg Kroah-Hartman , Guan Xuetao , Guo Ren , Heiko Carstens , Mark Salter , Matt Turner , Max Filippov , Michal Simek , Paul Burton , Petr Mladek , Rich Felker , Richard Weinberger , Rob Herring , Russell King , Stafford Horne , Tony Luck , Vineet Gupta , Yoshinori Sato , devicetree@vger.kernel.org, kasan-dev@googlegroups.com, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, linux-usb@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, x86@kernel.org, xen-devel@lists.xenproject.org, Mike Rapoport Subject: Re: [PATCH v2 06/21] memblock: memblock_phys_alloc_try_nid(): don't panic In-Reply-To: <87y373rdll.fsf@concordia.ellerman.id.au> References: <1548057848-15136-1-git-send-email-rppt@linux.ibm.com> <1548057848-15136-7-git-send-email-rppt@linux.ibm.com> <87y373rdll.fsf@concordia.ellerman.id.au> Date: Tue, 29 Jan 2019 20:58:13 +1100 Message-ID: <87va27rdje.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael Ellerman writes: > Mike Rapoport writes: > >> diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c >> index ae34e3a..2c61ea4 100644 >> --- a/arch/arm64/mm/numa.c >> +++ b/arch/arm64/mm/numa.c >> @@ -237,6 +237,10 @@ static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) >> pr_info("Initmem setup node %d []\n", nid); >> >> nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); >> + if (!nd_pa) >> + panic("Cannot allocate %zu bytes for node %d data\n", >> + nd_size, nid); >> + >> nd = __va(nd_pa); Wrong hunk, O_o > Acked-by: Michael Ellerman (powerpc) You know what I mean though :) cheers