Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp433123lqi; Thu, 7 Mar 2024 01:20:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVcIpPbeBKI1bTYbTtGLdAF6+6i9XnEj3eAXxA3jYaosD/FdfMD5eJyHBCGMupZsB9nVUeFad18OIn3qhpBkw2anuRqFIFXK5XrFaFQsQ== X-Google-Smtp-Source: AGHT+IF0muc0W+aW7SsidESSdPtIAD9B7FgYgC+z0bwIuTCwuBqh1rlNU5NSV2AeIxXYGtcwsUKc X-Received: by 2002:a17:902:f544:b0:1dd:e34:d820 with SMTP id h4-20020a170902f54400b001dd0e34d820mr8355366plf.28.1709803256812; Thu, 07 Mar 2024 01:20:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709803256; cv=pass; d=google.com; s=arc-20160816; b=iqj19H5t0e8ouQekXBy/N69IyUbHJnc06N5Q1qeNykEo5TcZ5Otve5tVUm0vN1rQbQ jti/6jN/h4vJhSN0BLY0K8MejheyhKHHAUCl9UCN0PlnAuFj3qZB+FPNzZAC5mE/XnDH HBc3yR3U+zWvkiEmHQ2mh5zec2KCNP2SlvO6Zat8VrvfURppq93FLzGRTrkYb84DwaGU 4txISykFA+ofuNPkJ2xODHDUsIeFUp8FMHmpBTk4twPitjXpvjdnmpQzpHlZRNltQUdu 1E9De+fL82a5zhfnQ0ntkehfFA3yZVhSty9o+bIW+Cv3qR99TLqx60Ga/3VhUoIFKI5C 4TKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=RcMYRCTYmBdwjjxBMVHv7nDqpJkI2KJP97kVGpj1vF0=; fh=bekyNVnBPBGOfwtl/CzupZGHNoFk6QwEhF4SMwo6mS4=; b=PIihkJbc/uN+wSBE9BXfEWhbSxEuhGDZuX2ZjK1ZIhRpNTiuDKdavEnRJrDhN0BiLS 2lPs6D2PSHknVQtlmWrkM4r73Xfeax26CfEi8y8Br5rCNIR4aug3K+vtASC/tQ1tL43Y VWa6I+Ldg1uwIG1cmmQHvkkOr2A0z/k6G3JnmEBbxCv2fCJfTX9MRCZW77tqppsnbjwa KUhJPFlPMH0x4iB2228piIA7zUXgI6xjC+nMaIRq8wOpFzds2Gdo++z4Vcm6NcPLHVGW R0NlnRspeDNkCTISTSUI/UMWVAuWJgKczjx0eTkhHR42egdv5hZfMeQV2Yc2sLv/X81p +LtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95203-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95203-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ix13-20020a170902f80d00b001d95934ad7asi12827624plb.624.2024.03.07.01.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:20:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95203-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95203-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95203-linux.lists.archive=gmail.com@vger.kernel.org" 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 C9A0F285D83 for ; Thu, 7 Mar 2024 09:19:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFD6783CC8; Thu, 7 Mar 2024 09:19:31 +0000 (UTC) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 C32EC839F4; Thu, 7 Mar 2024 09:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709803171; cv=none; b=UZt+PSwBKxk9QALJ7RQ+E2HTGpGhaPjcAHCNllUorh9jvQghtel/XJFt5G9JYXueWuhwekTaT25FJwIAvcKeb2AsTcyqdADJGzK+1Rx3+FWZvYrmScw5LhYfeQGbL8SzaIt4zjGm3LlXyn5l9Z4uCTcgRW0oTy6GfHgj0Ce7Dr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709803171; c=relaxed/simple; bh=eQ4YiS6NQgEI0/5JNHw57o9eklne/wPcEXGDdoUR0P0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gLriM/G69/e0JUyla5AAarHH+vlQfKR1iozwHRGhdue0F+D0sJ8iS8T+Gc0QsX5MkmF8F4Vfyi+ib2ORbZYNSvBOvDiuYF7b+3t70QWUoP6laHMVEVurtStSYAU/5H7B2eUm4RC47wmkmU5mx7i7aW2Vh5zdZ0tdAFYFiZuZoFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a45606c8444so77816266b.3; Thu, 07 Mar 2024 01:19:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709803168; x=1710407968; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RcMYRCTYmBdwjjxBMVHv7nDqpJkI2KJP97kVGpj1vF0=; b=FlLTLbOQ9IOuDl5hYvIzBMR8/bFVO7imEnPTXVpj8C6uPZLt7Em3M9AE381C61EK/F Gl2cp5KWbgVqqWJxCnNRJC92F3K/q170Kbw3mDocPQBnfnJL5zh9TYgHWVklEj4lao+z f+8MAq5VFWX7wlPCppzPE9l67ytSV/kCcxEfx4igLbqGIzmfjdKG6QtBYZ3OK6Td+VqX 4NgDJ5G0Z5Dd4Y/lG7IlWLiawdI0Z/f2Nn7kdBmlnDcsVoBO8aN9yvW2NYiITytuvpKt ExTS8/mb2Jr5yzzFroK3UjUeznm63Knr0StdQ4OcEwad14HNIzq3FKSrM4s7t7PFZ3ZP 6xvQ== X-Forwarded-Encrypted: i=1; AJvYcCUC+9a3BNmOz21iz8LVkMDFKyRhb5nGIIERiavvfkRnT4raqGP59RURSA0lWRvqOYdeNl9mBB09OoS4nW9t2p7R4yx6IZ2vjkXBM0It6+qfiA8I7uQJHh0OSeIZqZwCjnmtsAU9 X-Gm-Message-State: AOJu0Yx/9kUoNjMZUAITvXOHhbyFIMvsTArYOULbZC5q8moRohVUNq7o P6fg/qw7/KjttU2S1yk7oxEbZqaT/vOrenx+/X8eJJ2i6zwLs4zGl2Erv6Oj X-Received: by 2002:a17:907:76fa:b0:a43:b472:9a57 with SMTP id kg26-20020a17090776fa00b00a43b4729a57mr12388945ejc.62.1709803167754; Thu, 07 Mar 2024 01:19:27 -0800 (PST) Received: from gmail.com (fwdproxy-lla-112.fbsv.net. [2a03:2880:30ff:70::face:b00c]) by smtp.gmail.com with ESMTPSA id tj10-20020a170907c24a00b00a4452ed413asm7884686ejc.16.2024.03.07.01.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:19:27 -0800 (PST) Date: Thu, 7 Mar 2024 01:19:25 -0800 From: Breno Leitao To: Eric Dumazet Cc: gaoxingwang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, liaichun@huawei.com, yanan@huawei.com Subject: Re: [PATCH] net: fix print in skb_panic() Message-ID: References: <20240307061143.989505-1-gaoxingwang1@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Mar 07, 2024 at 07:29:47AM +0100, Eric Dumazet wrote: > On Thu, Mar 7, 2024 at 7:12 AM gaoxingwang wrote: > > > > skb->len and sz are printed as negative numbers during the panic: > > skbuff: skb_under_panic: text:ffffffff8e2d3eac len:-1961180312 put:-1961180408 head:ffff88800b6ac000 data:ffff887f804ffe78 tail:0x1e0 end:0xec0 dev:team0 > > > > This was on purpose. > > I prefer the negative values, I find this more useful to immediately > spot the issue. I missed this reply, sorry. Please ignore my previous reviewed-by. I didn't have this context.