From patchwork Wed Sep 25 17:14:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bethany Jamison X-Patchwork-Id: 1989490 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 4XDNfn0Xxrz1xst for ; Thu, 26 Sep 2024 03:16:00 +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 1stVcF-0005jp-A2; Wed, 25 Sep 2024 17:15:51 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1stVcB-0005iz-Hz for kernel-team@lists.ubuntu.com; Wed, 25 Sep 2024 17:15:47 +0000 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (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-1.canonical.com (Postfix) with ESMTPS id 1979C3F327 for ; Wed, 25 Sep 2024 17:15:47 +0000 (UTC) Received: by mail-il1-f200.google.com with SMTP id e9e14a558f8ab-3a0ade309a3so141205ab.1 for ; Wed, 25 Sep 2024 10:15:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284545; x=1727889345; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cxJMxBHvWzpSDjKBKQ5jRfvv69ZT83ZOczrmOxrF5hM=; b=hCwDb57bs4ULGF8otCI5gt/bIAIRXi8TGtJ7aEv6SNe1BOGjPVuE6iasSPEoTQBG/3 IkxFfQI1YHKwuT6Vpmtkzb8kOwM9Q23CfbgpmYQrVZutFBNBOL1PeAyNpwA3+Fmt0Xfl I6EB8Rj+U+M3vXO2Yr0l9trLC4NRGGkLyFegO2jVmKZZEpgR6BxL4/EccGhbKUTT7/cJ UXdaOWLurJmBcu3hz+ljLum/UYP3N93h/Gl8uHp5AQK9dOwScyoCimQzhy96hLR7uEwK Z5ulDn+3wWieWFrfMH7gRcZ/ONTFnq5r0/ojR9ezCAb2SQDaxLOdv3E7vdI7VnwAYqZ2 TeGg== X-Gm-Message-State: AOJu0Ywa67//1G/S4IbzxDfa6LCn6Fkja6/+wtYl75QQGWWrAB5qugCl c8KDHtwg/2vEqWNAOlOxSJAr8TleLVJxnHOCqTZru5fTwb9qsd3vzw/5TsMpxUFR5uFjRNnMv7y pWmpZ7DTzvI0LtCnnZ/RoMRxewyJ/5w4419eK63fIqjeSvMfn5OGh5UU8pfUbChk4NRQvc6VU/W +NyDX68D4m+Q== X-Received: by 2002:a05:6e02:148d:b0:3a0:9264:c498 with SMTP id e9e14a558f8ab-3a285817805mr163985ab.5.1727284545664; Wed, 25 Sep 2024 10:15:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmU2jclM2nz/iJlLfENS/1PZkRB17hsBRHg1tWpJ0ROQ1AHWs/xlijnV9MKWSKZ+JrA6p1OQ== X-Received: by 2002:a05:6e02:148d:b0:3a0:9264:c498 with SMTP id e9e14a558f8ab-3a285817805mr163885ab.5.1727284545273; Wed, 25 Sep 2024 10:15:45 -0700 (PDT) Received: from smtp.gmail.com (167-248-51-36.oa02.lnk04.ne.dynamic.allophone.net. [167.248.51.36]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4d40f416090sm1178341173.176.2024.09.25.10.15.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:15:45 -0700 (PDT) From: Bethany Jamison To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH 1/1] fou: remove warn in gue_gro_receive on unsupported protocol Date: Wed, 25 Sep 2024 12:14:24 -0500 Message-Id: <20240925171425.96801-2-bethany.jamison@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240925171425.96801-1-bethany.jamison@canonical.com> References: <20240925171425.96801-1-bethany.jamison@canonical.com> 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" From: Willem de Bruijn [ Upstream commit dd89a81d850fa9a65f67b4527c0e420d15bf836c ] Drop the WARN_ON_ONCE inn gue_gro_receive if the encapsulated type is not known or does not have a GRO handler. Such a packet is easily constructed. Syzbot generates them and sets off this warning. Remove the warning as it is expected and not actionable. The warning was previously reduced from WARN_ON to WARN_ON_ONCE in commit 270136613bf7 ("fou: Do WARN_ON_ONCE in gue_gro_receive for bad proto callbacks"). Signed-off-by: Willem de Bruijn Reviewed-by: Eric Dumazet Link: https://lore.kernel.org/r/20240614122552.1649044-1-willemdebruijn.kernel@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin (cherry picked from commit 440ab7f97261bc28501636a13998e1b1946d2e79 linux-6.10.y) CVE-2024-44940 Signed-off-by: Bethany Jamison --- net/ipv4/fou_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/fou_core.c b/net/ipv4/fou_core.c index 0c41076e31eda..b38b82ae903de 100644 --- a/net/ipv4/fou_core.c +++ b/net/ipv4/fou_core.c @@ -433,7 +433,7 @@ static struct sk_buff *gue_gro_receive(struct sock *sk, offloads = NAPI_GRO_CB(skb)->is_ipv6 ? inet6_offloads : inet_offloads; ops = rcu_dereference(offloads[proto]); - if (WARN_ON_ONCE(!ops || !ops->callbacks.gro_receive)) + if (!ops || !ops->callbacks.gro_receive) goto out; pp = call_gro_receive(ops->callbacks.gro_receive, head, skb);