+2
−2
+1
−1
+6
−5
+2
−2
+1
−1
Loading
mainline inclusion from mainline-v6.9-rc1 commit 3f5ef5109f6a054ce58b3bec7214ed76c9cc269f category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAQOJ9 CVE: CVE-2024-45025 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3f5ef5109f6a054ce58b3bec7214ed76c9cc269f -------------------------------- bitmap_size() is a pretty generic name and one may want to use it for a generic bitmap API function. At the same time, its logic is NTFS-specific, as it aligns to the sizeof(u64), not the sizeof(long) (although it uses ideologically right ALIGN() instead of division). Add the prefix 'ntfs3_' used for that FS (not just 'ntfs_' to not mix it with the legacy module) and use generic BITS_TO_U64() while at it. Suggested-by: Yury Norov <yury.norov@gmail.com> # BITS_TO_U64() Reviewed-by:Przemek Kitszel <przemyslaw.kitszel@intel.com> Reviewed-by:
Yury Norov <yury.norov@gmail.com> Signed-off-by:
Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Conflicts: fs/ntfs3/super.c fs/ntfs3/index.c [Context changed and there is no logical conflict.] Signed-off-by:
Long Li <leo.lilong@huawei.com>