diff options
author | Linus Torvalds | 2022-11-11 11:25:27 -0800 |
---|---|---|
committer | Linus Torvalds | 2022-11-11 11:25:27 -0800 |
commit | e2559b79127a92a36f907006fe89c137666fb3a5 (patch) | |
tree | 25a0cdcfe2cd5333f1f08a201cf0e45dcb96a5e2 /fs | |
parent | eb037f16f7e843722db5f0275d84b3f738d5649d (diff) | |
parent | c8af247de385ce49afabc3bf1cf4fd455c94bfe8 (diff) |
Merge tag 'fixes_for_v6.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull UDF fix from Jan Kara:
"Fix a possible memory corruption with UDF"
* tag 'fixes_for_v6.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
udf: Fix a slab-out-of-bounds write bug in udf_find_entry()
Diffstat (limited to 'fs')
-rw-r--r-- | fs/udf/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index fb4c30e05245..ae7bc13a5298 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -240,7 +240,7 @@ static struct fileIdentDesc *udf_find_entry(struct inode *dir, poffset - lfi); else { if (!copy_name) { - copy_name = kmalloc(UDF_NAME_LEN, + copy_name = kmalloc(UDF_NAME_LEN_CS0, GFP_NOFS); if (!copy_name) { fi = ERR_PTR(-ENOMEM); |