HomeDefectsLIN1025-2815
Fixed

LIN1025-2815 : marvell-cn10xxx: kmemleak at pci_device_probe

Created: Jul 21, 2025    Updated: Oct 24, 2025
Resolved Date: Oct 24, 2025
Found In Version: 10.25.33.1
Fix Version: 10.25.33.3
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: BSP

Description

root@marvell-cn10xxx:~# cat /sys/kernel/debug/kmemleak
unreferenced object 0xffff0001041220b0 (size 16):
  comm "swapper/0", pid 1, jiffies 4294894228
  hex dump (first 16 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc 0):
    kmemleak_alloc+0x3c/0x50
    __kmalloc_noprof+0x204/0x508
    rvu_alloc_bitmap+0x34/0x60
    cgx_probe+0x3d4/0x818
    pci_device_probe+0xac/0x1a8
    really_probe+0xb4/0x2c0
    __driver_probe_device+0x80/0x128
    driver_probe_device+0x44/0x180
    __driver_attach+0x98/0x1b0
    bus_for_each_dev+0x84/0x100
    driver_attach+0x2c/0x40
    bus_add_driver+0xec/0x220
    driver_register+0x70/0x138
    __pci_register_driver+0x4c/0x60
    rvu_init_module+0x58/0x108
    do_one_initcall+0x74/0x2a0
unreferenced object 0xffff0001041220c0 (size 16):
  comm "swapper/0", pid 1, jiffies 4294894228
  hex dump (first 16 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc 0):
    kmemleak_alloc+0x3c/0x50
    __kmalloc_noprof+0x204/0x508
    rvu_alloc_bitmap+0x34/0x60
    cgx_probe+0x3ec/0x818
    pci_device_probe+0xac/0x1a8
    really_probe+0xb4/0x2c0
    __driver_probe_device+0x80/0x128
    driver_probe_device+0x44/0x180
    __driver_attach+0x98/0x1b0
    bus_for_each_dev+0x84/0x100
    driver_attach+0x2c/0x40
    bus_add_driver+0xec/0x220
    driver_register+0x70/0x138
    __pci_register_driver+0x4c/0x60
    rvu_init_module+0x58/0x108
    do_one_initcall+0x74/0x2a0

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRL10_25/WRL10_25_GIT/wrlinux-10/setup.sh --machines marvell-cn10xxx --templates feature/docker feature/target-toolchain feature/kdump feature/kexec --distros 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

