Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp353925ybg; Tue, 28 Jul 2020 07:42:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzswOQ17lk0ZVgEs9j10TjrvWt5lE9kV7C4pTIfS5CHWyd4zT8Tk7IW9RCdNGv4tkzAkXvs X-Received: by 2002:a17:906:57da:: with SMTP id u26mr26675008ejr.157.1595947358897; Tue, 28 Jul 2020 07:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595947358; cv=none; d=google.com; s=arc-20160816; b=VLiEEt/QRsTXIyJ3eg77zX1JKDzKGt+sDpSgV881asBBxgepCrrykzD+TmQbe6MF6/ CwKZfi5LuGbVlOTJG3hMVMGf+QvnA1L1Ie//et6ee7Lrrc2ElCYSdwJgLcRZZide5nwA wngluJUtZDAAGqoo2Q7ezl0SrmFgwub9dGbHDMAKmjoHG10/bm2Pki2phYyKs1ivcYSw faOqDST/7pFTr5K1NLh/Svkn5AYvK6hEZJAeBa3T5w0uS6OVsOsIKsEZpyJAUfhKkQbb fFJZF7DHsTfA/vRXL0+0mbKC67DW281u2G/TWCzpQZv13rl52J+oQ9lwCSX932bGQ6fB wChg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=GF8ZjMhiyVomxf9/l0IfId/LIV7LteGzaaDxWYsxaIU=; b=V7kPQr94MHjne08NTD8Stq+DWsFrtD6tH5R2mh3TXpzOlP/1pQ8hM/m6pyApyZK8yO GbWkb31rHjs/3acqGSB+lXwbdsfrArK4P64owlmP3PzelWwJKYP8tGldpSf6vZwUX7Jo iHRibvdRghiZwPeoIFYHyrbdawTdcaFdPoElgqfCqIosBSy6MidqKUnjT28WpSO8IIIz jzql4NfbMJEUVK3IbuhUNl6X+wMKg0XsXPUaQFs/fZy8vNMe1bX2YD2k52p6LhCuzRlb JPtQowHalprQAeQ9FEjt8LLRqGLo8XwcDN2mZGMFP711unna1Yp9kGa65w60JvYKrAcT R/qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VoQ7Bq3K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si7887789edp.89.2020.07.28.07.42.16; Tue, 28 Jul 2020 07:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VoQ7Bq3K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730462AbgG1Olj (ORCPT + 99 others); Tue, 28 Jul 2020 10:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730391AbgG1Olj (ORCPT ); Tue, 28 Jul 2020 10:41:39 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38D14C061794; Tue, 28 Jul 2020 07:41:39 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id o1so10005376plk.1; Tue, 28 Jul 2020 07:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GF8ZjMhiyVomxf9/l0IfId/LIV7LteGzaaDxWYsxaIU=; b=VoQ7Bq3KPeISrwjwSkLoprGtG+k2Fb7MUT7AlyPhSWF0Rj9fuUds8Wcwl/5SeiiSWn j1GKLVuH4umjRwNSVPjCrQ7gcSyeFxRwwhxCIEBtjp90Na3KaTC0rUHYYy8TrOAgcd1V fMwls5Y4GUZdWaYHlgp1mJmXd/61BUCwxu25UjIWqJos1T7HDB83AfVFh861m8KzEEl7 99xmGXtYlrHL71aglulvPMt1wMCUNjdDiImW/ioWlxbyh1yUVs5zk9FUWt9ZW0RFvDD1 X/XzvbepYJqrCNjASn7nZE+NOG2b2ahTvCe1w41tXu6EQegWQfKnYtSWGfRhLaN2u1K1 XBsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GF8ZjMhiyVomxf9/l0IfId/LIV7LteGzaaDxWYsxaIU=; b=Ah3+4XtS2Cm+VVA7edhAGsKPDUfjNOUNDEVTBogGk3GXEPNfaatpLO7hLBt/hK6X5Y QC9jku+XezpLCSTJeaXelJaX0fWmqebJmpTCB85o06of2Arov2RP06OLyfdEPREV8bKS H4mkeci9evuYkRHlamqnqzEiU9zCZlp5CYAOBHzyLCUwpPlmsJaAuyhSXTBCufH644SA BKO4NBo2x00QPvbHGd9gIcmdXdG8FCwsgyELaJtjhg9Rh6EYgeXzouayXKfjifvcceug 4AjbwaN+Q2kAVYX5dxdQpzshyAp6/cu/XTuGxS451udfecf3YAzrZHxiAaAHYjG5/T0R +E2A== X-Gm-Message-State: AOAM531it19HgdP7zOrQA/acF16MiF7l179LZqDnDF5Y7VtM8sdtOKvU nH0YJVu9rmM7xQeb5Mq/6AUUrLBB X-Received: by 2002:a17:902:a3c2:: with SMTP id q2mr10268577plb.212.1595947298539; Tue, 28 Jul 2020 07:41:38 -0700 (PDT) Received: from [10.1.10.11] (c-73-241-150-58.hsd1.ca.comcast.net. [73.241.150.58]) by smtp.gmail.com with ESMTPSA id d65sm18735992pfc.97.2020.07.28.07.41.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jul 2020 07:41:37 -0700 (PDT) Subject: Re: [PATCH] [net/ipv6] ip6_output: Add ipv6_pinfo null check To: Cong Wang , Gaurav Singh Cc: "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski , "open list:NETWORKING [IPv4/IPv6]" , open list References: <20200727033810.28883-1-gaurav1086@gmail.com> <20200728021348.4116-1-gaurav1086@gmail.com> From: Eric Dumazet Message-ID: <4c4d94e2-e2b4-ee77-6942-f5d747a288e4@gmail.com> Date: Tue, 28 Jul 2020 07:41:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/27/20 8:12 PM, Cong Wang wrote: > On Mon, Jul 27, 2020 at 7:14 PM Gaurav Singh wrote: >> >> Add return to fix build issue. Haven't reproduced this issue at >> my end. >> >> My hypothesis is this: In function: ip6_xmit(), we have >> const struct ipv6_pinfo *np = inet6_sk(sk); which returns NULL. >> >> Further down the function, there's a check: >> if (np) hlimit = hp->htop_limit > > This check exists before git history, at that time 'sk' could be NULL, > hence 'np', so it does not mean it is still necessary now. > > I looked at all callers of ip6_xmit(), I don't see how it is called with > a non-full socket, neither 'sk' could be NULL after > commit b30bd282cbf5c46247a279a2e8d2aae027d9f1bf > ("[IPV6]: ip6_xmit: remove unnecessary NULL ptr check"). > > Thanks. > Agreed. And again, fact that this patch lacks a Fixes: tag speaks for itself. This means the author expects all reviewers to make a deep analysis. Please bear with us, and add a Fixes: tag so that we can fully understand what was the bug origin and why a fix is valid.