Devlink backport: fix race and lock issue

Bug #2032378 reported by William Tu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-bluefield (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Committed
Undecided
Unassigned

Bug Description

Summary:
machine get stuck if try to switch to switchdev mode while toggling ns over BF kernel.
This is due to missing lock refactor series devlink and driver from kernel 6.0

How to test:
1. Configure SRIOV
2. Enable switchdev mode
3. Devlink reload
4. Add/Del network namespace

Note: Need to run the test multiple times to reproduce the issue.

How to fix:
Need to backport a series of devlink patches into BlueField 5.15 kernel, from 6.0 upstream kernel.
Patches needed for 5.4/5.15 kernel:

First series: 367dfa121205^..f0680ef0f949

second series: 5502e8712c9b^..c90005b5f75c

Also needed: 644a66c60f02

William Tu (wtu)
description: updated
Revision history for this message
William Tu (wtu) wrote :
Changed in linux-bluefield (Ubuntu):
status: New → Invalid
Changed in linux-bluefield (Ubuntu Jammy):
status: New → Fix Committed
Revision history for this message
Bartlomiej Zolnierkiewicz (bzolnier) wrote :

This bug is awaiting verification that the linux-bluefield/5.15.0-1025.27 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-jammy
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-bluefield/5.15.0-1027.29 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy-linux-bluefield' to 'verification-done-jammy-linux-bluefield'. If the problem still exists, change the tag 'verification-needed-jammy-linux-bluefield' to 'verification-failed-jammy-linux-bluefield'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-bluefield-v2 verification-needed-jammy-linux-bluefield
tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Bartlomiej Zolnierkiewicz (bzolnier) wrote :

Mark the verification as already done using the new tag.

tags: added: verification-done-jammy-linux-bluefield
removed: verification-needed-jammy-linux-bluefield
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.