Wind River Support Network

HomeDefectsLIN9-5664
Fixed

LIN9-5664 : ti-am335x: Sometimes there is kmemleak report

Created: Oct 26, 2017    Updated: Dec 3, 2018
Resolved Date: Mar 2, 2018
Found In Version: 9.0.0.11
Fix Version: 9.0.0.15
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Kernel

Description

Environment
======================
BSP/Configuration: ti-am335x + glibc-std-sato

Sometimes there is kmemleak report.

Symptom Details
================
root@ti-am335x:/opt/wr-test# cat /sys/kernel/debug/kmemleak
unreferenced object 0xce2a0b00 (size 64):
  comm "swapper", pid 1, jiffies 4294937329 (age 721.620s)
  hex dump (first 32 bytes):
    73 74 61 74 75 73 00 00 00 00 00 00 00 00 00 00 status..........
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
  backtrace:
    [<c08459f0>] kmemleak_alloc+0x40/0x74
    [<c023bd0c>] __kmalloc_track_caller+0x174/0x298
    [<c020d248>] kstrdup+0x40/0x5c
    [<c06afe70>] safe_name+0x90/0xbc
    [<c06b12c8>] __of_add_property_sysfs+0x7c/0xe8
    [<c06b13d4>] __of_attach_node_sysfs+0xa0/0xec
    [<c0c3ef68>] of_core_init+0x58/0xb0
    [<c0c396cc>] driver_init+0x30/0x34
    [<c0c00e18>] kernel_init_freeable+0xf8/0x27c
    [<c0844eac>] kernel_init+0x18/0x11c
    [<c01077b8>] ret_from_fork+0x14/0x3c
    [<ffffffff>] 0xffffffff
unreferenced object 0xccaaf680 (size 64):
  comm "swapper", pid 1, jiffies 4294937746 (age 717.480s)
  hex dump (first 32 bytes):
    e0 66 d0 c0 04 1d d9 ce 00 b2 01 ce 00 b2 01 ce .f..............
    e0 f4 d7 c0 00 00 00 00 00 00 00 00 00 00 00 00 ................
  backtrace:
    [<c08459f0>] kmemleak_alloc+0x40/0x74
    [<c0238f98>] kmem_cache_alloc_trace+0x138/0x268
    [<c0686e90>] ti_cpufreq_probe+0x70/0x318
    [<c05c7d00>] platform_drv_probe+0x60/0xac
    [<c05c5ef0>] driver_probe_device+0x1e0/0x2a8
    [<c05c6160>] __device_attach_driver+0xa4/0xbc ot
@ti-am335x:/opt/wr-test# 

Steps to Reproduce

1. To Get The Testing Layer:
# git clone git://git.wrs.com/git/projects/wassp-repos/testcases/wrlinux
# cd wrlinux;git checkout WRLINUX_9_0_HEAD

2.Project Build with BTS layer
    --machines ti-am335x --dl-layers --distro wrlinux-std-sato --base-url git://pek-git.wrs.com
    Build Steps:
    . environment-setup-x86_64-wrlinuxsdk-linux
    . oe-init-build-env
    Add BTS layer
    1).bitbake-layers add-layer <path to wr-testing/bts-dev>
    2).echo "require templates/feature/bts/template.conf" >> conf/local.conf
    3).bitbake wrlinux-image-glibc-std-sato

3. boot target

4. Sometimes kmemleak appeared
Run some cases, like ./main_test.py -s audio_aplay. The kmemleak was  met once, when I again run the same one, not see the error. 

Other Downloads


Live chat
Online