Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2565124pxb; Mon, 19 Apr 2021 08:32:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8ZSBT4P5d9yASFaUAKMqf45lf8+lxz79yJ1EZO/fzEyp+oQVK8+jWS7EADf5tEB9ImvwO X-Received: by 2002:a17:906:d783:: with SMTP id pj3mr22096030ejb.38.1618846351686; Mon, 19 Apr 2021 08:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618846351; cv=none; d=google.com; s=arc-20160816; b=bTP4E7P+Ovm/p1UW24Oaa/e7X3GSVTmzSsgMqYjg6OekeYdLhIEl5Hu0W/5JwNp3px 8bOJeHQpTyPGCwSKa+ilHhjhzLTmkVF9LnRiErDmUudvu7Uujs3s85nXRCYzPWSK5iAH +5c3odlGNx3Vft6S50ZeZQJ5RpGuSxUxLOdekdDthvzmALpGJxgGXdp+htnEph6UTRJj mmPAociLgWsBym0uHVukmtBm0E0765Rt92Y+Y8UzaD+9pZVTatbB8O1sYam7hgrscloe 5sNRC8zZ+6z2V/pkVMUfSGzmpK8DVfzEgzpMvLrI8/rooeSmu2wYcWGpzezkCAdm+d7z U9Wg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QfPCd0gaV/UpXtINIk6+aiT2kkzwcZalhlcQcItXj2U=; b=z9YK90Q31mlF9gB2nOHUfNg3ZKeVc1NCnSqRpbFNgnBnIHSoxC3sql02MxHQhxPTQI Gj3mhtd3f093ACo/WaQaL7CpPsJdRYZHmBGaah8UYYfe/ByLudR7qvU3OvKRZOxZBlhb ZaD7tSaOeRx5pgJ6MUbIF36AvsdTiMeCgMIFgyb/NByQjV99EQc32uhFkm/LPPiTX0C9 rBfzqcCgJIJqY6vEqxUzAIDpIclFU4YZzT9wwthXH1NkqCMWgk/8SqpOeTy1claZoNI+ d7fttUbwKdK7jn33cByFZzy8rbVMqehwjvqLzB8bxFwm8XPWRyDf8e6r5yl/EzOtyBDu nLqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Dl/GiE5V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si13801935edm.87.2021.04.19.08.32.06; Mon, 19 Apr 2021 08:32:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Dl/GiE5V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241722AbhDSNYf (ORCPT + 99 others); Mon, 19 Apr 2021 09:24:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:54752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240319AbhDSNSk (ORCPT ); Mon, 19 Apr 2021 09:18:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 402E3613AE; Mon, 19 Apr 2021 13:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618838096; bh=V0Puj16SlsSi5HANTTkJlOgF7jgTlei0Jan14hcPh0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dl/GiE5VFDLeuMZFPSedt+XZO2JfhsOfb7E8Ezmm2VIHPYIZAk2pdNuJRiwrqWqb/ YlvzjqBHYzWMK6N9o61ENbqVJg+vcCERFzEdwDCPoHjT4vwIA/h1NRu0TRYNnRO5Tn EjxwnifBas1Ry/kBZTTgt5hLb0pZW1JUmP1OGaJA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikhil Rao , Dave Jiang , Vinod Koul , Sasha Levin Subject: [PATCH 5.10 006/103] dmaengine: idxd: fix delta_rec and crc size field for completion record Date: Mon, 19 Apr 2021 15:05:17 +0200 Message-Id: <20210419130528.002297684@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210419130527.791982064@linuxfoundation.org> References: <20210419130527.791982064@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Jiang [ Upstream commit 4ac823e9cd85f66da274c951d21bf9f6b714b729 ] The delta_rec_size and crc_val in the completion record should be 32bits and not 16bits. Fixes: bfe1d56091c1 ("dmaengine: idxd: Init and probe for Intel data accelerators") Reported-by: Nikhil Rao Signed-off-by: Dave Jiang Link: https://lore.kernel.org/r/161645618572.2003490.14466173451736323035.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- include/uapi/linux/idxd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h index fdcdfe414223..9d9ecc0f4c38 100644 --- a/include/uapi/linux/idxd.h +++ b/include/uapi/linux/idxd.h @@ -187,8 +187,8 @@ struct dsa_completion_record { uint32_t rsvd2:8; }; - uint16_t delta_rec_size; - uint16_t crc_val; + uint32_t delta_rec_size; + uint32_t crc_val; /* DIF check & strip */ struct { -- 2.30.2