Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1717911lql; Wed, 13 Mar 2024 06:30:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxyAglAHzxk5SFkGwjDBbFCIAOmJXrIolzDqRuSM6nl3bi6R61AdqAQGkaQcO2TheZI30ryv1yebQIM+N/ynfYA6du4xBqmqRIqm7jHA== X-Google-Smtp-Source: AGHT+IEXzDvqqs/rt9AAtKdO1fqUPkDfOtAVM+UiWXt4+e995OUgRjbGpTlRpPtnOARviggtbVxq X-Received: by 2002:a05:6358:6228:b0:17e:89bb:e545 with SMTP id a40-20020a056358622800b0017e89bbe545mr3875264rwh.19.1710336655518; Wed, 13 Mar 2024 06:30:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710336655; cv=pass; d=google.com; s=arc-20160816; b=aaiEs9jD7PD4zp3Hr0AgY3RULQzkMkbo8SX9fKpQGhs4npQQmuQSHAHmYMXZzrC61b 9E2mHsjzlZiJCM7KqzuTRBpRhuYKMIzLkhnOXknupmk94wBq0vsnW2BA9EYhXb2Je8Yv XUCtohs7wo2j66Fb6E9EUFFeIxmFCy/KqqxGJIp00huLWEPiBf9vYUZUPDRyQYI67P93 0reu1FzS23IbAGifsNRF7AwzZJ/jCE2NInIDhG6SO7fN5OuVicu40iY61aVFQzdCCSkJ y5ad1slk6ezt18oslv5nTxVu1k7ghcLgzGMCqkGTOE+n6Sg/e6D2hihaxxxiPfFniMRA mxUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from; bh=1nIyad493UulwdkqlDM3r5id+TCc3hSxZpFD/BPuPFI=; fh=3HK4TUmpZZ5hfjcyaDn1KejUXzjBT90BscmLgF/UbVk=; b=Fo/vw9A56Wp6m1d5lW96NhQHk1Okkqrk0hNp7GWfhd2aAIcOEFUwlt9v20fAlTCWIj i9jB/eGksJKHKVZUnpeuoTX/M4xUxe3i84ZT5DroEVT5ZdM9o0J9qEFmm5KKtBRjh/Pd xKq8opVsHOV1CqhJe77Cgk26S76mYioyHbxMkPLDK271f7i5uvmVijODNWIElbOUWvFW /HAQICUV4F7qfJbbwMcQpemlMP+uGUAFhk6lWgKZEcIlkkm5b5qvxIxKY1AbYgktRQqT GAKPhGI1lx5DJWLD7BDSZ2OmwhSvlX8jBtGriz2tmwpw0VxtB0EqfbDVJm1+w0gDeLmO AdHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101539-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f4-20020ac87f04000000b0042ed1303b2dsi9667576qtk.264.2024.03.13.06.30.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:30:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101539-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3FFF51C21AAA for ; Wed, 13 Mar 2024 13:30:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C7A551C49; Wed, 13 Mar 2024 13:28:07 +0000 (UTC) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98F974596F for ; Wed, 13 Mar 2024 13:28:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336487; cv=none; b=FJ5bAf1XVgYgfnXiU0SYFBqjo8RP+zzpbtm7B01WN9qgtEqr8TABeivKds0dLwiFqifWJf2I3Bs00cfg/RAYg8lh67eAInFEZKiBFw47+0iMXModRfXcJyF7Ha6UDFk5cSNP2wBLEF9yczK3ve0KCOWhaHWgLlkrtD85khGUy8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336487; c=relaxed/simple; bh=oUKxFlvQUukrc/k8muIOuD7Q9XhAck+juMRVGN2014s=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=IySQxwKnayGhFCMo3HzlyDij3AM3mgNz+j850Guv6u7ZJgHC90+r34fGi1yDft7U8Pw+FAEJMQrkbqLgk47vPghcFpmKSIdeNy6dlCHYJQ6pZFLRy1fzDTWwld+a2r7KZdK61qW6lhK+bBkbrMzT3+RStSmgCAfZzKc5KJ88tds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4TvrtC4t8Wz4x1R; Thu, 14 Mar 2024 00:28:03 +1100 (AEDT) From: Michael Ellerman To: npiggin@gmail.com, christophe.leroy@csgroup.eu, gregkh@linuxfoundation.org, Li zeming Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20221219021816.3012-1-zeming@nfschina.com> References: <20221219021816.3012-1-zeming@nfschina.com> Subject: Re: [PATCH] boot: simple_alloc: check after increasing memory allocation Message-Id: <171033598341.517247.16641505214585396276.b4-ty@ellerman.id.au> Date: Thu, 14 Mar 2024 00:19:43 +1100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Mon, 19 Dec 2022 10:18:16 +0800, Li zeming wrote: > The pointer new adds judgment and should help with program robustness. > > Applied to powerpc/next. [1/1] boot: simple_alloc: check after increasing memory allocation https://git.kernel.org/powerpc/c/69b0194ccec033c208b071e019032c1919c2822d cheers