From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6872530C163 for ; Wed, 8 Jul 2026 11:11:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783509065; cv=none; b=tagaik5TWScfyK05VHKrs8eg/hsyUftNH+zMVCJi7XcsQxjRjuaLMzMHe5sTPHNjunc5PDIY1V0UdIdkBuQyVH/o8SatEzlSUWsYMRXYL8uIjndeSoYkUZamycgtnXwxK0IXEImYxwrtaKYF/Y1/4xXDfXtsemNs1MolH5rcRaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783509065; c=relaxed/simple; bh=n0OkkOmzJPAfgbOcvsqxZh0snn73P+M4j7p27YvFEWE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LluJqL/riio4inN17BKXHbo1Ja5TVDYcH44CEnksMdhbGSOZYmHuIuoEUWnMJ4MkjD2+AemLAa9IDTuVtUbpsMp2Y0vNhRxFjf4QYd927y28spOmrAhr+RsjxIFdx/1U+9OrzI1jyZC8DhaKjPWo3ZTwRGJHWWBxsx7c8SjM5vE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=CFIgjtoP; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=M9/aQY/D; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CFIgjtoP"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="M9/aQY/D" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783509063; 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=pESh/hqfKy3ZBCrzaDf99qD5EsUmEk/AYfZwryKhxdY=; b=CFIgjtoPI3k6VbuuicvZOahzctjB2k6h6KLfmQqLKUIt038w+6kNk21ivY6kQB43tbknBC cA+BKQ3tXFCyflJ4iYnoafZAH3gbw2bi8dAUw0zAE67Ob8rEasxTKjpbmZe95sKgvuGuab Yr51vHloLBG8rbZXQVhHe4kBVrONR6s= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-151-TBYPyy1bO6yymefmkPIodw-1; Wed, 08 Jul 2026 07:11:02 -0400 X-MC-Unique: TBYPyy1bO6yymefmkPIodw-1 X-Mimecast-MFC-AGG-ID: TBYPyy1bO6yymefmkPIodw_1783509061 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-493ce4b7777so4860295e9.3 for ; Wed, 08 Jul 2026 04:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1783509061; x=1784113861; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=pESh/hqfKy3ZBCrzaDf99qD5EsUmEk/AYfZwryKhxdY=; b=M9/aQY/DtxOkeyk1CUJ/zhBbU4bWwsDFONm5ZQgPegPnd1+Gj+jKRLEgOFyvcDmENt ad+JT4JG4xBI7y1wFAnSEmPaIaUXd8dwIU73Bqoza07GUSsVJRq46RNZVL0bqj2i0Wxx D99X+MORknJ5mzNMZL6zcreSpMDT5xuxfdqR1EWIUQtZFDVoxABeOhtxXftuQZAqZDty rtCFnEPZ8jL3+NF4+71uoguGFNfVOexmey1BucKOrFLk+MemDQi8VN+TPmrihqxBLwaa kv+RNXHnww7xtwkAziRTFPext2nQCq1dunKUR0pU2DxBHxR0+nc8bjIIzzW2XnCQdbzX XPZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783509061; x=1784113861; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pESh/hqfKy3ZBCrzaDf99qD5EsUmEk/AYfZwryKhxdY=; b=NWpaqIhD9LSs8skXSvEcOuTjZ1PHmDpRvSCoEcHV1PXGiA35IJItp8lVUj81rrZ1sn h79sEWgeWP0b1MwR2u0TeGrHZg/Mtz6lvbv/d9PiR08nv6A0Y+/e/zvBABDiZwhHVTgC APMXxP+VCHMNqp8fU8BnNDDD1xY65+MeAx8T5lbP8pDQsV5FS+gpRG70K3Sah49HX8Px kElVqb7JZjhv6/nEXnSiYKjVdWvG1KcKmXehIDfMdJP6Y1n/vd2hQFeib5eZnqwWOMWN iJJxMDwROUmk5lBF+cdLMV6vV1oKCxXkizXGFHW54t/Jgy5shAXmW2jIbNrhAX0jdZhk V7nw== X-Forwarded-Encrypted: i=1; AHgh+RofLmaaVyCX3QfutSLaeqkROosM6mnTJVrtj4/RxX59avBTWFBArmLIaOvIpIjElhyFNIsBwuyWCrCQEBc=@vger.kernel.org X-Gm-Message-State: AOJu0YyElAKOZ2urMQbZJemOUmQpuR3yJdTao3LCYVw+At3GVjwJC2e/ UsT12odJPmI5+n0nZ5XcUkqp3hjdtpGzJF0IOvETizGIa+rAGNeOycTLkCy5aqWpon4IHGHZy1W q0KqM2sH9BJfbJByT5PsjH8fX4z268J8yCtBGRUF6beHEVh99wsSz0T/89NBbgLiOjg== X-Gm-Gg: AfdE7cmGIx9Kvbk+MhosuPBm81uUw1ha80OpFeHDBhZHhmdy0vI7bd4CrxrnRLCZE17 2UPnyFgbf3m4OcCdcVcEeammoNym5i9hrSCK8Kivr3ZCMu3F+jWaeSsTGc6uDV+x5SFsGIeiuAo e80b6HLqV1qdMdMDnxlfwbGXmOY+W41gD6baDatITW4dFtAKpLop2ULbAqsO5Ml+YPHfCnhKX2j F/OL1jzoqHE0l+jPzqqI/jWYOX5h/TaTeo6hh/l2aI1NXTAhed7v4qf1v2W1L8ihhxWw2eGJHzq RFvH7/qurY+opWH81DBN35qb8vgwYafte6H/MLVsNfZPcLtq5QmQsBfG4vG2PzdfxcYMvw0JaS2 r0i/w/wZFL9bkl9QBOr01EutcMLXPEmqtQcVcDZtx3aK5FnN7uSdyeuv7obvfS6Aej34ay+5nI5 HP6H0OScMXwP97 X-Received: by 2002:a05:600c:4f91:b0:490:be14:bfda with SMTP id 5b1f17b1804b1-493e6859a48mr20208835e9.6.1783509060906; Wed, 08 Jul 2026 04:11:00 -0700 (PDT) X-Received: by 2002:a05:600c:4f91:b0:490:be14:bfda with SMTP id 5b1f17b1804b1-493e6859a48mr20208335e9.6.1783509060414; Wed, 08 Jul 2026 04:11:00 -0700 (PDT) Received: from ?IPV6:2a0d:3344:5521:6b10:58fd:68f:7756:389d? ([2a0d:3344:5521:6b10:58fd:68f:7756:389d]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493e0f5ca1fsm140639445e9.15.2026.07.08.04.10.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jul 2026 04:10:59 -0700 (PDT) Message-ID: <8d5fe948-6979-46be-866a-69a98ee391d8@redhat.com> Date: Wed, 8 Jul 2026 13:10:58 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] gtp: annotate PDP lookups under RTNL To: Simon Horman , Pablo Neira Ayuso Cc: Runyu Xiao , laforge@gnumonks.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, osmocom-net-gprs@lists.osmocom.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jianhao.xu@seu.edu.cn References: <20260701123925.3193089-1-runyu.xiao@seu.edu.cn> <20260707142820.GG1364329@horms.kernel.org> <20260708103525.GJ1364329@horms.kernel.org> From: Paolo Abeni Content-Language: en-US In-Reply-To: <20260708103525.GJ1364329@horms.kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/8/26 12:35 PM, Simon Horman wrote: > On Tue, Jul 07, 2026 at 04:51:12PM +0200, Pablo Neira Ayuso wrote: >> On Tue, Jul 07, 2026 at 03:28:20PM +0100, Simon Horman wrote: >>> On Wed, Jul 01, 2026 at 08:39:25PM +0800, Runyu Xiao wrote: >>>> The GTP PDP lookup helpers are shared by RCU-protected data and report >>>> paths and RTNL-protected control paths such as gtp_genl_new_pdp(). The >>>> helpers walk RCU hlists, but they do not currently pass the RTNL >>>> condition for the control-path lookups. >>>> >>>> Pass lockdep_rtnl_is_held() to the PDP hlist iterators. Existing >>>> RCU-reader callers remain valid because the RCU-list macros also accept >>>> an active RCU read-side section; the added condition only documents the >>>> non-RCU protection already used by RTNL control paths. >>>> >>>> This was found by our static analysis tool and then manually reviewed >>>> against the current tree. The dynamic triage evidence is a >>>> target-matched CONFIG_PROVE_RCU_LIST warning; the change is limited >>>> to documenting the existing protection contract. >>>> >>>> This is a lockdep annotation cleanup. It does not change PDP lifetime or >>>> hash updates. >>>> >>>> Signed-off-by: Runyu Xiao >>> >>> Reviewed-by: Simon Horman >>> >>> There is an AI-generated review of this patch available on sashko.dev. >>> While I don't believe that the issues raised there should impede progress >>> of this patch you may want to look into them as possible follow-up. >> >> This patch refers to the rtnl_lock, but it is the genetlink mutex that >> protects updates on the PDP context list. >> >> Then, from packet path, rcu lookups are performed. >> >> I think this patch is not correct. > > Hi Pablo, > > Of course you are correct. > Sorry for not realising this earlier. Human slop here made me wrongly apply this patch. Could either of you please share a formal revert? Thanks! Paolo