From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796054599; b=pKpBWYKjE7I3p12ivth73rXfNL5Zj6cW+JaCPB75j0/vWLI0R0SGOXnU8xDqlxGJ26ia lMGoym/vaNdLdhqujHBqss5sW/gbaOCTqHuS4+AtxeUssdwx/eBvqdEZAeYmzX+HMQ5Bo tXxsSXfS8y0IBcayr1wWzFh649Ox8GiCLwcXWbLvXsP+K6dpQwdJS9QjJNXBE39U2GczJ OE8hdMD+s5rrIHTCC1MmzP6HU38JxdILWuEUuO7RJ5V99EUVwqEB9QM2ceiSxAQZy7YLi hmK8mPTkxhiHTMscKZk6QjW5XyZTUlL21/mtT9GhG18bEcQD/3UNvPZeExrs/cebLuw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796054599; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=6s0fK10rztRMmKt7ubSiHLG3VYVHf0xa3ALnukP6mow=; b=Yxfr6eDNjViXiCsHeGkTza/isned6/kMxqUk8u5zma+1qQR3NEBZ395NaN4jp20Tmzvd xLtvOuYgfSrXC1t87GmcZ1Je+toe2WsFZK4Ba778q8zTmw8/r9V6zptX0BAPeFO3gNxb9 iLuyk69lFGk0BXSP/nVCXdlxDtQd6Yl5+vDpt9+4fl1T4INyJeSqiZ4iGzMCHRx6W2kIl eRXFwSCz9xbWY3QkeX0CpF+2vXICpTceJMPqxqv3LFjZpcu2HgGxPatL62iuU7heZeyb2 6p8C5viQM1iFQCQ29SlWZMW+ckkmVzAQygn+2v5BATRUp8I9QbdZzEKd1rnk/C00X4Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=elixMNZ0; arc=none smtp.remote-ip=74.125.224.72 Received: from mail-yx1-f72.google.com (mail-yx1-f72.google.com [74.125.224.72]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7A35606A31C for ; Mon, 30 Nov 2026 16:03:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B7A35606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=elixMNZ0 Received: by mail-yx1-f72.google.com with SMTP id 956f58d0204a3-67e653b3a70so3406278d50.0 for ; Mon, 30 Nov 2026 08:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796054598; x=1796659398; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6s0fK10rztRMmKt7ubSiHLG3VYVHf0xa3ALnukP6mow=; b=elixMNZ0W1eaCZ8c31WGGjf/nk2dAVVI6xaNH8KOQxYDjZxa9bz0lctjY+6rsMK1x5 4Yd74Y9JIeCGMRl7RrAgbcnZoX3nm6NqUkR8fo70vp5OghBdPOX0/cywHRK5wpHgJKn5 Y7Ra24pqqKDhtBZSoNOi8ccEURL0JtMyxbAwq2/oAj4YIbV5VVmBqgWP1NTm8H0Y91gd uaYp3QXrZm6fZsH9pJnLzQ99pE7/wxFKxaz5NhZEAAP9KqwLCgiEgfjs9GD3LhjcDOlU Uvlt3ULOhmYVWWO+itoowKwzLPrIM21StgdwZUrrAYFP3V03BxAGblcojKjkmJt6a2v8 XnAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796054598; x=1796659398; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6s0fK10rztRMmKt7ubSiHLG3VYVHf0xa3ALnukP6mow=; b=JpFyebrAYjX3f2VQNeasvT/BD5YMVyVXWgBm6+m+Ilq7luffLhu3IGFnLsf0TNxRJn MElEyTmzbT5O2ueezDKVn/ltLe9lQYykCT1Mii7+24D6kK1fkBMAAnWf35n4ugr2YUC5 huC41Dnp8uupw6q9HI7WhYgzHF4fLC0k6bKwOeMg+QkpZ0VQzQajwmGAwngIXEman6Ab VYIzmO6jzq3SbWcQTvlphG48RfJKGSxvFCeTR7XAggajZuZpt6EHM+cBOV7kyfSZV3et OoKleUMyqhNYLqRwraLul5Uly+G3fGLeu+qMjDUn/438H/KbD+WpshXvpb6wr0yrWKeb +ESA== X-Forwarded-Encrypted: i=1; AL+hErE0riZ3RGPzGTLzkaSsDmGrEUJfjX3pOz8kAnzinQ2lB8o6Fh53IYE59i3PbuASCCxQu4VpLJE=@vger.kernel.org X-Gm-Message-State: APuU4Z8aqbzKdg7smO7WGyz0mRD7XGxHiHP69YJFO9pqCacjx1ED4djp hKAyqjz69NrPpoVneVhlx4nieHmPfBSUit7AatbqzbOww8S0r8/bsllpPcFP1ykEz38nUp4D/3j 1gnmnpBampA== X-Received: from qvsz7.prod.google.com ([2002:a0c:fec7:0:b0:921:a51e:14b7]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:690e:1407:b0:67e:64ae:914d with SMTP id 956f58d0204a3-67e64ae981emr6267496d50.24.1796054597480; Mon, 30 Nov 2026 08:03:17 -0800 (PST) Date: Mon, 30 Nov 2026 11:03:16 -0500 In-Reply-To: <20261123054209.89946-1-clementwei90@163.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261123054209.89946-1-clementwei90@163.com> Message-ID: Subject: Re: [PATCH net v12 0/2] tun: fix re-attaching the socket filter From: willemb@google.com To: Rongguang Wei , netdev@vger.kernel.org, bpf@vger.kernel.org Cc: willemdebruijn.kernel@gmail.com, jasowangio@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net, kuba@kernel.org, ast@kernel.org, alexei.starovoitov@gmail.com, andrii@kernel.org, Rongguang Wei Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Rongguang Wei wrote: > From: Rongguang Wei > This series fixes attaching a queue to a TAP device, which re-installs the > socket filter of a persistent device. > TUNATTACHFILTER keeps only the sock_fprog header, so the instructions are > read from user space again for every queue that is attached later. Keep > the program on the device instead, run it from tun_net_xmit(), and record > IFF_NOFILTER per queue. Patch 1 does that. Also removes the exports of > sk_attach_filter() and sk_detach_filter() because no caller in a module. > Patch 2 adds selftests for the re-attach, for bad programs with and > without > queues, and for the IFF_NOFILTER paths. > Thanks to Willem de Bruijn and Alexei Starovoitov for the reviews. > --- > v12: > - drop the EXPORT_SYMBOL_GPL() of sk_attach_filter() and > sk_detach_filter(), as Alexei asked. It is a cleanup on its own, so > it > goes in a separate patch and the stable backport of the fix does not > carry it The v12 changelog is stale (as Alexei noted on-list) and contradicts the actual series: the EXPORT_SYMBOL_GPL() removals in net/core/filter.c were folded directly into Patch 1/2, which carries Fixes: 54f968d6efdb. Dropping exported core networking symbols is a net-next cleanup and should not be carried by a Fixes-tagged net patch destined for stable backports; please drop the net/core/filter.c hunk from this net series and send it separately to net-next once the fix lands.