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=e121vTIcktvn5ZcQsoryyquXI5X+mFGld5XcQrZV9yDhVB4WQ9OB4wtbwO6/kjimikTz WBACAr5UWsTJeatrPX1PxWMYpF9lb4VGD6G5/7dLtk0NudJjHidxNntH/4CAMQgK92twA PS2cNTcYuSGVCSTWEDszkbHT/9zqOCtK4CWqTAcqYN65C4EloW0fTQwMNqLXberUDvVMA 8so4TxXaQbRwXclGjrx4iY4GgXH7DCK3rCH7GA75MFp0rmG08dtpQCd+MHDYL0EJcN9m+ 4xQ7x/FNBWDg4lLWmfmPQ0XpU9gh3MFXKHWtBVG/qrE7p9LVATJ8SBb62Xu4RcGEGLQ== 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=TMV40pFWUdZXnOLz4+n0m9nRsfpmQuFdZT4QvwgJreDMcRA4nsxQjLNdCuANDbtgyuWU wgsoxxUtG0y8MpHt0UysS/0oR4r8YiYQ3stxAiluDVdCm2N4ZI1cY7vHst28vGezjoDXN AM6NwsefW5pIC8uMgPyPbZkFG7tlVM8zntHEvPfmMETrYGOkpffI5L/u25K4VixmrmDUK LrY9vB27arL7aZE04JQCU8oNtTZyhTVBnU/HfIvleV/CzQa0Q0q3W+fx0SXkWMk0q8tSD q2zMzTFRfH1InZ+oXI898jGWuPEMh0S7rxRIrMJ29Bv8RbkNLwWKYXTbJuwHLP0rr3g== 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 B7B3D606A320 for ; Mon, 30 Nov 2026 16:03:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B7B3D606A320 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-67994010b21so9341032d50.3 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=RfIwIarpMZVkw6utza5rDq6oaeUgNam6yfWX7fQ0zZqF6z31C1pa46DOYgCMykO37z VzR7NPzkM+j96Ajt7L0QScgUPDECjM3X/WO4Mxrk1UdkypAelyojkswwLFfFaFtbn6pw Y9IyXSOVDns16/tldi+kjWw1NfvrKWV3fWLfqUARzkLt0tNAb6l+pKheYKRV10s2nAfo VdvYqzmq5eSb+Id9oRn2L7xLyeVingGusUD9EUlnCBO0HhxpCEFIbK3jg8pBh+smOt5s d7qZb/Iky775Up3sMGQYqQCHVc/NplI2r+S0/l+3NwvijQAk+e6RukqhxG0lGUUuB0x9 9E1Q== X-Forwarded-Encrypted: i=1; AL+hErFpk5OsbRh7wz9BaoAXlrpwGpMoyKCwPTvcCR569ORShD2iWzbR6IfoBuPn8qz3nZtUdDM=@vger.kernel.org X-Gm-Message-State: APuU4Z9deriFQLQUXhUy6r9xiEMoqnSdhC5qGCOWyrJSAO3icJUcF19r 0scLPn6N93je590aDxRnRaFqV95Lxf/Itaz9J5awD8msqCKvc7Z4kWP2h+SklsC9axjgClVnqBn 2qikEc/zpMg== 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: bpf@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.