]> git.hungrycats.org Git - linux/commit
xen-netback: defer xenvif_mcast_addr_list_free()
authorJan Beulich <jbeulich@suse.com>
Fri, 6 Nov 2026 16:07:01 +0000 (17:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2026 18:18:30 +0000 (13:18 -0500)
commitfb38fc58acb26d74fe8f7b19621fafaae3c040ff
treedcbeb5c9bdf8854d1d38a586f91960bad1a9c418
parent4867687b6ad28ab84bc0811d8f8f9972e769da02
xen-netback: defer xenvif_mcast_addr_list_free()

commit bfddc420afe827d9f06458cdf8087cd602f8c9cb upstream.

In order for the function to legitimately avoid locking/RCU, it needs to
run after all TX/RX processing has finished/stopped: Lookups happen from
xenvif_start_xmit(), while adds/removes happen from xenvif_tx_action()
(called out of xenvif_poll()).

Move the call out of xenvif_disconnect_data() (the call to the function
from connect()'s error path doesn't require any cleaning up there), and
put it past the synchronization point in backend_disconnect().

This is XSA-527 / CVE-2026-100081.

Fixes: b17075d5c198 ("xen-netback: fix race condition on XenBus disconnect")
Reported-by: kerhunt <kerhunt@proton.me>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/xenbus.c