2021-09-29 17:16:12

by kernel test robot

[permalink] [raw]
Subject: [drm] 2f425cf524: WARNING:at_drivers/gpu/drm/drm_mode_object.c:#drm_object_attach_property



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 2f425cf5242a019e9e8a6b1fe684b022c94fa7f1 ("drm: Fix oops in damage self-tests by mocking damage property")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master


in testcase: rcuscale
version:
with following parameters:

runtime: 300s
scale_type: srcud



on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+--------------------------------------------------------------------------+------------+------------+
| | 0ae865ef92 | 2f425cf524 |
+--------------------------------------------------------------------------+------------+------------+
| WARNING:at_drivers/gpu/drm/drm_mode_object.c:#drm_object_attach_property | 0 | 16 |
| EIP:drm_object_attach_property | 0 | 16 |
+--------------------------------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>


[ 128.624144][ T1] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_mode_object.c:249 drm_object_attach_property (drivers/gpu/drm/drm_mode_object.c:249 (discriminator 1))
[ 128.626590][ T1] Modules linked in:
[ 128.627462][ T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.14.0-rc3-00652-g2f425cf5242a #1
[ 128.629329][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 128.631408][ T1] EIP: drm_object_attach_property (drivers/gpu/drm/drm_mode_object.c:249 (discriminator 1))
[ 128.632707][ T1] Code: 00 00 00 00 8d 76 00 80 78 4c 00 74 ad 0f 0b eb a9 8d b6 00 00 00 00 c7 04 24 04 c6 6f 56 8b 45 f0 89 44 24 04 e8 dd 6a 88 00 <0f> 0b 8b 5d f4 8b 75 f8 8b 7d fc 89 ec 5d c3 89 4d f0 89 fa b8 28
All code
========
0: 00 00 add %al,(%rax)
2: 00 00 add %al,(%rax)
4: 8d 76 00 lea 0x0(%rsi),%esi
7: 80 78 4c 00 cmpb $0x0,0x4c(%rax)
b: 74 ad je 0xffffffffffffffba
d: 0f 0b ud2
f: eb a9 jmp 0xffffffffffffffba
11: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi
17: c7 04 24 04 c6 6f 56 movl $0x566fc604,(%rsp)
1e: 8b 45 f0 mov -0x10(%rbp),%eax
21: 89 44 24 04 mov %eax,0x4(%rsp)
25: e8 dd 6a 88 00 callq 0x886b07
2a:* 0f 0b ud2 <-- trapping instruction
2c: 8b 5d f4 mov -0xc(%rbp),%ebx
2f: 8b 75 f8 mov -0x8(%rbp),%esi
32: 8b 7d fc mov -0x4(%rbp),%edi
35: 89 ec mov %ebp,%esp
37: 5d pop %rbp
38: c3 retq
39: 89 4d f0 mov %ecx,-0x10(%rbp)
3c: 89 fa mov %edi,%edx
3e: b8 .byte 0xb8
3f: 28 .byte 0x28

Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 8b 5d f4 mov -0xc(%rbp),%ebx
5: 8b 75 f8 mov -0x8(%rbp),%esi
8: 8b 7d fc mov -0x4(%rbp),%edi
b: 89 ec mov %ebp,%esp
d: 5d pop %rbp
e: c3 retq
f: 89 4d f0 mov %ecx,-0x10(%rbp)
12: 89 fa mov %edi,%edx
14: b8 .byte 0xb8
15: 28 .byte 0x28
[ 128.636952][ T1] EAX: 00000096 EBX: 576e1fa8 ECX: ffffffff EDX: 00000200
[ 128.638493][ T1] ESI: 576e1ee0 EDI: 00000018 EBP: 40219d58 ESP: 40219d40
[ 128.639966][ T1] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00010212
[ 128.641675][ T1] CR0: 80050033 CR2: 00000000 CR3: 16f11000 CR4: 000006d0
[ 128.643222][ T1] Call Trace:
[ 128.643944][ T1] ? drm_plane_enable_fb_damage_clips (drivers/gpu/drm/drm_plane.c:1451)
[ 128.645348][ T1] ? mock_setup+0x51/0x80
[ 128.646422][ T1] ? igt_damage_iter_single_damage_intersect_fractional_src (drivers/gpu/drm/selftests/test-drm_damage_helper.c:413)
[ 128.648285][ T1] ? drm_internal_framebuffer_create (drivers/gpu/drm/drm_framebuffer.c:259 drivers/gpu/drm/drm_framebuffer.c:317)
[ 128.649691][ T1] ? test_drm_modeset_init (drivers/gpu/drm/selftests/drm_selftest.c:77 drivers/gpu/drm/selftests/test-drm_modeset_common.c:19)
[ 128.650819][ T1] ? test_drm_mm_init (drivers/gpu/drm/selftests/test-drm_modeset_common.c:16)
[ 128.651910][ T1] ? do_one_initcall (init/main.c:1282)
[ 128.652988][ T1] ? __might_sleep (kernel/sched/core.c:9109 (discriminator 14))
[ 128.653977][ T1] ? do_basic_setup (init/main.c:1354 init/main.c:1371 init/main.c:1391)
[ 128.655015][ T1] ? kernel_init_freeable (init/main.c:1595)
[ 128.656201][ T1] ? rest_init (init/main.c:1477)
[ 128.657144][ T1] ? kernel_init (init/main.c:1487)
[ 128.658115][ T1] ? schedule_tail_wrapper (arch/x86/entry/entry_32.S:740)
[ 128.659243][ T1] ? ret_from_fork (arch/x86/entry/entry_32.S:775)
[ 128.660243][ T1] irq event stamp: 46723029
[ 128.661231][ T1] hardirqs last enabled at (46723037): console_unlock (kernel/printk/printk.c:2668 (discriminator 1))
[ 128.663214][ T1] hardirqs last disabled at (46723046): console_unlock (kernel/printk/printk.c:2589 (discriminator 1))
[ 128.665188][ T1] softirqs last enabled at (46721174): __do_softirq (arch/x86/include/asm/preempt.h:27 kernel/softirq.c:402 kernel/softirq.c:587)
[ 128.667220][ T1] softirqs last disabled at (46721163): do_softirq_own_stack (arch/x86/kernel/irq_32.c:60 arch/x86/kernel/irq_32.c:149)
[ 128.669251][ T1] random: get_random_bytes called from init_oops_id+0x3a/0x40 with crng_init=0
[ 128.669270][ T1] ---[ end trace 41e10db5204fb3c9 ]---
[ 128.672412][ T1] ------------[ cut here ]------------
[ 128.673651][ T1] Failed to attach object property (type: 0x0). Please increase DRM_OBJECT_MAX_PROPERTY by 1 for each time you see this message on the same object type.


To reproduce:

# build kernel
cd linux
cp config-5.14.0-rc3-00652-g2f425cf5242a .config
make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 olddefconfig prepare modules_prepare bzImage

git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email

# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.



---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation

Thanks,
Oliver Sang


Attachments:
(No filename) (6.81 kB)
config-5.14.0-rc3-00652-g2f425cf5242a (139.38 kB)
job-script (4.64 kB)
dmesg.xz (25.69 kB)
rcuscale (443.00 B)
Download all attachments