Wind River Support Network

HomeDefectsLIN1021-73
Fixed

LIN1021-73 : kmemleaks related with "tipcTC" are found with KTS images on ti-j72xx kernel

Created: May 17, 2021    Updated: Nov 4, 2021
Resolved Date: Nov 4, 2021
Found In Version: 10.21.20.1
Fix Version: 10.21.20.7
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: BSP

Description

There will be kmemleak issue when running the TIPC testing cases:

root@ti-j72xx:/opt/wr-test# kmemleak: 5 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
kmemleak: 1 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
kmemleak: 2 new suspected memory leaks (see /sys/kernel/debug/kmemleak)

root@ti-j72xx:/opt/wr-test# cat /sys/kernel/debug/kmemleak | tail -n 100
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<0000000002faa388>] kmem_cache_alloc+0x1fc/0x520
[<0000000098c4156d>] __alloc_skb+0x6c/0x1c0
[<0000000032e944a3>] tipc_buf_acquire+0x34/0x74 [tipc]
[<00000000cb2d84a9>] tipc_msg_build+0x3a4/0x4fc [tipc]
[<0000000094014b01>] tipc_sendmcast+0x230/0x42c [tipc]
[<00000000714a4fa7>] __tipc_sendmsg+0x4bc/0x740 [tipc]
[<0000000042197daf>] tipc_sendmsg+0x4c/0x70 [tipc]
[<00000000a8b0b0da>] __sys_sendto+0x120/0x180
[<00000000abcf891c>] __arm64_sys_sendto+0x34/0x44
[<00000000a21765af>] el0_svc_common.constprop.0+0xa0/0x200
[<00000000776955bd>] do_el0_svc+0x78/0xa0
[<0000000038ec6f55>] el0_svc+0x20/0x30
[<00000000b409ec53>] el0_sync_handler+0x1a4/0x1b0
[<00000000910e6e4e>] el0_sync+0x178/0x180
unreferenced object 0xfffffc085a9c5400 (size 512):
comm "tipcTC", pid 227642, jiffies 4297430185 (age 45117.248s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<0000000002faa388>] kmem_cache_alloc+0x1fc/0x520
[<0000000098c4156d>] __alloc_skb+0x6c/0x1c0
[<0000000032e944a3>] tipc_buf_acquire+0x34/0x74 [tipc]
[<00000000cb2d84a9>] tipc_msg_build+0x3a4/0x4fc [tipc]
[<0000000094014b01>] tipc_sendmcast+0x230/0x42c [tipc]
[<00000000714a4fa7>] __tipc_sendmsg+0x4bc/0x740 [tipc]
[<0000000042197daf>] tipc_sendmsg+0x4c/0x70 [tipc]
[<00000000a8b0b0da>] __sys_sendto+0x120/0x180
[<00000000abcf891c>] __arm64_sys_sendto+0x34/0x44
[<00000000a21765af>] el0_svc_common.constprop.0+0xa0/0x200
[<00000000776955bd>] do_el0_svc+0x78/0xa0
[<0000000038ec6f55>] el0_svc+0x20/0x30
[<00000000b409ec53>] el0_sync_handler+0x1a4/0x1b0
[<00000000910e6e4e>] el0_sync+0x178/0x180
unreferenced object 0xfffffc085a9c5600 (size 512):
comm "tipcTC", pid 227642, jiffies 4297430185 (age 45117.248s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<0000000002faa388>] kmem_cache_alloc+0x1fc/0x520
[<0000000098c4156d>] __alloc_skb+0x6c/0x1c0
[<0000000032e944a3>] tipc_buf_acquire+0x34/0x74 [tipc]
[<00000000cb2d84a9>] tipc_msg_build+0x3a4/0x4fc [tipc]
[<0000000094014b01>] tipc_sendmcast+0x230/0x42c [tipc]
[<00000000714a4fa7>] __tipc_sendmsg+0x4bc/0x740 [tipc]
[<0000000042197daf>] tipc_sendmsg+0x4c/0x70 [tipc]
[<00000000a8b0b0da>] __sys_sendto+0x120/0x180
[<00000000abcf891c>] __arm64_sys_sendto+0x34/0x44
[<00000000a21765af>] el0_svc_common.constprop.0+0xa0/0x200
[<00000000776955bd>] do_el0_svc+0x78/0xa0
[<0000000038ec6f55>] el0_svc+0x20/0x30
[<00000000b409ec53>] el0_sync_handler+0x1a4/0x1b0
[<00000000910e6e4e>] el0_sync+0x178/0x180
unreferenced object 0xfffffc0809c2c600 (size 224):
comm "tipcTC", pid 227642, jiffies 4297430185 (age 45117.248s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<0000000002faa388>] kmem_cache_alloc+0x1fc/0x520
[<0000000098c4156d>] __alloc_skb+0x6c/0x1c0
[<000000009851c095>] skb_copy+0x4c/0xc0
[<00000000246f52e8>] tipc_buf_append+0xc0/0x270 [tipc]
[<000000001d75a394>] tipc_msg_reassemble+0x94/0x180 [tipc]
[<00000000f9591142>] tipc_mcast_xmit+0x41c/0x5c4 [tipc]
[<00000000157e20a9>] tipc_sendmcast+0x2cc/0x42c [tipc]
[<00000000714a4fa7>] __tipc_sendmsg+0x4bc/0x740 [tipc]
[<0000000042197daf>] tipc_sendmsg+0x4c/0x70 [tipc]
[<00000000a8b0b0da>] __sys_sendto+0x120/0x180
[<00000000abcf891c>] __arm64_sys_sendto+0x34/0x44
[<00000000a21765af>] el0_svc_common.constprop.0+0xa0/0x200
[<00000000776955bd>] do_el0_svc+0x78/0xa0
[<0000000038ec6f55>] el0_svc+0x20/0x30
[<00000000b409ec53>] el0_sync_handler+0x1a4/0x1b0
[<00000000910e6e4e>] el0_sync+0x178/0x180
unreferenced object 0xfffffc081f040000 (size 8192):
comm "tipcTC", pid 227642, jiffies 4297430185 (age 45117.248s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<00000000788b23f8>] __kmalloc_track_caller+0x1f8/0x3b0
[<0000000082e63a28>] __kmalloc_reserve.constprop.0+0x68/0x100
[<00000000a82da3ca>] __alloc_skb+0x90/0x1c0
[<000000009851c095>] skb_copy+0x4c/0xc0
[<00000000246f52e8>] tipc_buf_append+0xc0/0x270 [tipc]
[<000000001d75a394>] tipc_msg_reassemble+0x94/0x180 [tipc]
[<00000000f9591142>] tipc_mcast_xmit+0x41c/0x5c4 [tipc]
[<00000000157e20a9>] tipc_sendmcast+0x2cc/0x42c [tipc]
[<00000000714a4fa7>] __tipc_sendmsg+0x4bc/0x740 [tipc]
[<0000000042197daf>] tipc_sendmsg+0x4c/0x70 [tipc]
[<00000000a8b0b0da>] __sys_sendto+0x120/0x180
[<00000000abcf891c>] __arm64_sys_sendto+0x34/0x44
[<00000000a21765af>] el0_svc_common.constprop.0+0xa0/0x200
[<00000000776955bd>] do_el0_svc+0x78/0xa0
[<0000000038ec6f55>] el0_svc+0x20/0x30
[<00000000b409ec53>] el0_sync_handler+0x1a4/0x1b0

Steps to Reproduce

1.build project

/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines=ti-j72xx --distro wrlinux-graphics --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/kts-dev/

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

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

echo "WRTEMPLATE_append = \" feature/wr-kts feature/target-toolchain feature/bcc \"" >> conf/local.conf

echo "KERNEL_FEATURES_append = \" bsp/ti-j72xx/ti-j72xx-remoteproc.scc\"" >> conf/local.conf

bitbake wrlinux-image-std-sato

2.boot up the board and run the kts test groups
Live chat
Online