Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3262451pxb; Mon, 9 Nov 2020 06:52:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCJ73zAqdxj8+3YEU3Mx0SqNL0CfvcW7nY4TxxkR14HrJDYWK6WsNL4Jbxvjwr4+JE1vbL X-Received: by 2002:a05:6402:290:: with SMTP id l16mr16067959edv.104.1604933550994; Mon, 09 Nov 2020 06:52:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604933550; cv=none; d=google.com; s=arc-20160816; b=OGkHWg4lo3SUMWRC4nlLjtrb1uqe+b8FMsAWcrEYu7ceofGypDynFo4kAsgFP6JhAn T41a5yO4cQYGcBjfLt8AQPt8buEceAyjckhDeH2zy9EqeIqbAQBxH2ZReLKn+JxXFE66 dqzH/DJG8xsHGiD8VQjF0226SnzjtqSsMH4+Ba6cvxN9aZJH2kyle/sSFCuyTQB6gwkR B21QpwEcK34CwTiuOqUAwGXlffDOuALWnMFEVRLye6GBJeDyoH9MAWtRUn3UQNrYf/CH F0sc7+TCiOShyFkRPh8QglbWPZd1EwzzIKjniV4tlBYdYfsND4QY54gRTRz2rN7B4Qcn 99Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ogv65uP9gTL8ci3I542ZqRre/+Ga4aoUJREJZSIGMNk=; b=uLtb9JdXOgHKW1GIDY8K7MgMJXNxRZtZcT/zkq1rbjVI8r1K4ZVglVSzl7S8F28VbH ViZG4vsOeU8hgxsx86J4/MkplFB/930k3AztEd11qRcnYHXypPPaN3Gz1ZURqnbAYWUn gMacPtEX4lLAJCtSIkKPwBvXyaupb6ZjKHZ5MQ6IIw1I541K0tIb5Wm1L0jAWuB/TDod kVQiAUFINq2FPCKRYWE5NjNhozyZtK50raJzcbjWhpEeKqI0EwFSOF0Oa4dHPKIUt5U9 mQzcGYbFPesivANPx9W7+Exd8bdSUkjxsOsxgQhL9sqVYRB6v3NeKWKwUC2hsHPKXDOk Nkew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HBloziyx; 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 u15si7344285edj.102.2020.11.09.06.52.07; Mon, 09 Nov 2020 06:52:30 -0800 (PST) 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=HBloziyx; 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 S1731569AbgKIOsw (ORCPT + 99 others); Mon, 9 Nov 2020 09:48:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729454AbgKIOsw (ORCPT ); Mon, 9 Nov 2020 09:48:52 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EA9CC0613CF; Mon, 9 Nov 2020 06:48:50 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id j205so5412741lfj.6; Mon, 09 Nov 2020 06:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ogv65uP9gTL8ci3I542ZqRre/+Ga4aoUJREJZSIGMNk=; b=HBloziyxba4SnfYP0yJp2yplIGEYd7X0kTKAl8NFj6e+NgzU/JUlioL/W8DpPcHN1W ijREZkz+Y0tOD4GnjDVtpmCoNC8TI9iIK+nsZe3KfFQpXwPDh5Fu4EzJJMaGiKfXX61N V4BxhB49+7FIm5rqk8P/JCpbt0kdfVoR6WjpaQMKV7CUhQtQLLLVp80shlA0NQorUpU3 Ip/x+ap/N1xaud4cM5qLd0Sk+VSBrWzeyZ8HchSo3aUPSYGYVMvAhltBq9tDlNn/3hY3 oJX2CRnCNAkDNZljSIiKUnmOognoPMFwXWqy7es3KeT+tHQ388y3xGnD9/fHGQ+fFuQx rvcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ogv65uP9gTL8ci3I542ZqRre/+Ga4aoUJREJZSIGMNk=; b=hWqUgWLaGnpUe++OezINWatPiAoTmPop1IW0PPQB6TVFkIQcdxOtxx1xJl2J+KdAHr 9D54Fx+xqDPoZCNnlhx1sXhTdjUVBBTFPSS1MydXodjJD6exKrzZLlc08X8+j/fj1VJa ME16zrN5z8TBwkNUfk5vHyn1p3hA8b8Q5Cr0+ueSVvaPuen9LYoKPJMjSmRLwN7to3lV 7CA5Iiz4BaZQL49axM+BlPWA53jWR1pZEIZ71LTbY/XX3PQ0i/aFCqtfmsfD5lTdwpAE JLxwkYZFSk4dm+/z8SP7+Yjr+ltOzKPyCyoBPfhPbrdWHMYcz3i341Qf+W4OCYIkZKdK GABw== X-Gm-Message-State: AOAM530unw0hF3o2eVhwH7U0qInw4oMCOyrAYGcvoS8JgtXUrCylePbJ xBjirYMKT8qGAEQ2N9AYeq84vVOEvqBpOOkyeVg= X-Received: by 2002:ac2:420a:: with SMTP id y10mr5437917lfh.388.1604933328897; Mon, 09 Nov 2020 06:48:48 -0800 (PST) MIME-Version: 1.0 References: <5fa93ef0.1c69fb81.bff98.2afc@mx.google.com> In-Reply-To: From: Menglong Dong Date: Mon, 9 Nov 2020 22:48:37 +0800 Message-ID: Subject: Re: [PATCH] net: tcp: ratelimit warnings in tcp_recvmsg To: Eric Dumazet Cc: David Miller , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski , netdev , LKML , Menglong Dong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 9, 2020 at 9:36 PM Eric Dumazet wrote: > > I do not think this patch is useful. That is simply code churn. > > Can you trigger the WARN() in the latest upstream version ? > If yes this is a serious bug that needs urgent attention. > > Make sure you have backported all needed fixes into your kernel, if > you get this warning on a non pristine kernel. Theoretically, this WARN() shouldn't be triggered in any branches. Somehow, it just happened in kernel v3.10. This really confused me. I wasn't able to keep tracing it, as it is a product environment. I notice that the codes for tcp skb receiving didn't change much between v3.10 and the latest upstream version, and guess the latest version can be triggered too. If something is fixed and this WARN() won't be triggered, just ignore me. Cheers, Menglong Dong