Skip to content

Commit b1da3ac

Browse files
committed
Merge tag 'ecryptfs-5.6-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs
Pull eCryptfs fixes from Tyler Hicks: - downgrade the eCryptfs maintenance status to "Odd Fixes" - change my email address - fix a couple memory leaks in error paths - stability improvement to avoid a needless BUG_ON() * tag 'ecryptfs-5.6-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs: ecryptfs: replace BUG_ON with error handling code eCryptfs: Replace deactivated email address MAINTAINERS: eCryptfs: Update maintainer address and downgrade status ecryptfs: fix a memory leak bug in ecryptfs_init_messaging() ecryptfs: fix a memory leak bug in parse_tag_1_packet()
2 parents eaea294 + 2c2a755 commit b1da3ac

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

MAINTAINERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5932,12 +5932,12 @@ S: Maintained
59325932
F: drivers/media/dvb-frontends/ec100*
59335933

59345934
ECRYPT FILE SYSTEM
5935-
M: Tyler Hicks <tyhicks@canonical.com>
5935+
M: Tyler Hicks <code@tyhicks.com>
59365936
59375937
W: http://ecryptfs.org
59385938
W: https://launchpad.net/ecryptfs
59395939
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs.git
5940-
S: Supported
5940+
S: Odd Fixes
59415941
F: Documentation/filesystems/ecryptfs.txt
59425942
F: fs/ecryptfs/
59435943

fs/ecryptfs/crypto.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,10 @@ static int crypt_scatterlist(struct ecryptfs_crypt_stat *crypt_stat,
311311
struct extent_crypt_result ecr;
312312
int rc = 0;
313313

314-
BUG_ON(!crypt_stat || !crypt_stat->tfm
315-
|| !(crypt_stat->flags & ECRYPTFS_STRUCT_INITIALIZED));
314+
if (!crypt_stat || !crypt_stat->tfm
315+
|| !(crypt_stat->flags & ECRYPTFS_STRUCT_INITIALIZED))
316+
return -EINVAL;
317+
316318
if (unlikely(ecryptfs_verbosity > 0)) {
317319
ecryptfs_printk(KERN_DEBUG, "Key size [%zd]; key:\n",
318320
crypt_stat->key_size);

fs/ecryptfs/ecryptfs_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Copyright (C) 2004-2008 International Business Machines Corp.
99
* Author(s): Michael A. Halcrow <[email protected]>
1010
* Trevor S. Highland <[email protected]>
11-
* Tyler Hicks <[email protected]>
11+
* Tyler Hicks <[email protected]>
1212
*/
1313

1414
#ifndef ECRYPTFS_KERNEL_H

fs/ecryptfs/keystore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ parse_tag_1_packet(struct ecryptfs_crypt_stat *crypt_stat,
13041304
printk(KERN_WARNING "Tag 1 packet contains key larger "
13051305
"than ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES\n");
13061306
rc = -EINVAL;
1307-
goto out;
1307+
goto out_free;
13081308
}
13091309
memcpy((*new_auth_tok)->session_key.encrypted_key,
13101310
&data[(*packet_size)], (body_size - (ECRYPTFS_SIG_SIZE + 2)));

fs/ecryptfs/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (C) 2004-2007 International Business Machines Corp.
88
* Author(s): Michael A. Halcrow <[email protected]>
99
* Michael C. Thompson <[email protected]>
10-
* Tyler Hicks <[email protected]>
10+
* Tyler Hicks <[email protected]>
1111
*/
1212

1313
#include <linux/dcache.h>

fs/ecryptfs/messaging.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright (C) 2004-2008 International Business Machines Corp.
66
* Author(s): Michael A. Halcrow <[email protected]>
7-
* Tyler Hicks <[email protected]>
7+
* Tyler Hicks <[email protected]>
88
*/
99
#include <linux/sched.h>
1010
#include <linux/slab.h>
@@ -379,6 +379,7 @@ int __init ecryptfs_init_messaging(void)
379379
* ecryptfs_message_buf_len),
380380
GFP_KERNEL);
381381
if (!ecryptfs_msg_ctx_arr) {
382+
kfree(ecryptfs_daemon_hash);
382383
rc = -ENOMEM;
383384
goto out;
384385
}

0 commit comments

Comments
 (0)