Public bug reported:

[Impact]

There are cases, where deleting a VRF device can hang waiting for the refcnt to 
drop to 0, with the message: 
  unregister_netdevice: waiting for vrf1 to become free. Usage count = 1

This is fixed upstream with commit b87b04f5019e ("ipv4: Fix device used
for dst_alloc with local routes"), included in linux v5.13. The original
patch, which has introduced the bug, is included in linux v4.10.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b87b04f5019e

[Test Case]

The upstream patch includes a test case, which describe how to reproduce
the bug.

[Regression Potential]

The patch affects ipv4 routing. It is straightforward, it links new dst
to a vrf device instead of the loopback if needed.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "Backport of the upstream patch on 
Ubuntu-hwe-5.4-5.4.0-87.98_18.04.1"
   
https://bugs.launchpad.net/bugs/1945180/+attachment/5528350/+files/0001-ipv4-Fix-device-used-for-dst_alloc-with-local-routes.patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1945180

Title:
  vrf: fix refcnt leak with vxlan slaves

Status in linux package in Ubuntu:
  New

Bug description:
  [Impact]

  There are cases, where deleting a VRF device can hang waiting for the refcnt 
to drop to 0, with the message: 
    unregister_netdevice: waiting for vrf1 to become free. Usage count = 1

  This is fixed upstream with commit b87b04f5019e ("ipv4: Fix device
  used for dst_alloc with local routes"), included in linux v5.13. The
  original patch, which has introduced the bug, is included in linux
  v4.10.

  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b87b04f5019e

  [Test Case]

  The upstream patch includes a test case, which describe how to
  reproduce the bug.

  [Regression Potential]

  The patch affects ipv4 routing. It is straightforward, it links new
  dst to a vrf device instead of the loopback if needed.

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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to