Wind River Support Network

HomeDefectsLIN1023-544
Not to be fixed

LIN1023-544 : nxp-s32g: caught kmemleak at nfsd_startup_net+0x1e4/0x210

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

Description

root@nxp-s32g:/opt/wr-test/testcases/bts/storage_scheduler_bfq# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0
unreferenced object 0xffffff88550ab200 (size 512):
  comm "rpc.nfsd", pid 36401, jiffies 4298958698 (age 348.648s)
  hex dump (first 32 bytes):
    00 76 e6 09 c0 ff ff ff d0 92 36 0b c0 ff ff ff  .v........6.....
    00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00  .....N..........
  backtrace:
    [<ffffffc008308cdc>] __kmem_cache_alloc_node+0x1cc/0x260
    [<ffffffc00829e6f0>] kmalloc_trace+0x50/0xa0
    [<ffffffc00906f8b8>] __svc_create+0x44/0x22c
    [<ffffffc00906fac0>] svc_create+0x20/0x30
    [<ffffffc00856db84>] lockd_get+0x70/0x1bc
    [<ffffffc00856e05c>] lockd_up+0x3c/0x1b0
    [<ffffffc008525d04>] nfsd_startup_net+0x1e4/0x210
    [<ffffffc008527174>] nfsd_svc+0xc4/0x154
    [<ffffffc008529080>] write_threads+0xb0/0x124
    [<ffffffc008527a30>] nfsctl_transaction_write+0x60/0xb4
    [<ffffffc00832972c>] vfs_write+0xcc/0x2f0
    [<ffffffc00832ab48>] ksys_write+0x78/0x110
    [<ffffffc00832ac04>] __arm64_sys_write+0x24/0x30
    [<ffffffc00802b03c>] invoke_syscall+0x5c/0x130
    [<ffffffc00802b178>] el0_svc_common.constprop.0+0x68/0x124
    [<ffffffc00802b268>] do_el0_svc+0x34/0x4c
unreferenced object 0xffffff882f7e6b00 (size 256):
  comm "rpc.nfsd", pid 36401, jiffies 4298958698 (age 348.648s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 ad 4e ad de  .............N..
    ff ff ff ff 00 00 00 00 ff ff ff ff ff ff ff ff  ................
  backtrace:
    [<ffffffc008308cdc>] __kmem_cache_alloc_node+0x1cc/0x260
    [<ffffffc00829f428>] __kmalloc+0x68/0x104
    [<ffffffc00906f9d4>] __svc_create+0x160/0x22c
    [<ffffffc00906fac0>] svc_create+0x20/0x30
    [<ffffffc00856db84>] lockd_get+0x70/0x1bc
    [<ffffffc00856e05c>] lockd_up+0x3c/0x1b0
    [<ffffffc008525d04>] nfsd_startup_net+0x1e4/0x210
    [<ffffffc008527174>] nfsd_svc+0xc4/0x154
    [<ffffffc008529080>] write_threads+0xb0/0x124
    [<ffffffc008527a30>] nfsctl_transaction_write+0x60/0xb4
    [<ffffffc00832972c>] vfs_write+0xcc/0x2f0
    [<ffffffc00832ab48>] ksys_write+0x78/0x110
    [<ffffffc00832ac04>] __arm64_sys_write+0x24/0x30
    [<ffffffc00802b03c>] invoke_syscall+0x5c/0x130
    [<ffffffc00802b178>] el0_svc_common.constprop.0+0x68/0x124
    [<ffffffc00802b268>] do_el0_svc+0x34/0x4c



Steps to Reproduce

INFO: Shared image path: /net/pek-lpgtest7408/buildarea1/SharedImage/LTS23/BSP/nxp-s32g_standard_glibc-std/20230512_182031

/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

bitbake wrlinux-image-std

Note:
Run those commands in below logs contents, and while you can't find the command you can build it using bitbake command and install rpm packages into your target.

http://pek-lpgtest3.wrs.com/lpg-build/cdc/publiclog/WRLinux1023/S230509_LTS23/2023WW19/GIT_20230512/BSP/nxp-s32g_preempt-rt_glibc-std/NXP_S32G399A_RDB3_OE_eMMC_mmcblk0p2_systemd/storage_scheduler_bfq/target_29272.platform_B0E1R0_20230513_061916.log
Live chat
Online