Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1316886ybe; Thu, 5 Sep 2019 13:39:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOe4wxOQ8R6EDeIc9DUvZ5eFqNSeanDQstWjVty3CbpSrNABsizWg0YGP4U9+Ljz3iTZdm X-Received: by 2002:a63:5b23:: with SMTP id p35mr4829008pgb.366.1567715969146; Thu, 05 Sep 2019 13:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567715969; cv=none; d=google.com; s=arc-20160816; b=r+bkQ/xVLyX3V/fohU5J8popqaviNXS5Q69WOD6DZ0PSV3XEFuSrqnrq3dGQMG/V4y KIeasqjK2Ms0em/gFCDxZlFo9DyHa81TCMWTKMw7VslxzQCfCD7AeEQa1xvhFDbilUrW e4F92xocEPVKb3+o9tq6+P04RvMiclcwtAWEGQ0GpZtOSWLjlxRin3nr1mNOdxgmfTTD XFTI3zTaPH61OmCQdXFQVcujuTvkJtZey/evxGsF0sS+dYjtpE0drjBrGjrDanhxWlJQ YT+Y7n/m0/BbzT2FDyTzqn3z7zj6hgf7xWSiCg0PoVG/mlMOROTRnYT48cVx9bYKeLCw LD5w== 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=dfUO9a7E9R+fOWFokuwHNXPizB7LWxoWz7TwHKPJeKA=; b=AmYsUHnM4JolVCOizZ+T1KT5ML0pu5E3HWGnNrcYASDafMt6Natba5d4k0KE7PQRQF 2GdSAwe3xkMBrI4n2O9lD0EsZAErdQe5quL4fZ3qw+46ZlYQWmiXBCrcsofV/M+plgJ5 nt9Ahm/sd6JohI+fWWY7KsZ8YOdyeyf1Q6ggyrxe+RPUYUJjCIpY0IBXutSFMBucioV6 rDMOj73bv2hi+PZs+M383EMONykaHNC9jg5ARJrSX4avSylfXPn7u9YtBab3FLk1vryY RNi4WQKOlwcb/Gs4BdaRnvU772zhMjTJ4+6Y873C7jDwFdhAss8CBqE0vv4MSxk8BP7E 4vvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f4csicVe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 186si2688648pgc.248.2019.09.05.13.39.11; Thu, 05 Sep 2019 13:39:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f4csicVe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2390355AbfIEPOT (ORCPT + 99 others); Thu, 5 Sep 2019 11:14:19 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51958 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732265AbfIEPOT (ORCPT ); Thu, 5 Sep 2019 11:14:19 -0400 Received: by mail-wm1-f68.google.com with SMTP id k1so3274687wmi.1; Thu, 05 Sep 2019 08:14:18 -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=dfUO9a7E9R+fOWFokuwHNXPizB7LWxoWz7TwHKPJeKA=; b=f4csicVeVdbTjTLkGvuU0mio8k0xnxfoLTmb8gdYb5QJnAEFROnPSH7xc73HYN+ixy e7gsFYRoSkO7Br2jflzTOhyh3rBXVyvrUz6DglZJyLAz55fNeDFqYRKseYc5o5YYmG9X 9EH6/ZINv9WZapt2Lac5IXHUER+zSZ8KE5NYwoWAMtg+lG2QKlwMyc5entzeSaE+ljVK SaVxAbTmwbe+Lz2ctOldV92jLUOuBjwE6ipjqOdeWVnYpT2TFYkopT5bgHkmRtBU3hPo PrrkIH3ne82+4DNJs2FLPJ3tAQarRkLp+JhsT7jjovcykTPt5+3w0RpXc3x76k90mUlq CFCQ== 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=dfUO9a7E9R+fOWFokuwHNXPizB7LWxoWz7TwHKPJeKA=; b=sz2JrCrAlOdU1Hdd7FVZEqKC0I2bUkQZzV1fPLHHPAc3ojuS7VCbu6YFo5whsbQT+r 9VuI3LRK7zp6msfgku4bQl/6KCujxmZatB7U6KaxygHqgyVVaD40MkiNQF7xJfwOGnhU YxP89niruZ7j87GTCOIKCIEC2iEHTYWpG6jKcVAEvv50QGc+/IF3xk2jr/QLbyPPMiPa U3T5e0kETZ6627X+E1ddLf1kF9/bqXyaYk//CcJ+I/izXJA0hfs9UChvySTLCHe2wgkk mH6krs65WhtyRZY0fByfTtSqcUHDu3jQtb/M9SvDPqn9sKo4yYPmtuuND+Ygl/cIykeJ mKPw== X-Gm-Message-State: APjAAAVENdsbhUoxdc1Y/pI8z0vG6G7XnYff5RL5X1cwAkOIOnWy/elt 0js7ZSu0jJQhnauUKo8sk14= X-Received: by 2002:a1c:9950:: with SMTP id b77mr3552791wme.46.1567696457429; Thu, 05 Sep 2019 08:14:17 -0700 (PDT) Received: from [192.168.8.147] (163.175.185.81.rev.sfr.net. [81.185.175.163]) by smtp.gmail.com with ESMTPSA id y14sm3817913wrd.84.2019.09.05.08.14.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Sep 2019 08:14:16 -0700 (PDT) Subject: Re: [PATCH] net/skbuff: silence warnings under memory pressure To: Qian Cai , Eric Dumazet , Sergey Senozhatsky Cc: Sergey Senozhatsky , Michal Hocko , davem@davemloft.net, netdev@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Petr Mladek , Steven Rostedt References: <20190903132231.GC18939@dhcp22.suse.cz> <1567525342.5576.60.camel@lca.pw> <20190903185305.GA14028@dhcp22.suse.cz> <1567546948.5576.68.camel@lca.pw> <20190904061501.GB3838@dhcp22.suse.cz> <20190904064144.GA5487@jagdpanzerIV> <20190904065455.GE3838@dhcp22.suse.cz> <20190904071911.GB11968@jagdpanzerIV> <20190904074312.GA25744@jagdpanzerIV> <1567599263.5576.72.camel@lca.pw> <20190904144850.GA8296@tigerII.localdomain> <1567629737.5576.87.camel@lca.pw> <165827b5-6783-f4f8-69d6-b088dd97eb45@gmail.com> <1567692555.5576.91.camel@lca.pw> From: Eric Dumazet Message-ID: <5405caf6-805b-d459-c447-15a23d0d71dd@gmail.com> Date: Thu, 5 Sep 2019 17:14:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1567692555.5576.91.camel@lca.pw> 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 9/5/19 4:09 PM, Qian Cai wrote: > Instead of repeatedly make generalize statements, could you enlighten me with > some concrete examples that have the similar properties which would trigger a > livelock, > > - guaranteed GFP_ATOMIC allocations when processing softirq batches. > - the allocation has a fallback mechanism that is unnecessary to warn a failure. > > I thought "skb" is a special-case here as every packet sent or received is > handled using this data structure. > Just 'git grep GFP_ATOMIC -- net' and carefully study all the places. You will discover many allocations done for incoming packets. All of them can fail and trigger a trace. Please fix the problem for good, do not pretend addressing the skb allocations will solve it. The skb allocation can succeed, then the following allocation might fail. skb are one of the many objects that networking need to allocate dynamically.