Bug 213373 - [drm] [radeon] memory leak at parsing radeon_atombios_parse_power_table
Summary: [drm] [radeon] memory leak at parsing radeon_atombios_parse_power_table
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-09 00:09 UTC by Erhard F.
Modified: 2021-07-29 00:12 UTC (History)
0 users

See Also:
Kernel Version: 5.13-rc5
Subsystem:
Regression: No
Bisected commit-id:


Attachments
output of /sys/kernel/debug/kmemleak (2.48 KB, text/plain)
2021-06-09 00:09 UTC, Erhard F.
Details
kernel dmesg (5.13-rc5, eMachines E620) (51.87 KB, text/plain)
2021-06-09 00:10 UTC, Erhard F.
Details
kernel .config (5.13-rc5, eMachines E620) (106.16 KB, text/plain)
2021-06-09 00:11 UTC, Erhard F.
Details
output of /sys/kernel/debug/kmemleak (6.12 KB, text/plain)
2021-06-09 08:57 UTC, Erhard F.
Details
kernel dmesg (5.14-rc3, eMachines E620) (68.49 KB, text/plain)
2021-07-29 00:12 UTC, Erhard F.
Details

Description Erhard F. 2021-06-09 00:09:14 UTC
Created attachment 297247 [details]
output of /sys/kernel/debug/kmemleak

Radeon driver on this machine was defunct from 5.6.x on until the issue was fixed in bug #211537. What remains after the fix is this memory leak:

unreferenced object 0xffff88810e6c3dc8 (size 96):
  comm "systemd-udevd", pid 136, jiffies 4294895831 (age 1145.117s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 40 56 fe 08 80 88 ff ff  ........@V......
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<0000000010cd8f43>] __kmalloc+0x163/0x1d4
    [<00000000f14786c6>] radeon_atombios_parse_power_table_1_3+0x43f/0x1b1f [radeon]
    [<00000000638c7538>] radeon_atombios_get_power_modes+0x144/0x1888 [radeon]
    [<00000000db824f7d>] radeon_pm_init+0xffd/0x18cc [radeon]
    [<000000007dfbb45f>] rs690_init+0x76e/0x84a [radeon]
    [<0000000035475290>] radeon_device_init+0x1c1a/0x21c1 [radeon]
    [<00000000f4096cf8>] radeon_driver_load_kms+0xf5/0x30b [radeon]
    [<00000000b3f3c46b>] drm_dev_register+0x255/0x4a0 [drm]
    [<00000000da8d532e>] radeon_pci_probe+0x246/0x2f6 [radeon]
    [<00000000667a4010>] pci_device_probe+0x1aa/0x294
    [<00000000435523ff>] really_probe+0x30e/0x850
    [<0000000016679ebc>] driver_probe_device+0x112/0x161
    [<00000000e75e3390>] device_driver_attach+0xc1/0xf8
    [<0000000078c4dcd6>] __driver_attach+0x16b/0x172
    [<000000007d3f0ac0>] bus_for_each_dev+0xfa/0x146
    [<000000008ee66f7b>] bus_add_driver+0x2b3/0x447
unreferenced object 0xffff888008fe5640 (size 64):
  comm "systemd-udevd", pid 136, jiffies 4294895831 (age 1145.117s)
  hex dump (first 32 bytes):
    00 00 00 00 40 9c 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:
    [<000000006edcc7c8>] kmem_cache_alloc_trace+0x10f/0x15e
    [<0000000079a5480d>] radeon_atombios_parse_power_table_1_3+0x546/0x1b1f [radeon]
    [<00000000638c7538>] radeon_atombios_get_power_modes+0x144/0x1888 [radeon]
    [<00000000db824f7d>] radeon_pm_init+0xffd/0x18cc [radeon]
    [<000000007dfbb45f>] rs690_init+0x76e/0x84a [radeon]
    [<0000000035475290>] radeon_device_init+0x1c1a/0x21c1 [radeon]
    [<00000000f4096cf8>] radeon_driver_load_kms+0xf5/0x30b [radeon]
    [<00000000b3f3c46b>] drm_dev_register+0x255/0x4a0 [drm]
    [<00000000da8d532e>] radeon_pci_probe+0x246/0x2f6 [radeon]
    [<00000000667a4010>] pci_device_probe+0x1aa/0x294
    [<00000000435523ff>] really_probe+0x30e/0x850
    [<0000000016679ebc>] driver_probe_device+0x112/0x161
    [<00000000e75e3390>] device_driver_attach+0xc1/0xf8
    [<0000000078c4dcd6>] __driver_attach+0x16b/0x172
    [<000000007d3f0ac0>] bus_for_each_dev+0xfa/0x146
    [<000000008ee66f7b>] bus_add_driver+0x2b3/0x447


 # lspci -vv -s 01:05.0
01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS690M [Radeon Xpress 1200/1250/1270] (prog-if 00 [VGA controller])
	Subsystem: Gateway, Inc. RS690M [Radeon Xpress 1200/1250/1270]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 26
	Region 0: Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at f0100000 (64-bit, non-prefetchable) [size=64K]
	Region 4: I/O ports at 9400 [size=256]
	Region 5: Memory at f0000000 (32-bit, non-prefetchable) [size=1M]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee01004  Data: 0025
	Kernel driver in use: radeon
	Kernel modules: radeon

 # inxi -bz
