[PATCH v2 0/2] ubifs: Fix two kmemleaks in error path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: <richard@xxxxxx>, <terrelln@xxxxxx>, <ebiggers@xxxxxxxxxx>
- Subject: [PATCH v2 0/2] ubifs: Fix two kmemleaks in error path
- From: Zhihao Cheng <chengzhihao1@xxxxxxxxxx>
- Date: Fri, 22 Dec 2023 16:54:44 +0800
First memleak is found by mounting corrupted UBIFS image with chk_index
enabled.
Second memleak is found by powercut testing for encryption scenario.
v1->v2:
ubifs_symlink: Call fscrypt_free_inode() directly in error handling
path.
Add 'Cc: stable@xxxxxxxxxxxxxxx' and 'Suggested-by' tags in patch 2.
Zhihao Cheng (2):
ubifs: dbg_check_idx_size: Fix kmemleak if loading znode failed
ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path
fs/ubifs/dir.c | 2 ++
fs/ubifs/super.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
--
2.31.1
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]