Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp740553lqa; Sun, 28 Apr 2024 01:59:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU76YRlNIxJqqcDP8CM1Yoy5pW2jhl9vQ7eVA/Osc47hKeXa6ZW07QTRYXVKBI9xm7VZx08lu+ZXwv+L5dZ42d7z5uy9lz3p0M23zaSKA== X-Google-Smtp-Source: AGHT+IGOiZeSGZRl8TjV6esNVJdKxPdllCu7iTmGNa7sHf7BW6/f2FVZG+6ykcxsyubGKLYJbRyX X-Received: by 2002:a05:620a:221b:b0:790:9974:733b with SMTP id m27-20020a05620a221b00b007909974733bmr7653566qkh.35.1714294771268; Sun, 28 Apr 2024 01:59:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714294771; cv=pass; d=google.com; s=arc-20160816; b=O8ooV2iuG0oWfQUqXXCi1Y57bSYpok5mb/BW8vpwpJmXwUH5Uh955Y8ZC5hBGM6+ux rj9KoA8UakMBDLk7fhoEW/zh8oDPmXixjrU/6qTZtpKu9QRAimXeX8d+KW42QkByjgsN od9g/XCvPQWL785wX8KlISfY/MDVnQK/8tVZT4D50oOx0hKjZriwxSx8Kg6Xg8aOAog+ LW2ovNJlPNbFy5FgI58tDPWL79DBHTq/0trNcV9XGI3cU3pvctFfAOIgsLTPh6CkrcDH Qq7KHM5gV/H5VvMPqKnHsgXl9Tc/67Lsgb4DNyL9puF+OftLLTqOiG8+s45cPs/JubUl 7CJg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WIbN+rfNVHN4S+SUTXQeRRNXHnPM7K4MCB3B3dCkn0I=; fh=uqkiniJusWaLIBob2/3fG/vCDXHM4E5cFb0WVU8WA8s=; b=02o1CYV9a2CwVpJtWTaV+6HeBSGHm9g+6VZ5qMD7s45VrpuHCbphnvL5LpXRA0ZjqY ktHxt5AJl97DZb9cB4emSRFjNi3FGJVQSzgUmfjbWq34gxvCpeSZ3FKuGdFHw+7BSkzs TwW8BweTEsZLs0xXq8SlxvMDQLtXj8uAzC41Ekfi7yXz872hPClx+f4FyDdVPb57NIdX 7o6InSyMuQEVgU5EQKCzRQF056sTiX5fLDiEDeg7XbKoZL8ZEnto8XwcDqBJyhsVHTTL dqLSIW6yaMIDr76M34Kiipe1efMKFjuXRuLwIYQcekR+DqxeywVQMQjm6OyUFK+6JEQ4 tr5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TVLjgRT/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 v5-20020a05620a0a8500b00790649c1728si18200328qkg.514.2024.04.28.01.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 01:59:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161334-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TVLjgRT/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 036461C20D5B for ; Sun, 28 Apr 2024 08:59:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D84F854BEA; Sun, 28 Apr 2024 08:59:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TVLjgRT/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EDD5854906; Sun, 28 Apr 2024 08:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714294764; cv=none; b=W/s6g2HdSQ3TU1S+39tHNPniTFifGGsre1CfsoBerIdEG2OCWs2L9iA1qFcx4q+XApmG278R1u6oQzTEne/BjS0jHtfvPSr+wnWn4tD9iXYux/WI4+FfsYHzLZYOYUqiw99+aCfCIf03j0qDASgS+ih3K6rNViE+rPrQ8rN+EqQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714294764; c=relaxed/simple; bh=+XmLAK2h7eiQ5qB5M3YIDoAcxhCoxznnjXBKeXbt+ck=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=pyACTJjU/4SBjcqKg+Hba+iaWQbMGRLDS8rz0KAubrxFuYrycDYS8iyURS9UlUumo0DWn0qyTA4WS/6jngzgCpV+j0ND8PjM0Wawgjdz113lXYe2fMES/lPEEbfNgxikVRhZ2R2WEVCOcqXR/5hqeU3qk4cgiU0OmiUBqWS0r4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TVLjgRT/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EF15C113CC; Sun, 28 Apr 2024 08:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714294763; bh=+XmLAK2h7eiQ5qB5M3YIDoAcxhCoxznnjXBKeXbt+ck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TVLjgRT/ZS9Q1EXAs9WywPFCu7uCwyB/R9CU+OjpbkAY6LKsgVlIVaTJ+vKt/yhs+ cI+Rk0tvya2m228thdoc+0Og7KKQyl71HZoxAWkouOi7D3hwMHm6l+oJflA5yG2kOD 0vuu9HuUBLPtnjntM73Ul8bVcZXo7ZxWVf7ZP4uKFIIt2LpBrFeHnwCte5ABHjlrcS V2cO47rpG6SEuG8c03ho/4YS32BTqs68/Q6knc7XWuFiHH1A/Z6CEADTJTo9U5N9fB VinN+EsoIZ8xp2SF+Q1pJg5dmQXF0ryLAw0Ec3qeW9ir54c5FJAmy0JX2t/5oAgBAt tSvi72XtRJVWw== From: Will Deacon To: kunwu.chan@hotmail.com, catalin.marinas@arm.com, shuah@kernel.org, Kunwu Chan Cc: kernel-team@android.com, Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kselftest: arm64: Add a null pointer check Date: Sun, 28 Apr 2024 09:59:13 +0100 Message-Id: <171429017935.1716809.10906291781915903062.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20240423082102.2018886-1-chentao@kylinos.cn> References: <20240423082102.2018886-1-chentao@kylinos.cn> 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: 8bit On Tue, 23 Apr 2024 16:21:02 +0800, Kunwu Chan wrote: > There is a 'malloc' call, which can be unsuccessful. > This patch will add the malloc failure checking > to avoid possible null dereference and give more information > about test fail reasons. > > Applied to arm64 (for-next/selftests), thanks! [1/1] kselftest: arm64: Add a null pointer check https://git.kernel.org/arm64/c/80164282b362 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev