** Changed in: linux (Ubuntu Jammy)
     Assignee: (unassigned) => Massimiliano Pellizzer (mpellizzer)

** Description changed:

+ [Impact]
+ 
+ net/smc: fix neighbour and rtable leak in smc_ib_find_route()
+ 
+ In smc_ib_find_route(), the neighbour found by neigh_lookup() and rtable
+ resolved by ip_route_output_flow() are not released or put before return.
+ It may cause the refcount leak, so fix it.
+ 
+ 
+ [Fix]
+ 
+ Cherry pick the fix commit in Jammy:
+ - 2ddc0dd7fec8 net/smc: fix neighbour and rtable leak in smc_ib_find_route()
+ 
+ [Test Plan]
+ 
+ Compile tested only.
+ 
+ 
+ [Where Problems Could Occur]
+ 
+ The fix affects the SMC-R RDMA route resolution subsystem.
+ An issue with this fix may lead to incorrect handling of
+ reference counting neighbor and routing table objects
+ during RDMA path establishment.
+ A user might experience problems such asfailed RDMA connection setups
+ resulting in fallback to TCP even on capable hardware.
+ 
+ ---
+ 
  Description:
  
  net/smc: fix neighbour and rtable leak in smc_ib_find_route()
  
  -----------------------------------------------------------------------------
  
  Symptom:       The handshake device gets hung during the cleanup after
  the SMCR-v2 workload
  
  Problem:       In smc_ib_find_route(), the neighbour found by
  neigh_lookup() and rtable resolved by ip_route_output_flow() are not
  released or put before return. It may cause the refcount leak.
  
  Solution:      Release the neighbour found via neigh_release()
  
  Upstream-ID:   2ddc0dd7fec86ee53b8928a5cca5fbddd4fc7c06
  
  Author:        [email protected]
  
  Component:     kernel

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109601

Title:
  [UBUNTU 22.04] net/smc: fix neighbour and rtable leak in
  smc_ib_find_route()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2109601/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to