Skip to content

Commit 8825a45

Browse files
committed
Merge: mm: huge_memory: use !CONFIG_64BIT to relax huge page alignment on 32 bit machines
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/5010 JIRA: https://issues.redhat.com/browse/RHEL-54027 CVE: CVE-2024-42258 Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com> Approved-by: Waiman Long <longman@redhat.com> Approved-by: Aristeu Rozanski <arozansk@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents 6b20bce + a4bffb1 commit 8825a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/huge_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ static unsigned long __thp_get_unmapped_area(struct file *filp,
607607
loff_t off_align = round_up(off, size);
608608
unsigned long len_pad, ret;
609609

610-
if (IS_ENABLED(CONFIG_32BIT) || in_compat_syscall())
610+
if (!IS_ENABLED(CONFIG_64BIT) || in_compat_syscall())
611611
return 0;
612612

613613
if (off_end <= off_align || (off_end - off_align) < size)

0 commit comments

Comments
 (0)