net/mlx5e: rep, Fix races between devcom PAIR event and uplink close
Subsystems (5)
Tariq Toukan
maintainerPATCH v2 1/1 net/mlx5e: rep, Fix races between devcom PAIR event and uplink close
From: Shay Drory <[email protected]>
mlx5e_sqs2vport_stop() frees each rep_sq and its per-peer send-to-vport rules (rep_sq->sq_peer) while holding only the uplink's priv->state_lock (it runs from the ndo_stop -> mlx5e_deactivate_priv_channels -> mlx5e_rep_deactivate_channels path).
The same rep_sq->sq_peer entries are inserted and erased by the devcom ESW_OFFLOADS PAIR/UNPAIR handler (mlx5e_vport_rep_event_pair/unpair), which runs under the devcom component write semaphore and takes no state_lock. The two lock sets are disjoint, so closing the uplink of one eswitch can run concurrently with a pairing/unpairing event driven by the peer eswitch, both mutating the same rep's vport_sqs_list / sq_peer. This is a use-after-free: one side frees rep_sq / sq_peer while the other walks the list or inserts/erases the xarray.
The add side (mlx5e_sqs2vport_start) is not safe either. It takes the devcom read semaphore only via mlx5_devcom_for_each_peer_begin(), which is gated on comp->ready. The PAIR handler does all of its rep work before setting ready, so a first-time PAIR runs with ready == false and start can list_add() into vport_sqs_list while the handler walks it.
Add mlx5_devcom_comp_read_lock/unlock(), which take the component semaphore for read regardless of ready, and hold it across both mlx5e_sqs2vport_start() and mlx5e_sqs2vport_stop(). Start still adds peer rules only when the component is ready, now checked under the lock.
Lock ordering is preserved: start already took state_lock -> comp->sem (read); stop now does the same. The event handler takes comp->sem and never state_lock, so there is no inversion.
--- .../net/ethernet/mellanox/mlx5/core/en_rep.c | 21 ++++++++++--------- .../ethernet/mellanox/mlx5/core/lib/devcom.c | 14 +++++++++++++ .../ethernet/mellanox/mlx5/core/lib/devcom.h | 2 ++ 3 files changed, 27 insertions(+), 10 deletions(-)
V2:
- Add mlx5_devcom_comp_read_lock/unlock() and use them instead of the ready-gated mlx5_devcom_for_each_peer_begin/end(), so the PAIR handler is excluded even while comp->ready is false.
- Apply the same locking to mlx5e_sqs2vport_start(), whose list_add() could race a first-time PAIR.
- Read esw->devcom once so lock and unlock use the same pointer.
- Update the Fixes tag to 898b07861565.
answer to Sashiko comment:
The esw->devcom lifetime race with mlx5_esw_offloads_devcom_cleanup() is pre-existing and not specific to the close path: mlx5e_sqs2vport_start() and other users (en_tc, esw bridge, shared_fdb) dereference esw->devcom the same way without serializing against devcom cleanup. It needs its own fix and is out of scope for this patch.
V1:
https://lore.kernel.org/all/[email protected]/
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +11 -10
@@ -506,10 +506,11 @@ static int mlx5e_sqs2vport_start(struct mlx5_eswitch *esw,struct mlx5_eswitch_rep *rep, u32 *sqns_array, int sqns_num) { + struct mlx5_devcom_comp_dev *devcom = esw->devcom;struct mlx5_flow_handle *flow_rule;struct mlx5e_rep_priv *rpriv;struct mlx5e_rep_sq *rep_sq; -bool devcom_locked = false; +bool peers_ready;int err;int i;
@@ -518,9 +519,8 @@ static int mlx5e_sqs2vport_start(struct mlx5_eswitch *esw, rpriv =mlx5e_rep_to_rep_priv (rep); -if (mlx5_devcom_comp_is_ready (esw->devcom) && - mlx5_devcom_for_each_peer_begin(esw->devcom)) - devcom_locked = true; +mlx5_devcom_comp_read_lock (devcom); + peers_ready =mlx5_devcom_comp_is_ready (devcom);for (i =0 ; i < sqns_num; i++) { rep_sq =kzalloc_obj (*rep_sq);
@@ -541,7 +541,7 @@ static int mlx5e_sqs2vport_start(struct mlx5_eswitch *esw, rep_sq->sqn = sqns_array[i];xa_init (&rep_sq->sq_peer); -if (devcom_locked) { +if (peers_ready) { err =mlx5e_sqs2vport_add_peers_rules (esw, rep, rep_sq, i);if (err) {mlx5_eswitch_del_send_to_vport_rule (rep_sq->send_to_vport_rule);
@@ -554,16 +554,13 @@ static int mlx5e_sqs2vport_start(struct mlx5_eswitch *esw,list_add (&rep_sq->list, &rpriv->vport_sqs_list); } -if (devcom_locked) -mlx5_devcom_for_each_peer_end (esw->devcom); +mlx5_devcom_comp_read_unlock (devcom);return 0 ; out_err:mlx5e_sqs2vport_stop (esw, rep); - -if (devcom_locked) -mlx5_devcom_for_each_peer_end (esw->devcom); +mlx5_devcom_comp_read_unlock (devcom);return err; }
@@ -630,8 +627,12 @@ mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv)struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;struct mlx5e_rep_priv *rpriv = priv->ppriv;struct mlx5_eswitch_rep *rep = rpriv->rep; +struct mlx5_devcom_comp_dev *devcom; + devcom = esw->devcom; +mlx5_devcom_comp_read_lock (devcom);mlx5e_sqs2vport_stop (esw, rep); +mlx5_devcom_comp_read_unlock (devcom); } static int
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c +14 -0
@@ -456,6 +456,20 @@ void mlx5_devcom_comp_unlock(struct mlx5_devcom_comp_dev *devcom)up_write (&devcom->comp->sem); } +void mlx5_devcom_comp_read_lock (struct mlx5_devcom_comp_dev *devcom) +{ +if (!devcom) +return ; +down_read (&devcom->comp->sem); +} + +void mlx5_devcom_comp_read_unlock (struct mlx5_devcom_comp_dev *devcom) +{ +if (!devcom) +return ; +up_read (&devcom->comp->sem); +} +int mlx5_devcom_comp_trylock (struct mlx5_devcom_comp_dev *devcom) {if (!devcom)
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.h +2 -0
@@ -79,6 +79,8 @@ void *mlx5_devcom_get_next_peer_data_rcu(struct mlx5_devcom_comp_dev *devcom,void mlx5_devcom_comp_lock (struct mlx5_devcom_comp_dev *devcom);void mlx5_devcom_comp_unlock (struct mlx5_devcom_comp_dev *devcom); +void mlx5_devcom_comp_read_lock (struct mlx5_devcom_comp_dev *devcom); +void mlx5_devcom_comp_read_unlock (struct mlx5_devcom_comp_dev *devcom);int mlx5_devcom_comp_trylock (struct mlx5_devcom_comp_dev *devcom);void mlx5_devcom_comp_assert_locked (struct mlx5_devcom_comp_dev *devcom);
base-commit: b71c101bbb9814d163c00234d43c41f0a17907d4
Signature · 1 line
2.44.0
[email protected]
AI reviewThis is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
Hi!
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical (e.g. found by LLM and not proven at runtime). If it was triggered please include the symptoms, like the stack trace or kernel messages.
Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then.
The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.
Quoted 13 lines · On 13/11/2026 17:27, [email protected] wrote:
Hi!
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical (e.g. found by LLM and not proven at runtime). If it was triggered please include the symptoms, like the stack trace or kernel messages.
Quoted 8 lines
Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then.
The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.
Hi,
The issue was observed during OS boot, while a boot script moved the PFs to switchdev mode. It reproduces by bringing one PF uplink down/up (mlx5e_sqs2vport_stop()) while the peer PF toggles legacy <-> switchdev (devcom PAIR/UNPAIR).
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] net/mlx5e: esw->devcom UAF race with mlx5_esw_offloads_devcom_cleanup() --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Medium] net/mlx5e: esw->devcom UAF race with mlx5_esw_offloads_devcom_cleanup()
--
commit 7323974cbd0d255bb995fa9d0fba3a2187d60aad
Author: Shay Drory <[email protected]>
net/mlx5e: rep, Fix races between devcom PAIR event and uplink close
This commit adds mlx5_devcom_comp_read_lock() and mlx5_devcom_comp_read_unlock() and holds the devcom component read semaphore across mlx5e_sqs2vport_start() and mlx5e_sqs2vport_stop() to serialize against devcom PAIR and UNPAIR events.
Quoted 26 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +4
-4@@ -506,10 +506,11 @@ static int mlx5e_sqs2vport_start(struct mlx5_eswitch *esw,struct mlx5_eswitch_rep *rep, u32 *sqns_array, int sqns_num) { + struct mlx5_devcom_comp_dev *devcom = esw->devcom;struct mlx5_flow_handle *flow_rule;struct mlx5e_rep_priv *rpriv;struct mlx5e_rep_sq *rep_sq; -bool devcom_locked = false; +bool peers_ready;int err;int i;@@ -518,9 +519,8 @@ static int mlx5e_sqs2vport_start(struct mlx5_eswitch *esw, rpriv =mlx5e_rep_to_rep_priv (rep); -if (mlx5_devcom_comp_is_ready (esw->devcom) && - mlx5_devcom_for_each_peer_begin(esw->devcom)) - devcom_locked = true; +mlx5_devcom_comp_read_lock (devcom); + peers_ready =mlx5_devcom_comp_is_ready (devcom);
[ ... ]
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv) · line 636
Quoted 11 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +4
-0@@ -630,8 +627,12 @@ mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv)struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;struct mlx5e_rep_priv *rpriv = priv->ppriv;struct mlx5_eswitch_rep *rep = rpriv->rep; +struct mlx5_devcom_comp_dev *devcom; + devcom = esw->devcom; +mlx5_devcom_comp_read_lock (devcom);mlx5e_sqs2vport_stop (esw, rep); +mlx5_devcom_comp_read_unlock (devcom); }
[Severity: Medium]
Can mlx5e_remove_sqs_fwd_rules() and mlx5e_sqs2vport_start() race with mlx5_esw_offloads_devcom_cleanup() and dereference a freed esw->devcom?
esw_offloads_disable() tears down esw->devcom while esw->mode is still MLX5_ESWITCH_OFFLOADS and before the VF and uplink representor netdevs are unloaded:
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:esw_offloads_disable() {
...
mlx5_esw_offloads_devcom_cleanup(esw);
mlx5_eswitch_disable_pf_vf_vports(esw);
mlx5_esw_offloads_rep_unload(esw, MLX5_VPORT_UPLINK);
...
}In mlx5_esw_offloads_devcom_cleanup(), mlx5_devcom_unregister_component() frees esw->devcom (and devcom->comp when the last peer unregisters) before clearing esw->devcom = NULL. esw_offloads_disable() holds devl_lock and esw->offloads.reps_lock, while representor netdev callbacks (such as mlx5e_close() or mlx5e_open()) hold only rtnl_lock/netdev_lock and priv->state_lock:
CPU0 CPU1esw_offloads_disable() mlx5e_close()
mlx5_esw_offloads_devcom_cleanup() ...
mlx5e_remove_sqs_fwd_rules()
devcom = esw->devcom;
mlx5_devcom_unregister_component()
devcom_free_comp_dev(devcom)
kfree(devcom)
mlx5_devcom_comp_read_lock(devcom)
down_read(&devcom->comp->sem)
<-- use-after-free
esw->devcom = NULL;mlx5e_sqs2vport_start() has the same race because it now calls mlx5_devcom_comp_read_lock(devcom) unconditionally without checking comp->ready first.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider.
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider.
Critical: 0 · High: 1 · Medium: 0 · Low: 0
If you believe none of the issues are legitimate, please reply to each issue of Medium severity or higher and explain why the AI is wrong. If any of them are legitimate and you plan to respin, please let patchwork know by including "pw-bot: cr" as a separate line at the end of your reply (one such reply per series is enough).
- [High] The new locking only works if the unsynchronized read of esw->devcom returns a valid pointer.
--
net/mlx5e: rep, Fix races between devcom PAIR event and uplink close
This commit adds mlx5_devcom_comp_read_lock/unlock(), which take the devcom component semaphore for read whether or not comp->ready is set. It holds that lock across mlx5e_sqs2vport_start() and mlx5e_sqs2vport_stop() so that both are serialized against the ESW_OFFLOADS PAIR/UNPAIR handler.
Quoted 4 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +0
-0
[ ... ]
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv) · line 636
Quoted 11 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +5
-0@@ -630,8 +627,12 @@ mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv)struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;struct mlx5e_rep_priv *rpriv = priv->ppriv;struct mlx5_eswitch_rep *rep = rpriv->rep; +struct mlx5_devcom_comp_dev *devcom; + devcom = esw->devcom; +mlx5_devcom_comp_read_lock (devcom); +mlx5e_sqs2vport_stop (esw, rep); +mlx5_devcom_comp_read_unlock (devcom); }
[Severity: High]
Are the races still reachable if esw->devcom is NULL or stale when it is read here and in mlx5e_sqs2vport_start()?
The load of esw->devcom is a plain unsynchronized read. The store side has no WRITE_ONCE() and the load side has no READ_ONCE(). mlx5_devcom_comp_read_lock() also does nothing when passed NULL.
In esw_offloads_enable(), the uplink and VF reps are loaded and their netdevs registered before mlx5_esw_offloads_devcom_init() runs. That function publishes the pointer and sends the PAIR event right away:
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:mlx5_esw_offloads_devcom_init() {
...
esw->devcom = mlx5_devcom_register_component(esw->dev->priv.devc,
MLX5_DEVCOM_ESW_OFFLOADS,
attr,
mlx5_esw_offloads_devcom_event,
esw);
if (!esw->devcom)
return;
err = mlx5_devcom_send_event(esw->devcom,
ESW_OFFLOADS_DEVCOM_PAIR,
...
}The PAIR handler runs with comp->sem held for write. It goes through mlx5_esw_offloads_devcom_event()->mlx5_esw_offloads_pair()-> mlx5e_vport_rep_event_pair(), which walks rpriv->vport_sqs_list for every loaded rep and calls xa_insert() on rep_sq->sq_peer.
A rep ndo_open or ndo_stop holds rtnl and priv->state_lock. The devlink-locked enable path holds neither across this window. If the rep reads esw->devcom before the store above, two things can happen:
- mlx5e_sqs2vport_start() snapshots devcom == NULL, so it takes no lock
and sees peers_ready == false. It then does list_add() into
rpriv->vport_sqs_list while the PAIR handler is walking that list.
SQs added after the walk also never get their peer send-to-vport
rules. - mlx5e_remove_sqs_fwd_rules() calls mlx5e_sqs2vport_stop() without the lock. That can list_del() and kfree() a rep_sq and its sq_peer entries while mlx5e_vport_rep_event_pair() is still using them.
These are the two races the commit message describes as fixed.
On teardown, esw_offloads_disable() calls the devcom cleanup while the VF rep netdevs are still registered:
mlx5_esw_offloads_devcom_cleanup(esw); mlx5_eswitch_disable_pf_vf_vports(esw); mlx5_esw_offloads_rep_unload(esw, MLX5_VPORT_UPLINK);
mlx5_esw_offloads_devcom_cleanup() frees the comp_dev before it clears the pointer:
mlx5_devcom_unregister_component(esw->devcom); xa_destroy(&esw->paired); xa_destroy(&esw->fdb_table.offloads.peer_miss_rules); esw->devcom = NULL;
Inside mlx5_devcom_unregister_component(), devcom_free_comp_dev() does:
down_write(&comp->sem); list_del(&devcom->list); WRITE_ONCE(comp->nr_devs, comp->nr_devs - 1); up_write(&comp->sem); kref_put(&devcom->devc->ref, mlx5_devcom_dev_release); kfree(devcom); kref_put(&comp->ref, mlx5_devcom_comp_release);
The write lock only excludes readers that already hold comp->sem.
Could a concurrent VF rep ndo_stop load the old esw->devcom in mlx5e_remove_sqs_fwd_rules() and then call down_read(&devcom->comp->sem) after the kfree()? The stop path did not touch esw->devcom before this patch, so this use-after-free would be new on the close path.
Would it work better to serialize publishing and clearing esw->devcom against rep start/stop, instead of locking whatever pointer happens to be read at that moment?
Signature · 1 line
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261112182403.3646298-1-tariqt%40nvidia.com
Quoted 120 lines · On 16/11/2026 20:24, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider.
Critical: 0 · High: 1 · Medium: 0 · Low: 0
If you believe none of the issues are legitimate, please reply to each issue of Medium severity or higher and explain why the AI is wrong. If any of them are legitimate and you plan to respin, please let patchwork know by including "pw-bot: cr" as a separate line at the end of your reply (one such reply per series is enough).
- [High] The new locking only works if the unsynchronized read of
esw->devcomreturns a valid pointer.--
net/mlx5e: rep, Fix races between devcom PAIR event and uplink close
This commit adds mlx5_devcom_comp_read_lock/unlock(), which take the devcom component semaphore for read whether or not
comp->readyis set. It holds that lock acrossmlx5e_sqs2vport_start()andmlx5e_sqs2vport_stop()so that both are serialized against theESW_OFFLOADSPAIR/UNPAIR handler.Quoted 4 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +0
-0[ ... ]
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv) · line 636
Quoted 11 lines
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +5
-0@@ -630,8 +627,12 @@ mlx5e_remove_sqs_fwd_rules(struct mlx5e_priv *priv)struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;struct mlx5e_rep_priv *rpriv = priv->ppriv;struct mlx5_eswitch_rep *rep = rpriv->rep; +struct mlx5_devcom_comp_dev *devcom; + devcom = esw->devcom; +mlx5_devcom_comp_read_lock (devcom); +mlx5e_sqs2vport_stop (esw, rep); +mlx5_devcom_comp_read_unlock (devcom); }[Severity: High]
Are the races still reachable if
esw->devcomis NULL or stale when it is read here and inmlx5e_sqs2vport_start()?The load of
esw->devcomis a plain unsynchronized read. The store side has noWRITE_ONCE()and the load side has noREAD_ONCE().mlx5_devcom_comp_read_lock()also does nothing when passed NULL.In
esw_offloads_enable(), the uplink and VF reps are loaded and their netdevs registered beforemlx5_esw_offloads_devcom_init()runs. That function publishes the pointer and sends the PAIR event right away:drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:mlx5_esw_offloads_devcom_init() { ... esw->devcom = mlx5_devcom_register_component(esw->dev->priv.devc, MLX5_DEVCOM_ESW_OFFLOADS, attr, mlx5_esw_offloads_devcom_event, esw); if (!esw->devcom) return; err = mlx5_devcom_send_event(esw->devcom, ESW_OFFLOADS_DEVCOM_PAIR, ... }The PAIR handler runs with
comp->semheld for write. It goes through mlx5_esw_offloads_devcom_event()->mlx5_esw_offloads_pair()->mlx5e_vport_rep_event_pair(), which walksrpriv->vport_sqs_listfor every loaded rep and callsxa_insert()onrep_sq->sq_peer.A rep
ndo_openorndo_stopholds rtnl andpriv->state_lock. The devlink-locked enable path holds neither across this window. If the rep readsesw->devcombefore the store above, two things can happen:-
mlx5e_sqs2vport_start()snapshots devcom == NULL, so it takes no lockand sees peers_ready == false. It then does list_add() into rpriv->vport_sqs_list while the PAIR handler is walking that list. SQs added after the walk also never get their peer send-to-vport rules.-
mlx5e_remove_sqs_fwd_rules()callsmlx5e_sqs2vport_stop()without the lock. That canlist_del()andkfree()arep_sqand itssq_peerentries whilemlx5e_vport_rep_event_pair()is still using them.These are the two races the commit message describes as fixed.
On teardown,
esw_offloads_disable()calls the devcom cleanup while the VF rep netdevs are still registered:mlx5_esw_offloads_devcom_cleanup(esw); mlx5_eswitch_disable_pf_vf_vports(esw); mlx5_esw_offloads_rep_unload(esw, MLX5_VPORT_UPLINK);
mlx5_esw_offloads_devcom_cleanup()frees thecomp_devbefore it clears the pointer:mlx5_devcom_unregister_component(esw->devcom); xa_destroy(&esw->paired); xa_destroy(&esw->fdb_table.offloads.peer_miss_rules); esw->devcom = NULL;Inside
mlx5_devcom_unregister_component(),devcom_free_comp_dev()does:down_write(&comp->sem); list_del(&devcom->list); WRITE_ONCE(comp->nr_devs, comp->nr_devs - 1); up_write(&comp->sem); kref_put(&devcom->devc->ref, mlx5_devcom_dev_release); kfree(devcom); kref_put(&comp->ref, mlx5_devcom_comp_release);The write lock only excludes readers that already hold
comp->sem.
Quoted 8 lines
Could a concurrent VF rep
ndo_stopload the oldesw->devcominmlx5e_remove_sqs_fwd_rules()and then calldown_read(&devcom->comp->sem)after thekfree()? The stop path did not touchesw->devcombefore this patch, so this use-after-free would be new on the close path.Would it work better to serialize publishing and clearing
esw->devcomagainst rep start/stop, instead of locking whatever pointer happens to be read at that moment?
The esw->devcom NULL/stale reads are a devcom lifecycle issue, not specific to this patch, and will be addressed in a separate patch. This patch fixes the PAIR/UNPAIR vs. rep start/stop race on an established devcom.
Quoted 3 lines
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261112182403.3646298-1-tariqt%40nvidia.com
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:
Quoted 8 lines · On Thu, 12 Nov 2026 20:24:03 +0200 you wrote:
From: Shay Drory <[email protected]>
mlx5e_sqs2vport_stop()frees eachrep_sqand its per-peer send-to-vport rules (rep_sq->sq_peer) while holding only the uplink'spriv->state_lock(it runs from thendo_stop->mlx5e_deactivate_priv_channels->mlx5e_rep_deactivate_channelspath).[...]
Here is the summary with links:
- [net,V2] net/mlx5e: rep, Fix races between devcom PAIR event and uplink close
https://git.kernel.org/netdev/net/c/5e9b2ad9b838
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html