[Bug 213373] New: [drm] [radeon] memory leak at parsing radeon_atombios_parse_power_table

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Wed Jun 9 00:09:14 UTC 2021


https://bugzilla.kernel.org/show_bug.cgi?id=213373

            Bug ID: 213373
           Summary: [drm] [radeon] memory leak at parsing
                    radeon_atombios_parse_power_table
           Product: Drivers
           Version: 2.5
    Kernel Version: 5.13-rc5
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: drivers_video-dri at kernel-bugs.osdl.org
          Reporter: erhard_f at mailbox.org
        Regression: No

Created attachment 297247
  --> https://bugzilla.kernel.org/attachment.cgi?id=297247&action=edit
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  ........ at 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  .... at ...........
    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

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.


More information about the dri-devel mailing list