Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 C73E83B1EE2 for ; Wed, 29 Jul 2026 11:17:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785323854; cv=none; b=GM673PY9ndXe8LruDOMKBnov5dInTU7lus8eAf/JbI16HA5wIbCM3Gmw83Gd37YB024OVhlRSP4x5nvQY96jWHXvJYHVG2UYdv0u5Cs7wnNyazUBAqzfr+0gMuvyn9JPtxjTuBx0Kvf455qwV7Y8B2ch8GcDZKN+AC8NauyMFB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785323854; c=relaxed/simple; bh=RbwVtiSihxCYea7LdHUlIbapXziuXKzPqkhZD/SGsqc=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=XsGfnlNFTnu/zmJXKRmMOI6/6cJzjre0NRg1sQ6izPFXIjcPWyXdiCDugnoM4XMzt2qoLZRZT5vJf17XMD1fu5ynvg7UHFolWz5rlRob/G2l5lh9OLThfypSsSyS/jIAt2wjE3sRQNIhM16cvFQX4sPbS2CSXA65IXxfzjSxsVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W6AJrphb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="W6AJrphb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE6951F000E9; Wed, 29 Jul 2026 11:17:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785323853; bh=mlXJoTICx9p9+P9sMv+d/0IVC6yIsqVjkU3siNsME0s=; h=Subject:To:Cc:From:Date; b=W6AJrphbDXVig0zwb0fyCCoBYhgSQLvfLduuxWX3axWucvrjxJ31bbkd/U3VJwQt1 Mw67d8zTFU8hTZVDpGp2mM8t/rQ9dTaMsRx3iulF6/32fMd2VS6H0a39B3H4g8dfMS soKmIBtqHvT4yVG2CZEiaoj949kr3EcXl76KeR8Q= Subject: FAILED: patch "[PATCH] drm/i915/hdcp: require monotonically increasing seq_num_v" failed to apply to 5.10-stable tree To: jani.nikula@intel.com,joonas.lahtinen@linux.intel.com,martin.hodo@intel.com,suraj.kandpal@intel.com Cc: From: Date: Wed, 29 Jul 2026 13:17:06 +0200 Message-ID: <2026072906-uncross-joyride-b043@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y git checkout FETCH_HEAD git cherry-pick -x db9e64c983dcb07ff256bd455f258c44aa530ff8 # git commit -s git send-email --to '' --in-reply-to '2026072906-uncross-joyride-b043@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From db9e64c983dcb07ff256bd455f258c44aa530ff8 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 25 Jun 2026 13:44:07 +0300 Subject: [PATCH] drm/i915/hdcp: require monotonically increasing seq_num_v The HDCP 2.2 specification requires the seq_num_v to be monotonically increasing, and repeated seq_num_v needs to be treated as an integrity failure. Make it so. For the first message, seq_num_v must be zero, and is already checked. We can only check for less-than-or-equal for the subsequent messages, where hdcp2_encrypted is true. Discovered using AI-assisted static analysis confirmed by Intel Product Security. Reported-by: Martin Hodo Fixes: d849178e2c9e ("drm/i915: Implement HDCP2.2 repeater authentication") Cc: stable@vger.kernel.org # v5.2+ Cc: Suraj Kandpal Reviewed-by: Suraj Kandpal Link: https://patch.msgid.link/20260625104407.1025614-1-jani.nikula@intel.com Signed-off-by: Jani Nikula (cherry picked from commit 58a224375c81179b52558c53d8857b93196d2687) Signed-off-by: Joonas Lahtinen diff --git a/drivers/gpu/drm/i915/display/intel_hdcp.c b/drivers/gpu/drm/i915/display/intel_hdcp.c index 521786a75c42..0a076d2ed70a 100644 --- a/drivers/gpu/drm/i915/display/intel_hdcp.c +++ b/drivers/gpu/drm/i915/display/intel_hdcp.c @@ -1801,9 +1801,10 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector) return -EINVAL; } - if (seq_num_v < hdcp->seq_num_v) { - /* Roll over of the seq_num_v from repeater. Reauthenticate. */ - drm_dbg_kms(display->drm, "Seq_num_v roll over.\n"); + if (hdcp->hdcp2_encrypted && seq_num_v <= hdcp->seq_num_v) { + /* Reauthenticate on Seq_num_v repeat or rollover */ + drm_dbg_kms(display->drm, "Seq_num_v %s\n", + seq_num_v == hdcp->seq_num_v ? "repeat" : "rollover"); return -EINVAL; }