lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <eb932190-6358-4e9f-8bd2-ed34e4f71605@mailbox.org>
Date: Thu, 17 Jul 2025 00:34:35 +0200
From: Erhard Furtner <erhard_f@...lbox.org>
To: dri-devel@...ts.freedesktop.org
Cc: linux-kernel@...r.kernel.org
Subject: WARNING on drm_framebuffer_test, drm_rect_test, drm_gem_shmem_test,
 e.g. WARNING: CPU: 1 PID: 1379 at drivers/gpu/drm/drm_gem_shmem_helper.c:180
 drm_gem_shmem_free+0x2f0/0x308 [drm_shmem_helper] (kernel v6.16-rc6)

Greetings!

I noticed this at running in-kernel drm tests on my Thinkpad T60 and 
also on my PowerMac G4 DP.

drm_framebuffer_test, drm_rect_test, drm_gem_shmem_test tests pass, but 
show warnings and a stacktace:

[...]
KTAP version 1
1..1
     KTAP version 1
     # Subtest: drm_framebuffer
     # module: drm_framebuffer_test
     1..10
         KTAP version 1
         # Subtest: drm_test_framebuffer_check_src_coords
         ok 1 Success: source fits into fb
         ok 2 Fail: overflowing fb with x-axis coordinate
         ok 3 Fail: overflowing fb with y-axis coordinate
         ok 4 Fail: overflowing fb with source width
         ok 5 Fail: overflowing fb with source height
     # drm_test_framebuffer_check_src_coords: pass:5 fail:0 skip:0 total:5
     ok 1 drm_test_framebuffer_check_src_coords
     ok 2 drm_test_framebuffer_cleanup
         KTAP version 1
         # Subtest: drm_test_framebuffer_create
         ok 1 ABGR8888 normal sizes
         ok 2 ABGR8888 max sizes
         ok 3 ABGR8888 pitch greater than min required
         ok 4 ABGR8888 pitch less than min required
         ok 5 ABGR8888 Invalid width
         ok 6 ABGR8888 Invalid buffer handle
         ok 7 No pixel format
         ok 8 ABGR8888 Width 0
         ok 9 ABGR8888 Height 0
         ok 10 ABGR8888 Out of bound height * pitch combination
         ok 11 ABGR8888 Large buffer offset
         ok 12 ABGR8888 Buffer offset for inexistent plane
         ok 13 ABGR8888 Invalid flag
         ok 14 ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
         ok 15 ABGR8888 Valid buffer modifier
         ok 16 ABGR8888 Invalid buffer 
modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
         ok 17 ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
         ok 18 ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
         ok 19 NV12 Normal sizes
         ok 20 NV12 Max sizes
         ok 21 NV12 Invalid pitch
         ok 22 NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
         ok 23 NV12 different  modifier per-plane
         ok 24 NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
         ok 25 NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
         ok 26 NV12 Modifier for inexistent plane
         ok 27 NV12 Handle for inexistent plane
         ok 28 NV12 Handle for inexistent plane without 
DRM_MODE_FB_MODIFIERS
         ok 29 YVU420 DRM_MODE_FB_MODIFIERS set without modifier
         ok 30 YVU420 Normal sizes
         ok 31 YVU420 Max sizes
         ok 32 YVU420 Invalid pitch
         ok 33 YVU420 Different pitches
         ok 34 YVU420 Different buffer offsets/pitches
         ok 35 YVU420 Modifier set just for plane 0, without 
DRM_MODE_FB_MODIFIERS
         ok 36 YVU420 Modifier set just for planes 0, 1, without 
DRM_MODE_FB_MODIFIERS
         ok 37 YVU420 Modifier set just for plane 0, 1, with 
DRM_MODE_FB_MODIFIERS
         ok 38 YVU420 Valid modifier
         ok 39 YVU420 Different modifiers per plane
         ok 40 YVU420 Modifier for inexistent plane
         ok 41 YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
         ok 42 X0L2 Normal sizes
         ok 43 X0L2 Max sizes
         ok 44 X0L2 Invalid pitch
         ok 45 X0L2 Pitch greater than minimum required
         ok 46 X0L2 Handle for inexistent plane
         ok 47 X0L2 Offset for inexistent plane, without 