System:    Kernel: 5.13.0-rc5-E620 x86_64 bits: 64 Console: tty 0 
           Distro: Gentoo Base System release 2.7 
Machine:   Type: Laptop System: eMachines product: eMachines E620 v: V1.03 serial: <filter> 
           Mobo: eMachines model: Nile serial: <filter> BIOS: eMachines v: 1.03 date: 09/30/2008 
Battery:   ID-1: BAT1 charge: N/A condition: N/A 
CPU:       Info: Dual Core AMD Athlon X2 3250e [MCP] speed: 1496 MHz 
Graphics:  Device-1: AMD RS690M [Radeon Xpress 1200/1250/1270] driver: radeon v: kernel 
           Display: server: X.org 1.20.11 driver: ati,radeon unloaded: fbdev,modesetting tty: 104x57 
           Message: Advanced graphics data unavailable in console for root. 
Network:   Device-1: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter driver: ath5k 
           Device-2: Realtek RTL810xE PCI Express Fast Ethernet driver: r8169
Comment 1 Erhard F. 2021-06-09 00:10:24 UTC
Created attachment 297249 [details]
kernel dmesg (5.13-rc5, eMachines E620)
Comment 2 Erhard F. 2021-06-09 00:11:35 UTC
Created attachment 297251 [details]
kernel .config (5.13-rc5, eMachines E620)
Comment 3 Erhard F. 2021-06-09 08:57:48 UTC
Created attachment 297259 [details]
output of /sys/kernel/debug/kmemleak
Comment 4 Erhard F. 2021-07-29 00:12:53 UTC
Created attachment 298097 [details]
kernel dmesg (5.14-rc3, eMachines E620)

output of /sys/kernel/debug/kmemleak on kernel v5.14-rc3:

unreferenced object 0xffff8881098e35a8 (size 96):
  comm "systemd-udevd", pid 128, jiffies 4294889391 (age 6947.280s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 7d 24 01 81 88 ff ff  .........}$.....
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffffa23f427c>] __kmalloc+0x16d/0x1df
    [<ffffffffc0a61447>] radeon_atombios_parse_power_table_1_3+0x446/0x1b26 [radeon]
    [<ffffffffc0a6f8db>] radeon_atombios_get_power_modes+0x149/0x188d [radeon]
    [<ffffffffc0b19ade>] radeon_pm_init+0x1002/0x18d1 [radeon]
    [<ffffffffc0aec0b5>] rs690_init+0x763/0x83f [radeon]
    [<ffffffffc0a59459>] radeon_device_init+0x1c1a/0x21c1 [radeon]
    [<ffffffffc0a5c24a>] radeon_driver_load_kms+0x1ef/0x408 [radeon]
    [<ffffffffc03d90f4>] drm_dev_register+0x255/0x4a0 [drm]
    [<ffffffffc0a55405>] radeon_pci_probe+0x132/0x15e [radeon]
    [<ffffffffa2a96484>] pci_device_probe+0x1aa/0x294
    [<ffffffffa2bc91aa>] really_probe+0x28f/0x76b
    [<ffffffffa2bc9825>] __driver_probe_device+0x19f/0x1ee
    [<ffffffffa2bc98b8>] driver_probe_device+0x44/0xbb
    [<ffffffffa2bca212>] __driver_attach+0x1a2/0x1d4
    [<ffffffffa2bc4cc7>] bus_for_each_dev+0xfa/0x146
    [<ffffffffa2bc6d81>] bus_add_driver+0x2b3/0x447
unreferenced object 0xffff888101247d00 (size 64):
  comm "systemd-udevd", pid 128, jiffies 4294889391 (age 6947.280s)
  hex dump (first 32 bytes):
    00 00 00 00 40 9c 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:
    [<ffffffffa23f4407>] kmem_cache_alloc_trace+0x119/0x169
    [<ffffffffc0a6154e>] radeon_atombios_parse_power_table_1_3+0x54d/0x1b26 [radeon]
    [<ffffffffc0a6f8db>] radeon_atombios_get_power_modes+0x149/0x188d [radeon]
    [<ffffffffc0b19ade>] radeon_pm_init+0x1002/0x18d1 [radeon]
    [<ffffffffc0aec0b5>] rs690_init+0x763/0x83f [radeon]
    [<ffffffffc0a59459>] radeon_device_init+0x1c1a/0x21c1 [radeon]
    [<ffffffffc0a5c24a>] radeon_driver_load_kms+0x1ef/0x408 [radeon]
    [<ffffffffc03d90f4>] drm_dev_register+0x255/0x4a0 [drm]
    [<ffffffffc0a55405>] radeon_pci_probe+0x132/0x15e [radeon]
    [<ffffffffa2a96484>] pci_device_probe+0x1aa/0x294
    [<ffffffffa2bc91aa>] really_probe+0x28f/0x76b
    [<ffffffffa2bc9825>] __driver_probe_device+0x19f/0x1ee
    [<ffffffffa2bc98b8>] driver_probe_device+0x44/0xbb
    [<ffffffffa2bca212>] __driver_attach+0x1a2/0x1d4
    [<ffffffffa2bc4cc7>] bus_for_each_dev+0xfa/0x146
    [<ffffffffa2bc6d81>] bus_add_driver+0x2b3/0x447

Note You need to log in before you can comment on or make changes to this bug.