Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp237332imm; Tue, 16 Oct 2018 22:17:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV63KFrQxbOUX6i1+rQz4RvyM6ewvMADXnIFV0QNkZfQQC4xUENo/QlyPsAWXqsm9dfFI7mST X-Received: by 2002:a62:210:: with SMTP id 16-v6mr25957562pfc.100.1539753467328; Tue, 16 Oct 2018 22:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539753467; cv=none; d=google.com; s=arc-20160816; b=HVFqvecXIPj9FHN8p8umwU/NJTwcNVa8EBSO0Na4A8UQROl+V2vMlDvuQZ8O7Ze26J gLjpZxM5iL2o88M4quk1impBON2OqNxfNMTvHh+A885hExLwmegMB5yGiOhkz2sWLUeJ y0yULr9kD84DOHHQcRE+/bDzJUHLephkc0pUZSayEPr76i1ym73yC10KrLkUB/GV4EcC Wyh08374QDzZJDgakmWB5kfSHfQvXEX96VONGLKD6ZIvPLsEuE46Q4Lj4bPSEEU9QtOS SpdNCD3nWOAbWjz7/omP+M2gYbMZ/4I9yInLPV2BX7/MF/5EfpEzZwCh0SyTxOnxzT/Q Ll7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=e098GeBfTphcH0PH7t4yQNR+i4RKSMtfZ+HDTdincjo=; b=rr54aOqA4QbT1mbzY3hCwqE2KUtK9wEM/VVaVi/vKyISytyzmiTL8hcsbxrxcxY2aE ReUxU4N1ikDZ26wV7NyB0DY2rdOVovcA2c1Ap686OKRnV9u0gIflQFJFH2g31m4/TH/O yks+24KjJP2vO0KvbyRmYkt5PremmuZJPglMtTT2Ss1J7Rbn56/27aNN/PNQW6V5h/Ak 3EFGJN+HsHkseOhqOL+5w1oPLrAa26W8bn6MHFYa8xqXP05N94h3VrTP/zOXza++d06Q fI1u6goPd/9+0avLWc46OxWAK5pr4DfQzAwRf+DH/s2YUQpd2e9huT+44h5yDI5u+PDi ZCOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F3HrcGq2; 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 w8-v6si15870757pgj.584.2018.10.16.22.17.31; Tue, 16 Oct 2018 22:17:47 -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=F3HrcGq2; 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 S1727141AbeJQNLB (ORCPT + 99 others); Wed, 17 Oct 2018 09:11:01 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40198 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbeJQNLB (ORCPT ); Wed, 17 Oct 2018 09:11:01 -0400 Received: by mail-pl1-f196.google.com with SMTP id 1-v6so12086330plv.7; Tue, 16 Oct 2018 22:17:09 -0700 (PDT) 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; bh=e098GeBfTphcH0PH7t4yQNR+i4RKSMtfZ+HDTdincjo=; b=F3HrcGq2LpAciRrLAvsSzQEU6AwZQXJTvEO269ib2AxFfy8eRk153ctTayNwUkV6q8 9Grs+TnqMhJIh1Otw7wtlkzMqMyFk8mg+rV3QJ2MKYWuJcI5s+cj+attupZd8iQbHzYu /LyEJq9OhjcXj1wC1rQnNlueTTKGfbOzzI7E4ItNvCImrjftlzkKkRKd7Ta4SSawcLPr Wte2NHKt3BexxtmXYhoYbJdt39l1ECJ5LBZhu4ACcF7K+mIr36t52KcXjN7sncWa5xMr q6vq0Ts8dfQdpJq7L4S3oIRT4DJ7v/tXlkGp7nC8KYAk0P0s3zFDc+KtWDAp7/j+7s8t +7KQ== 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; bh=e098GeBfTphcH0PH7t4yQNR+i4RKSMtfZ+HDTdincjo=; b=aNVnhoWTvk6cnkrOAgyWLuBNTyMTAX+VVDrdEtD0VqzAWYCA7qUUo+XxbUX0N5GNYN Cp0teE/mSE7rH6QIMoNEBZB5cljlgMru83vIVT4mVBraGDnSjYJDmYZNoJOYJVfcu6T1 Jsi2Umn0Tlozu8GGANWrPMMbzwos8YHPZOV5DHUFabbBbERmVsL2Jr8kEVJS2gLr9ya+ cZQ9MqRLne6ud9uEi7EmucItOzIT6TbBE9eRquIBqhd3E6JS9PescaO5BW+CWSTOnsjS 0uxxygTvI6S1nwDLwXNGqUfvjIVZ8+cd2CtAfxB3q1jQwltIZd8TphkJV87Ly9vBelr8 EYcg== X-Gm-Message-State: ABuFfog0mmQ1a4CpeZp4GEABYfwqh4hdrfh8c/FHf2wYSc5Bt4haiQQg 4x8J6dL9tpCGryTMj3AJiVkIfXZHdzWKrywr+qLXIWFa X-Received: by 2002:a17:902:bf44:: with SMTP id u4-v6mr13651263pls.48.1539753429200; Tue, 16 Oct 2018 22:17:09 -0700 (PDT) MIME-Version: 1.0 References: <20181017034047.nrhstc3b4wzevnri@codemonkey.org.uk> <20181017035038.czaqown24rnjn2pw@codemonkey.org.uk> In-Reply-To: <20181017035038.czaqown24rnjn2pw@codemonkey.org.uk> From: Cong Wang Date: Tue, 16 Oct 2018 22:16:57 -0700 Message-ID: Subject: Re: netconsole warning in 4.19.0-rc7 To: Dave Jones , Meelis Roos , LKML , Linux Kernel Network Developers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 16, 2018 at 8:50 PM Dave Jones wrote: > > On Tue, Oct 16, 2018 at 11:40:47PM -0400, Dave Jones wrote: > > > > This is exactly what I mentioned in my review here: > > > https://marc.info/?l=linux-netdev&m=153816136624679&w=2 > > > > > > "But irq is disabled here, so not sure if rcu_read_lock_bh() > > > could cause trouble... " > > > > Not sure why this didn't show up for me when I was developing that > > patch, but I can now reproduce this. The patch below fixes it for > > me, but I'm not sure if there are still any side-effects. > > There's also a missed unlock in the error path. > > I took another look at that error path. Turns out this is all we need I > think.. Double check if rcu_dereference_bh() is happy with it. Don't trust me, enable the relevant Kconfig and trust your test. ;)