]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bridge: Add missing READ_ONCE() annotations around FDB destination port
authorIdo Schimmel <idosch@nvidia.com>
Sun, 17 May 2026 11:50:09 +0000 (14:50 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 May 2026 01:13:01 +0000 (18:13 -0700)
commitbcdfd9fb109e0c9d76c345b2346b6b75ed1f476d
treea6e656b674d3c41e925a04fec9c7976ad77518fb
parent65d6d1fa50933a056305ba3f743dfb9d74cead39
bridge: Add missing READ_ONCE() annotations around FDB destination port

When roaming, the FDB destination port can change without holding the
bridge's hash lock. Therefore, add missing READ_ONCE() annotations in
both RCU readers and readers that hold the lock. In the latter case, the
annotation is not needed in places where the FDB entry was already
validated to be a local entry since such entries cannot roam.

Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260517115009.175163-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_device.c
net/bridge/br_fdb.c
net/bridge/br_input.c