Wind River Support Network

HomeDefectsLIN1021-70
Acknowledged

LIN1021-70 : kernel memory leak found in QAT driver

Created: May 17, 2021    Updated: May 25, 2021
Found In Version: 10.21.20.1
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: BSP

Description

The following memory leaks are found in QAT driver.

unreferenced object 0xff33004466fbc4e0 (size 96):
comm "kworker/24:1", pid 568, jiffies 4294695438 (age 84.677s)
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:
[<00000000a57920b1>] kmem_cache_alloc_trace+0x160/0x520
[<00000000e8acc6a4>] adf_pf_enable_vf2pf_comms+0x3f/0x60 [intel_qat]
[<0000000025951adf>] adf_dev_init+0x15a/0x280 [intel_qat]
[<000000009b68af7c>] adf_probe+0x3ae/0x440 [qat_c62x]
[<00000000bf250345>] local_pci_probe+0x48/0x80
[<000000003e75dd93>] work_for_cpu_fn+0x1a/0x30
[<0000000097d6383b>] process_one_work+0x1d1/0x3e0
[<00000000db440caa>] worker_thread+0x225/0x400
[<0000000096091056>] kthread+0x15f/0x180
[<000000008827f970>] ret_from_fork+0x1f/0x30
unreferenced object 0xff33004466fe64e0 (size 96):
comm "kworker/24:1", pid 568, jiffies 4294695826 (age 84.296s)
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:
[<00000000a57920b1>] kmem_cache_alloc_trace+0x160/0x520
[<00000000e8acc6a4>] adf_pf_enable_vf2pf_comms+0x3f/0x60 [intel_qat]
[<0000000025951adf>] adf_dev_init+0x15a/0x280 [intel_qat]
[<000000009b68af7c>] adf_probe+0x3ae/0x440 [qat_c62x]
[<00000000bf250345>] local_pci_probe+0x48/0x80
[<000000003e75dd93>] work_for_cpu_fn+0x1a/0x30
[<0000000097d6383b>] process_one_work+0x1d1/0x3e0
[<00000000db440caa>] worker_thread+0x225/0x400
[<0000000096091056>] kthread+0x15f/0x180
[<000000008827f970>] ret_from_fork+0x1f/0x30
unreferenced object 0xff330044679ff300 (size 96):
comm "kworker/24:1", pid 568, jiffies 4294696175 (age 83.952s)
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:
[<00000000a57920b1>] kmem_cache_alloc_trace+0x160/0x520
[<00000000e8acc6a4>] adf_pf_enable_vf2pf_comms+0x3f/0x60 [intel_qat]
[<0000000025951adf>] adf_dev_init+0x15a/0x280 [intel_qat]
[<000000009b68af7c>] adf_probe+0x3ae/0x440 [qat_c62x]
[<00000000bf250345>] local_pci_probe+0x48/0x80
[<000000003e75dd93>] work_for_cpu_fn+0x1a/0x30
[<0000000097d6383b>] process_one_work+0x1d1/0x3e0
[<00000000db440caa>] worker_thread+0x225/0x400
[<0000000096091056>] kthread+0x15f/0x180
[<000000008827f970>] ret_from_fork+0x1f/0x30

 

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines=intel-x86-64 --templates feature/intel-persistent-memory feature/intel-qat feature/xfce feature/bsp-extras feature/docker feature/kexec feature/kdump feature/tpm2  --distro wrlinux --accept-eula=yes --dl-layers

source ./environment-setup-x86_64-wrlinuxsdk-linux
source ./oe-init-build-env build
bitbake-layers add-layer /folk/kliang/lxgit/wrlinux/wr-testing/bts-dev/
echo require templates/feature/bts/template.conf >> conf/local.conf

echo ACTIVE_PLAN = \"WilsonCity_standard.ini\" >> conf/local.conf  
echo IMAGE_FSTYPES += \" tar.bz2\" >> conf/local.conf
echo BB_NO_NETWORK_pn-lmbench = \"0\" >> conf/local.conf

echo BB_NO_NETWORK = \'0\' >> conf/local.conf
echo IMAGE_FSTYPES_remove = \" live hddimg iso\" >>conf/local.conf
bitbake wrlinux-image-std
Live chat
Online