cat << EOF >> customized_test_plan.ini
[Test_Case]
all_system_info
bootcheck_rvu_profile
bootcheck_rvu_profile_custom
boot_nfs
bootcheck_backtrace
bootcheck_calltrace
bootcheck_error
bootcheck_exception
bootcheck_firmbug
bootcheck_journalctl
bootcheck_kerbug
bootcheck_kmemleak
bootcheck_nullpoint
bootcheck_pcimatch
bootcheck_segfault
bootcheck_timeout
bootcheck_warning
bootimg_check
check_kernel_options
checkproc_cpufreq
checkproc_files
check_valid_partition
clock_switched
coredump_debug
coresight_ete
cpuarch_timer_check
cpufreq_bench
cpufreq_ondemand
cpufreq_perf_event
cpufreq_performance
cpufreq_powersave
cpufreq_schedutil
cpufreq_sys_check
cpufreq_userspace
cpuhotplug_offline
cpuhotplug_online
docker_check_config
docker_compose_build
docker_compose_ps
docker_compose_scale_down
docker_compose_scale_up
docker_compose_up
docker_helloworld
ethernet_autoneg_off
ethernet_autoneg_on
ethernet_autoneg_restrict
ethernet_check_mac
ethernet_check_ptp
ethernet_coalescing
ethernet_dump_register
ethernet_fping
ethernet_iperf_tcp
ethernet_iperf_udp
ethernet_ipv6_ping
ethernet_ipv6_radvd
ethernet_jumbo_frame
ethernet_jump_frame
ethernet_netperf_tcprr
ethernet_netperf_tcpstream
ethernet_netperf_udprr
ethernet_netperf_udpstream
ethernet_unbind
ethernet_packets_netcat
ethernet_ping
ethernet_sriov
ethernet_statistics
ethernet_vlan_ping
flash_dd_jffs2
flash_dd_ubifs
flash_erase
flash_fio_randread
flash_fio_randrw
flash_fio_randwrite
flash_fio_read
flash_fio_rw
flash_fio_write
flash_readtest
flash_speedtest
flash_stresstest
flash_subpagetest
flash_torturetest
flash_ubiformat
flash_ubinfo_all
flash_mmc_admix
flash_mtd_copy
flash_mtd_debug
flash_mtd_stress
flash_mtd_writetest
flash_mtdinfo_all
flash_read_all
gdb_multi_timer
gdbtest
ghes_tests
gpio_input
gpio_output
gpio_sys_check
gpio_tests
i2c_detect
i2c_dump
i2c_get
i2c_sys_check
iommu_intel_sanity
kernwarning_buildcheck
kmod_test
lspci_test
malloc_loop
maxcpus
mdelay_test
memory_size_check
module_operate
mub_mac-management
mub_rpram
mub_sys_check
pci_hotplug
pci_msi
perf_events_cpu
perf_events_l1_cache
perf_events_ll_cache
perf_events_mem
perf_events_pmu
perf_events_pmu_ddr
perf_events_sched
perf_events_syscall
perf_events_syscall_enter
perf_events_syscall_exit
perf_events_timer
perf_events_tlb
perf_events_with_load
pm_cpufreq_scaling
poweroff
ramspeed
readme_check
reboot
restart
rng_fips_test
rng_od_test
rng_rngd_service
rng_rngd_test
rng_sys_check
rt_cyclictest
rt_hackbench
rt_migrate_test
rt_pi_stress
rt_pmqtest
rt_ptsematest
rt_signaltest
rt_sigwaittest
rt_svsematest
sem_test
serial_getty_tty
shutdown_2min_later
shutdown_now
spi_sys_check
storage_aio_stress
storage_bonnie
storage_copy_big_file
storage_dd_100M
storage_dd_10G
storage_dd_1G
storage_dd_500M
storage_dd_5G
storage_fio_flow
storage_fio_latency
storage_fio_rand_rw
storage_fio_randread
storage_fio_randwrite
storage_fio_read
storage_fio_rw
storage_fio_stonewalls
storage_fio_stress
storage_fio_write
storage_fio_zone
storage_format_ext4
storage_hdparm
storage_ionice_bfq
storage_ionice_kyber
storage_ionice_mqdeadline
storage_ionice_none
storage_iozone
storage_nfs_mounts
storage_scheduler_bfq
storage_scheduler_kyber
storage_scheduler_mqdeadline
storage_scheduler_none
storage_sync_big_file
storage_sync_multi_file
storage_tiobench
stress_cpu
stress_cpu_mem_io
stress_io
stress_memory
switch_cpss_appDemo
switch_cpss_selftest
temp_sensors
temp_sys_check
usb_show_device
watchdog_check_device
watchdog_check_node
watchdog_get_monitor
watchdog_get_status
watchdog_keep_alive
watchdog_magic_close
watchdog_set_timeout
watchdog_sys_check
watchdog_timeout_triggered
watchdog_trigger
EOF

echo 'BB_NUMBER_THREADS ?= "24"' >> conf/local.conf
echo 'PARALLEL_MAKE ?= "-j 24"' >> conf/local.conf
bitbake-layers add-layer /net/pek-lpgtest7408/buildarea1/SharedImage/wrlinux-testing-dl
bitbake-layers add-layer /net/pek-lpgtest10/buildarea1/xdong/wassp-linux/testcases/wrlinux/wr-testing/bts-dev

#####To Clone a whole new testcases layer#####
git clone --depth 1 -b master 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
IMAGE_FSTYPES += " tar.bz2"
ACTIVE_PLAN = "customized_test_plan.ini"' >> conf/local.conf
echo 'IMAGE_FSTYPES:remove = " live hddimg iso"' >> conf/local.conf
echo 'CUSTOMER_RECIPES:wr-marvell-cn10xxx += "cpss"
IMAGE_INSTALL:append = " cpss"
BB_NO_NETWORK:pn-cpss = "0"
BB_NO_NETWORK:pn-opencsd = "0"
IMAGE_FSTYPES:remove = " live hddimg iso"' >> conf/local.conf
bitbake wrlinux-image-std


Boot the target Marvell-CN106XX(#29262), on run the following commands, then Wait a few minutes.

echo 1 > /sys/bus/pci/devices/0000:00:01.0/remove  ; echo 1 > /sys/bus/pci/rescan