[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c

bugzilla-daemon at kernel.org bugzilla-daemon at kernel.org
Mon Nov 21 04:18:52 AEDT 2022


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

Erhard F. (erhard_f at mailbox.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|OBSOLETE                    |---

--- Comment #22 from Erhard F. (erhard_f at mailbox.org) ---
As the kmemleak output pretty much the same and as it's the same PowerMac G4 DP
I reopened this bug. Seems some OF changes meanwhile lead to memory leaks
again.

This is 6.1-rc5:

[...]
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc140b820 (size 16):
  comm "swapper/0", pid 1, jiffies 4294877302 (age 1153.234s)
  hex dump (first 16 bytes):
    63 6f 6d 70 61 74 69 62 6c 65 00 6b 6b 6b 6b a5  compatible.kkkk.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc140b2b0 (size 16):
  comm "swapper/0", pid 1, jiffies 4294877302 (age 1153.234s)
  hex dump (first 16 bytes):
    73 65 72 69 61 6c 2d 6e 75 6d 62 65 72 00 6b a5  serial-number.k.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc1470f20 (size 32):
  comm "swapper/0", pid 1, jiffies 4294877302 (age 1153.234s)
  hex dump (first 32 bytes):
    63 75 73 74 6f 6d 65 72 2d 73 77 2d 63 6f 6e 66  customer-sw-conf
    69 67 00 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b a5  ig.kkkkkkkkkkkk.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
...skipping...
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<8e6fdf66>] kobject_set_name_vargs+0x34/0xcc
    [<0ebf4a99>] kobject_add+0x88/0x110
    [<21cfd1b6>] __of_attach_node_sysfs+0x94/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc17341c0 (size 16):
  comm "swapper/0", pid 1, jiffies 4294877309 (age 1153.314s)
  hex dump (first 16 bytes):
    64 65 76 69 63 65 5f 74 79 70 65 00 6b 6b 6b a5  device_type.kkk.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc1739168 (size 8):
  comm "swapper/0", pid 1, jiffies 4294877309 (age 1153.314s)
  hex dump (first 8 bytes):
    72 65 67 00 6b 6b 6b a5                          reg.kkk.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc17396c8 (size 8):
  comm "swapper/0", pid 1, jiffies 4294877309 (age 1153.314s)
  hex dump (first 8 bytes):
    70 68 61 6e 64 6c 65 00                          phandle.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc1739708 (size 8):
  comm "swapper/0", pid 1, jiffies 4294877309 (age 1153.314s)
  hex dump (first 8 bytes):
    6e 61 6d 65 00 6b 6b a5                          name.kk.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
...skipping...
unreferenced object 0xc1405588 (size 8):
  comm "swapper/0", pid 1, jiffies 4294877302 (age 1153.234s)
  hex dump (first 8 bytes):
    62 61 73 65 00 6b 6b a5                          base.kk.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<8e6fdf66>] kobject_set_name_vargs+0x34/0xcc
    [<0ebf4a99>] kobject_add+0x88/0x110
    [<21cfd1b6>] __of_attach_node_sysfs+0x94/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc1405568 (size 8):
  comm "swapper/0", pid 1, jiffies 4294877302 (age 1153.234s)
  hex dump (first 8 bytes):
    6d 6f 64 65 6c 00 6b a5                          model.k.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64
unreferenced object 0xc140b820 (size 16):
  comm "swapper/0", pid 1, jiffies 4294877302 (age 1153.234s)
  hex dump (first 16 bytes):
    63 6f 6d 70 61 74 69 62 6c 65 00 6b 6b 6b 6b a5  compatible.kkkk.
  backtrace:
    [<92345f14>] kstrdup+0x44/0x9c
    [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128
    [<d8832181>] __of_attach_node_sysfs+0xc0/0x170
    [<2592df33>] of_core_init+0xf8/0x23c
    [<e5e36822>] driver_init+0x4c/0x80
    [<9cac2ddd>] kernel_init_freeable+0x138/0x354
    [<fcc01e1e>] kernel_init+0x28/0x154
    [<0cec001f>] ret_from_kernel_thread+0x5c/0x64

-- 
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 Linuxppc-dev mailing list