From patchwork Fri Aug 4 17:27:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yuxuan Luo X-Patchwork-Id: 1817042 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=AFkhrAqm; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RHXjL1M7cz1ydj for ; Sat, 5 Aug 2023 03:27:49 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qRyaT-0005g1-9d; Fri, 04 Aug 2023 17:27:41 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qRyaR-0005fn-W5 for kernel-team@lists.ubuntu.com; Fri, 04 Aug 2023 17:27:39 +0000 Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id AEF9A3F077 for ; Fri, 4 Aug 2023 17:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1691170059; bh=hwMR2eBDL/bQXCKlBBU88bwyWy5Amgc6PxCx2W9VDu4=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; b=AFkhrAqmPLeqUyjyqQdlT+iDUXVlIKjVs9I9q64gzwfpMRMQH+9kz687NHry1nuVK CpldTCi7f3g71rd6LFF7zzeGCJsH1cZa7za077D2/0XZxL0FqLSb7cfTvg57Qwi+Px WxgrvgBiwZTsu2vyfsis4QqQNxDVnk+1tTuFOOZ+Z7AU+k9tLulZz9zmXO40I4OUh6 5YcCyqR/ANl2nqFPC3zcbTuu7rti3U0gcPYcyzcNaE+YF/d16dXwB3UHMwADqkPHv2 V7VWRqzpqppq91GvPhnh9GOy755eANcUjfaI8B7xNFtCl9zuMo0vAkqC2xsBs8le8i Tv4AVx53HO/Ow== Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-63d0b65ae89so19372476d6.0 for ; Fri, 04 Aug 2023 10:27:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691170058; x=1691774858; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hwMR2eBDL/bQXCKlBBU88bwyWy5Amgc6PxCx2W9VDu4=; b=VhDtfNDTO1HntCYXc6kgSdnucZ3KgsGzawJbL31RH5UZZz1J9HsBVP7XzlSRY6p+Sk LrUIYc4cEdiTBs3dG2fpiTekNf1KCUSjEl3A4ALicEhB2FSheI5MJycH1ehcUV/JZtE1 YPa9N8r/YezBWXj9ZFOxL70MLWOY172Oy5laYPOw1w2aDJ+23+jDa1YBWfA3W2k0FN5P qLsoVeRu+/4N7G7jmTAiVE1n86ToZKsImGnVaZt7SRKqHTjPr4vGe6fiH9o9ldIFt/5R ohYdrYMVf2hTvdrC9VWWLIRbxNJmylOK73MoAjtH6ZT6yOfnPaiaEScBbIL3ocpmNyys 0X0w== X-Gm-Message-State: AOJu0YzM/9ynvRVoUXElUFMbyadAtSpctgzwGdtduFHzfNqarCGt2sBA VCwin0ZSPfTu/tMEybQZSc9zyzLvdkSIiWrooXlD/eRsszs2nnGbdOMyza1udcCnP0t9QJkEK00 IZYyHVaVXJIAMo6lqw44smS50cjCUXSSBpf2iV/DMguZg4CGYJA== X-Received: by 2002:a0c:e553:0:b0:63d:246d:43e1 with SMTP id n19-20020a0ce553000000b0063d246d43e1mr465477qvm.10.1691170058358; Fri, 04 Aug 2023 10:27:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnawTeZ1xxLIaxdvPnPQyeLnIOOG/KEgV+lm7EYx7XFvEBWe224lfKuWWyrVBFL+4St+H7bA== X-Received: by 2002:a0c:e553:0:b0:63d:246d:43e1 with SMTP id n19-20020a0ce553000000b0063d246d43e1mr465442qvm.10.1691170057974; Fri, 04 Aug 2023 10:27:37 -0700 (PDT) Received: from cache-ubuntu.hsd1.nj.comcast.net ([2601:86:200:98b0:a4fb:40c7:e7ca:9294]) by smtp.gmail.com with ESMTPSA id q18-20020a0ce212000000b0062dd9254429sm790461qvl.142.2023.08.04.10.27.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 10:27:37 -0700 (PDT) From: Yuxuan Luo To: kernel-team@lists.ubuntu.com Subject: [SRU][Jammy-OEM-5.17/OEM-6.0][PATCH 0/2] CVE-2022-4269 Date: Fri, 4 Aug 2023 13:27:33 -0400 Message-Id: <20230804172735.20929-1-yuxuan.luo@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" [Impact] A flaw was found in the Linux kernel Traffic Control (TC) subsystem. Using a specific networking configuration (redirecting egress packets to ingress using TC action "mirred") a local unprivileged user could trigger a CPU soft lockup (ABBA deadlock) when the transport protocol in use (TCP or SCTP) does a retransmission, resulting in a denial of service condition. [Backport] For Jammy, there is a build error at `mirred_nest_level` not found. In order to fix this problem, backport 78dcdffe0418 (“net/sched: act_mirred: better wording on protection against excessive stack growth”), this commit renamed some variables, which solves the error of the fix commit. [Test] Compile and smoke tested via `sudo tc filter add dev dummy0 protocol ip pref 100 handle 100 flower`. [Potential Regression] Expecting really low potential regression as the two commits only refactor and add some checks. Davide Caratti (1): act_mirred: use the backlog for nested calls to mirred ingress net/sched/act_mirred.c | 7 +++ .../selftests/net/forwarding/tc_actions.sh | 49 ++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) Acked-by: Tim Gardner