]> git.baikalelectronics.ru Git - kernel.git/commit
kfence: alloc kfence_pool after system startup
authorTianchen Ding <dtcccc@linux.alibaba.com>
Tue, 22 Mar 2022 21:48:13 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:11 +0000 (15:57 -0700)
commite7f934ee400923ac6cfceac7adf6023e2b5cd0fb
tree3ab6f62330a20a0c60186c9113ad3d4b9050cb3a
parent5d8a1aaa9c1ac368d619728be12c6d412e83a802
kfence: alloc kfence_pool after system startup

Allow enabling KFENCE after system startup by allocating its pool via the
page allocator. This provides the flexibility to enable KFENCE even if it
wasn't enabled at boot time.

Link: https://lkml.kernel.org/r/20220307074516.6920-3-dtcccc@linux.alibaba.com
Signed-off-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Reviewed-by: Marco Elver <elver@google.com>
Tested-by: Peng Liu <liupeng256@huawei.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/kfence/core.c