Wind River Support Network

HomeDefectsLIN1023-546
Fixed

LIN1023-546 : nxp-s32g: caught kmemleak at llce_can_deinit.isra.0+0x0/0xe0 [llce_can]

Created: May 13, 2023    Updated: Mar 21, 2024
Resolved Date: Mar 21, 2024
Found In Version: 10.23.30.1
Fix Version: 10.23.30.9
Severity: Standard
Applicable for: Wind River Linux LTS 23
Component/s: BSP

Description

root@nxp-s32g:~# uname -a
Linux nxp-s32g 6.1.27-rt7-yocto-preempt-rt #1 SMP PREEMPT_RT Wed May 10 20:39:55 UTC 2023 aarch64 GNU/Linux
root@nxp-s32g:~# cat /proc/version
Linux version 6.1.27-rt7-yocto-preempt-rt (oe-user@oe-host) (aarch64-wrs-linux-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40.20230119) #1 SMP PREEMPT_RT Wed May 10 20:39:55 UTC 2023
croot@nxp-s32g:~# cat /proc/cmdline
console=ttyLF0,115200n8 earlycon nohz=off coherent_pool=64M root=/dev/mmcblk0p2 rw rootwait ip=128.224.165.148:128.224.165.20:128.224.165.1:255.255.255.0::eth0:off
croot@nxp-s32g:~# cat /etc/os-release
ID=wrlinux
NAME="Wind River Linux development"
VERSION="10.23.16.0"
VERSION_ID=10.23.16.0
VERSION_CODENAME="${DISTRO_CODENAME}"
PRETTY_NAME="Wind River Linux development 23.16"

root@nxp-s32g:/opt/wr-test/testcases/bts/ethernet_iperf_tcp# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0
unreferenced object 0xffffff8811aee200 (size 128):
comm "(udev-worker)", pid 558, jiffies 4294932626 (age 755.740s)
hex dump (first 32 bytes):
04 15 00 00 00 00 00 00 00 50 b9 0c c0 ff ff ff .........P......
00 04 9a 10 88 ff ff ff 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffc008308cdc>] __kmem_cache_alloc_node+0x1cc/0x260
[<ffffffc00829e6f0>] kmalloc_trace+0x50/0xa0
[<ffffffc008a8f4d0>] _request_firmware+0xc0/0x480
[<ffffffc008a8f8e0>] request_firmware+0x50/0x74
[<ffffffc0011bc440>] llce_can_deinit.isra.0+0x0/0xe0 [llce_can]
[<ffffffc0011bc9fc>] llce_can_remove+0x2c/0x110 [llce_can]
[<ffffffc008a747c4>] platform_probe+0x70/0xcc
[<ffffffc0090fd0c0>] really_probe+0x16c/0x358
[<ffffffc0090fd38c>] __driver_probe_device.part.0+0xe0/0x120
[<ffffffc008a71950>] driver_probe_device+0xc0/0x114
[<ffffffc008a72254>] __driver_attach+0x84/0x1b0
[<ffffffc008a6f1a0>] bus_for_each_dev+0x7c/0xdc
[<ffffffc008a71310>] driver_attach+0x2c/0x3c
[<ffffffc008a70ad8>] bus_add_driver+0x128/0x214
[<ffffffc008a73124>] driver_register+0x80/0x13c
[<ffffffc008a74310>] __platform_driver_register+0x30/0x40

Steps to Reproduce

INFO: Shared image path: /net/pek-lpgtest7408/buildarea1/SharedImage/LTS23/BSP/nxp-s32g_preempt-rt_glibc-std/20230512_170926

/lpg-build/cdc/fast_prod/WRL10_23/WRL10_23_GIT/wrlinux-10/setup.sh --machines nxp-s32g --templates feature/docker --distro wrlinux --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

bitbake-layers add-layer /net/128.224.34.180/buildarea1/test_env/wassp-linux/testcases/wrlinux/wr-testing/bts-dev

OR

#####To Clone a whole new testcases layer#####
git clone --depth 1 -b WRLINUX_10_23_HEAD 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' >> conf/local.conf
echo 'FIRMWARE_DIR_BASE = "/net/pek-lpgtest7408/buildarea1/SharedImage/wr-bsp-images/nxp-s32g/firmwares"
HSE_LOCAL_FIRMWARE_DIR = "${FIRMWARE_DIR_BASE}/hse"
HSE_FW_VERSION_S32G2 = "0.1.0.9"
HSE_FW_VERSION_S32G3 = "0.2.16.1"
HSE_FW_NAME_S32G2 = "rev2.0_s32g2xx_hse_fw_0.1.0_1.0.9_pb230405.bin.pink"
HSE_FW_NAME_S32G3 = "rev1.0_s32g3xx_hse_fw_0.20.0_2.16.1_pb221011.bin.pink"
LLCE_LOCAL_FIRMWARE_DIR = "${FIRMWARE_DIR_BASE}/llce/1.0.6/s32g2"
LLCE_LOCAL_FIRMWARE_DIR_S32G3 = "${FIRMWARE_DIR_BASE}/llce/1.0.6/s32g3"
IPCF_M7_APP_BIN_DIR = "${FIRMWARE_DIR_BASE}/ipcf"
WRL_RECIPES:wr-nxp-s32g += "llce"
IMAGE_INSTALL:append = " llce ipc-shm"' >> conf/local.conf
bitbake wrlinux-image-std
Live chat
Online