DRM_MODE_FB_MODIFIERS set
         ok 48 X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
         ok 49 X0L2 Valid modifier
         ok 50 X0L2 Modifier for inexistent plane
     # drm_test_framebuffer_create: pass:50 fail:0 skip:0 total:50
     ok 3 drm_test_framebuffer_create
------------[ cut here ]------------
drm-kunit-mock-device drm_test_framebuffer_free.drm-kunit-mock-device: 
[drm] drm_WARN_ON(!list_empty(&fb->filp_head))
WARNING: CPU: 1 PID: 816 at drivers/gpu/drm/drm_framebuffer.c:832 
drm_framebuffer_free+0x70/0x74
Modules linked in: drm_framebuffer_test drm_kunit_helpers drm_buddy_test 
drm_buddy kunit ghash_generic gf128mul gcm ccm algif_aead des_generic 
libdes ctr cbc ecb algif_skcipher aes_generic libaes cmac sha3_generic 
sha512_generic sha1_generic md5 af_packet iwl3945 iwlegacy mac80211 
libarc4 radeon uhci_hcd acpi_cpufreq snd_hda_intel ehci_pci ehci_hcd 
snd_intel_dspcfg snd_hda_codec thinkpad_acpi usbcore cfg80211 
drm_suballoc_helper drm_ttm_helper ttm snd_hwdep i2c_algo_bit nvram 
platform_profile drm_exec sparse_keymap rfkill drm_display_helper 
snd_hda_core usb_common video snd_pcm input_leds wmi processor snd_timer 
ac backlight joydev evdev battery snd thermal button soundcore 
pkcs8_key_parser coretemp hwmon fuse loop dm_mod configfs
CPU: 1 UID: 0 PID: 816 Comm: kunit_try_catch Tainted: G 
N  6.16.0-rc6-P3 #1 PREEMPTLAZY
Tainted: [N]=TEST
Hardware name: LENOVO 2007F2G/2007F2G, BIOS 79ETE7WW (2.27 ) 03/21/2011
EIP: drm_framebuffer_free+0x70/0x74
Code: 53 08 eb 09 31 c0 e8 fb f8 02 00 31 d2 8b 4a 2c 85 c9 75 02 8b 0a 
68 4c d7 83 cc 51 50 68 03 10 7c cc e8 f7 15 a6 ff 83 c4 10 <0f> 0b eb 
a4 55 89 e5 53 57 56 83 ec 10 39 02 74 13 0f 0b b8 ea ff
EAX: 00000000 EBX: c4e08800 ECX: 00000000 EDX: 00000000
ESI: c7371e58 EDI: c7371e70 EBP: c7371e3c ESP: c7371e30
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010286
CR0: 80050033 CR2: 0089d010 CR3: 06c90000 CR4: 000006f0
Call Trace:
  drm_test_framebuffer_free+0x77/0x1e8 [drm_framebuffer_test]
  kunit_try_run_case+0x70/0x184 [kunit]
  ? __switch_to_asm+0x2f/0xf0
  ? schedule+0x52/0x78
  ? _raw_spin_unlock_irqrestore+0xb/0x2c
  kunit_generic_run_threadfn_adapter+0x18/0x2c [kunit]
  kthread+0x197/0x1c4
  ? _raw_spin_unlock_irq+0x8/0x20
  ? kunit_try_catch_run+0x1c4/0x1c4 [kunit]
  ? calculate_sigpending+0x2a/0x30
  ? kthread_blkcg+0x24/0x24
  ? kthread_blkcg+0x24/0x24
  ret_from_fork+0x79/0xcc
  ret_from_fork_asm+0x12/0x18
  entry_INT80_32+0xf0/0xf0
---[ end trace 0000000000000000 ]---
     ok 4 drm_test_framebuffer_free
     ok 5 drm_test_framebuffer_init
------------[ cut here ]------------
WARNING: CPU: 1 PID: 820 at drivers/gpu/drm/drm_framebuffer.c:869 
drm_framebuffer_init+0xd/0x20c
Modules linked in: drm_framebuffer_test drm_kunit_helpers drm_buddy_test 
drm_buddy kunit ghash_generic gf128mul gcm ccm algif_aead des_generic 
libdes ctr cbc ecb algif_skcipher aes_generic libaes cmac sha3_generic 
sha512_generic sha1_generic md5 af_packet iwl3945 iwlegacy mac80211 
libarc4 radeon uhci_hcd acpi_cpufreq snd_hda_intel ehci_pci ehci_hcd 
snd_intel_dspcfg snd_hda_codec thinkpad_acpi usbcore cfg80211 
drm_suballoc_helper drm_ttm_helper ttm snd_hwdep i2c_algo_bit nvram 
platform_profile drm_exec sparse_keymap rfkill drm_display_helper 
snd_hda_core usb_common video snd_pcm input_leds wmi processor snd_timer 
ac backlight joydev evdev battery snd thermal button soundcore 
pkcs8_key_parser coretemp hwmon fuse loop dm_mod configfs
CPU: 1 UID: 0 PID: 820 Comm: kunit_try_catch Tainted: G        W 
N  6.16.0-rc6-P3 #1 PREEMPTLAZY
Tainted: [W]=WARN, [N]=TEST
Hardware name: LENOVO 2007F2G/2007F2G, BIOS 79ETE7WW (2.27 ) 03/21/2011
EIP: drm_framebuffer_init+0xd/0x20c
Code: c9 75 02 8b 0a 68 4c d7 83 cc 51 50 68 03 10 7c cc e8 f7 15 a6 ff 
83 c4 10 0f 0b eb a4 55 89 e5 53 57 56 83 ec 10 39 02 74 13 <0f> 0b b8 
ea ff ff ff 83 c4 10 5e 5f 5b 5d 31 c9 31 d2 c3 89 d6 8b
EAX: c4aea000 EBX: 00000000 ECX: c737de4c EDX: 00000000
ESI: c737de58 EDI: c4aea000 EBP: c737de30 ESP: c737de14
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010246
CR0: 80050033 CR2: b66bf950 CR3: 06c96000 CR4: 000006f0
Call Trace:
  drm_test_framebuffer_init_bad_format+0x51/0xcc [drm_framebuffer_test]
  kunit_try_run_case+0x70/0x184 [kunit]
  ? __switch_to_asm+0x2f/0xf0
  ? schedule+0x52/0x78
  ? _raw_spin_unlock_irqrestore+0xb/0x2c
  kunit_generic_run_threadfn_adapter+0x18/0x2c [kunit]
  kthread+0x197/0x1c4
  ? _raw_spin_unlock_irq+0x8/0x20
  ? kunit_try_catch_run+0x1c4/0x1c4 [kunit]
  ? calculate_sigpending+0x2a/0x30
  ? kthread_blkcg+0x24/0x24
  ? kthread_blkcg+0x24/0x24
  ret_from_fork+0x79/0xcc
  ret_from_fork_asm+0x12/0x18
  entry_INT80_32+0xf0/0xf0
---[ end trace 0000000000000000 ]---
     ok 6 drm_test_framebuffer_init_bad_format
     ok 7 drm_test_framebuffer_init_dev_mismatch
     ok 8 drm_test_framebuffer_lookup
     ok 9 drm_test_framebuffer_lookup_inexistent
     ok 10 drm_test_framebuffer_modifiers_not_supported
# drm_framebuffer: pass:10 fail:0 skip:0 total:10
# Totals: pass:63 fail:0 skip:0 total:63
ok 1 drm_framebuffer
KTAP version 1
1..1
     KTAP version 1
     # Subtest: drm_rect
     # module: drm_rect_test
     1..9
     ok 1 drm_test_rect_clip_scaled_div_by_zero
     ok 2 drm_test_rect_clip_scaled_not_clipped
     ok 3 drm_test_rect_clip_scaled_clipped
     ok 4 drm_test_rect_clip_scaled_signed_vs_unsigned
         KTAP version 1
         # Subtest: drm_test_rect_intersect
         ok 1 top-left x bottom-right: 2x2+1+1 x 2x2+0+0
         ok 2 top-right x bottom-left: 2x2+0+0 x 2x2+1-1
         ok 3 bottom-left x top-right: 2x2+1-1 x 2x2+0+0
         ok 4 bottom-right x top-left: 2x2+0+0 x 2x2+1+1
         ok 5 right x left: 2x1+0+0 x 3x1+1+0
         ok 6 left x right: 3x1+1+0 x 2x1+0+0
         ok 7 up x bottom: 1x2+0+0 x 1x3+0-1
         ok 8 bottom x up: 1x3+0-1 x 1x2+0+0
         ok 9 touching corner: 1x1+0+0 x 2x2+1+1
         ok 10 touching side: 1x1+0+0 x 1x1+1+0
         ok 11 equal rects: 2x2+0+0 x 2x2+0+0
         ok 12 inside another: 2x2+0+0 x 1x1+1+1
         ok 13 far away: 1x1+0+0 x 1x1+3+6
         ok 14 points intersecting: 0x0+5+10 x 0x0+5+10
         ok 15 points not intersecting: 0x0+0+0 x 0x0+5+10
     # drm_test_rect_intersect: pass:15 fail:0 skip:0 total:15
     ok 5 drm_test_rect_intersect
         KTAP version 1
         # Subtest: drm_test_rect_calc_hscale
         ok 1 normal use
         ok 2 out of max range
         ok 3 out of min range
         ok 4 zero dst
------------[ cut here ]------------
WARNING: CPU: 1 PID: 882 at drivers/gpu/drm/drm_rect.c:137 
drm_rect_calc_hscale+0x6c/0x78
Modules linked in: drm_rect_test drm_framebuffer_test drm_kunit_helpers 
drm_buddy_test drm_buddy kunit ghash_generic gf128mul gcm ccm algif_aead 
des_generic libdes ctr cbc ecb algif_skcipher aes_generic libaes cmac 
sha3_generic sha512_generic sha1_generic md5 af_packet iwl3945 iwlegacy 
mac80211 libarc4 radeon uhci_hcd acpi_cpufreq snd_hda_intel ehci_pci 
ehci_hcd snd_intel_dspcfg snd_hda_codec thinkpad_acpi usbcore cfg80211 
drm_suballoc_helper drm_ttm_helper ttm snd_hwdep i2c_algo_bit nvram 
platform_profile drm_exec sparse_keymap rfkill drm_display_helper 
snd_hda_core usb_common video snd_pcm input_leds wmi processor snd_timer 
ac backlight joydev evdev battery snd thermal button soundcore 
pkcs8_key_parser coretemp hwmon fuse loop dm_mod configfs
CPU: 1 UID: 0 PID: 882 Comm: kunit_try_catch Tainted: G        W 
N  6.16.0-rc6-P3 #1 PREEMPTLAZY
Tainted: [W]=WARN, [N]=TEST
Hardware name: LENOVO 2007F2G/2007F2G, BIOS 79ETE7WW (2.27 ) 03/21/2011
EIP: drm_rect_calc_hscale+0x6c/0x78
Code: 39 d0 be de ff ff ff 89 c2 0f 4f d6 3b 45 f0 0f 4c d6 85 c0 0f 48 
d0 39 cf 0f 44 d0 89 d0 83 c4 04 5e 5f 5b 5d 31 c9 31 d2 c3 <0f> 0b b8 
ea ff ff ff eb cd 90 90 90 55 89 e5 53 57 56 50 89 4d f0
EAX: ffff0000 EBX: 00010000 ECX: 00000000 EDX: 7fffffff
ESI: ffff0000 EDI: 00010000 EBP: c6c85ec8 ESP: c6c85eb8
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010286
CR0: 80050033 CR2: b63b8010 CR3: 01276000 CR4: 000006f0
Call Trace:
  drm_test_rect_calc_hscale+0x1e/0x80 [drm_rect_test]
  ? __switch_to_asm+0x59/0xf0
  ? __switch_to_asm+0x53/0xf0
  kunit_try_run_case+0x70/0x184 [kunit]
  ? __switch_to_asm+0x2f/0xf0
  ? schedule+0x52/0x78
  ? _raw_spin_unlock_irqrestore+0xb/0x2c
  kunit_generic_run_threadfn_adapter+0x18/0x2c [kunit]
  kthread+0x197/0x1c4
  ? _raw_spin_unlock_irq+0x8/0x20
  ? kunit_try_catch_run+0x1c4/0x1c4 [kunit]
  ? calculate_sigpending+0x2a/0x30
  ? kthread_blkcg+0x24/0x24
  ? kthread_blkcg+0x24/0x24
  ret_from_fork+0x79/0xcc
  ret_from_fork_asm+0x12/0x18
  entry_INT80_32+0xf0/0xf0
