工具/软件:Linux
我使用的是 TI AM57xx Sitara 板。 但运行 kmemleak 后、 内核中出现以下内存泄漏。 Linux 内核版本为4.9.28,TI SDK 为 ti-processor-sdk-linux-am57xx-evm-04.00.00.04。 泄漏的原因是什么?如何清除它们?
root@am57xx-EVM:~# cat /sys/kernel/debug/kmemleak 未引用对象0xedc16e00 (大小64): Comm "swapper/0"、pid 1、jiffies 4294937364 (age 455.870s) 十六进制转储(前32个字节): 44 18 05 C1 00 00 00 01 00 00 01 00 00 00 D………………………………………………………………… 00 00 00 00 44 18 05 C1 cc D3 01 C1 cc D3 01 C1...D. 回溯: [ ]__kmalloc+0x194/0x210 [ ]__register_sysctl_table+0x58/0x630 [ ] register_sysctl+0x20/0x24 [ ] USER_namespace_sysctl_init+0x1c/0x48 [ ] do_one _initcall+0x4c/0x178 [ ] kernel_init_freeed+0x1d8/0x268 [ ] kernel_init+0x10/0x110 [ ] RET_FANK_+0x14/0x2C [ ] 0xffffffff 未引用对象0xd5650000 (大小1024): Comm "kwork/0:0"、pid 4、jiffies 4294938272 (age 446.860s) 十六进制转储(前32个字节): 01 00 00 52 01 00 52 01 00 52 00 52 01 00 52 00 52 ... R..R..R..R 01 00 00 52 01 00 52 01 00 00 52 01 00 52 01 00 52 ... R..R..R..R 回溯: [ ] kmem_cache_alloc+0x174/0x1d8 [ ] iointe_alloc+0x5c/0xc8 [ ] iopte_alloc_large+0x34/b4 [ ] omap_iommu_map+0x1a0/0x1f8 [ ] iommu_map+0x10c/0x180 [ ] rproc_handle_devmem+0x7c/0x12c [remoteproc] [ ] rproc_handle_resources+0x64/0xe8 [remoteproc] [ ]__rproc_boot+0x1c4/0x5bc [remoteproc] [ ] rproc_auto_boot_callback+0x18/0x24 [remoteproc] [ ] REQUEST_firmware_work _func+0x44/0x6c [ ] Process_One_Work+0x1dc/0x3f8 [ ] Worker_thread+0x58/0x574 [ ] kthread+0x100/0x118 [ ] RET_FANK_+0x14/0x2C [ ] 0xffffffff 未引用对象0xd5650800 (大小1024): Comm "kworker/0:0"、pid 4、jiffies 4294938272 (age 446.860s) 十六进制转储(前32个字节): 01 00 00 52 01 00 52 01 00 52 00 52 01 00 52 00 52 ... R..R..R..R 01 00 00 52 01 00 52 01 00 00 52 01 00 52 01 00 52 ... R..R..R..R 回溯: [ ] kmem_cache_alloc+0x174/0x1d8 [ ] iointe_alloc+0x5c/0xc8 [ ] iopte_alloc_large+0x34/b4 [ ] omap_iommu_map+0x1a0/0x1f8 [ ] iommu_map+0x10c/0x180 [ ] rproc_handle_devmem+0x7c/0x12c [remoteproc] [ ] rproc_handle_resources+0x64/0xe8 [remoteproc] [ ]__rproc_boot+0x1c4/0x5bc [remoteproc] [ ] rproc_auto_boot_callback+0x18/0x24 [remoteproc] [ ] REQUEST_firmware_work _func+0x44/0x6c [ ] Process_One_Work+0x1dc/0x3f8 [ ] Worker_thread+0x58/0x574 [ ] kthread+0x100/0x118 [ ] RET_FANK_+0x14/0x2C [ ] 0xffffffff 未引用对象0xd5651000 (大小1024): Comm "kwork/0:0"、pid 4、jiffies 4294938272 (age 446.860s) 十六进制转储(前32个字节): 01 00 30 40 01 00 30 40 01 00 30 40 01 00 30 40 .0@..0@..0@..0@..0…… 01 00 30 40 01 00 30 40 01 00 30 40 01 00 30 40@.0@..0@..0@..0 回溯: [ ] kmem_cache_alloc+0x174/0x1d8 [ ] iointe_alloc+0x5c/0xc8 [ ] iopte_alloc_large+0x34/b4