will…@google.com wrote:
> Rongguang Wei wrote:
>> From: Rongguang Wei <weir…@kylinos.cn>
>
>> 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.
Sorry for the stale changelog: that text described the plan, not what the series ended up containing. v13 will drop the net/core/filter.c hunk, so the series is tun.c plus the selftests only. The export removal will follow as a separate net-next patch once the fix is in, which is also what Alexei asked for originally.