From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38B61C33CAA for ; Thu, 23 Jan 2020 22:04:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D07D207FF for ; Thu, 23 Jan 2020 22:04:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729180AbgAWWEo (ORCPT ); Thu, 23 Jan 2020 17:04:44 -0500 Received: from www62.your-server.de ([213.133.104.62]:42932 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727215AbgAWWEn (ORCPT ); Thu, 23 Jan 2020 17:04:43 -0500 Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1iukaX-0004Li-4E; Thu, 23 Jan 2020 23:04:33 +0100 Received: from [178.197.248.20] (helo=pc-9.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iukaW-000K4o-HK; Thu, 23 Jan 2020 23:04:32 +0100 Subject: Re: [PATCH] bpf: devmap: Pass lockdep expression to RCU lists To: Amol Grover , Alexei Starovoitov , "David S . Miller" , Jesper Dangaard Brouer , John Fastabend , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , brouer@redhat.com, toke@redhat.com Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Joel Fernandes , Madhuparna Bhowmik , "Paul E . McKenney" References: <20200123120437.26506-1-frextrite@gmail.com> <20200123171800.GC4484@workstation-portable> From: Daniel Borkmann Message-ID: <991cab17-3616-4cb4-60f5-5fe235e5bec8@iogearbox.net> Date: Thu, 23 Jan 2020 23:04:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200123171800.GC4484@workstation-portable> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.101.4/25704/Thu Jan 23 12:37:43 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/23/20 6:18 PM, Amol Grover wrote: > On Thu, Jan 23, 2020 at 05:34:38PM +0530, Amol Grover wrote: >> head is traversed using hlist_for_each_entry_rcu outside an >> RCU read-side critical section but under the protection >> of dtab->index_lock. >> >> Hence, add corresponding lockdep expression to silence false-positive >> lockdep warnings, and harden RCU lists. >> > Fixes: 6f9d451ab1a3 ("xdp: Add devmap_hash map type for looking up devices by hashed index") >> Signed-off-by: Amol Grover Applied, thanks!