HomeDefectsLIN1025-3208
Acknowledged

LIN1025-3208 : [nxp-imx8] graphic: Kmemleak (imx8mq_mipi_csi_probe+0x47c/0x648) is found in camera testing

Created: Aug 13, 2025    Updated: Nov 2, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: BSP

Description

root@nxp-imx8:/# media-ctl -d1 -r
root@nxp-imx8:/# media-ctl -d1 -R "'crossbar' 2/0 -> 6/0 [1]]"
root@nxp-imx8:/# media-ctl -d1 -l "'ov5640 2-003c':0 -> 'imx8mq-mipi-csi2 58227000.csi':0 [1]"
root@nxp-imx8:/# media-ctl -d1 -l "'crossbar':6 -> 'mxc_isi.0':0 [1]"
root@nxp-imx8:/# media-ctl -d1 -l "'mxc_isi.0':1 -> 'mxc_isi.0.capture':0 [1]"
root@nxp-imx8:/# media-ctl -d1 -V "'ov5640 2-003c':0 [fmt:UYVY/1920x1080 field:none]"
root@nxp-imx8:/# media-ctl -d1 -V "'imx8mq-mipi-csi2 58227000.csi':0 [fmt:UYVY/1920x1080 field:none]"
root@nxp-imx8:/# media-ctl -d1 -V "'crossbar':2 [fmt:UYVY/1920x1080 field:none]"
root@nxp-imx8:/# media-ctl -d1 -V "'crossbar':6 [fmt:UYVY/1920x1080 field:none]"
root@nxp-imx8:/# media-ctl -d1 -V "'mxc_isi.0':0 [compose:(0,0)/1920x1080]"
root@nxp-imx8:/# media-ctl -d1 -V "'mxc_isi.0':0 [fmt:UYVY/1920x1080 field:none]"
root@nxp-imx8:/# media-ctl -d1 -V "'mxc_isi.0':1 [fmt:UYVY/1920x1080 field:none]"

root@nxp-imx8:/# gst-launch-1.0 v4l2src device=/dev/video2 num-buffers=10 ! video/x-raw,format=YUY2,width=1920,height=1080 ! jpegenc ! filesink location=test_log/test_video2.jpg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:09.906042750
Setting pipeline to NULL ...
Freeing pipeline ...
root@nxp-imx8:/opt/wr-test/testcases/bts/gstreamer_v4l2src# ls -l test_log/test_video2.jpg
-rw-r--r-- 1 root root 772810 Aug 14  2025 test_log/test_video2.jpg
root@nxp-imx8:/# cat /sys/kernel/debug/kmemleak  (grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0
unreferenced object 0xffff0008178ddd40 (size 64):
  comm "(udev-worker)", pid 523, jiffies 4294896434
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc 2024ff0b):
    kmemleak_alloc+0x3c/0x50
    __kmalloc_noprof+0x1e4/0x4c8
    imx8mq_mipi_csi_init_state+0x60/0xf8 [imx8mq_mipi_csi2)
    __v4l2_subdev_state_alloc+0x9c/0x130 [videodev]
    __v4l2_subdev_init_finalize+0x54/0xe0 [videodev]
    imx8mq_mipi_csi_probe+0x47c/0x648 [imx8mq_mipi_csi2]
    platform_probe+0x70/0xe8
    really_probe+0xc4/0x2d0
    __driver_probe_device+0x80/0x130
    driver_probe_device+0xbc/0x180
    __driver_attach+0x98/0x1b8
    bus_for_each_dev+0x84/0x100
    driver_attach+0x2c/0x40
    bus_add_driver+0xec/0x220
    driver_register+0x70/0x138
    __platform_driver_register+0x2c/0x40
unreferenced object 0xffff000815c40180 (size 64):
  comm "(udev-worker)", pid 523, jiffies 4294896435
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc 2024ff0b):
    kmemleak_alloc+0x3c/0x50
    __kmalloc_noprof+0x1e4/0x4c8
    imx8mq_mipi_csi_init_state+0x60/0xf8 [imx8mq_mipi_csi2]
    __v4l2_subdev_state_alloc+0x9c/0x130 [videodev]
    __v4l2_subdev_init_finalize+0x54/0xe0 [videodev]
    imx8mq_mipi_csi_probe+0x47c/0x648 [imx8mq_mipi_csi2]
    platform_probe+0x70/0xe8
    really_probe+0xc4/0x2d0
    __driver_probe_device+0x80/0x130
    driver_probe_device+0xbc/0x180
    __driver_attach+0x98/0x1b8
    bus_for_each_dev+0x84/0x100
    driver_attach+0x2c/0x40
    bus_add_driver+0xec/0x220
    driver_register+0x70/0x138
    __platform_driver_register+0x2c/0x40
unreferenced object 0xffff00081bdb4800 (size 64):
  comm "v4l_id", pid 753, jiffies 4294896993
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc 2024ff0b):
    kmemleak_alloc+0x3c/0x50
    __kmalloc_noprof+0x1e4/0x4c8
    imx8mq_mipi_csi_init_state+0x60/0xf8 [imx8mq_mipi_csi2]
    __v4l2_subdev_state_alloc+0x9c/0x130 [videodev]
    subdev_open+0x60/0x1a0 [videodev]
    v4l2_open+0xb4/0x138 [videodev]
    chrdev_open+0xb8/0x220
    do_dentry_open+0x140/0x4d8
    vfs_open+0x34/0xf8
    path_openat+0x964/0xf10
    do_filp_open+0xa8/0x170
    do_sys_openat2+0xd0/0x110
    __arm64_sys_openat+0x6c/0xc8
    invoke_syscall+0x5c/0x128
    el0_svc_common.constprop.0+0xc8/0xf8
    do_el0_svc+0x24/0x40
unreferenced object 0xffff00081e9fe200 (size 64):
  comm "v4l_id", pid 769, jiffies 4294897003
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc 2024ff0b):
    kmemleak_alloc+0x3c/0x50
    __kmalloc_noprof+0x1e4/0x4c8
    imx8mq_mipi_csi_init_state+0x60/0xf8 [imx8mq_mipi_csi2]
    __v4l2_subdev_state_alloc+0x9c/0x130 [videodev]
    subdev_open+0x60/0x1a0 [videodev]
    v4l2_open+0xb4/0x138 [videodev]
    chrdev_open+0xb8/0x220
    do_dentry_open+0x140/0x4d8
    vfs_open+0x34/0xf8
    path_openat+0x964/0xf10
    do_filp_open+0xa8/0x170
    do_sys_openat2+0xd0/0x110
    __arm64_sys_openat+0x6c/0xc8
    invoke_syscall+0x5c/0x128
    el0_svc_common.constprop.0+0xc8/0xf8
    do_el0_svc+0x24/0x40

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRL10_25/WRL10_25_GIT/wrlinux-10/setup.sh --machines nxp-imx8 --distros wrlinux-graphics --dl-layers=1 --accept-eula=yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build
echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"' >> conf/local.conf

cat << EOF >> customized_test_plan.ini
gstreamer_v4l2src
eiq_machine_learning
EOF

echo 'BB_NUMBER_THREADS ?= "24"' >> conf/local.conf
echo 'PARALLEL_MAKE ?= "-j 24"' >> conf/local.conf
export http_proxy=147.11.252.42:9090
export https_proxy=147.11.252.42:9090
bitbake-layers add-layer /net/pek-lpgtest7408/buildarea1/SharedImage/wrlinux-testing-dl/
bitbake-layers add-layer /net/pek-lpgtest16/buildarea1/kliang/lxgit/wassp/WASSP_LINUX_1025/testcases/wrlinux/wr-testing/bts-dev

#####To Clone a whole new testcases layer#####
git clone --depth 1 -b master git://lxgit.wrs.com/wrlinux-testing/testcases.git ../layers/testcases/wrlinux/
bitbake-layers add-layer ../layers/testcases/wrlinux/wr-testing/bts-dev
#####End#####

echo '
require templates/feature/bts/template.conf
IMAGE_FSTYPES += " tar.bz2"
ACTIVE_PLAN = "customized_test_plan.ini"' >> conf/local.conf
echo 'BB_NO_NETWORK = '0'
ACCEPT_FSL_EULA = "1"
LICENSE_FLAGS_ACCEPTED:append = " commercial"
BSP_NXP_DERIVED:append:nxp-imx8  = " nxp-imx8"
DISTROOVERRIDES:nxp-imx8 = "fsl fslc"
PREFERRED_PROVIDER_virtual/egl:imxgpu        ?= "imx-gpu-viv"
PREFERRED_PROVIDER_virtual/libgl:imxgpu    ?= "mesa-gl"
PREFERRED_PROVIDER_virtual/mesa:imxgpu    ?= "mesa-gl"
PREFERRED_PROVIDER_virtual/libgles1:imxgpu3d ?= "imx-gpu-viv"
PREFERRED_PROVIDER_virtual/libgles2:imxgpu3d ?= "imx-gpu-viv"
PREFERRED_PROVIDER_virtual/libgles3:imxgpu3d ?= "imx-gpu-viv"
PREFERRED_PROVIDER_virtual/libg2d            ?= "imx-gpu-g2d"
PREFERRED_PROVIDER_virtual/opencl-icd:imxgpu ?= "imx-gpu-viv"
PREFERRED_PROVIDER_opencl-clhpp:imxgpu       ?= "imx-gpu-viv"
PREFERRED_PROVIDER_opencl-headers:imxgpu     ?= "imx-gpu-viv"
PREFERRED_PROVIDER_opencl-icd-loader:imxgpu  ?= "imx-gpu-viv"
PREFERRED_VERSION_vulkan-headers:mx8  = "1.3.275.0.imx"
PREFERRED_VERSION_vulkan-loader:mx8 = "1.3.275.0.imx"
PREFERRED_VERSION_libdrm:mx8 = "2.4.123.imx"
PREFERRED_VERSION_wayland-protocols:mx8 = "1.37.imx"
PREFERRED_VERSION_weston:mx8 = "14.0.1.imx"
PREFERRED_VERSION_opencv:mx8 = "4.10.0.imx"
PREFERRED_VERSION_gstreamer1.0-libav:mx8        = "1.24.12"
LICENSE_FLAGS_ACCEPTED += "commercial"
DISTRO_FEATURES:remove = "directfb "
DISTRO_FEATURES:append = " wayland pam"
MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT = "1"
IMAGE_FEATURES:remove = "x11-base  x11-sato"
IMAGE_FEATURES:append = " weston"
WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path installed-vs-shipped ldflags pn-overrides rpaths staticdev useless-rpaths"
WARN_QA:remove = "${WARN_TO_ERROR_QA}"
ERROR_QA:append = " ${WARN_TO_ERROR_QA}"
CUSTOMER_RECIPES:multimedia-layer += 'gst-shark'
PREFERRED_PROVIDER_virtual/libg2d:imxdpu     ?= "imx-dpu-g2d"
PREFERRED_VERSION_tensorflow-lite:mx8 = "2.18.0"
PREFERRED_VERSION_flatbuffers:mx8 = "24.3.25"
CUSTOMER_RECIPES:freescale-distro += "assimp devil glslang stb rapidopencl half rapidopenvx "
CUSTOMER_RECIPES:meta-tensorflow += "bazel openjdk-11 "
CUSTOMER_RECIPES:openembedded-layer += "freeglut ccid pcsc-lite spirv-tools nlohmann-json googletest rapidjson glm vulkan-tools libxaw freerdp xterm hdf5 giflib leptonica tesseract tesseract-lang ade v4l-utils tbb fftw imagemagick libtinyxml2 "
CUSTOMER_RECIPES:fsl-sdk-release += "imx-gpu-sdk rapidvulkan gli vulkan-validationlayers libxdg-shell tinycompress libgpuperfcnt "
CUSTOMER_RECIPES:fsl-bsp-release += "gstreamer1.0-plugins-base gstreamer1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-bad imx-gst1.0-plugin imx-parser imx-codec imx-vpuwrap imx-dsp imx-dsp-codec-ext imx-vpu-hantro-vc imx-gpu-viv imx-g2d-samples mesa imx-gpu-viv-demos imx-gpu-g2d imx-dpu-g2d imx-opencl-converter pugixml systemd-gpuconfig fmt systemd opencv wayland-protocols wayland-protocols libdrm linux-imx-headers weston-init weston isp-imx imx-vpu-hantro imx-vpu-hantro-daemon firmware-imx"
CUSTOMER_RECIPES:meta-python += "python3-wheel python3-pip python3-pybind11 python3-h5py python3-keras-applications python3-keras-preprocessing python3-pkgconfig python3-future python3-decorator python3-mpmath python3-sympy python3-coloredlogs python3-humanfriendly "
CUSTOMER_RECIPES:freescale-layer += "gstreamer1.0-plugins-imx libimxdmabuffer libimxvpuapi libimxvpuapi2 tinycompress imx-gpu-apitrace vulkan-headers vulkan-loader mxsldr xwayland libimxdmabuffer imx-usb-loader "
IMAGE_INSTALL:append = " assimp devil imx-gpu-viv imx-gpu-sdk imx-gpu-viv-demos weston weston-init imx-dpu-g2d imx-vpu-hantro imx-gpu-apitrace weston-xwayland imx-g2d-samples gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good imx-gst1.0-plugin gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good tensorflow-lite nnstreamer imx-gst1.0-plugin gstreamer1.0-plugins-bad packagegroup-imx-ml onnxruntime tensorflow-lite-vx-delegate gstreamer1.0-rtsp-server gstreamer1.0-plugins-ugly gstreamer1.0-libav firmware-imx-vpu-amphion"
MACHINEOVERRIDES:prepend:nxp-imx8 = "mx8:mx8m:mx8qm:mx8mq:imxdrm:imxdpu:imxdcss:imxvpu:imxvpuhantro:imxgpu:imxgpu2d:imxgpu3d:mx8-nxp-bsp:imx-nxp-sdk:use-nxp-bsp:mx8mq-nxp-bsp:mx8qm-nxp-bsp:imxvulkan:mx8-generic-bsp:mx8qm-generic-bsp:imx-generic-bsp:use-nxp-bsp:mx8qm-nxp-bsp:"
CUSTOMER_RECIPES:imx-machine-learning += "nn-imx tensorflow-lite-host-tools tensorflow-protobuf tensorflow-lite flatbuffers nnstreamer ssat nnstreamer-edge packagegroup-imx-ml onnxruntime tensorflow-lite-vx-delegate pytorch nnshark torchvision modelrunner tvm deepview-rt tim-vx arm-compute-library deepview-rt-examples nnstreamer-protobuf "' >> conf/local.conf
bitbake wrlinux-image-std-sato


share image:
http://pek-lpgtest7408.wrs.com/buildarea1/SharedImage/LTS25/BSP/nxp-imx8_preempt-rt_glibc-std-sato_machine_GIT/20250813_141405/