Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2250446rdb; Thu, 17 Aug 2023 15:44:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/F8ZFEejbPC01Bv1y2Q7tJmdYpdJOwdd9+GI/d+hSC96W8x0jHVAjUOuHoI0xJY1C/RmL X-Received: by 2002:a17:907:1dde:b0:992:872:76d4 with SMTP id og30-20020a1709071dde00b00992087276d4mr550855ejc.17.1692312252864; Thu, 17 Aug 2023 15:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692312252; cv=none; d=google.com; s=arc-20160816; b=NCVgUNry8nj4XeJZI4WFuiUGUrqzvaWlhm9xi1RZThiwJsnewuW/BrLt7MPH7EDqE8 VQp4q7kvIVL0MRXKGkRzPrzTUeNhS/lDIZBb35H+NiSJMmhGkJlUAJqBGX/msOEwecA4 wIHJChzspXa1BgjP/U1tqVipi7CGxJd5QETxp7mTa6TWo86HKbWRufdabZ8sixUVmHoN z4gsx3NzYKu8G5BmWBSq52r1zJQ4bMwSJCVnERIv7tj1UGmvfHETfS1/IHy3cGmjPwnW RxYv9eO4WgmRAG+FpPYp6TOAqxAVqV1a7cpqfaOTD/ad5AqCrEGZf4tP5KZf7fouJzb6 tFjg== 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:date:subject:cc:to:from :dkim-signature; bh=QTDp2bb+FgiQCOk0QIBfiZywnYcilOEQMFwT3sMluug=; fh=czuw6xy6vRIztpAvn+2kE8SSB+4QX589BN1NulBGC+Q=; b=rXATQAvJjR9FMv5U6xOXwnaElXr/mDqBVloO+FzdO377QuS/USxKFHU8YMvJ+uKg5+ RrLoaT1gMmwFVspN8NTMOYSn3P0MzmvhiaR6RWg7l94Ij1sF0Emo9R+RwDR1DHptGWPj o05/szemkcPAfpRZ13evUyp27FYY61hFdI3IjiGklvueYVdDcWR5Fix+nbeR2SdJEicB UFbL4wBa7KkGS/J5vpQDrccddhiAjrOVBDQbVJuG3wot4b7P+DY3NpXO2en++k7vEg9D ATJBpO8OWdrr26hG/w7QyNuRT597WWj2QaYBuxzX1SAeXF8ImGzHart7KsyLRIulQByk cQKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sK8La1GX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a170906430900b0099bd627bb9dsi359344ejm.983.2023.08.17.15.43.47; Thu, 17 Aug 2023 15:44:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sK8La1GX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345500AbjHPS0A (ORCPT + 99 others); Wed, 16 Aug 2023 14:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345534AbjHPSZl (ORCPT ); Wed, 16 Aug 2023 14:25:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9C42702; Wed, 16 Aug 2023 11:25:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CAFAD63F66; Wed, 16 Aug 2023 18:25:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFE06C433CC; Wed, 16 Aug 2023 18:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692210337; bh=Ys/SLUYq/H+BiAWtcmpLi2aTECuJmmf1YViHNLiOGv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sK8La1GXuqPkxEAU+SJMidW38QovsSK6P/gSObqpJZ2z5OmAFUIx2Mx7u851s1UZC EynWQO8UJXu/bPZSHAaLCJwwut3Xoncp/KyTVWDA8MBY0iVObyAUfM2ZOWOdRNoDXZ IBfBBtEc77dX+OqScF5oDqvKq1ndi94tEsZuwuFJUK+0cJtaAqe/QnPZb7gFBMPbhh F/1uD+CYyTkfjs4t8IVTt/TNRr05Y2HCbQT67hFp+ztfybGD/PL9n/N6XhuIhHSV+V CaBov5hH3gBZbdcZUNSCIgyJMOF0Us78aVdha5Oy4EzClgf7DpPYnyPC9FxIb54pxo /rt07yzlpbHTw== From: Will Deacon To: Ding Xiang , shuah@kernel.org, catalin.marinas@arm.com Cc: kernel-team@android.com, Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] kselftest/arm64: fix a memleak in zt_regs_run() Date: Wed, 16 Aug 2023 19:25:24 +0100 Message-Id: <169219182714.1944257.1703987051897216466.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230815074915.245528-1-dingxiang@cmss.chinamobile.com> References: <20230815074915.245528-1-dingxiang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Aug 2023 15:49:15 +0800, Ding Xiang wrote: > If memcmp() does not return 0, "zeros" need to be freed to prevent memleak > > Applied to arm64 (for-next/selftests), thanks! [1/1] kselftest/arm64: fix a memleak in zt_regs_run() https://git.kernel.org/arm64/c/46862da15e37 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev