* [merged mm-stable] mm-kfence-use-page_aligned-helper.patch removed from -mm tree
@ 2022-05-25 17:49 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-05-25 17:49 UTC (permalink / raw)
To: mm-commits, songmuchun, glider, elver, dvyukov, wangkefeng.wang,
akpm
The quilt patch titled
Subject: mm: kfence: use PAGE_ALIGNED helper
has been removed from the -mm tree. Its filename was
mm-kfence-use-page_aligned-helper.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Kefeng Wang <wangkefeng.wang@huawei.com>
Subject: mm: kfence: use PAGE_ALIGNED helper
Date: Fri, 20 May 2022 10:18:33 +0800
Use PAGE_ALIGNED macro instead of IS_ALIGNED and passing PAGE_SIZE.
Link: https://lkml.kernel.org/r/20220520021833.121405-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Muchun Song <songmuchun@bytedance.com>
Cc: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/kfence/kfence_test.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
--- a/mm/kfence/kfence_test.c~mm-kfence-use-page_aligned-helper
+++ a/mm/kfence/kfence_test.c
@@ -296,10 +296,9 @@ static void *test_alloc(struct kunit *te
if (policy == ALLOCATE_ANY)
return alloc;
- if (policy == ALLOCATE_LEFT && IS_ALIGNED((unsigned long)alloc, PAGE_SIZE))
+ if (policy == ALLOCATE_LEFT && PAGE_ALIGNED(alloc))
return alloc;
- if (policy == ALLOCATE_RIGHT &&
- !IS_ALIGNED((unsigned long)alloc, PAGE_SIZE))
+ if (policy == ALLOCATE_RIGHT && !PAGE_ALIGNED(alloc))
return alloc;
} else if (policy == ALLOCATE_NONE)
return alloc;
_
Patches currently in -mm which might be from wangkefeng.wang@huawei.com are
mm-kasan-fix-input-of-vmalloc_to_page.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-25 17:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-25 17:49 [merged mm-stable] mm-kfence-use-page_aligned-helper.patch removed from -mm tree Andrew Morton
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.