From mboxrd@z Thu Jan 1 00:00:00 1970 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 0D6711C08 for ; Wed, 28 Dec 2022 16:34:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84AE8C433EF; Wed, 28 Dec 2022 16:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672245270; bh=2xR+FY0mU6dVHRrzKzpcEePeObLJ26zvawZlZvrFB5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gNcGz4rlNgLes23A8iJ+z/LQAU+YfIXwU+UZX2aQqFA9SdKBnpAWIavZ91V8g/cBx Yntibw104mK+RXopg9wBD9TnuoSKFYcxXt/UpK5VT0Y32w4vd1sfVfilFo1+9/c8q5 cstzXZs1/Kqbxrn5RI5D020QyzAS/sWy8HHKznes= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nirav N Shah , Fenghua Yu , Dave Jiang , Vinod Koul , Sasha Levin Subject: [PATCH 6.1 0830/1146] dmaengine: idxd: Fix crc_val field for completion record Date: Wed, 28 Dec 2022 15:39:29 +0100 Message-Id: <20221228144352.703364238@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221228144330.180012208@linuxfoundation.org> References: <20221228144330.180012208@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Fenghua Yu [ Upstream commit dc901d98b1fe6e52ab81cd3e0879379168e06daa ] The crc_val in the completion record should be 64 bits and not 32 bits. Fixes: 4ac823e9cd85 ("dmaengine: idxd: fix delta_rec and crc size field for completion record") Reported-by: Nirav N Shah Signed-off-by: Fenghua Yu Reviewed-by: Dave Jiang Link: https://lore.kernel.org/r/20221111012715.2031481-1-fenghua.yu@intel.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- include/uapi/linux/idxd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h index 2b9e7feba3f3..1d553bedbdb5 100644 --- a/include/uapi/linux/idxd.h +++ b/include/uapi/linux/idxd.h @@ -295,7 +295,7 @@ struct dsa_completion_record { }; uint32_t delta_rec_size; - uint32_t crc_val; + uint64_t crc_val; /* DIF check & strip */ struct { -- 2.35.1