Vamshi K Sthambamkadi
fe5186cf12
efivarfs: fix memory leak in efivarfs_create()
kmemleak report:
unreferenced object 0xffff9b8915fcb000 (size 4096):
comm "efivarfs.sh", pid 2360, jiffies 4294920096 (age 48.264s)
hex dump (first 32 bytes):
2d 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 00 00 00 00 00 ................
backtrace:
[<00000000cc4d897c>] kmem_cache_alloc_trace+0x155/0x4b0
[<000000007d1dfa72>] efivarfs_create+0x6e/0x1a0
[<00000000e6ee18fc>] path_openat+0xe4b/0x1120
[<000000000ad0414f>] do_filp_open+0x91/0x100
[<00000000ce93a198>] do_sys_openat2+0x20c/0x2d0
[<000000002a91be6d>] do_sys_open+0x46/0x80
[<000000000a854999>] __x64_sys_openat+0x20/0x30
[<00000000c50d89c9>] do_syscall_64+0x38/0x90
[<00000000cecd6b5f>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
In efivarfs_create(), inode->i_private is setup with efivar_entry
object which is never freed.
Cc: <stable@vger.kernel.org>
Signed-off-by: Vamshi K Sthambamkadi <vamshi.k.sthambamkadi@gmail.com>
Link: https://lore.kernel.org/r/20201023115429.GA2479@cosmos
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2020-10-26 08:15:24 +01:00
..
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-16 15:22:41 -07:00
2020-10-16 11:11:22 -07:00
2020-10-13 12:12:44 -07:00
2020-10-24 12:26:05 -07:00
2020-10-23 23:41:49 -05:00
2020-10-16 11:11:19 -07:00
2020-10-15 18:42:13 -07:00
2020-10-26 08:15:24 +01:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-19 14:28:30 -07:00
2020-10-23 15:47:38 +02:00
2020-10-24 12:26:05 -07:00
2020-10-21 23:22:37 -04:00
2020-10-22 09:44:27 -07:00
2020-10-22 09:44:27 -07:00
2020-10-21 10:31:20 -04:00
2020-10-22 09:44:27 -07:00
2020-10-24 12:26:05 -07:00
2020-10-18 09:27:09 -07:00
2020-10-24 12:26:05 -07:00
2020-10-22 10:31:08 -07:00
2020-10-22 09:59:21 -07:00
2020-10-15 14:56:15 -07:00
2020-10-16 11:11:22 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-18 09:56:50 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-15 15:11:56 -07:00
2020-10-25 14:51:49 -07:00
2020-10-24 12:26:05 -07:00
2020-10-12 16:35:51 -07:00
2020-10-16 11:11:21 -07:00
2020-10-18 09:27:09 -07:00
2020-10-18 09:27:09 -07:00
2020-10-16 11:11:21 -07:00
2020-10-14 14:54:45 -07:00
2020-10-19 14:28:30 -07:00
2020-10-15 15:03:10 -07:00
2020-10-16 12:21:15 -07:00
2020-10-17 15:05:30 -06:00
2020-10-13 18:38:27 -07:00
2020-10-13 12:12:44 -07:00
2020-10-16 11:11:15 -07:00
2020-10-24 12:40:18 -07:00
2020-10-22 09:02:50 -06:00
2020-10-20 16:03:13 -06:00
2020-10-23 11:33:41 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-23 11:33:41 -07:00
2020-10-15 09:48:49 -07:00
2020-10-24 12:40:18 -07:00
2020-10-16 11:11:22 -07:00
2020-10-13 18:38:27 -07:00