* + ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3.patch added to mm-hotfixes-unstable branch
@ 2022-07-11 20:41 Andrew Morton
2022-07-12 14:30 ` chenxiaosong (A)
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2022-07-11 20:41 UTC (permalink / raw)
To: mm-commits, zhangxiaoxu5, yi.zhang, yin31149, liuyongqiang13,
anton, chenxiaosong2, akpm
The patch titled
Subject: ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3
has been added to the -mm mm-hotfixes-unstable branch. Its filename is
ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3.patch
This patch will later appear in the mm-hotfixes-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: ChenXiaoSong <chenxiaosong2@huawei.com>
Subject: ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3
Date: Sat, 9 Jul 2022 14:45:11 +0800
Cleanup quggested by Hawkins Jiawei
Link: https://lkml.kernel.org/r/20220709064511.3304299-1-chenxiaosong2@huawei.com
Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Cc: Anton Altaparmakov <anton@tuxera.com>
Cc: Yongqiang Liu <liuyongqiang13@huawei.com>
Cc: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Cc: Zhang Yi <yi.zhang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/ntfs/attrib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/ntfs/attrib.c~ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3
+++ a/fs/ntfs/attrib.c
@@ -595,7 +595,7 @@ static int ntfs_attr_find(const ATTR_TYP
u8 *mrec_end = (u8 *)ctx->mrec +
le32_to_cpu(ctx->mrec->bytes_allocated);
u8 *name_end = (u8 *)a + le16_to_cpu(a->name_offset) +
- a->name_length;
+ a->name_length * sizeof(ntfschar);
if ((u8*)a < (u8*)ctx->mrec || (u8*)a > mrec_end ||
name_end > mrec_end)
break;
_
Patches currently in -mm which might be from chenxiaosong2@huawei.com are
ntfs-fix-use-after-free-in-ntfs_ucsncmp.patch
ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3.patch added to mm-hotfixes-unstable branch
2022-07-11 20:41 + ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3.patch added to mm-hotfixes-unstable branch Andrew Morton
@ 2022-07-12 14:30 ` chenxiaosong (A)
0 siblings, 0 replies; 2+ messages in thread
From: chenxiaosong (A) @ 2022-07-12 14:30 UTC (permalink / raw)
To: Andrew Morton, mm-commits, zhangxiaoxu5, yi.zhang, yin31149,
liuyongqiang13, anton
在 2022/7/12 4:41, Andrew Morton 写道:
> Cleanup quggested by Hawkins Jiawei
Hi Andrew:
Is "quggested" typo? Do you mean "suggested"?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-12 14:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-11 20:41 + ntfs-fix-use-after-free-in-ntfs_ucsncmp-v3.patch added to mm-hotfixes-unstable branch Andrew Morton
2022-07-12 14:30 ` chenxiaosong (A)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.