Re: 3.10.4: kmemleak in usb_get_bos_descriptor()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 08, 2013 at 10:07:19PM +0200, Martin MOKREJŠ wrote:
> Hi,
>   I get plenty of these in /sys/kernel/debug/kmemleak:
> 
> unreferenced object 0xffff88019f675268 (size 32):
>   comm "usb-storage", pid 11411, jiffies 4310515592 (age 1538.100s)
>   hex dump (first 32 bytes):
>     05 0f 16 00 02 07 10 02 02 00 00 00 0a 10 03 00  ................
>     0e 00 01 0a ff 07 00 00 00 00 00 00 00 00 00 00  ................
>   backtrace:
>     [<ffffffff81811ca1>] kmemleak_alloc+0x21/0x50
>     [<ffffffff81166c5e>] __kmalloc+0xce/0x170
>     [<ffffffff815270d5>] usb_get_bos_descriptor+0xc5/0x230
>     [<ffffffff81519048>] hub_port_init+0x768/0xa20
>     [<ffffffff81519416>] usb_reset_and_verify_device+0xd6/0x540
>     [<ffffffff81519990>] usb_reset_device+0x110/0x190
>     [<ffffffff8154aed4>] usb_stor_port_reset+0x74/0x80
>     [<ffffffff8154af6f>] usb_stor_invoke_transport+0x8f/0x550
>     [<ffffffff81549df9>] usb_stor_transparent_scsi_command+0x9/0x10
>     [<ffffffff8154b7ab>] usb_stor_control_thread+0x16b/0x280
>     [<ffffffff810b8c95>] kthread+0xe5/0xf0
>     [<ffffffff8182caec>] ret_from_fork+0x7c/0xb0
>     [<ffffffffffffffff>] 0xffffffffffffffff

Odd, Andiry and Sarah, any thoughts?  dmesg left below for completeness.

greg k-h