---[ end trace 0000000000000000 ]---
         ok 5 negative src
------------[ cut here ]------------
WARNING: CPU: 1 PID: 884 at drivers/gpu/drm/drm_rect.c:137 
drm_rect_calc_hscale+0x6c/0x78
Modules linked in: drm_rect_test drm_framebuffer_test drm_kunit_helpers 
drm_buddy_test drm_buddy kunit ghash_generic gf128mul gcm ccm algif_aead 
des_generic libdes ctr cbc ecb algif_skcipher aes_generic libaes cmac 
sha3_generic sha512_generic sha1_generic md5 af_packet iwl3945 iwlegacy 
mac80211 libarc4 radeon uhci_hcd acpi_cpufreq snd_hda_intel ehci_pci 
ehci_hcd snd_intel_dspcfg snd_hda_codec thinkpad_acpi usbcore cfg80211 
drm_suballoc_helper drm_ttm_helper ttm snd_hwdep i2c_algo_bit nvram 
platform_profile drm_exec sparse_keymap rfkill drm_display_helper 
snd_hda_core usb_common video snd_pcm input_leds wmi processor snd_timer 
ac backlight joydev evdev battery snd thermal button soundcore 
pkcs8_key_parser coretemp hwmon fuse loop dm_mod configfs
CPU: 1 UID: 0 PID: 884 Comm: kunit_try_catch Tainted: G        W 
N  6.16.0-rc6-P3 #1 PREEMPTLAZY
Tainted: [W]=WARN, [N]=TEST
Hardware name: LENOVO 2007F2G/2007F2G, BIOS 79ETE7WW (2.27 ) 03/21/2011
EIP: drm_rect_calc_hscale+0x6c/0x78
Code: 39 d0 be de ff ff ff 89 c2 0f 4f d6 3b 45 f0 0f 4c d6 85 c0 0f 48 
d0 39 cf 0f 44 d0 89 d0 83 c4 04 5e 5f 5b 5d 31 c9 31 d2 c3 <0f> 0b b8 
ea ff ff ff eb cd 90 90 90 55 89 e5 53 57 56 50 89 4d f0
EAX: ffff0000 EBX: ffff0000 ECX: 00000000 EDX: 7fffffff
ESI: 00010000 EDI: ffff0000 EBP: c5057ec8 ESP: c5057eb8
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010286
CR0: 80050033 CR2: b63b8010 CR3: 01276000 CR4: 000006f0
Call Trace:
  drm_test_rect_calc_hscale+0x1e/0x80 [drm_rect_test]
  ? __switch_to_asm+0x59/0xf0
  ? __switch_to_asm+0x53/0xf0
  kunit_try_run_case+0x70/0x184 [kunit]
  ? __switch_to_asm+0x2f/0xf0
  ? schedule+0x52/0x78
  ? _raw_spin_unlock_irqrestore+0xb/0x2c
  kunit_generic_run_threadfn_adapter+0x18/0x2c [kunit]
  kthread+0x197/0x1c4
  ? _raw_spin_unlock_irq+0x8/0x20
  ? kunit_try_catch_run+0x1c4/0x1c4 [kunit]
  ? calculate_sigpending+0x2a/0x30
  ? kthread_blkcg+0x24/0x24
  ? kthread_blkcg+0x24/0x24
  ret_from_fork+0x79/0xcc
  ret_from_fork_asm+0x12/0x18
  entry_INT80_32+0xf0/0xf0
---[ end trace 0000000000000000 ]---
         ok 6 negative dst
     # drm_test_rect_calc_hscale: pass:6 fail:0 skip:0 total:6
     ok 6 drm_test_rect_calc_hscale
         KTAP version 1
         # Subtest: drm_test_rect_calc_vscale
         ok 1 normal use
         ok 2 out of max range
         ok 3 out of min range
         ok 4 zero dst
