Wind River Support Network

HomeDefectsLIN7-1850
Not to be fixed

LIN7-1850 : intel-broadwell: audio_play sometimes print calltrace (kmemleak)

Created: Nov 18, 2014    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 7.0
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: BSP

Description

root@SDP_Gaming_Socketed_GT3-1:/opt/wr-test/test_runner# aplay -Dhw:0,3 /opt/wr-test/testcases/bts/audio_aplay/little_apple.wav 
[  273.681096] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
<<end Play music with aplay>>
********************
<<start check testcase call trace>>
********************
root@SDP_Gaming_Socketed_GT3-1:/opt/wr-test/test_runner# dmesg |grep -B10 -A50 'Call Trace' ||exit 0

<<end check testcase call trace>>
********************
<<start check kmemleak>>
********************
root@SDP_Gaming_Socketed_GT3-1:/opt/wr-test/test_runner# cat /sys/kernel/debug/kmemleak |grep -B10 -A50 'kmemleak_alloc' ||exit 0
unreferenced object 0xffff8800a6ec7000 (size 1024):
  comm "irq/62-xhci_hcd", pid 83, jiffies 4294674486 (age 527.189s)
  hex dump (first 32 bytes):
    00 74 ec a6 00 88 ff ff 0e 0d 01 05 fc 00 37 08  .t............7.
    10 01 10 02 27 0d 00 5f 0f c6 55 0d 3e cc df 5e  ....'.._..U.>..^
  backtrace:
    [<ffffffff819fde56>] kmemleak_alloc+0x26/0x50
    [<ffffffff8117ad30>] __kmalloc_node_track_caller+0x1e0/0x390
    [<ffffffff81813b91>] __kmalloc_reserve.isra.39+0x31/0x90
    [<ffffffff81813c73>] __alloc_skb+0x83/0x1d0
    [<ffffffff81909394>] hci_reassembly+0x1f4/0x240
    [<ffffffff81909439>] hci_recv_fragment+0x59/0x90
    [<ffffffff81788e68>] btusb_intr_complete+0xb8/0x110
    [<ffffffff816d35b2>] __usb_hcd_giveback_urb+0x62/0x100
    [<ffffffff816d368d>] usb_hcd_giveback_urb+0x3d/0x110
    [<ffffffff81703ca5>] xhci_irq+0x6b5/0x16c0
    [<ffffffff81704cc1>] xhci_msi_irq+0x11/0x20
    [<ffffffff810aa703>] irq_forced_thread_fn+0x23/0x70
    [<ffffffff810aa93f>] irq_thread+0x12f/0x180
    [<ffffffff81073c6d>] kthread+0xcd/0xf0
    [<ffffffff81a09c6c>] ret_from_fork+0x7c/0xb0
    [<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff8800a607c000 (size 256):
  comm "kworker/u17:1", pid 110, jiffies 4294674486 (age 527.189s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    cf 1d 0f 1e f5 c7 a7 13 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff819fde56>] kmemleak_alloc+0x26/0x50
    [<ffffffff811778a0>] kmem_cache_alloc+0x1e0/0x2c0
    [<ffffffff81812321>] skb_clone+0x51/0xc0
    [<ffffffff81914679>] hci_event_packet+0x289/0x3070
    [<ffffffff8190871b>] hci_rx_work+0x1bb/0x2e0
    [<ffffffff8106c9ea>] process_one_work+0x15a/0x4b0
    [<ffffffff8106d11b>] worker_thread+0x6b/0x600
    [<ffffffff81073c6d>] kthread+0xcd/0xf0
    [<ffffffff81a09c6c>] ret_from_fork+0x7c/0xb0
    [<ffffffffffffffff>] 0xffffffffffffffff
<<end check kmemleak>>
********************

Project Configure Line:
# Generated by wrlinux configure at Tue Nov 18 21:04:39 CST 2014
/buildarea2/lyang0/wrlinux-7/wrlinux/configure --enable-board=intel-broadwell-64 --enable-kernel=preempt-rt --enable-rootfs=glibc-std-sato --enable-parallel-pkgbuilds=30 --enable-jobs=30 --with-layer=/buildarea2/lyang0/wrlinux-newnew/wr-testing/bts-dev,wr-dpdk,wr-qat --with-template=feature/bts,feature/kexec,feature/kdump --enable-reconfig=yes --with-rcpl-version=0

Kernel Boot Parameter:
root@SDP_Gaming_Socketed_GT3-1:/opt/wr-test/test_runner# cat /proc/cmdline
net=wired:eth1:dhcp ip=dhcp console=ttyS0,115200 intel_iommu=off acpi_enforce_resources=no TCF=1 root=/dev/nfs nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/22581/rootfs rw

Kernel source top 10 commits:
Eric W. Biederman e9b0a83 mnt: Prevent pivot_root from creating a loop in the mount tree Fri Nov 14 00:33:05 2014 -0800
fupan li d344160 set DMA_API_DEBUG feature depending on !PREEMPT_RT_FULL Fri Nov 14 00:20:02 2014 -0800
yadi.hu@windriver.com 28101b0 Fix build error Thu Nov 13 21:47:26 2014 -0800
yadi.hu@windriver.com e8d31d3 drm/i915:Fix a type cast error Thu Nov 13 20:56:39 2014 -0800
yadi.hu@windriver.com 6cba364 mpt2sas: Fix a warning '_ctl_mutex' defined but not used Thu Nov 13 20:56:31 2014 -0800
yadi.hu@windriver.com d9957ca use/serial:Fix a warning: 'return' with a value, in function returning void Thu Nov 13 20:56:15 2014 -0800
yadi.hu@windriver.com 41e5fdf ACPI / video: fix ACPI_VIDEO dependencies Thu Nov 13 20:56:08 2014 -0800
Victor Kamensky 33810f7 ARM: 8043/1: uprobes need icache flush after xol write Thu Nov 13 19:33:55 2014 -0800
Lai Jiangshan 5664f55 workqueue: narrow the protection range of manager_mutex Thu Nov 13 19:20:59 2014 -0800
Lai Jiangshan 212bafb workqueue: convert worker_idr to worker_ida Thu Nov 13 19:20:59 2014 -0800


############################################################### 
Test Results:
*1 Play music with aplay(do_test1)                   PASS  
*2 check testcase call trace(do_check_call_trace)    PASS  
*3 check kmemleak(do_check_kmemleak)                 FAIL  
ERROR CMD OR INFO IS :
		There is kmemleak for this testcase
############################################################### 
Excution Time: 270 seconds

Steps to Reproduce

check the config in the Description 
Live chat
Online