Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1123701ybl; Thu, 23 Jan 2020 14:07:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzT2s7e1Bzfrm2WOGY5hYBaXO3qXtDf9+moAppKLWg4Sk3AYW629g5UMcUpH37C4wNOGuZl X-Received: by 2002:a05:6808:a8e:: with SMTP id q14mr31653oij.173.1579817233034; Thu, 23 Jan 2020 14:07:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579817233; cv=none; d=google.com; s=arc-20160816; b=T+xThU+Pxc+mvYI0HDNYj5iKRk1/AihOQAOS86aLBFzOoFORiKibcxGzCKCbwBx8RH cFOKMlfDUsKDp2dhTrtPMZ+hEFb2e3o56tOyF61yAu2yFsEaqdwE9sh7LvgpVy5h6elK DJXdpVnHmcKIWUH12CR5l/6hRfZCk0pqG2Gtq3IdFv8AuHmc8oLOcaTqpeo31QaSPnvv 4Q0jDb5/UZ2ss5Q0xdwj6Syrl7SObLE/Lf4gd3FuNY/lQqmVifB4MM7gPTqdEbh8tXDu fewWSeQn8u1L/p3i83vuwp0GqFNEdJeIK52bJHxey0R8Xn/eEuBMlmXy+jLjAekBMrK7 oXQw== 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; bh=Hm39vlG30YM7MZLWAg6Z9AEJ86rdaInbOAGJbzkMcHo=; b=VSBXUMJmmFTAzyJ9R6adkiHdkqqqjBKiyy5jJQMqLuKIE8b87PzZ7tSICmckgS+LxB SOi+CZRdzpFucN+CZybDyAsHUjGxYk7L+2JrTKnUH1Bv4MWv7KjaTV1F4xbOLpTd45EC pfLOx5EjcA7eOma2qIlMDywHwkkGoyMFtNP4QH81rlU1u8XnNbaV/PqRYepuIFxBA5jp szytCPe1W78YOFRm8LH5C6FuPEV1sPv4w4ZdZEh4tU1/Ws2mz5q9WP0dkiE0qBeuC+Uy AXdWGAXeJgGPDUlDq2bTLV5PNnkHRplInhDhYg60PCbXxrxSgL6B2+zncI2FdaVr4NMc yigA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si1870708oto.129.2020.01.23.14.07.01; Thu, 23 Jan 2020 14:07:13 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729144AbgAWWEo (ORCPT + 99 others); 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!