Wind River Support Network

HomeDefectsLIN1022-1018
Fixed

LIN1022-1018 : kmemleak (drm_ioctl+0x234/0x480) found on xilinx-zynqmp BSP target

Created: Jul 20, 2022    Updated: Nov 1, 2022
Resolved Date: Nov 1, 2022
Found In Version: 10.22.33.1
Fix Version: 10.22.33.2
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: BSP

Description

root@xilinx-zynqmp:/opt/wr-test/testcases/bts/graphic_show_status# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0 unreferenced object 0xffffff880fc69a00 (size 128): comm "Xorg", pid 272, jiffies 4294948087 (age 176.772s) hex dump (first 32 bytes): 10 ea 81 07 88 ff ff ff 90 11 83 08 c0 ff ff ff ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<00000000c13ebd81>] kmem_cache_alloc_trace+0x3f0/0x6a0 [<00000000dde0fa28>] drm_atomic_helper_setup_commit+0x4b8/0x730 [<000000004f8b05af>] drm_atomic_helper_commit+0x64/0x184 [<000000009457f721>] drm_atomic_commit+0x58/0x70 [<00000000ef6b2c30>] drm_atomic_connector_commit_dpms+0xf4/0x120 [<00000000ef1952f5>] drm_mode_obj_set_property_ioctl+0x1b8/0x40c [<000000008bba31df>] drm_connector_property_set_ioctl+0x4c/0x7c [<000000004fae29ba>] drm_ioctl_kernel+0xd0/0x120 [<000000005ec87432>] drm_ioctl+0x234/0x480 [<00000000bbb8e581>] __arm64_sys_ioctl+0xb4/0x100 [<0000000042af2740>] invoke_syscall+0x5c/0x130 [<00000000e11603bf>] el0_svc_common.constprop.0+0x4c/0x100 [<00000000a7a44824>] do_el0_svc+0x50/0xb4 [<000000004c60c583>] el0_svc+0x28/0x80 [<000000000b070488>] el0t_64_sync_handler+0xa4/0x130 [<00000000173791d8>] el0t_64_sync+0x1a0/0x1a4 unreferenced object 0xffffff8809624100 (size 256): comm "Xorg", pid 272, jiffies 4294949143 (age 172.548s) hex dump (first 32 bytes): 80 80 f6 03 88 ff ff ff 01 00 00 00 00 00 00 00 ................ ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<00000000c13ebd81>] kmem_cache_alloc_trace+0x3f0/0x6a0 [<0000000011846b49>] drm_atomic_helper_setup_commit+0x9c/0x730 [<000000004f8b05af>] drm_atomic_helper_commit+0x64/0x184 [<000000009457f721>] drm_atomic_commit+0x58/0x70 [<00000000ef6b2c30>] drm_atomic_connector_commit_dpms+0xf4/0x120 [<00000000ef1952f5>] drm_mode_obj_set_property_ioctl+0x1b8/0x40c [<000000008bba31df>] drm_connector_property_set_ioctl+0x4c/0x7c [<000000004fae29ba>] drm_ioctl_kernel+0xd0/0x120 [<000000005ec87432>] drm_ioctl+0x234/0x480 [<00000000bbb8e581>] __arm64_sys_ioctl+0xb4/0x100 [<0000000042af2740>] invoke_syscall+0x5c/0x130 [<00000000e11603bf>] el0_svc_common.constprop.0+0x4c/0x100 [<00000000a7a44824>] do_el0_svc+0x50/0xb4 [<000000004c60c583>] el0_svc+0x28/0x80 [<000000000b070488>] el0t_64_sync_handler+0xa4/0x130 [<00000000173791d8>] el0t_64_sync+0x1a0/0x1a4 unreferenced object 0xffffff880c1da200 (size 128): comm "Xorg", pid 272, jiffies 4294949143 (age 172.548s) hex dump (first 32 bytes): 10 41 62 09 88 ff ff ff 90 11 83 08 c0 ff ff ff .Ab............. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ...

Steps to Reproduce

1. Build project

$ /lpg-build/cdc/fast_prod/WRL10_22/WRL10_22_GIT/wrlinux-10/setup.sh --machines=xilinx-zynqmp --templates feature/test --accept-eula=yes --dl-layers
$ source environment-setup-x86_64-wrlinuxsdk-linux
$ source oe-init-build-env
$ vi conf/local.conf
$ cat << _EOF >> conf/local.conf
 DISTRO ?= "wrlinux-graphics"
 PREFERRED_PROVIDER_virtual/mesa_xilinx-zynqmp = "mesa-gl"
 PREFERRED_PROVIDER_virtual/libgl_xilinx-zynqmp = "mesa-gl"
 PREFERRED_PROVIDER_virtual/libgles1_xilinx-zynqmp = "libmali-xlnx"
 PREFERRED_PROVIDER_virtual/libgles2_xilinx-zynqmp = "libmali-xlnx"
 PREFERRED_PROVIDER_virtual/egl_xilinx-zynqmp = "libmali-xlnx"
 PNWHITELIST_xilinx += "libmali-xlnx"
 PNWHITELIST_xilinx += 'kernel-module-mali'
 LICENSE_FLAGS_WHITELIST += "xilinx"
 _EOF
$ bitbake wrlinux-image-std-sato

2. Load image to the target (#29049)
3. Run the following command on the target

# /opt/wr-test/testcases/bts/graphic_show_status/runtest.sh -k DP-1
Live chat
Online