Skip to content

Commit e2559b7

Browse files
committed
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()
2 parents eb037f1 + c8af247 commit e2559b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/udf/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static struct fileIdentDesc *udf_find_entry(struct inode *dir,
240240
poffset - lfi);
241241
else {
242242
if (!copy_name) {
243-
copy_name = kmalloc(UDF_NAME_LEN,
243+
copy_name = kmalloc(UDF_NAME_LEN_CS0,
244244
GFP_NOFS);
245245
if (!copy_name) {
246246
fi = ERR_PTR(-ENOMEM);

0 commit comments

Comments
 (0)