------------[ cut here ]------------
WARNING: CPU: 1 PID: 894 at drivers/gpu/drm/drm_rect.c:137 
drm_rect_calc_vscale+0x6e/0x78
Modules linked in: drm_rect_test drm_framebuffer_test drm_kunit_helpers 
drm_buddy_test drm_buddy kunit ghash_generic gf128mul gcm ccm algif_aead 
des_generic libdes ctr cbc ecb algif_skcipher aes_generic libaes cmac 
sha3_generic sha512_generic sha1_generic md5 af_packet iwl3945 iwlegacy 
mac80211 libarc4 radeon uhci_hcd acpi_cpufreq snd_hda_intel ehci_pci 
ehci_hcd snd_intel_dspcfg snd_hda_codec thinkpad_acpi usbcore cfg80211 
drm_suballoc_helper drm_ttm_helper ttm snd_hwdep i2c_algo_bit nvram 
platform_profile drm_exec sparse_keymap rfkill drm_display_helper 
snd_hda_core usb_common video snd_pcm input_leds wmi processor snd_timer 
ac backlight joydev evdev battery snd thermal button soundcore 
pkcs8_key_parser coretemp hwmon fuse loop dm_mod configfs
CPU: 1 UID: 0 PID: 894 Comm: kunit_try_catch Tainted: G        W 
N  6.16.0-rc6-P3 #1 PREEMPTLAZY
Tainted: [W]=WARN, [N]=TEST
Hardware name: LENOVO 2007F2G/2007F2G, BIOS 79ETE7WW (2.27 ) 03/21/2011
EIP: drm_rect_calc_vscale+0x6e/0x78
Code: 39 d0 be de ff ff ff 89 c2 0f 4f d6 3b 45 f0 0f 4c d6 85 c0 0f 48 
d0 39 cf 0f 44 d0 89 d0 83 c4 04 5e 5f 5b 5d 31 c9 31 d2 c3 <0f> 0b b8 
ea ff ff ff eb cd 90 55 89 e5 53 57 56 83 ec 10 8b 32 8b
EAX: ffff0000 EBX: 00010000 ECX: 00000000 EDX: 7fffffff
ESI: ffff0000 EDI: 00010000 EBP: c5053ec8 ESP: c5053eb8
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010286
CR0: 80050033 CR2: b63b8010 CR3: 01276000 CR4: 000006f0
Call Trace:
  drm_test_rect_calc_vscale+0x1e/0x80 [drm_rect_test]
  ? __switch_to_asm+0x59/0xf0
  ? __switch_to_asm+0x53/0xf0
  kunit_try_run_case+0x70/0x184 [kunit]
  ? __switch_to_asm+0x2f/0xf0
  ? schedule+0x52/0x78
  ? _raw_spin_unlock_irqrestore+0xb/0x2c
  kunit_generic_run_threadfn_adapter+0x18/0x2c [kunit]
  kthread+0x197/0x1c4
  ? _raw_spin_unlock_irq+0x8/0x20
  ? kunit_try_catch_run+0x1c4/0x1c4 [kunit]
  ? calculate_sigpending+0x2a/0x30
  ? kthread_blkcg+0x24/0x24
  ? kthread_blkcg+0x24/0x24
  ret_from_fork+0x79/0xcc
  ret_from_fork_asm+0x12/0x18
  entry_INT80_32+0xf0/0xf0
---[ end trace 0000000000000000 ]---
         ok 5 negative src
