From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f43.google.com (mail-pj2-f43.google.com [74.125.227.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8E7A390999 for ; Sun, 20 Sep 2026 17:06:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789924004; cv=none; b=Gso7kCESiUv2iSGANOYh5Q7if0f1IT30VaUfStJU+/21M6GFj5Of5YUffzkCEMdtAqvyvTM4VOPzo1+M3QSY9bpGV0M6ic/s2yrRNMM0FBhkd+XqdHgfkFhKf0FWv1q+SjNFGRv8OmCCu7vuyCWbla2ILNGuVCI+4C6aK1wWO3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789924004; c=relaxed/simple; bh=anUHqomupBKyPucADmKWr9oN0Lgpc9m6vAMueRhAlHM=; h=Content-Type:Date:Message-Id:Cc:Subject:From:To:In-Reply-To: References:MIME-Version; b=ij9ahJojMbEm03ufN4H/fPxM9tEC/g/qtL6npG873plb9IEBcSbeaDLLhAiZXq5rSxrBa3FliPTKdGbUCYdhqBnD2t4WcTpST8yPPHYS1RIwDUwCK8Q0NJhPui4Lmx/I2aQ0ntaQSiALnsm9Oi8Slv2gUm6Lf5P0Fvb+A8uSsyo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nxIcDwdW; arc=none smtp.client-ip=74.125.227.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nxIcDwdW" Received: by mail-pj2-f43.google.com with SMTP id 98e67ed59e1d1-39e03468a5fso1989105a91.0 for ; Sun, 20 Sep 2026 10:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789924002; x=1790528802; darn=vger.kernel.org; h=mime-version:content-transfer-encoding:references:in-reply-to:to :from:subject:cc:message-id:date:content-type:from:to:cc:subject :date:message-id:reply-to:content-type; bh=KO1TTBeh5iVCqAjmzagpi1LUqmont0PjLJhUCpfZPPo=; b=nxIcDwdWDjBJZS9ID3vArupICAVAo9uuDSrADAxhxNFy7Br3c3xfHcCv4s2lW58eq9 ka7dfoKV3Qm21Ij8lojw5vilLHVik4UMe2ubopT7aDZXzH9pBXNf1GPdHJyNlprfKFMj 5LY0/j+n3sHrmBO7GfHMrFKQoyxX3jo8MQa+jOgea2rTdW5o/Z50odX+/dCoT5IfJWjd BIW4k4P1raSU/506ZdtdXZYKQJApsGpyOhOExFWDPmjDcMvuFJHK8AEnRr+/jzy5cHT3 o28Y1eeHIFe//C5JFHIbCT0mFYuOraLLo2yeHrED4eTlZRukUknUVy6kFW5UhhZ9JsS1 PVoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789924002; x=1790528802; h=mime-version:content-transfer-encoding:references:in-reply-to:to :from:subject:cc:message-id:date:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KO1TTBeh5iVCqAjmzagpi1LUqmont0PjLJhUCpfZPPo=; b=Cxs2wK7oUXsY9U5R9RjOrookpzdg6OEYHkF61M0lQ+T6RFxDBTaZ+Mezr6hy/kJmIO jfT1xIIScfNKbd5eADTUBQRq8v/O3/OJumhP4+NNZx5C97lXOvuoFpEM3oHx5ThLiZnX 82gNT56HWh00DuftoVqyWri/0kmyYjQmIa94+OnP5FMp4a08SGn73qFOnf0e4UDbG3rW E6DBPLulwpfKuDcuQjWsdTjqxvUi/Nn6SQpHDU2IGf7e+sHOQ3rZrE5WVtGVGhUyCg7E qsfMbBBn/jmqymTS7yNt++oBANdEa6JZTTKY37ESIog7NYNGTiP9tOSkLrAH+sEDybyI Syng== X-Gm-Message-State: AFuF++l0V6U3zd8l0v16UlEzHl26B/PBIlCLExWP4lW7cQnptVFy+uS7 NetlKcxzyVt/q/92Z6yQOPybEydC4P3mtJBiRCElEMaT8zmkulBbuvLI X-Gm-Gg: AYBFou3/p2MJBB/37pHr8ezhKewQ2mHu2KK0Usn8ndSPEDJi1Ye1pXRc/sHvgkBlpGx oR54hnlemQxS5wED/kyaEZmueJnLtmntGcR1gGVZIpynAy8xlmwKXF3qMIOFYytF1jHaP/XzDxP t5qcQWNEkDAoGcZaXQVpo7eiGJS8EfpA/92jrTO+hsddp5DCfQw7e8yRVsauB5ZiL8kVvlwFWUA m4SsoAY/PdSJfPhmoDT+551fEjsbYBOf/7V/5xuSv1Svm8JWoGFGt3yX0C8wYc27Aecgst+6HsX HhO0uvVLCC3pfaEkffY+CCR26EjURJc4FCMOBgu2DgDEzKyaUR2tiBMzauSZapN0qDQCrxj3fu+ Q76AcMhBgVVT1NKxWdjKHW81cSNz9V2RRAmEO3UayYJWEhD7w4Z4TyLb9fggXtke7wHqN+EEjs/ W8vqI2j3iUDYo2AcQFDa77TYHfZN05PWTLNJLNTtyzLAz6JpI+YujFlB2hDryNe5fXDPYauewu/ x883a7UzZ+hjLtQfufyhoRk38ZuKS3GcxzyYZEoAMm4ZJ92DSuQYmUPfGb7li9LFT37JUKMqwTY N3k= X-Received: by 2002:a17:90b:6c5:b0:3a0:295e:6e58 with SMTP id 98e67ed59e1d1-3a0295e7719mr4719850a91.2.1789924002207; Sun, 20 Sep 2026 10:06:42 -0700 (PDT) Received: from localhost ([153.61.198.240]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a038ff8c39sm4175693a91.7.2026.09.20.10.06.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2026 10:06:41 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 Date: Sun, 20 Sep 2026 17:06:40 +0000 Message-Id: Cc: , , , , =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , "Peter Oskolkov" , "Xiang Mei" , Subject: Re: [PATCH v3 1/3] bpf: propagate cb_access from freplace programs From: "Alexei Starovoitov" To: "Weiming Shi" , "Daniel Borkmann" , "John Fastabend" , "Andrii Nakryiko" , "Eduard Zingerman" , "Kumar Kartikeya Dwivedi" , "Martin KaFai Lau" , "Song Liu" , "Yonghong Song" , "Jiri Olsa" , "Emil Tsalapatis" , "Ihor Solodrai" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Simon Horman" , "Shuah Khan" In-Reply-To: <20260920163211.795547-2-bestswngs@gmail.com> References: <20260920163211.795547-1-bestswngs@gmail.com> <20260920163211.795547-2-bestswngs@gmail.com> X-Mailer: mkdraft (claude review draft; edit before sending) Content-Transfer-Encoding: 8bit Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, Sep 21, 2026 at 12:32 AM Weiming Shi wrote: > Cc: stable@vger.kernel.org > Fixes: be8704ff07d2 ("bpf: Introduce dynamic program extensions") That shouldn't go to stable. Loading an EXT prog takes CAP_BPF + CAP_NET_ADMIN + CAP_PERFMON. [...] > + if (prog->type == BPF_PROG_TYPE_EXT && READ_ONCE(prog->cb_access)) { > + WRITE_ONCE(tgt_prog->cb_access, true); > + /* Drain runs that observed cb_access=false before enabling freplace. */ > + synchronize_rcu(); > + } tc doesn't look at cb_access at all, yet every tc freplace that touches cb[] now waits for an RCU grace period in attach. This is a separate issue from the LWT one. Patch 2 resets the cb after the run whether the prog has cb_access or not, so it doesn't depend on this patch. Pls drop it from this series.