Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp338581pxj; Tue, 18 May 2021 04:41:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt5VelmxjLlgtmZK8SdumZ1NpYTt3Nac/mi/NnVTE/o2bdBpoUfsmIC/9VTJqM0bqycOJd X-Received: by 2002:aa7:d9d0:: with SMTP id v16mr6483617eds.293.1621338110671; Tue, 18 May 2021 04:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621338110; cv=none; d=google.com; s=arc-20160816; b=QeeSerWLHOBkfiDsTydkjfyAh9Kl/m8K+RQz6gMbOSlEeqvl515PUUgvwgTH6gvOAl NRFET0SS4ljUJr24wbXy9+l+OaKAZezQZNqkUSvbhNmrIqsJDDhbihCmXi/L6V7J2sJl O1z6f+8rzIMrMsv5/XsNvZLjIV/HiJX7ia+A2cNGyrOyilJ49n4rAOPVB5gl8YomU5mN lb04Wma/eGzQYDenHlazguA6mCJS8T6ei6ggg2afT28wG3+/aQNUhVSFPr0wjYHuFQ8x 3UJns57ZlG7lCI8QpNIXbtTbymjQeEh+xS6W4AW73uBVvBwnSfj3gl3vIzDd8LSRngHR 41Dw== 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=Xynl78MTMlSGGTktSnD7Lb+oC8ZL5/1USKtDqcyrhbY=; b=Bw09ZxhglwSWn47Rexg8+t2VN+BNsCoN9AANd1Xrdv9gz+7DtM2hcjxJBhPOyoTdWy Hui8vJsDHq9zeBnpC00KqaJSPDgUYmdRRQqEHO6U8AlhuQeQhuCmSu357fi47clMTJzi dot9GJt3tR/L7WBtfmOB8LOJiZBA0kqaSwJHl/IHC78ua6nFGKoFiqJq6hpO3pzUUzG/ vdguxKBm3Dx+I3WHG9Zc5kEmi0YBDaws3runoBmCgQbCP43Ab5pgqY4IrqLzG3BOz54b fx2zXo/FdmziMlIwcB7SngETePcIIgGw+bGmE9yFOv3VQdXWDAAcAtSa33NZl3oUnna2 J+uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VJhclCw1; 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 t21si20563071edi.443.2021.05.18.04.41.27; Tue, 18 May 2021 04:41:50 -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=VJhclCw1; 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 S242346AbhEQPXW (ORCPT + 99 others); Mon, 17 May 2021 11:23:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:37252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242974AbhEQPKf (ORCPT ); Mon, 17 May 2021 11:10:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AF74C6162C; Mon, 17 May 2021 14:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261840; bh=eHniQAfBJqgEE6es7S+401DoagBNZag0NHEP4JBU7P0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VJhclCw1VaJYyKnSJ9UuS+qoH9lPjzZVLws1VKWODPHf+k/SCtCuLn+kASjkwXO9M H4444BxxWaIAOoX7HF8rmls3toQs5Q40nsd4tCfwDNZaL1zlOBQRiTZcMq2XL+WIpd CDJWMNnEATmFQAa9KJ9Mpm9BI1uB30DRl21TVz9A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Dingchen (David) Zhang" , Bhawanpreet Lakha , Aurabindo Pillai , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 074/289] drm/amd/display: add handling for hdcp2 rx id list validation Date: Mon, 17 May 2021 15:59:59 +0200 Message-Id: <20210517140307.681809258@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@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: Dingchen (David) Zhang [ Upstream commit 4ccf9446b2a3615615045346c97f8a1e2a16568a ] [why] the current implementation of hdcp2 rx id list validation does not have handler/checker for invalid message status, e.g. HMAC, the V parameter calculated from PSP not matching the V prime from Rx. [how] return a generic FAILURE for any message status not SUCCESS or REVOKED. Signed-off-by: Dingchen (David) Zhang Reviewed-by: Bhawanpreet Lakha Acked-by: Aurabindo Pillai Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c b/drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c index 3a367a5968ae..972f2600f967 100644 --- a/drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c +++ b/drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c @@ -789,6 +789,8 @@ enum mod_hdcp_status mod_hdcp_hdcp2_validate_rx_id_list(struct mod_hdcp *hdcp) TA_HDCP2_MSG_AUTHENTICATION_STATUS__RECEIVERID_REVOKED) { hdcp->connection.is_hdcp2_revoked = 1; status = MOD_HDCP_STATUS_HDCP2_RX_ID_LIST_REVOKED; + } else { + status = MOD_HDCP_STATUS_HDCP2_VALIDATE_RX_ID_LIST_FAILURE; } } mutex_unlock(&psp->hdcp_context.mutex); -- 2.30.2