------------[ cut here ]------------
WARNING: CPU: 0 PID: 896 at drivers/gpu/drm/drm_rect.c:137 
drm_rect_calc_vscale+0x6e/0x78
Modules linked in: drm_rect_test drm_framebuffer_test drm_kunit_helpers 
drm_buddy_test drm_buddy kunit ghash_generic gf128mul gcm ccm algif_aead 
des_generic libdes ctr cbc ecb algif_skcipher aes_generic libaes cmac 
sha3_generic sha512_generic sha1_generic md5 af_packet iwl3945 iwlegacy 
mac80211 libarc4 radeon uhci_hcd acpi_cpufreq snd_hda_intel ehci_pci 
ehci_hcd snd_intel_dspcfg snd_hda_codec thinkpad_acpi usbcore cfg80211 
drm_suballoc_helper drm_ttm_helper ttm snd_hwdep i2c_algo_bit nvram 
platform_profile drm_exec sparse_keymap rfkill drm_display_helper 
snd_hda_core usb_common video snd_pcm input_leds wmi processor snd_timer 
ac backlight joydev evdev battery snd thermal button soundcore 
pkcs8_key_parser coretemp hwmon fuse loop dm_mod configfs
CPU: 0 UID: 0 PID: 896 Comm: kunit_try_catch Tainted: G        W 
N  6.16.0-rc6-P3 #1 PREEMPTLAZY
Tainted: [W]=WARN, [N]=TEST
Hardware name: LENOVO 2007F2G/2007F2G, BIOS 79ETE7WW (2.27 ) 03/21/2011
EIP: drm_rect_calc_vscale+0x6e/0x78
Code: 39 d0 be de ff ff ff 89 c2 0f 4f d6 3b 45 f0 0f 4c d6 85 c0 0f 48 
d0 39 cf 0f 44 d0 89 d0 83 c4 04 5e 5f 5b 5d 31 c9 31 d2 c3 <0f> 0b b8 
ea ff ff ff eb cd 90 55 89 e5 53 57 56 83 ec 10 8b 32 8b
EAX: ffff0000 EBX: ffff0000 ECX: 00000000 EDX: 7fffffff
ESI: 00010000 EDI: ffff0000 EBP: c7361ec8 ESP: c7361eb8
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010286
CR0: 80050033 CR2: b7c9fcd6 CR3: 01276000 CR4: 000006f0
Call Trace:
  drm_test_rect_calc_vscale+0x1e/0x80 [drm_rect_test]
  ? __switch_to_asm+0x59/0xf0
  ? __switch_to_asm+0x53/0xf0
  kunit_try_run_case+0x70/0x184 [kunit]
  ? __switch_to_asm+0x2f/0xf0
  ? schedule+0x52/0x78
  ? _raw_spin_unlock_irqrestore+0xb/0x2c
  kunit_generic_run_threadfn_adapter+0x18/0x2c [kunit]
  kthread+0x197/0x1c4
  ? _raw_spin_unlock_irq+0x8/0x20
  ? kunit_try_catch_run+0x1c4/0x1c4 [kunit]
  ? calculate_sigpending+0x2a/0x30
  ? kthread_blkcg+0x24/0x24
  ? kthread_blkcg+0x24/0x24
  ret_from_fork+0x79/0xcc
  ret_from_fork_asm+0x12/0x18
  entry_INT80_32+0xf0/0xf0
---[ end trace 0000000000000000 ]---
         ok 6 negative dst
     # drm_test_rect_calc_vscale: pass:6 fail:0 skip:0 total:6
     ok 7 drm_test_rect_calc_vscale
         KTAP version 1
         # Subtest: drm_test_rect_rotate
         ok 1 reflect-x
         ok 2 reflect-y
         ok 3 rotate-0
         ok 4 rotate-90
         ok 5 rotate-180
         ok 6 rotate-270
     # drm_test_rect_rotate: pass:6 fail:0 skip:0 total:6
     ok 8 drm_test_rect_rotate
         KTAP version 1
         # Subtest: drm_test_rect_rotate_inv
         ok 1 reflect-x
         ok 2 reflect-y
         ok 3 rotate-0
         ok 4 rotate-90
         ok 5 rotate-180
         ok 6 rotate-270
     # drm_test_rect_rotate_inv: pass:6 fail:0 skip:0 total:6
     ok 9 drm_test_rect_rotate_inv
# drm_rect: pass:9 fail:0 skip:0 total:9
# Totals: pass:43 fail:0 skip:0 total:43
ok 1 drm_rect
KTAP version 1
1..1
     KTAP version 1
     # Subtest: drm_gem_shmem
     # module: drm_gem_shmem_test
     1..8
     ok 1 drm_gem_shmem_test_obj_create
     ok 2 drm_gem_shmem_test_obj_create_private
     ok 3 drm_gem_shmem_test_pin_pages
     ok 4 drm_gem_shmem_test_vmap
