Hello,
kernel test robot noticed
"WARNING:at_drivers/dma-buf/dma-fence.c:#dma_fence_signal_timestamp_locked" on:
commit: 7f65345d34375a305c1e1f69729ddb35671cd73d ("[RFC PATCH 02/14] dma-buf:
rework stub fence initialisation")
url:
https://github.com/intel-lab-lkp/linux/commits/Matthew-Brost/dma-buf-cleanup-dma_fence_describe/20251023-121819
base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
patch link:
https://lore.kernel.org/all/[email protected]/
patch subject: [RFC PATCH 02/14] dma-buf: rework stub fence initialisation
in testcase: boot
config: i386-randconfig-141-20251024
compiler: gcc-14
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
(please refer to attached dmesg/kmsg for entire log/backtrace)
+---------------------------------------------------------------------------+------------+------------+
| |
4de95329f8 | 7f65345d34 |
+---------------------------------------------------------------------------+------------+------------+
| WARNING:at_drivers/dma-buf/dma-fence.c:#dma_fence_signal_timestamp_locked | 0
| 6 |
| EIP:dma_fence_signal_timestamp_locked | 0
| 6 |
+---------------------------------------------------------------------------+------------+------------+
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]
[ 1.961011][ T1] ------------[ cut here ]------------
[ 1.961690][ T1] WARNING: CPU: 0 PID: 1 at
drivers/dma-buf/dma-fence.c:371 dma_fence_signal_timestamp_locked
(drivers/dma-buf/dma-fence.c:371)
[ 1.963022][ T1] Modules linked in:
[ 1.963541][ T1] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted
6.18.0-rc1-00195-g7f65345d3437 #1 PREEMPT(lazy)
e8d4534976345a3814ee47c66e13234d1d55a625
[ 1.965248][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 1.966289][ T1] EIP: dma_fence_signal_timestamp_locked
(drivers/dma-buf/dma-fence.c:371)
[ 1.967087][ T1] Code: ff ff 83 c0 10 e8 71 f5 91 00 31 d2 6a 00 85 c0 89
c6 b8 78 02 55 dc 0f 94 c2 31 c9 e8 6a 07 2a ff 58 85 f6 0f 85 ee fe ff ff <0f>
0b ba 01 00 00 00 e9 e4 fe ff ff 2e 8d 74 26 00 8d 65 f4 b8 ea
All code
========
0: ff (bad)
1: ff 83 c0 10 e8 71 incl 0x71e810c0(%rbx)
7: f5 cmc
8: 91 xchg %eax,%ecx
9: 00 31 add %dh,(%rcx)
b: d2 6a 00 shrb %cl,0x0(%rdx)
e: 85 c0 test %eax,%eax
10: 89 c6 mov %eax,%esi
12: b8 78 02 55 dc mov $0xdc550278,%eax
17: 0f 94 c2 sete %dl
1a: 31 c9 xor %ecx,%ecx
1c: e8 6a 07 2a ff call 0xffffffffff2a078b
21: 58 pop %rax
22: 85 f6 test %esi,%esi
24: 0f 85 ee fe ff ff jne 0xffffffffffffff18
2a:* 0f 0b ud2 <-- trapping instruction
2c: ba 01 00 00 00 mov $0x1,%edx
31: e9 e4 fe ff ff jmp 0xffffffffffffff1a
36: 2e 8d 74 26 00 cs lea 0x0(%rsi,%riz,1),%esi
3b: 8d 65 f4 lea -0xc(%rbp),%esp
3e: b8 .byte 0xb8
3f: ea (bad)
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: ba 01 00 00 00 mov $0x1,%edx
7: e9 e4 fe ff ff jmp 0xfffffffffffffef0
c: 2e 8d 74 26 00 cs lea 0x0(%rsi,%riz,1),%esi
11: 8d 65 f4 lea -0xc(%rbp),%esp
14: b8 .byte 0xb8
15: ea (bad)
[ 1.969313][ T1] EAX: 00000000 EBX: dced86c0 ECX: 00000000 EDX: 00000001
[ 1.970150][ T1] ESI: 00000000 EDI: dc674abc EBP: c1187ec8 ESP: c1187eac
[ 1.970984][ T1] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS:
00010246
[ 1.971931][ T1] CR0: 80050033 CR2: ffbff000 CR3: 1c751000 CR4: 000406f0
[ 1.972766][ T1] Call Trace:
[ 1.973210][ T1] ? dma_buf_init (drivers/dma-buf/dma-fence.c:125)
[ 1.976054][ T1] dma_fence_signal_locked
(drivers/dma-buf/dma-fence.c:443)
[ 1.976512][ T1] dma_fence_init_stub (drivers/dma-buf/dma-fence.c:134)
[ 1.977133][ T1] do_one_initcall (init/main.c:1283)
[ 1.977739][ T1] do_initcalls (init/main.c:1344 (discriminator 3)
init/main.c:1361 (discriminator 3))
[ 1.978324][ T1] kernel_init_freeable (init/main.c:1595)
[ 1.978958][ T1] ? rest_init (init/main.c:1475)
[ 1.979516][ T1] kernel_init (init/main.c:1485)
[ 1.980063][ T1] ret_from_fork (arch/x86/kernel/process.c:164)
[ 1.980639][ T1] ? rest_init (init/main.c:1475)
[ 1.981198][ T1] ret_from_fork_asm (arch/x86/entry/entry_32.S:737)
[ 1.981790][ T1] entry_INT80_32 (arch/x86/entry/entry_32.S:945)
[ 1.982397][ T1] irq event stamp: 68917
[ 1.982933][ T1] hardirqs last enabled at (68927): __up_console_sem
(arch/x86/include/asm/irqflags.h:42 arch/x86/include/asm/irqflags.h:119
arch/x86/include/asm/irqflags.h:159 kernel/printk/printk.c:345)
[ 1.983988][ T1] hardirqs last disabled at (68936): __up_console_sem
(kernel/printk/printk.c:343 (discriminator 3))
[ 1.985064][ T1] softirqs last enabled at (68414): release_sock
(net/core/sock.c:3745)
[ 1.986103][ T1] softirqs last disabled at (68412): release_sock
(net/core/sock.c:3734)
[ 1.986631][ T1] ---[ end trace 0000000000000000 ]---
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20251024/[email protected]
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki