[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |OBSOLETE --- Comment #26 from Erhard F. (erhar...@mailbox.org) --- Closed in favour of: https://lore.kernel.org/all/20231018233815.34a0417f@yea/#r -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #25 from Erhard F. (erhar...@mailbox.org) --- Created attachment 303241 --> https://bugzilla.kernel.org/attachment.cgi?id=303241&action=edit kernel .config (kernel 6.1-rc5, PowerMac G4 3,6) -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #24 from Erhard F. (erhar...@mailbox.org) --- Created attachment 303240 --> https://bugzilla.kernel.org/attachment.cgi?id=303240&action=edit kmemleak output (kernel 6.1-rc5, PowerMac G4 3,6) -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #289679|0 |1 is obsolete|| Attachment #292285|0 |1 is obsolete|| Attachment #292287|0 |1 is obsolete|| Attachment #292289|0 |1 is obsolete|| --- Comment #23 from Erhard F. (erhar...@mailbox.org) --- Created attachment 303239 --> https://bugzilla.kernel.org/attachment.cgi?id=303239&action=edit kernel dmesg (kernel 6.1-rc5, PowerMac G4 3,6) -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|OBSOLETE|--- --- Comment #22 from Erhard F. (erhar...@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 [] __of_attach_node_sysfs+0xc0/0x170 [<2592df33>] of_core_init+0xf8/0x23c [] driver_init+0x4c/0x80 [<9cac2ddd>] kernel_init_freeable+0x138/0x354 [] 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.. backtrace: [<92345f14>] kstrdup+0x44/0x9c [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128 [] __of_attach_node_sysfs+0xc0/0x170 [<2592df33>] of_core_init+0xf8/0x23c [] driver_init+0x4c/0x80 [<9cac2ddd>] kernel_init_freeable+0x138/0x354 [] 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 [] __of_attach_node_sysfs+0xc0/0x170 [<2592df33>] of_core_init+0xf8/0x23c [] driver_init+0x4c/0x80 [<9cac2ddd>] kernel_init_freeable+0x138/0x354 [] 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.. backtrace: [<92345f14>] kstrdup+0x44/0x9c [<46e6ec0a>] __of_add_property_sysfs+0xb8/0x128 [] __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 [] driver_init+0x4c/0x80 [<9cac2ddd>] kernel_init_freeable+0x138/0x354 [] 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 [] __of_attach_node_sysfs+0xc0/0x170 [<2592df33>] of_core_init+0xf8/0x23c [] driver_init+0x4c/0x80 [<9cac2ddd>] kernel_init_freeable+0x138/0x354 [] 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 [] __of_attach_node_sysfs+0xc0/0x170 [<2592df33>] of_core_init+0xf8/0x23c [] driver_init+0x4c/0x80 [<9cac2ddd>] kernel_init_freeable+0x138/0x354 [] 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 [] __of_attach_node_sysfs+0xc0/0x170 [<2592df33>] of_core_init+0xf8/0x23c [] driver_init+0x4c/0x80 [<9cac2ddd>] kernel_init_freeable+0x138/0x354 [] 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 [] __of_attach_node_sysfs+0xc0/0x170 [<2592df33>] of_core_init+0xf8/0x23c [] driver_init+0x4c/0x80 [<9cac2ddd>] kernel_init_freeable+0x138/0x354 [] kernel_init+0x28/0x154 [<0cec001f>] ret_from_kernel_thread+0x5c/0x64 ...skipping... unreferenced object 0xc1405588 (size 8): comm "swapper
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |OBSOLETE --- Comment #21 from Erhard F. (erhar...@mailbox.org) --- Kmemleak remains silent since at least 5.11.x on these machines. Which is a good sign I guess. ;) Closing for now. In case I hit these of: based memleaks again I will re-open. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #288187|0 |1 is obsolete|| --- Comment #20 from Erhard F. (erhar...@mailbox.org) --- Created attachment 292289 --> https://bugzilla.kernel.org/attachment.cgi?id=292289&action=edit kernel .config (kernel 5.9-rc3, Talos II) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #288189|0 |1 is obsolete|| --- Comment #19 from Erhard F. (erhar...@mailbox.org) --- Created attachment 292287 --> https://bugzilla.kernel.org/attachment.cgi?id=292287&action=edit kmemleak output (kernel 5.9-rc3, Talos II) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #288185|0 |1 is obsolete|| --- Comment #18 from Erhard F. (erhar...@mailbox.org) --- Created attachment 292285 --> https://bugzilla.kernel.org/attachment.cgi?id=292285&action=edit dmesg (kernel 5.9-rc3, Talos II) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #17 from Erhard F. (erhar...@mailbox.org) --- Created attachment 290641 --> https://bugzilla.kernel.org/attachment.cgi?id=290641&action=edit kmemleak output (kernel 5.8-rc7, PowerMac G4 3,6) Also happens on my G4 DP. -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #16 from Erhard F. (erhar...@mailbox.org) --- Created attachment 290639 --> https://bugzilla.kernel.org/attachment.cgi?id=290639&action=edit dmesg (kernel 5.8-rc7, PowerMac G4 3,6) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #287675|0 |1 is obsolete|| --- Comment #15 from Erhard F. (erhar...@mailbox.org) --- Created attachment 289679 --> https://bugzilla.kernel.org/attachment.cgi?id=289679&action=edit kernel .config (kernel 5.8-rc1, PowerMac G5 11,2) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #287673|0 |1 is obsolete|| Attachment #288567|0 |1 is obsolete|| --- Comment #14 from Erhard F. (erhar...@mailbox.org) --- Created attachment 289677 --> https://bugzilla.kernel.org/attachment.cgi?id=289677&action=edit dmesg (kernel 5.8-rc1, PowerMac G5 11,2) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #287671|0 |1 is obsolete|| Attachment #288565|0 |1 is obsolete|| --- Comment #13 from Erhard F. (erhar...@mailbox.org) --- Created attachment 289675 --> https://bugzilla.kernel.org/attachment.cgi?id=289675&action=edit kmemleak output (kernel 5.8-rc1, PowerMac G5 11,2) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #12 from Erhard F. (erhar...@mailbox.org) --- Created attachment 288567 --> https://bugzilla.kernel.org/attachment.cgi?id=288567&action=edit dmesg (kernel 5.7-rc1, PowerMac G5 11,2) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #11 from Erhard F. (erhar...@mailbox.org) --- Created attachment 288565 --> https://bugzilla.kernel.org/attachment.cgi?id=288565&action=edit kmemleak output (kernel 5.7-rc1, PowerMac G5 11,2) Applied Frank's patch set on top of 5.7-rc1. Though there are certainly less memory leaks now, there are still some OF ones reported. Frank Rowand (5): of: unittest: kmemleak on changeset destroy of: unittest: kmemleak in of_unittest_platform_populate() of: unittest: kmemleak in of_unittest_overlay_high_level() of: overlay: kmemleak in dup_and_fixup_symbol_prop() of: unittest: kmemleak in duplicate property update -- You are receiving this mail because: You are watching the assignee of the bug.
Re: [Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
On 4/15/20 10:27 PM, Frank Rowand wrote: > On 4/8/20 10:22 AM, Frank Rowand wrote: >> Hi Michael, >> >> On 4/7/20 10:13 PM, Michael Ellerman wrote: >>> bugzilla-dae...@bugzilla.kernel.org writes: https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #286801|0 |1 is obsolete|| --- Comment #10 from Erhard F. (erhar...@mailbox.org) --- Created attachment 288189 --> https://bugzilla.kernel.org/attachment.cgi?id=288189&action=edit kmemleak output (kernel 5.6.2, Talos II) >>> >>> These are all in or triggered by the of unittest code AFAICS. >>> Content of the log reproduced below. >>> >>> Frank/Rob, are these memory leaks expected? >> >> Thanks for the report. I'll look at each one. > > Only one of the leaks was expected. I have patches to fix the > unexpected leaks and to remove the expected leak so that the > kmemleak report of it will not have to be checked again. > > I expect to send the patch series tomorrow (Thursday). The patches for the memory leaks that I saw on an ARM board are at: https://lore.kernel.org/r/1587073370-25963-1-git-send-email-frowand.l...@gmail.com -Frank < snip >
Re: [Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
On 4/8/20 10:22 AM, Frank Rowand wrote: > Hi Michael, > > On 4/7/20 10:13 PM, Michael Ellerman wrote: >> bugzilla-dae...@bugzilla.kernel.org writes: >>> https://bugzilla.kernel.org/show_bug.cgi?id=206203 >>> >>> Erhard F. (erhar...@mailbox.org) changed: >>> >>>What|Removed |Added >>> >>> Attachment #286801|0 |1 >>> is obsolete|| >>> >>> --- Comment #10 from Erhard F. (erhar...@mailbox.org) --- >>> Created attachment 288189 >>> --> https://bugzilla.kernel.org/attachment.cgi?id=288189&action=edit >>> kmemleak output (kernel 5.6.2, Talos II) >> >> These are all in or triggered by the of unittest code AFAICS. >> Content of the log reproduced below. >> >> Frank/Rob, are these memory leaks expected? > > Thanks for the report. I'll look at each one. Only one of the leaks was expected. I have patches to fix the unexpected leaks and to remove the expected leak so that the kmemleak report of it will not have to be checked again. I expect to send the patch series tomorrow (Thursday). -Frank > > -Frank > > >> >> cheers >> >> >> unreferenced object 0xc007eb89ca58 (size 192): >> comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) >> hex dump (first 32 bytes): >> c0 00 00 00 00 d9 21 38 00 00 00 00 00 00 00 00 ..!8 >> c0 00 00 07 ec 97 80 08 00 00 00 00 00 00 00 00 >> backtrace: >> [<07b50c76>] .__of_node_dup+0x38/0x1c0 >> [] .of_unittest_changeset+0x13c/0xa20 >> [<925a8013>] .of_unittest+0x1ba0/0x3778 >> [ ] .do_one_initcall+0x7c/0x420 >> [ ] .kernel_init_freeable+0x318/0x3d8 >> [<01b957ee>] .kernel_init+0x14/0x168 >> [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 >> unreferenced object 0xc007ec978008 (size 8): >> comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) >> hex dump (first 8 bytes): >> 6e 31 00 6b 6b 6b 6b a5 n1.. >> backtrace: >> [ ] .kstrdup+0x44/0xb0 >> [ ] .__of_node_dup+0x50/0x1c0 >> [ ] .of_unittest_changeset+0x13c/0xa20 >> [<925a8013>] .of_unittest+0x1ba0/0x3778 >> [ ] .do_one_initcall+0x7c/0x420 >> [ ] .kernel_init_freeable+0x318/0x3d8 >> [<01b957ee>] .kernel_init+0x14/0x168 >> [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 >> unreferenced object 0xc007eb89e318 (size 192): >> comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) >> hex dump (first 32 bytes): >> c0 00 00 00 00 d9 21 38 00 00 00 00 00 00 00 00 ..!8 >> c0 00 00 07 ec 97 ab 08 00 00 00 00 00 00 00 00 >> backtrace: >> [<07b50c76>] .__of_node_dup+0x38/0x1c0 >> [<881dc9c4>] .of_unittest_changeset+0x194/0xa20 >> [<925a8013>] .of_unittest+0x1ba0/0x3778 >> [ ] .do_one_initcall+0x7c/0x420 >> [ ] .kernel_init_freeable+0x318/0x3d8 >> [<01b957ee>] .kernel_init+0x14/0x168 >> [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 >> unreferenced object 0xc007ec97ab08 (size 8): >> comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) >> hex dump (first 8 bytes): >> 6e 32 00 6b 6b 6b 6b a5 n2.. >> backtrace: >> [ ] .kstrdup+0x44/0xb0 >> [ ] .__of_node_dup+0x50/0x1c0 >> [<881dc9c4>] .of_unittest_changeset+0x194/0xa20 >> [<925a8013>] .of_unittest+0x1ba0/0x3778 >> [ ] .do_one_initcall+0x7c/0x420 >> [ ] .kernel_init_freeable+0x318/0x3d8 >> [<01b957ee>] .kernel_init+0x14/0x168 >> [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 >> unreferenced object 0xc007eb89e528 (size 192): >> comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) >> hex dump (first 32 bytes): >> c0 00 00 07 ec 97 bd d8 00 00 00 00 00 00 00 00 >> c0 00 00 07 ec 97 b3 18 00 00 00 00 00 00 00 00 >> backtrace: >> [<07b50c76>] .__of_node_dup+0x38/0x1c0 >> [ ] .of_unittest_changeset+0x1ec/0xa20 >> [<925a8013>] .of_unittest+0x1ba0/0x3778 >> [ ] .do_one_initcall+0x7c/0x420 >> [ ] .kernel_init_freeable+0x318/0x3d8 >> [<01b957ee>] .kernel_init+0x14/0x168 >> [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 >> unreferenced object 0xc007ec97b318 (size 8): >> comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) >> hex dump (first 8 bytes): >> 6e 32 31 00 6b 6b 6b a5 n21.kkk. >> backtrace: >> [ ] .kstrdup+0x44/0xb0
Re: [Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
Hi Michael, On 4/7/20 10:13 PM, Michael Ellerman wrote: > bugzilla-dae...@bugzilla.kernel.org writes: >> https://bugzilla.kernel.org/show_bug.cgi?id=206203 >> >> Erhard F. (erhar...@mailbox.org) changed: >> >>What|Removed |Added >> >> Attachment #286801|0 |1 >> is obsolete|| >> >> --- Comment #10 from Erhard F. (erhar...@mailbox.org) --- >> Created attachment 288189 >> --> https://bugzilla.kernel.org/attachment.cgi?id=288189&action=edit >> kmemleak output (kernel 5.6.2, Talos II) > > These are all in or triggered by the of unittest code AFAICS. > Content of the log reproduced below. > > Frank/Rob, are these memory leaks expected? Thanks for the report. I'll look at each one. -Frank > > cheers > > > unreferenced object 0xc007eb89ca58 (size 192): > comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) > hex dump (first 32 bytes): > c0 00 00 00 00 d9 21 38 00 00 00 00 00 00 00 00 ..!8 > c0 00 00 07 ec 97 80 08 00 00 00 00 00 00 00 00 > backtrace: > [<07b50c76>] .__of_node_dup+0x38/0x1c0 > [] .of_unittest_changeset+0x13c/0xa20 > [<925a8013>] .of_unittest+0x1ba0/0x3778 > [ ] .do_one_initcall+0x7c/0x420 > [ ] .kernel_init_freeable+0x318/0x3d8 > [<01b957ee>] .kernel_init+0x14/0x168 > [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 > unreferenced object 0xc007ec978008 (size 8): > comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) > hex dump (first 8 bytes): > 6e 31 00 6b 6b 6b 6b a5 n1.. > backtrace: > [ ] .kstrdup+0x44/0xb0 > [ ] .__of_node_dup+0x50/0x1c0 > [ ] .of_unittest_changeset+0x13c/0xa20 > [<925a8013>] .of_unittest+0x1ba0/0x3778 > [ ] .do_one_initcall+0x7c/0x420 > [ ] .kernel_init_freeable+0x318/0x3d8 > [<01b957ee>] .kernel_init+0x14/0x168 > [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 > unreferenced object 0xc007eb89e318 (size 192): > comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) > hex dump (first 32 bytes): > c0 00 00 00 00 d9 21 38 00 00 00 00 00 00 00 00 ..!8 > c0 00 00 07 ec 97 ab 08 00 00 00 00 00 00 00 00 > backtrace: > [<07b50c76>] .__of_node_dup+0x38/0x1c0 > [<881dc9c4>] .of_unittest_changeset+0x194/0xa20 > [<925a8013>] .of_unittest+0x1ba0/0x3778 > [ ] .do_one_initcall+0x7c/0x420 > [ ] .kernel_init_freeable+0x318/0x3d8 > [<01b957ee>] .kernel_init+0x14/0x168 > [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 > unreferenced object 0xc007ec97ab08 (size 8): > comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) > hex dump (first 8 bytes): > 6e 32 00 6b 6b 6b 6b a5 n2.. > backtrace: > [ ] .kstrdup+0x44/0xb0 > [ ] .__of_node_dup+0x50/0x1c0 > [<881dc9c4>] .of_unittest_changeset+0x194/0xa20 > [<925a8013>] .of_unittest+0x1ba0/0x3778 > [ ] .do_one_initcall+0x7c/0x420 > [ ] .kernel_init_freeable+0x318/0x3d8 > [<01b957ee>] .kernel_init+0x14/0x168 > [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 > unreferenced object 0xc007eb89e528 (size 192): > comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) > hex dump (first 32 bytes): > c0 00 00 07 ec 97 bd d8 00 00 00 00 00 00 00 00 > c0 00 00 07 ec 97 b3 18 00 00 00 00 00 00 00 00 > backtrace: > [<07b50c76>] .__of_node_dup+0x38/0x1c0 > [ ] .of_unittest_changeset+0x1ec/0xa20 > [<925a8013>] .of_unittest+0x1ba0/0x3778 > [ ] .do_one_initcall+0x7c/0x420 > [ ] .kernel_init_freeable+0x318/0x3d8 > [<01b957ee>] .kernel_init+0x14/0x168 > [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 > unreferenced object 0xc007ec97b318 (size 8): > comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) > hex dump (first 8 bytes): > 6e 32 31 00 6b 6b 6b a5 n21.kkk. > backtrace: > [ ] .kstrdup+0x44/0xb0 > [ ] .__of_node_dup+0x50/0x1c0 > [ ] .of_unittest_changeset+0x1ec/0xa20 > [<925a8013>] .of_unittest+0x1ba0/0x3778 > [ ] .do_one_initcall+0x7c/0x420 > [ ] .kernel_init_freeable+0x318/0x3d8 > [<01b957ee>] .kernel_init+0x14/0x168 > [<1fe347b5>] .ret_from_kernel_thread+0x58/0x
Re: [Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
bugzilla-dae...@bugzilla.kernel.org writes: > https://bugzilla.kernel.org/show_bug.cgi?id=206203 > > Erhard F. (erhar...@mailbox.org) changed: > >What|Removed |Added > > Attachment #286801|0 |1 > is obsolete|| > > --- Comment #10 from Erhard F. (erhar...@mailbox.org) --- > Created attachment 288189 > --> https://bugzilla.kernel.org/attachment.cgi?id=288189&action=edit > kmemleak output (kernel 5.6.2, Talos II) These are all in or triggered by the of unittest code AFAICS. Content of the log reproduced below. Frank/Rob, are these memory leaks expected? cheers unreferenced object 0xc007eb89ca58 (size 192): comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) hex dump (first 32 bytes): c0 00 00 00 00 d9 21 38 00 00 00 00 00 00 00 00 ..!8 c0 00 00 07 ec 97 80 08 00 00 00 00 00 00 00 00 backtrace: [<07b50c76>] .__of_node_dup+0x38/0x1c0 [] .of_unittest_changeset+0x13c/0xa20 [<925a8013>] .of_unittest+0x1ba0/0x3778 [ ] .do_one_initcall+0x7c/0x420 [ ] .kernel_init_freeable+0x318/0x3d8 [<01b957ee>] .kernel_init+0x14/0x168 [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 unreferenced object 0xc007ec978008 (size 8): comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) hex dump (first 8 bytes): 6e 31 00 6b 6b 6b 6b a5 n1.. backtrace: [ ] .kstrdup+0x44/0xb0 [ ] .__of_node_dup+0x50/0x1c0 [ ] .of_unittest_changeset+0x13c/0xa20 [<925a8013>] .of_unittest+0x1ba0/0x3778 [ ] .do_one_initcall+0x7c/0x420 [ ] .kernel_init_freeable+0x318/0x3d8 [<01b957ee>] .kernel_init+0x14/0x168 [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 unreferenced object 0xc007eb89e318 (size 192): comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) hex dump (first 32 bytes): c0 00 00 00 00 d9 21 38 00 00 00 00 00 00 00 00 ..!8 c0 00 00 07 ec 97 ab 08 00 00 00 00 00 00 00 00 backtrace: [<07b50c76>] .__of_node_dup+0x38/0x1c0 [<881dc9c4>] .of_unittest_changeset+0x194/0xa20 [<925a8013>] .of_unittest+0x1ba0/0x3778 [ ] .do_one_initcall+0x7c/0x420 [ ] .kernel_init_freeable+0x318/0x3d8 [<01b957ee>] .kernel_init+0x14/0x168 [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 unreferenced object 0xc007ec97ab08 (size 8): comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) hex dump (first 8 bytes): 6e 32 00 6b 6b 6b 6b a5 n2.. backtrace: [ ] .kstrdup+0x44/0xb0 [ ] .__of_node_dup+0x50/0x1c0 [<881dc9c4>] .of_unittest_changeset+0x194/0xa20 [<925a8013>] .of_unittest+0x1ba0/0x3778 [ ] .do_one_initcall+0x7c/0x420 [ ] .kernel_init_freeable+0x318/0x3d8 [<01b957ee>] .kernel_init+0x14/0x168 [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 unreferenced object 0xc007eb89e528 (size 192): comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) hex dump (first 32 bytes): c0 00 00 07 ec 97 bd d8 00 00 00 00 00 00 00 00 c0 00 00 07 ec 97 b3 18 00 00 00 00 00 00 00 00 backtrace: [<07b50c76>] .__of_node_dup+0x38/0x1c0 [ ] .of_unittest_changeset+0x1ec/0xa20 [<925a8013>] .of_unittest+0x1ba0/0x3778 [ ] .do_one_initcall+0x7c/0x420 [ ] .kernel_init_freeable+0x318/0x3d8 [<01b957ee>] .kernel_init+0x14/0x168 [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 unreferenced object 0xc007ec97b318 (size 8): comm "swapper/0", pid 1, jiffies 4294878935 (age 824.747s) hex dump (first 8 bytes): 6e 32 31 00 6b 6b 6b a5 n21.kkk. backtrace: [ ] .kstrdup+0x44/0xb0 [ ] .__of_node_dup+0x50/0x1c0 [ ] .of_unittest_changeset+0x1ec/0xa20 [<925a8013>] .of_unittest+0x1ba0/0x3778 [ ] .do_one_initcall+0x7c/0x420 [ ] .kernel_init_freeable+0x318/0x3d8 [<01b957ee>] .kernel_init+0x14/0x168 [<1fe347b5>] .ret_from_kernel_thread+0x58/0x68 unreferenced object 0xc007f1c1fb00 (size 128): comm "swapper/0", pid 1, jiffies 4294878935 (age 824.757s) hex dump (first 32 bytes): c0 00 00 07 ec 97 90 28 00 00 00 03 00 00 00 00 ...( c0 00 00 07 ec 97 8e d0 00 00 00 00 00 00 00 00 backtrace: [<0
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #286801|0 |1 is obsolete|| --- Comment #10 from Erhard F. (erhar...@mailbox.org) --- Created attachment 288189 --> https://bugzilla.kernel.org/attachment.cgi?id=288189&action=edit kmemleak output (kernel 5.6.2, Talos II) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #286805|0 |1 is obsolete|| --- Comment #9 from Erhard F. (erhar...@mailbox.org) --- Created attachment 288187 --> https://bugzilla.kernel.org/attachment.cgi?id=288187&action=edit kernel .config (kernel 5.6.2, Talos II) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #286803|0 |1 is obsolete|| --- Comment #8 from Erhard F. (erhar...@mailbox.org) --- Created attachment 288185 --> https://bugzilla.kernel.org/attachment.cgi?id=288185&action=edit dmesg (kernel 5.6.2, Talos II) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #7 from Erhard F. (erhar...@mailbox.org) --- (In reply to mpe from comment #6) > Can you attach the /sys/kernel/debug/kmemleak output please. > > cheers I already did: "kmemleak output (kernel 5.6-rc3, PowerMac G5 11,2) (91.35 KB, text/plain)" -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #6 from m...@ellerman.id.au --- bugzilla-dae...@bugzilla.kernel.org writes: > https://bugzilla.kernel.org/show_bug.cgi?id=206203 > > --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- > Created attachment 287671 > --> https://bugzilla.kernel.org/attachment.cgi?id=287671&action=edit > kmemleak output (kernel 5.6-rc3, PowerMac G5 11,2) > > Same on a PowerMac G5 11,2 (kernel 5.6-rc3). Can you attach the /sys/kernel/debug/kmemleak output please. cheers -- You are receiving this mail because: You are watching the assignee of the bug.
Re: [Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
bugzilla-dae...@bugzilla.kernel.org writes: > https://bugzilla.kernel.org/show_bug.cgi?id=206203 > > --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- > Created attachment 287671 > --> https://bugzilla.kernel.org/attachment.cgi?id=287671&action=edit > kmemleak output (kernel 5.6-rc3, PowerMac G5 11,2) > > Same on a PowerMac G5 11,2 (kernel 5.6-rc3). Can you attach the /sys/kernel/debug/kmemleak output please. cheers
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #5 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287675 --> https://bugzilla.kernel.org/attachment.cgi?id=287675&action=edit kernel .config (kernel 5.6-rc3, PowerMac G5 11,2) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #4 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287673 --> https://bugzilla.kernel.org/attachment.cgi?id=287673&action=edit dmesg (kernel 5.6-rc3, PowerMac G5 11,2) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287671 --> https://bugzilla.kernel.org/attachment.cgi?id=287671&action=edit kmemleak output (kernel 5.6-rc3, PowerMac G5 11,2) Same on a PowerMac G5 11,2 (kernel 5.6-rc3). -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #2 from Erhard F. (erhar...@mailbox.org) --- Created attachment 286805 --> https://bugzilla.kernel.org/attachment.cgi?id=286805&action=edit kernel .config (kernel 5.4.11, Talos II) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #1 from Erhard F. (erhar...@mailbox.org) --- Created attachment 286803 --> https://bugzilla.kernel.org/attachment.cgi?id=286803&action=edit dmesg (kernel 5.4.11, Talos II) -- You are receiving this mail because: You are watching the assignee of the bug.