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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79317C54EBD for ; Fri, 13 Jan 2023 05:14:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231162AbjAMFOY (ORCPT ); Fri, 13 Jan 2023 00:14:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbjAMFOO (ORCPT ); Fri, 13 Jan 2023 00:14:14 -0500 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C416660871 for ; Thu, 12 Jan 2023 21:14:13 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1673586851; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eCjBifg6k1S0wrcDOQxh9S/ldCQazwMMhaP8Gj/SdBM=; b=J0+GAUmgY3R6HJL/4yz9uGsMBxB9UmBcvLZWbSTitc6lWU6A7pqcRHW2C3qpynFn5u7t7w EAg0Xvd8IAVfpYBbbSClr/+ANR2tAIZNd0GK4CgrguGJQZ5xyhvytHcCpIhUvxf1LoJU3J piY2ITW7fWj0uiNkz/HudkJggvx9b7Y= Date: Thu, 12 Jan 2023 21:14:05 -0800 MIME-Version: 1.0 Subject: Re: [bpf-next v5 3/3] bpf: hash map, suppress false lockdep warning Content-Language: en-US To: Tonghao Zhang Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Hou Tao , bpf@vger.kernel.org References: <20230111092903.92389-1-tong@infragraf.org> <20230111092903.92389-3-tong@infragraf.org> <7e6d02ea-f9f7-2d09-bf10-ccd41b16a671@linux.dev> <97068F10-C869-4FF3-8FE0-21FA6DA82D98@infragraf.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <97068F10-C869-4FF3-8FE0-21FA6DA82D98@infragraf.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 1/12/23 6:17 PM, Tonghao Zhang wrote: >> I am not very sure about the lockdep_off/on. Other than the false warning when using the very same htab map by both NMI and non-NMI context, I think the lockdep will still be useful > Agree, but there is no good way to fix this warning. I applied patch 1 to the bpf tree with the 'Fixes: 20b6cc34ea74 ("bpf: Avoid hashtab deadlock with map_locked")' tag. Thanks. The commit message has a link to the test. Not ideal but keeping the lockdep is more important.