From patchwork Thu Aug 8 19:19:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Cabaj X-Patchwork-Id: 1970698 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=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (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 4Wfxgz2gKPz1yfC for ; Fri, 9 Aug 2024 05:19:58 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sc8fv-0004jw-7k; Thu, 08 Aug 2024 19:19:51 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sc8fu-0004jm-3O for kernel-team@lists.ubuntu.com; Thu, 08 Aug 2024 19:19:50 +0000 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (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 9A30F3F885 for ; Thu, 8 Aug 2024 19:19:49 +0000 (UTC) Received: by mail-io1-f70.google.com with SMTP id ca18e2360f4ac-81f901cd3b5so162409039f.1 for ; Thu, 08 Aug 2024 12:19:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723144788; x=1723749588; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=po1NTKIVZBZuWyRWvMkAkhiLiP/4fmKYqwqBaED9QvA=; b=Jhrry/THZcmjodjLwkMQzp6FzCNrtyaaWhBvAptu0VbzEiTCZD6eHzlSH7rPJU3z4h +afe+mA6trRotkVGAR3QNGJC+53yVektuDcX9Rlfj6qsXzY8b+1WM8Q4jvsw+YT6tVBt GBQ+RHjvdepgx5BwVvbL2DW5ht62nRBQD71yMcNA+E7qugZyBOawmcoraJ+PJ1+KctM+ eue2IDe0L8uFp4gdeHfZm3fsfBdAg3uuwX+/MzB/tt1+wNKjlHXRJ09jfnJdx/s6HLSx u3AAET74YmRmAuB9whyz2QVD99oU7DLyKSslxyBnh8Pny6ELwEM6T3AWGvsGAPKtSIMj 03dg== X-Gm-Message-State: AOJu0Yzt0F4ps50DMlV93mGy9/WaK9kN2opcstx2Pl4A3yf8HcgsHDy2 APw7UtuozaN7W+C7VrUN67TMaAX2kV7JRxzTTBM8B9Q5PBEtH5SUi/O4p5KMl0rdmo7RvXEQuPD apVzoLm1cs5oSLGUVSxTo4kZFllySL8+BPBQWVYpg3ToklGyGgq7OkoosOlzEcHu0xp1dHixB93 2bLRSqBAE2kQ== X-Received: by 2002:a05:6e02:1888:b0:39a:17b9:ccc4 with SMTP id e9e14a558f8ab-39b5ed2186bmr39514645ab.19.1723144788462; Thu, 08 Aug 2024 12:19:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1gdfx0aZyMoe9bQH6+MPfRw6rFutEvw/FcAdmRXrmPBG8CHaMenO3Te1Qu1w1yImAJ/4KEw== X-Received: by 2002:a05:6e02:1888:b0:39a:17b9:ccc4 with SMTP id e9e14a558f8ab-39b5ed2186bmr39514495ab.19.1723144788093; Thu, 08 Aug 2024 12:19:48 -0700 (PDT) Received: from smtp.gmail.com (h208-73-92-250.mdtnwi.broadband.dynamic.tds.net. [208.73.92.250]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-39b20afd936sm56613285ab.86.2024.08.08.12.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 12:19:47 -0700 (PDT) From: John Cabaj To: kernel-team@lists.ubuntu.com Subject: [SRU][j:linux-azure][PATCH 0/1] kernel panic was caused by a fatal exception due to a null pointer dereference in the iptable_nat module Date: Thu, 8 Aug 2024 14:19:45 -0500 Message-Id: <20240808191946.362133-1-john.cabaj@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" BugLink: https://bugs.launchpad.net/bugs/2076291 [Impact] * Microsoft has requested a patch to address a kernel panic issue similar to the upstream issue here - https://patchwork.kernel.org/project/netdevbpf/patch/20240731213046.6194-2-pablo@netfilter.org/ [Fix] * Clean cherry-pick upstream commit 5830aa863981: "netfilter: iptables: Fix null-ptr-deref in iptable_nat_table_init()" [Test Plan] * Build and boot tested [Where problems could occur] * Low regression risk, mostly shifting logic * Change to order of register_pernet_subsys() and xt_register_template() could expose some other logic being held together under race condition [Other info] * SF #00391736 Kuniyuki Iwashima (1): netfilter: iptables: Fix null-ptr-deref in iptable_nat_table_init(). net/ipv4/netfilter/iptable_nat.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) Acked-by: Aaron Jauregui Acked-by: Kuan-Ying Lee