-
Notifications
You must be signed in to change notification settings - Fork 20
drm/xe: Backport to fix potential use-after-scope bug in VF migration #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drm/xe: Backport to fix potential use-after-scope bug in VF migration #245
Conversation
Backport upstream fix to prevent use-after-scope bug where the loop variable 'job' is referenced after the loop has exited. This can lead to undefined behavior and potential crashes during VF (Virtual Function) migration. The issue occurs in the re-emission logic during VF migration where the code attempts to access the loop iterator variable after the loop completes. The fix saves the job from the last iteration of the loop for use after the loop exits. This backport resolves a potential stability issue in SR-IOV VF migration scenarios. Fixes: 29dbfa0 ("backport/sriov: Start re-emission from first unsignaled job during VF migration") Signed-off-by: Pravalika Gurram <pravalika.gurram@intel.com>
CI Bug Log - changes from xkb-200-94d58d19fb9f959e8d549e10c389008ec1b08169_BAT -> xkb-pr-main-245-428-40e732e45afa90787999ad82f637cd3df6205a81_BATSummaryFAILURE Serious unknown changes coming with xkb-pr-main-245-428-40e732e45afa90787999ad82f637cd3df6205a81_BAT absolutely need to be If you think the reported changes have nothing to do with the changes Participating hosts (7 -> 7)No changes in participating hosts Possible new issuesHere are the unknown changes that may have been introduced in xkb-pr-main-245-428-40e732e45afa90787999ad82f637cd3df6205a81_BAT: IGT changesPossible regressions
Known issuesHere are the changes found in xkb-pr-main-245-428-40e732e45afa90787999ad82f637cd3df6205a81_BAT that come from known issues: IGT changesIssues hit
Possible fixes
Build changes
igt-xkb-94-165f8a8a8: 165f8a8a8 |
CI Bug Log - changes from xkb-200-94d58d19fb9f959e8d549e10c389008ec1b08169_BAT -> xkb-pr-main-245-430-40e732e45afa90787999ad82f637cd3df6205a81_BATSummarySUCCESS No regressions found. Participating hosts (7 -> 8)Additional (1): bat-bmg-1 Known issuesHere are the changes found in xkb-pr-main-245-430-40e732e45afa90787999ad82f637cd3df6205a81_BAT that come from known issues: IGT changesIssues hit
Possible fixes
Build changes
igt-xkb-94-165f8a8a8: 165f8a8a8 |
b457e22
into
intel-gpu:kernel-backport/main
Backport upstream fix to prevent use-after-scope bug where the loop
variable 'job' is referenced after the loop has exited. This can lead
to undefined behavior and potential crashes during VF (Virtual Function)
migration.
The issue occurs in the re-emission logic during VF migration where
the code attempts to access the loop iterator variable after the loop
completes. The fix saves the job from the last iteration of the loop
for use after the loop exits.
This backport resolves a potential stability issue in SR-IOV VF
migration scenarios.
Fixes: 29dbfa0 ("backport/sriov: Start re-emission from first unsignaled job during VF migration")
Signed-off-by: Pravalika Gurram pravalika.gurram@intel.com