From patchwork Tue Jul 12 14:25:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 9225427 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4B21260868 for ; Tue, 12 Jul 2016 14:26:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CAF7272AA for ; Tue, 12 Jul 2016 14:26:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 310B127C8F; Tue, 12 Jul 2016 14:26:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C071C272AA for ; Tue, 12 Jul 2016 14:26:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bMyd7-0004Ui-Ij; Tue, 12 Jul 2016 14:25:45 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bMyd1-0004OR-3A for linux-arm-kernel@lists.infradead.org; Tue, 12 Jul 2016 14:25:43 +0000 Received: by mail-lf0-x241.google.com with SMTP id 33so1076955lfw.3 for ; Tue, 12 Jul 2016 07:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=XPFbEodBwW45hlUv+vXRx8O+qKhz9XwGrDGfJYMaLBo=; b=BPmpaV8NNDsHg8wn8lOfpwdDq4l48DVgJFYzBSKf+SARPLbqM7e1U+DxDcHgEkPJkI Lnz8xMeRpotu9lmSsVElOKxJLl/PXgDdvbFNlbEKwiGyGWVJ5jZHomigCXSsnMGvalj1 rgCYYFxfje84tsbbXPg9JJj8DrbrdtqxLS3vYBpSmlYzrweLnbFrPhRJ32jJJmzxFUj7 tznB11yfx36OAMUj/OC5gTqOeOOgGD40CbxAOvM/3+rxeGO+iJxy02AoDA9btlWwht1F BNAAkPR6iNdFj5sqqDfw4QUFpf2BRzcaFtme0RZXt8SgkAB1twm7//mkpQHxJcbSxBCJ 1wmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=XPFbEodBwW45hlUv+vXRx8O+qKhz9XwGrDGfJYMaLBo=; b=RULNUHApSzCLmv9TmorjK3qmkmZvHCjqwcebxk/X6oiJphYam6AxNVDpkc+PTSGSO1 thZtcmsGJfAFzMK6rcm/U4kgV3hqiPqFQ/eehiBN+FJX51PMMP1XvyrDfiBMHuhruhNL BsCZADF3JJkOCTIW7GVezysOWrqyfRQqUQxUrzh6RPkWLVfPmo9jHAtMzHJxy8zsLx1/ ljFFNMvoc0W6uftJKJOIj+/VOHXFCtgucfOriLKYiUGxhw2bi0nl/eHHI8Ydyui8kxa6 XIXzQKgcdRbIVJEtSamOJF4GE4BcUhRVRsEwGnNzQ+vIe9ar6kG/0U1ptZEN6+EPB371 LP6Q== X-Gm-Message-State: ALyK8tLRhPiRrWEpVEoUHQwYb78OUsaG0CLaaGFhBukGknEO6/IIZOmPbrF7dnZxqfFzhQ== X-Received: by 10.25.43.202 with SMTP id r193mr1245009lfr.80.1468333516509; Tue, 12 Jul 2016 07:25:16 -0700 (PDT) Received: from [172.28.88.19] ([172.28.88.19]) by smtp.googlemail.com with ESMTPSA id 5sm609457lja.34.2016.07.12.07.25.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 07:25:15 -0700 (PDT) Message-ID: <1468333513.30694.74.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: WARNING: CPU: 0 PID: 0 at net/ipv4/af_inet.c:155 inet_sock_destruct+0x1c4/0x1dc From: Eric Dumazet To: Mason Date: Tue, 12 Jul 2016 16:25:13 +0200 In-Reply-To: <5784BE36.8060200@free.fr> References: <577BB72E.3020904@free.fr> <577BC94A.4060204@free.fr> <577BD201.2040202@gmail.com> <5784BE36.8060200@free.fr> X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160712_072539_479195_5220DDC8 X-CRM114-Status: GOOD ( 17.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sebastian Frias , netdev , Florian Fainelli , LKML , Linux ARM Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On Tue, 2016-07-12 at 11:53 +0200, Mason wrote: > On 05/07/2016 17:28, Florian Fainelli wrote: > > > Le 05/07/2016 07:50, Mason wrote: > > > >> On 05/07/2016 15:33, Mason wrote: > >> > >>> I was testing suspend/resume sequences where the suspend operation > >>> fails and returns without having suspended the platform. > > Please forget I ever mentioned suspend, that was a red herring. > The warning is displayed even if I never suspend. > (Dropping linux-pm from this discussion.) > > >> I rebooted, tried the same operation, and hit the same warning > >> still 310 seconds later: > > However, the 310 seconds time span still seems to be relevant. > > Steps to reproduce: I booted the system, logged in as root, > mounted an NFS file system, then left the system idling at > the prompt. > > (I don't remember seeing this warning in v4.1 and v4.4) > > What's going wrong here? Is it related to NFS? > > Here is the defconfig I'm using > http://pastebin.ubuntu.com/19160299/ > > Regards. > Could you try this debug patch ? diff --git a/net/core/sock.c b/net/core/sock.c index b7f12639c26a..7fb1aeadbda7 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1465,6 +1465,7 @@ static void __sk_destruct(struct rcu_head *head) void sk_destruct(struct sock *sk) { + WARN_ON_ONCE(sk->sk_forward_alloc); if (sock_flag(sk, SOCK_RCU_FREE)) call_rcu(&sk->sk_rcu, __sk_destruct); else