Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp65082lqh; Fri, 3 May 2024 13:33:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM7GPD10vOdelsFT598HNnclIZOWHF7JEBdbRwLZO2/BsYUcmnGrfdHxMtFFKAeP21mwpR2NBx+fLDAwg0CXQ2Ek0hHsvxTm8pb7fw5g== X-Google-Smtp-Source: AGHT+IG4j3v6WMq43/uzbCqeXVcxhL1LiAfONLOAHP5Rk1OZ63q44waVbonnaBhTIq+0oLgoknvB X-Received: by 2002:a17:906:bcdc:b0:a58:9cdc:663e with SMTP id lw28-20020a170906bcdc00b00a589cdc663emr2386584ejb.74.1714768381492; Fri, 03 May 2024 13:33:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714768381; cv=pass; d=google.com; s=arc-20160816; b=aPX083nrf/v/WoCa4voe3ZCThMoKCpGO/jqyfwpIC/LOVlpKC6LR/Y5KkWP4TLCq/i IH3nN7/JWXaGrj/qHDFA3XsQex4p/v1+zR3+qfEdYobVVma9efMdqGwxAGImh4OG+ZUd oj7ox/AJ2vE8GX8FA9q+VGWszXd9raD8rgHlPvyw333SgUIBVijur//VqJfwacFGcDZw qi8x8z2r9vN7vdRaANXIICApz7l92ax7+yOppyjBxBzSgZD65gwOxM/O00f+XvCLlbAj r+TpMvZk3vQM4f0lSJ3BLfLf7vx9x29P22Qegu4SYaC1Zgd5yltPhLkhDcTtqDKThL0M hFYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=lLRSrEFOKeLd7wm/DXk6Glzr+B7ECHvb+9hKkMGORuA=; fh=gcq3QL4QnOPTYit+rmicc5E3n79pyG1Z9UeKhgnlP3M=; b=D52hTz5y7MavfPmLNsxwofkiXdQeV7u6lEwKE89SP4THg3F2suLTPKTnDgHpXh7MLu nr5+GebXUf+LgbYV5dpjpavLpd9RXNXeFMT0o33pk+hdhQ6BytjRZSZPSnmvIQC5idab MNg7x8Fwo3jMJ5YAHG3UYoMSTafok9zEh4RgDKWnDIr3lmpzlSMJiS8J1Xsp4J+hHwCx zgfmpyen3fv627FiGv4cgb4TAA/xhRfsXc5XDro74jhvPTYa7MpvzsueWfRdbWCFm9bV T8T9SYeBdysXPaU0ezhR/MTSQeeXIxfVI7NPYSVWPkBNM3ZPJAy/qOk5wHsk56UTlaWJ WMzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ngm3Yeap; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-crypto+bounces-4024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bq17-20020a170906d0d100b00a46b8687eadsi1933361ejb.672.2024.05.03.13.33.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 13:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ngm3Yeap; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-crypto+bounces-4024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 35A771F240DB for ; Fri, 3 May 2024 20:33:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7C701CD29; Fri, 3 May 2024 20:32:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ngm3Yeap" X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 A428637E; Fri, 3 May 2024 20:32:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714768376; cv=none; b=J3HzGq31sVfzLNABSLVZBivZvUXOHhKFxIPXB0P7+vTLIZY3qgpXkCtVrVlsl6Py1IMv3RXI+Up5CJ+X8Rt9Zkbo1MTYwH99k6Ne+bn/PmmXu/9BFWGWNUY+PnxUFxMdbH8xG9bucX359OYOPCwX2smmd0J7HOYkVmCwtztr7cc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714768376; c=relaxed/simple; bh=lLRSrEFOKeLd7wm/DXk6Glzr+B7ECHvb+9hKkMGORuA=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=kkq0/g+cNDWVjHUT+VOaaOw7wFpCTWNtuEGzv1j3jwRz27kb9G4opB/nedO7Tc2v+LLcVmY3QstwWxKpE9F01ITC418rUYVITHeS1JSgGrrnl9/K1ocw7OYzCekZ+f/Ml82Nsuv1xKdYl5nJDDSianAnoq0N3QhBhq9RM4djicA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Ngm3Yeap; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714768375; x=1746304375; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=lLRSrEFOKeLd7wm/DXk6Glzr+B7ECHvb+9hKkMGORuA=; b=Ngm3YeapflW5N3uhfBQT7Z+VpR8M3EPT34NfkkAaHt5nK6hMHoIZRf+L ThnoQy4LJwffxifX9YRsiFIHSRpsltRYY76tTkXjhEDEPXZ6XiPxG6DwP ACJqBtA0W6jeMs9fWAGbZllMrqTw9rrPPnBOgPh6hKLg7GdZyC3sNZrqw 9E5W6MqBWZlryqn8M3/IcLAmQvoCzHKFV2/V0nh3wYmPdGuuxJuEVhKOP tdyj2Q6Dq9soGL8uyzPK3yT4sAs5JcElrB8TuTBvVAJ0XAGaozNilSK0q XlIisD1ya0C4gdiq3bq8G44PiLXXfGqBADy/p14HmjHF+YP+lIa7hsAG/ w==; X-CSE-ConnectionGUID: SYqS9wqqT/aLeRxZG8id2w== X-CSE-MsgGUID: FzqoMtDLSS+ciCYRxjzs2Q== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="28069040" X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="28069040" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 13:32:54 -0700 X-CSE-ConnectionGUID: 37gUMsnETu22TU2GxlUNnw== X-CSE-MsgGUID: 1U/q5K/mTr2yZM/5yPcgjg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="50748465" Received: from eowusuan-mobl.amr.corp.intel.com ([10.209.164.73]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 13:32:53 -0700 Message-ID: <7da2bc1a966061aa11110f7e0304d82dfaa322e8.camel@linux.intel.com> Subject: Re: [PATCH] crypto: iaa - Use kmemdup() instead of kzalloc() and memcpy() From: Tom Zanussi To: Thorsten Blum , Herbert Xu , "David S. Miller" Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 03 May 2024 15:32:52 -0500 In-Reply-To: <20240502153338.6945-2-thorsten.blum@toblux.com> References: <20240502153338.6945-2-thorsten.blum@toblux.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 SGkgVGhvcnN0ZW4sCgpPbiBUaHUsIDIwMjQtMDUtMDIgYXQgMTc6MzMgKzAyMDAsIFRob3JzdGVu IEJsdW0gd3JvdGU6Cj4gRml4ZXMgdGhlIGZvbGxvd2luZyB0d28gQ29jY2luZWxsZS9jb2NjaWNo ZWNrIHdhcm5pbmdzIHJlcG9ydGVkIGJ5Cj4gbWVtZHVwLmNvY2NpOgo+IAo+IMKgwqDCoMKgwqDC oMKgwqBpYWFfY3J5cHRvX21haW4uYzozNTA6MTktMjY6IFdBUk5JTkcgb3Bwb3J0dW5pdHkgZm9y IGttZW1kdXAKPiDCoMKgwqD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