]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
eth: fbnic: take netif_addr_lock_bh() around rx mode address programming
authorDaniel Zahka <daniel.zahka@gmail.com>
Wed, 17 Jun 2026 10:39:49 +0000 (03:39 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Jun 2026 01:36:26 +0000 (18:36 -0700)
commit96e7f9122aae0ed000ee321f324b812a447906d9
tree85fe447ae9c0687faedd8f6442abcc9160b40a12
parentbda3348872a2ef0d19f2df6aa8cb5025adce2f20
eth: fbnic: take netif_addr_lock_bh() around rx mode address programming

When __fbnic_set_rx_mode() is called from contexts other than
.ndo_set_rx_mode_async(), the uc and mc addr lists are accessed
without the addr lock that __hw_addr_sync_dev() and
__hw_addr_unsync_dev() require. Wrap these unprotected accesses with
netif_addr_lock_bh(). fbnic_clear_rx_mode() has similar issues.

Fixes: eb690ef8d1c2 ("eth: fbnic: Add L2 address programming")
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260617-linux-fbnic-hwaddr-v1-1-3f9f5dee7f99@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c
drivers/net/ethernet/meta/fbnic/fbnic_pci.c
drivers/net/ethernet/meta/fbnic/fbnic_rpc.c