REGRESSION on linux-next (next-20251125)
Subsystems (3)
Hello Christian,
Hope you are doing well. I am Chaitanya from the linux graphics team in Intel.
This mail is regarding a regression we are seeing in our CI runs[1] on linux-next repository.
Since the version next-20251125 [2], we are seeing the following regression
````````````````````````````````````````````````````````````````````````````````` (kms_busy:5818) sw_sync-CRITICAL: Test assertion failure function sw_sync_timeline_create_fence, file ../lib/sw_sync.c:117: (kms_busy:5818) sw_sync-CRITICAL: Failed assertion: sw_sync_fd_is_valid(fence) (kms_busy:5818) sw_sync-CRITICAL: Last errno: 2, No such file or directory (kms_busy:5818) sw_sync-CRITICAL: Created invalid fence (kms_busy:5818) igt_core-INFO: Stack trace: (kms_busy:5818) igt_core-INFO: #0 ../lib/igt_core.c:2075 __igt_fail_assert() (kms_busy:5818) igt_core-INFO: #1 [sw_sync_timeline_create_fence+0x5f] (kms_busy:5818) igt_core-INFO: #2 ../tests/intel/kms_busy.c:122 flip_to_fb() (kms_busy:5818) igt_core-INFO: #3 ../tests/intel/kms_busy.c:220 test_flip() (kms_busy:5818) igt_core-INFO: #4 ../tests/intel/kms_busy.c:459 __igt_unique____real_main411() (kms_busy:5818) igt_core-INFO: #5 ../tests/intel/kms_busy.c:411 main() (kms_busy:5818) igt_core-INFO: #6 [__libc_init_first+0x8a] (kms_busy:5818) igt_core-INFO: #7 [__libc_start_main+0x8b] (kms_busy:5818) igt_core-INFO: #8 [_start+0x25] `````````````````````````````````````````````````````````````````````````````````
Details log can be found in [3].
After bisecting the tree, the following patch [4] seems to be the first "bad" commit
````````````````````````````````````````````````````````````````````````````````````````````````````````` commit 8459303c886151b71e8de08b73e384fd2bb7499c Author: Christian Brauner [email protected] Date: Sun Nov 23 17:33:55 2025 +0100 dma: port sw_sync_ioctl_create_fence() to FD_PREPARE() `````````````````````````````````````````````````````````````````````````````````````````````````````````
We also verified that if we revert the patch the issue is not seen.
Could you please check why the patch causes this regression and provide a fix if necessary?
Thank you.
Regards
Chaitanya
[1]
https://intel-gfx-ci.01.org/tree/linux-next/combined-alt.html?
[2] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20251125
[3]
https://intel-gfx-ci.01.org/tree/linux-next/next-20251125/bat-arls-6/igt@[email protected]
[4] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20251125&id=8459303c886151b71e8de08b73e384fd2bb7499c
Christian Brauner
maintainerQuoted 45 lines · Chaitanya Kumar
Hello Christian,
Hope you are doing well. I am Chaitanya from the linux graphics team in Intel.
This mail is regarding a regression we are seeing in our CI runs[1] on linux-next repository.
Since the version next-20251125 [2], we are seeing the following regression
````````````````````````````````````````````````````````````````````````````````` (kms_busy:5818) sw_sync-CRITICAL: Test assertion failure function sw_sync_timeline_create_fence, file ../lib/sw_sync.c:117: (kms_busy:5818) sw_sync-CRITICAL: Failed assertion: sw_sync_fd_is_valid(fence) (kms_busy:5818) sw_sync-CRITICAL: Last errno: 2, No such file or directory (kms_busy:5818) sw_sync-CRITICAL: Created invalid fence (kms_busy:5818) igt_core-INFO: Stack trace: (kms_busy:5818) igt_core-INFO: #0 ../lib/igt_core.c:2075 __igt_fail_assert() (kms_busy:5818) igt_core-INFO: #1 [sw_sync_timeline_create_fence+0x5f] (kms_busy:5818) igt_core-INFO: #2 ../tests/intel/kms_busy.c:122 flip_to_fb() (kms_busy:5818) igt_core-INFO: #3 ../tests/intel/kms_busy.c:220 test_flip() (kms_busy:5818) igt_core-INFO: #4 ../tests/intel/kms_busy.c:459 __igt_unique____real_main411() (kms_busy:5818) igt_core-INFO: #5 ../tests/intel/kms_busy.c:411 main() (kms_busy:5818) igt_core-INFO: #6 [__libc_init_first+0x8a] (kms_busy:5818) igt_core-INFO: #7 [__libc_start_main+0x8b] (kms_busy:5818) igt_core-INFO: #8 [_start+0x25] `````````````````````````````````````````````````````````````````````````````````Details log can be found in [3].
After bisecting the tree, the following patch [4] seems to be the first "bad" commit
````````````````````````````````````````````````````````````````````````````````````````````````````````` commit 8459303c886151b71e8de08b73e384fd2bb7499c Author: Christian Brauner [email protected] Date: Sun Nov 23 17:33:55 2025 +0100 dma: port sw_sync_ioctl_create_fence() to FD_PREPARE() `````````````````````````````````````````````````````````````````````````````````````````````````````````
Quoted 4 lines
We also verified that if we revert the patch the issue is not seen.
Could you please check why the patch causes this regression and provide a fix if necessary?
Gah, sorry about this:
drivers/dma-buf/sync_file.c +2 -1
@@ -244,7 +244,8 @@ static long sync_file_ioctl_merge(struct sync_file *sync_file,if (copy_to_user ((void __user *)arg, &data,sizeof (data)))return -EFAULT ; -return fd_publish (fdf); +fd_publish (fdf); +return 0 ; } static int sync_fill_fence_info(struct dma_fence *fence,
Pushing out the fix now. Can I trigger a new test myself somehow?
Quoted 1 line · Christian Brauner
Pushing out the fix now. Can I trigger a new test myself somehow?
Thank you Christian!
Not really. Once it makes it to linux-next, our CI will pick it up. Till then let us validate locally.
Regards
Chaitanya
Christian Brauner
maintainerQuoted 8 lines · Chaitanya Kumar
Quoted 1 line · Christian Brauner
Pushing out the fix now. Can I trigger a new test myself somehow?
Thank you Christian!
Not really. Once it makes it to linux-next, our CI will pick it up. Till then let us validate locally.
I just pushed:
https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs-6.19.fd_prepare
If you want to test that, please.
Quoted 5 lines · Christian Brauner
I just pushed:
https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs-6.19.fd_prepare
If you want to test that, please.
aah! only the sync_file.c change you suggested was not fixing the issue. But with [1] on top of linux-next, the issue is now resolved.
It also solves another issue[2] we bisected (before I could report it to you, which is never a bad thing)
Thank you.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git/commit/?h=vfs-6.19.fd_prepare&id=bf44cb6382f90fbda2eeae67065dc9401a967485
[2] https://intel-gfx-ci.01.org/tree/linux-next/next-20251125/bat-mtlp-8/igt@[email protected]
==
Chaitanya
Christian Brauner
maintainerQuoted 9 lines · Chaitanya Kumar
Quoted 5 lines · Christian Brauner
I just pushed:
https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs-6.19.fd_prepare
If you want to test that, please.
Quoted 7 lines
aah! only the
sync_file.cchange you suggested was not fixing the issue. But with [1] on top of linux-next, the issue is now resolved.It also solves another issue[2] we bisected (before I could report it to you, which is never a bad thing)
Thank you.
Yes, sorry, two pretty obvious mistakes on my side. Thanks for testing!
Patchwork
CI✗ Fi.CI.BUILD: failure for REGRESSION on linux-next (next-20251125)
In reply to Borah, Chaitanya Kumar== Series Details ==
== Series Details ==
Series: REGRESSION on linux-next (next-20251125)
URL : https://patchwork.freedesktop.org/series/158158/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/158158/revisions/1/mbox/ not applied
Applying: REGRESSION on linux-next (next-20251125)
error: patch failed: drivers/dma-buf/sync_file.c:244
error: drivers/dma-buf/sync_file.c: patch does not apply
error: Did you hand edit your patch?
It does not apply to blobs recorded in its index.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Using index info to reconstruct a base tree...
M drivers/dma-buf/sync_file.c
Patch failed at 0001 REGRESSION on linux-next (next-20251125)
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced