Wind River Support Network

HomeDefectsLINCD-4338
Fixed

LINCD-4338 : kmemleaks are found by bootcheck_journalctl test on Ti-TDA4

Created: Feb 4, 2021    Updated: Mar 17, 2021
Resolved Date: Feb 6, 2021
Found In Version: 10.21.5.0
Fix Version: 10.21.9.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: BSP

Description

kmemleaks are found by bootcheck_journalctl test on Ti-TDA4, the call trace likes below:

unreferenced object 0xfffffc0844af4000 (size 512):
comm "kworker/0:1", pid 32, jiffies 4294893973 (age 159.712s)
hex dump (first 32 bytes):
00 00 8a 43 08 fc ff ff 00 00 00 00 00 00 00 00 ...C............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<00000000242119e1>] __kmalloc+0x1ac/0x420
[<00000000cbf0ce8b>] kvmalloc_node+0xa0/0xb0
[<00000000f8af1fc9>] alloc_netdev_mqs+0x198/0x380
[<00000000ef3f3244>] alloc_candev_mqs+0x6c/0x14c
[<00000000652c416f>] m_can_class_allocate_dev+0x64/0x18c
[<00000000788dbbbc>] m_can_plat_probe+0x2c/0x1f4
[<00000000bfc1197d>] platform_drv_probe+0x5c/0xb0
[<000000003132ce8a>] really_probe+0xec/0x41c
[<00000000bb3151ae>] driver_probe_device+0x60/0xf0
[<00000000e8fdb27d>] __device_attach_driver+0xb0/0x100
[<00000000eeca0b46>] bus_for_each_drv+0x8c/0xe0
[<000000005b8b6209>] __device_attach+0xdc/0x180
[<00000000a29a11b9>] device_initial_probe+0x28/0x34
[<00000000eb6bfb39>] bus_probe_device+0xa4/0xb0
[<00000000899b7b53>] deferred_probe_work_func+0x7c/0xb0
[<00000000092f9397>] process_one_work+0x1ec/0x4a0

Steps to Reproduce

1.     build a project

/lpg-build/cdc/fast_prod/WRLINUX_CI/RC_GIT/wrlinux-10/setup.sh --machines=ti-j72xx --distros=wrlinux --dl-layers --accept-eula=yes

. ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env build_test

bitbake-layers add-layer /buildarea1/renfeiqu/master_wr/testcases/wr-testing/bts-dev/

echo "require templates/feature/bts/template.conf" >> conf/local.conf

echo BB_NUMBER_THREADS ?= \"24\" >> conf/local.conf

echo PARALLEL_MAKE ?= \"-j 24\" >> conf/local.conf

echo "WRTEMPLATE_append = \" feature/docker feature/target-toolchain \"" >> conf/local.conf

bitbake lib32-wrlinux-image-std

 

2.boot up the board and run the testcase.
Live chat
Online