Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp335216rdb; Thu, 22 Feb 2024 05:27:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbT10f0JaXEIByMVZ+LcmGQ5MczjXenavDc4oQpgsk4oGs3OLp0yQWJIQVdYUpUkBzu8y7seqJ09HUh+zEeWm5FH2IHX/2gAyn3MM/+w== X-Google-Smtp-Source: AGHT+IGTKlvh/3/tUKU7WmSxjc3A9T0u3jUVBGAI7a0NXBNz4y+hrVlGYBFCnWOjduhXPDfsNOot X-Received: by 2002:a17:90a:9f87:b0:29a:2d33:462e with SMTP id o7-20020a17090a9f8700b0029a2d33462emr3060871pjp.49.1708608472591; Thu, 22 Feb 2024 05:27:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708608472; cv=pass; d=google.com; s=arc-20160816; b=GIUziQtTMzZvCS8EK1Tz50cnrFXJN+u41c3cSeoEVCnlZVcjRdKsBcLmS8A3TgtCcE dzpxxRyLqdZI+er/emtLnhZWiHM9mCGrI2Ewkn0dse0nAQucyaMRpHmq5aVXGgl43TTA 6x5JKBMerWWi/hWJhcANSUEV+9tPJCa69WiO3Tx3FgmWj86n/U+o3GwT4OYRXUyVQigA HWvGn+6362mEIrCkB3X/Fgxm8n08diJZ9rBkrPeyoX2OrmOPatyKBG1IWA63Y2ZKJ40x z61QD6dNcnADwG+gI1YqaTyutUChubzQEiA827pAbrHbhOpb2g6QHJ4rGwcA6s6M+sVa GaTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=uZ6eOr+atEO3HsCU6zkySvIsF2Yw194pNlnhirXBpW8=; fh=DDTNTlEEctiWHRSB3+wJvnPAhBYd0mbXywxAhXl5Obk=; b=k/fkmxZSycQckO3meSbIMkw0fxwiuNEV0MznIkRedNwqrx2pM3AEzfu1pgMVKq/Bqp 4FdMPXAq10+xN3bSFa6P5MqAlupsZa+eVGoYHEC6Hp45tasQsFrY/zg028zQJZjiUQ0m 8b39T28b+7d7Zhmx8mXVjWM/p03PT9qbMRcuoMdmQqXxK4NVd4bkTlwBMh/90LqR6sNG v9mywvb9QkfQDljtlbswlh6j5B0gdkebjPijEmw8Hi+GWWpKuq1f748uxi54q27x/60f 5pJsS0sojW5oihA868FZCPnOzcHM7lSs05sOlEpMhzCniiXGh8EAMEqiX4E3VlXN+oa5 Pmig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1SNH+KaY; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-76594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h16-20020a17090adb9000b0029933c253cbsi3498641pjv.41.2024.02.22.05.27.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 05:27:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1SNH+KaY; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-76594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2E865288EE7 for ; Thu, 22 Feb 2024 13:27:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F215E13473D; Thu, 22 Feb 2024 13:27:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1SNH+KaY" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E3B512E1CE for ; Thu, 22 Feb 2024 13:27:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708608457; cv=none; b=qR9q28JUEnSACmet+sllUvp6Q8liCWRKKjn6awW8ax6N2WYzRFfigDzxIplM14YmQv7PUv6cq4th1tm7Au49n29WIt/dEDvdDvUwWBfA/q0/7Q1YCpyOX+KrSScJ5jnvJVkw2tzhQyz97jI4RwNaWt3T1gVWUN/HcsqmiN5Qh3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708608457; c=relaxed/simple; bh=Yv01f3SU14zyK7JMwHNf68+qOoZzkeRjV2RwRMZwhIM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=My+x+weFambxErXFBFcbf2DPTP3RtSnfSKFCYBNFHYylFteP3r3VrK459iSjchdia53rnfjqQgbw/KpEV0BcKOYpIiRLNxcYu1LixTK0dM0+pU8Z7RIp31QkTRLJLwzxVhKkxXTaOEzE5pTTZYwCL8ZwqbvAPpPIQq7vMtjnXTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1SNH+KaY; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-564e4477b7cso10065a12.1 for ; Thu, 22 Feb 2024 05:27:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708608454; x=1709213254; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uZ6eOr+atEO3HsCU6zkySvIsF2Yw194pNlnhirXBpW8=; b=1SNH+KaYzXYGxcuZRI+V4r+O4l/vpvl09W9q+6EqLVqnsc+zcGswuH3jNOE9PhgJzk 3/ww0eqGyvzacVKpiCijeXGaBaBpvEzZYMTaXdrfb129FUfKC/dcvSj7VuAGSuo2eFia WsO6xiQYNF0P/lN9dkQKIL9wTib/XWMW2UO5K99yhGPW/SqagcuiFayAvJrZx3FJCQgA HSs8PBL44I/KMVZdY6rHf/mPuHvfqatoDHAeGBFeWntfzLVM5+3xJc3UIPuNG/OkXqZ5 w0cyelRA7lR3vL5kw51qDetESl3Wl4Yf8mSNW/QI+1YuHBnEM7pJ598tPQA5QB/2Sy2y 8bzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708608454; x=1709213254; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uZ6eOr+atEO3HsCU6zkySvIsF2Yw194pNlnhirXBpW8=; b=t4d3Tub3S00FVahuRfwYJlo3LFw2c1VfOXcMNE+lp1vt/9ZmFYzYqZoC5/54UVZiEm HK+qFiYCb8/i/P1LhTiDtWMtg5jWnHq3Ag+rCXKICMJRmbPbtVlD9MuLxdSLu32EMqml 9aXYnnAdVn87zVNAr5RvuPfz3t72e2ONpH0NfwoEmONBKOPHz3G8MeHZjWcXlrKrzfuN H+T0H9HTZkXlrG9Kqfc1LUJNo5k/mVeYGi9Rh8bMPmNXKSdxz66dLSkwJ/xAic3hkhu2 bEHzoy+e39+E9A07Aemt22mef6+sLcuNf/BJuxXVX+o6IT/ZClBipp+KlHvx3ouc2bPP bYWQ== X-Forwarded-Encrypted: i=1; AJvYcCWLvutNnAL8u47JBBZ1QC2D+JqtC7cE5F0MrpV1kVB+eMmksjZplhVZBLHz+5t/t0pn/Q7ssATBpzQVBgfhelI2x70pfzLJ+44MxZOX X-Gm-Message-State: AOJu0YxzmzkwPAhMjwF+tvYU5cVZf098klM3zlNn2R6+KZoIOpOsnzEv ZkTd4j00EUY816oOYotAuqezQ7bpZeEmfHYeINIb0v7SReJmRfgZzU+Z6ETDhDRcoQYW2xRYChN ARyuznDdcRfZUuGy78FtarJx1rHIV6caZztQW X-Received: by 2002:aa7:c1c7:0:b0:565:4edb:7449 with SMTP id d7-20020aa7c1c7000000b005654edb7449mr35828edp.2.1708608453685; Thu, 22 Feb 2024 05:27:33 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <00000000000043b1310611e388aa@google.com> <20240221131546.GE15988@breakpoint.cc> <20240222122324.GB28098@breakpoint.cc> <20240222125738.GC28098@breakpoint.cc> In-Reply-To: <20240222125738.GC28098@breakpoint.cc> From: Eric Dumazet Date: Thu, 22 Feb 2024 14:27:18 +0100 Message-ID: Subject: Re: [syzbot] [net?] WARNING in mpls_gso_segment To: Florian Westphal Cc: syzbot , davem@davemloft.net, dsahern@kernel.org, horms@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2024 at 1:57=E2=80=AFPM Florian Westphal wro= te: > > Eric Dumazet wrote: > > I was thinking about adding a debug check in skb_inner_network_header(s= kb) > > if inner_network_header is zero (that would mean it is not 'set' yet), > > but this would trigger even after your patch. > > What about adding: > > static inline bool skb_inner_network_header_was_set(const struct sk_buff = *skb) > { > return skb->inner_network_header > 0; > } > > ... and using that instead of checking for negative header length > post-subtraction? SGTM