------------[ cut here ]------------
drm-kunit-mock-device 
drm_gem_shmem_test_get_pages_sgt.drm-kunit-mock-device: [drm] 
drm_WARN_ON(refcount_read(&shmem->pages_pin_count))
WARNING: CPU: 0 PID: 937 at drivers/gpu/drm/drm_gem_shmem_helper.c:180 
drm_gem_shmem_free+0x16c/0x19c
Modules linked in: drm_gem_shmem_test drm_rect_test drm_framebuffer_test 
drm_kunit_helpers drm_buddy_test drm_buddy kunit ghash_generic gf128mul 
gcm ccm algif_aead des_generic libdes ctr cbc ecb algif_skcipher 
aes_generic libaes cmac sha3_generic sha512_generic sha1_generic md5 
af_packet iwl3945 iwlegacy mac80211 libarc4 radeon uhci_hcd acpi_cpufreq 
snd_hda_intel ehci_pci ehci_hcd snd_intel_dspcfg snd_hda_codec 
thinkpad_acpi usbcore cfg80211 drm_suballoc_helper drm_ttm_helper ttm 
snd_hwdep i2c_algo_bit nvram platform_profile drm_exec sparse_keymap 
rfkill drm_display_helper snd_hda_core usb_common video snd_pcm 
input_leds wmi processor snd_timer ac backlight joydev evdev battery snd 
thermal button soundcore pkcs8_key_parser coretemp hwmon fuse loop 
dm_mod configfs
CPU: 0 UID: 0 PID: 937 Comm: kunit_try_catch Tainted: G        W 
N  6.16.0-rc6-P3 #1 PREEMPTLAZY
Tainted: [W]=WARN, [N]=TEST
Hardware name: LENOVO 2007F2G/2007F2G, BIOS 79ETE7WW (2.27 ) 03/21/2011
EIP: drm_gem_shmem_free+0x16c/0x19c
Code: 32 01 00 8b 4e 08 85 c9 74 03 8b 79 08 8b 4f 2c 85 c9 75 02 8b 0f 
68 21 b6 7b cc 51 50 68 03 10 7c cc e8 53 4f a4 ff 83 c4 10 <0f> 0b e9 
28 ff ff ff 31 c9 8b 51 2c 85 d2 75 02 8b 11 68 4a 1d 80
EAX: 00000000 EBX: c5c23710 ECX: 00000000 EDX: 00000000
ESI: c64f8e00 EDI: c64f9a00 EBP: c7357f08 ESP: c7357f00
DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010286
CR0: 80050033 CR2: b644ee20 CR3: 07350000 CR4: 000006f0
Call Trace:
  drm_gem_shmem_free_wrapper+0x8/0x3d0 [drm_gem_shmem_test]
  __kunit_action_free+0xe/0x14 [kunit]
  kunit_remove_resource+0x69/0x9c [kunit]
  kunit_cleanup+0x38/0x70 [kunit]
  kunit_try_run_case_cleanup+0x2e/0x38 [kunit]
  kunit_generic_run_threadfn_adapter+0x18/0x2c [kunit]
  kthread+0x197/0x1c4
  ? _raw_spin_unlock_irq+0x8/0x20
  ? kunit_try_catch_run+0x1c4/0x1c4 [kunit]
  ? calculate_sigpending+0x2a/0x30
  ? kthread_blkcg+0x24/0x24
  ? kthread_blkcg+0x24/0x24
  ret_from_fork+0x79/0xcc
  ret_from_fork_asm+0x12/0x18
  entry_INT80_32+0xf0/0xf0
---[ end trace 0000000000000000 ]---
     ok 5 drm_gem_shmem_test_get_pages_sgt
     ok 6 drm_gem_shmem_test_get_sg_table
     ok 7 drm_gem_shmem_test_madvise
     ok 8 drm_gem_shmem_test_purge
# drm_gem_shmem: pass:8 fail:0 skip:0 total:8
# Totals: pass:8 fail:0 skip:0 total:8
ok 1 drm_gem_shmem
[...]

The other drm_* tests pass (or fail), but without showing these warnings.

Kernel .config attached.

Regards,
Erhard
View attachment "config_616-rc6_p3" of type "text/plain" (134544 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