> 
> 
>   I believe these lines from dmesg are relevant:
> 
> [    4.201374] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
> [    4.202334] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> [    4.205214] hub 2-1:1.0: USB hub found
> [    4.206389] hub 2-1:1.0: 8 ports detected
> [    4.330926] usb 3-1: new high-speed USB device number 2 using xhci_hcd
> [    4.354303] usb 3-1: New USB device found, idVendor=2109, idProduct=3431
> [    4.356636] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
> [    4.358924] usb 3-1: Product: USB2.0 Hub
> [    4.387716] hub 3-1:1.0: USB hub found
> [    4.389999] hub 3-1:1.0: 4 ports detected
> [    4.521136] usb 3-2: new high-speed USB device number 3 using xhci_hcd
> [    4.541084] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [    4.544025] ata6.00: ATA-8: ST3000VX000-1CU166, CV22, max UDMA/133
> [    4.545766] ata6.00: 5860533168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
> [    4.547652] usb 3-2: New USB device found, idVendor=2109, idProduct=0811
> [    4.549396] usb 3-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
> [    4.551184] usb 3-2: Product: USB2.0 Hub
> [    4.553356] ata6.00: configured for UDMA/133
> [    4.555444] scsi 5:0:0:0: Direct-Access     ATA      ST3000VX000-1CU1 CV22 PQ: 0 ANSI: 5
> [    4.560417] sd 5:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
> [    4.561809] sd 5:0:0:0: [sdb] 4096-byte physical blocks
> [    4.563824] sd 5:0:0:0: [sdb] Write Protect is off
> [    4.565122] sd 5:0:0:0: [sdb] Mode Sense: 00 3a 00 00
> [    4.567672] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [    4.572740] sd 5:0:0:0: Attached scsi generic sg2 type 0
> [    4.578793] hub 3-2:1.0: USB hub found
> [    4.580040] hub 3-2:1.0: 4 ports detected
> [    4.628775]  sdb: sdb1
> [    4.631812] sd 5:0:0:0: [sdb] Attached SCSI disk
> [    4.712068] usb 4-2: new SuperSpeed USB device number 2 using xhci_hcd
> [    4.733347] usb 4-2: Parent hub missing LPM exit latency info.  Power management will be impacted.
> [    4.738124] usb 4-2: New USB device found, idVendor=2109, idProduct=0811
> [    4.739477] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> [    4.740835] usb 4-2: Product: 4-Port USB 3.0 Hub
> [    4.742179] usb 4-2: Manufacturer: VIA Labs, Inc.
> [    4.771771] hub 4-2:1.0: USB hub found
> [    4.773737] hub 4-2:1.0: 4 ports detected
> 
> [158794.376525] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [158794.581028] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [158794.581033] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [158829.439903] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [158829.514208] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [158829.514213] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [159013.517275] CPU1: Core temperature above threshold, cpu clock throttled (total events = 3846484)
> [159013.517278] CPU0: Package temperature above threshold, cpu clock throttled (total events = 4139411)
> [159013.517283] CPU1: Package temperature above threshold, cpu clock throttled (total events = 4139471)
> [159013.518287] CPU1: Core temperature/speed normal
> [159013.518288] CPU0: Package temperature/speed normal
> [159013.518291] CPU1: Package temperature/speed normal
> [159221.397277] kmemleak: 16 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
> [159256.419270] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [159256.493409] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [159256.493414] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [159316.457563] CPU1: Core temperature above threshold, cpu clock throttled (total events = 3847901)
> [159316.457566] CPU0: Package temperature above threshold, cpu clock throttled (total events = 4140838)
> [159316.457571] CPU1: Package temperature above threshold, cpu clock throttled (total events = 4140898)
> [159316.458575] CPU1: Core temperature/speed normal
> [159316.458577] CPU0: Package temperature/speed normal
> [159316.458580] CPU1: Package temperature/speed normal
> [159528.276239] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [159528.350332] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [159528.350337] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [159608.001039] usb 3-1.1: USB disconnect, device number 4
> [159641.626636] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [159641.700964] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [159641.700969] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [159650.609234] CPU1: Core temperature above threshold, cpu clock throttled (total events = 3849107)
> [159650.609237] CPU0: Package temperature above threshold, cpu clock throttled (total events = 4142050)
> [159650.609242] CPU1: Package temperature above threshold, cpu clock throttled (total events = 4142110)
> [159650.610233] CPU1: Core temperature/speed normal
> [159650.610236] CPU0: Package temperature/speed normal
> [159650.610239] CPU1: Package temperature/speed normal
> [159706.877433] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [159706.942493] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [159706.942498] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [159720.864729] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [159720.938923] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [159720.938928] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [159737.635577] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [159737.709673] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [159737.709678] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [159961.915805] CPU0: Package temperature above threshold, cpu clock throttled (total events = 4146185)
> [159961.915821] CPU1: Core temperature above threshold, cpu clock throttled (total events = 3853208)
> [159961.915825] CPU1: Package temperature above threshold, cpu clock throttled (total events = 4146245)
> [159961.916804] CPU0: Package temperature/speed normal
> [159961.916904] CPU1: Core temperature/speed normal
> [159961.916906] CPU1: Package temperature/speed normal
> [159981.952181] kmemleak: 10 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
> [160031.009109] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [160031.083538] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [160031.083543] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [160097.171185] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [160097.375700] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [160097.375706] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [160168.229478] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [160168.295450] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [160168.295464] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [160187.613175] usb 3-1.3: reset high-speed USB device number 9 using xhci_hcd
> [160187.687525] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012da8
> [160187.687530] xhci_hcd 0000:0b:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88018d012de8
> [160608.847200] CPU1: Core temperature above threshold, cpu clock throttled (total events = 3855438)
> [160608.847202] CPU0: Package temperature above threshold, cpu clock throttled (total events = 4148431)
> [160608.847208] CPU1: Package temperature above threshold, cpu clock throttled (total events = 4148491)
> [160608.848212] CPU1: Core temperature/speed normal
> [160608.848213] CPU0: Package temperature/speed normal
> [160608.848215] CPU1: Package temperature/speed normal
> [160674.438895] kmemleak: 12 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
> 
> 
> # lsusb
> Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
> Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
> Bus 003 Device 002: ID 2109:3431  
> Bus 003 Device 003: ID 2109:0811  
> Bus 004 Device 002: ID 2109:0811  
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 003: ID 05ca:1820 Ricoh Co., Ltd Integrated Webcam
> Bus 002 Device 003: ID 046d:c019 Logitech, Inc. Optical Tilt Wheel Mouse
> Bus 002 Device 004: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader
> Bus 003 Device 006: ID 174c:5106 ASMedia Technology Inc. Transcend StoreJet 25M3
> Bus 003 Device 009: ID 174c:5106 ASMedia Technology Inc. Transcend StoreJet 25M3
> Bus 003 Device 005: ID 04f2:0116 Chicony Electronics Co., Ltd KU-2971/KU-0325 Keyboard
> # lsusb -t
> /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
>     |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
> /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
>     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
>         |__ Port 2: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 480M
>         |__ Port 3: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 480M
>     |__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
>         |__ Port 4: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
> # 
> 
> 
> I know the CPU is overheating a bit, I am calculating some stuff here and it seems
> the FAN cannot handle it, hence the temperature warnings. The slowdowns of CPU
> however should not affect it's functionality, but it seems the SandyBridge chip
> or the CPU i7-2640M itself causes these errors and kmemleak in kernel.
> 
> Hope this helps,
> Martin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux