Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3022697pxj; Mon, 17 May 2021 15:49:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAjjO+wnTHHge10Qhap7evEFh9qFp8ZDyIgwD+muZye2QyL1eb4gcSdUsTje+UzdlJt4nW X-Received: by 2002:a92:b106:: with SMTP id t6mr1682961ilh.99.1621291759850; Mon, 17 May 2021 15:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621291759; cv=none; d=google.com; s=arc-20160816; b=qKTxsJEp8cHiwg1CrUAtNnEXeicAmgf+jGl+jP7UzQHxZmcBHRisho2dC+O+rFVtYW VzRO4kEi1HZDoqH0lHytVkaTWrGipZ+mNQZ4kxw7zmqnCC4Be34kKhvWPzCU3zj7OqeL F+RSWxGLvChl8+pXnIoyHiT41c5zHcNPeD99jkZGlw+ArLO3i6hWNckwU2qGr9cMbuNS P4zLT36gLZoxF40wmYRBNTYq0l7sQRNtYWQ3l4m0lJh6LDdDllvme6p9hNjsQXBempUO 1Io25PtpynE72w7MzLF21G83azIfZ1VfgsR1/Bh5DgpgPTwISRbq7K6277yjUKqv+sbH FDUA== 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=IL3OW1tehJt3JRutyUkYw0U/Qw3OhU9PEey3nLphMuI=; b=Got0cX3RXCQR9ZEhvfCSBekKEcXRFAcIBpC26NOF00ajgnY2hbl84B3amZjWmqUg02 jju17TAOBAEky7AKhS76uqWPQi4X+ie79fKirlfUsT5TWe9cn4vjHayIdtFZKKJPy6lH WXNqwvX+drl9do6GiAYEUFIyIuswuHnoKFgdEt+K6B5L1PT7cH8ux5YnWuCyvjliOPpT MsZPmF58klEJ2RBIT+hirLrBfn8DBsGl3q9j+6uVayNkThpYgdan43GsDovuPBxHKRjt erKz/LCJB5CaXwEDmjns6FCC8yjk459PGMKIz2fqyd3hs9H1L70i/vooJT+mNIHleCpU iAmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cDGUTuFw; 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 k21si3609339jad.9.2021.05.17.15.48.55; Mon, 17 May 2021 15:49:19 -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=cDGUTuFw; 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 S238473AbhEQOQ0 (ORCPT + 99 others); Mon, 17 May 2021 10:16:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:49310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238796AbhEQONz (ORCPT ); Mon, 17 May 2021 10:13:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A064E61209; Mon, 17 May 2021 14:08:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260525; bh=ifT+CSqm0fO8B5qnhpSSP42pAVgMs/CqtAJhoLC+8pE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cDGUTuFwfI1S7gsy+QC6RW32gka8cGU6AuKY8KofoindcIcC1ynWIt70Tkm6UfAfD ycWfU75AU8lfOTSs3i/8gQBfpkXVGTxdm1xHZW+opjsNDp0kBKcUOy8C1lO1D3lvlS puRRLhrbAX8V6UA3oypM6Zvi1sad7T/1E33Gjs88= 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.12 103/363] drm/amd/display: add handling for hdcp2 rx id list validation Date: Mon, 17 May 2021 15:59:29 +0200 Message-Id: <20210517140306.084431198@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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 904ce9b88088..afbe8856468a 100644 --- a/drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c +++ b/drivers/gpu/drm/amd/display/modules/hdcp/hdcp_psp.c @@ -791,6 +791,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