android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexander Potapenko a8ef4f11e4
ANDROID: gki_defconfig: reduce KFENCE pool size
CONFIG_KFENCE_NUM_OBJECTS controls the constant memory overhead that
KFENCE introduces for its memory pool. By default it is 255 objects
(2Mb extra memory), but since concerns have been raised that low-memory
devices may not afford that, we are lowering the number of objects
to 63 (512Kb extra memory).

So far we haven't seen Android devices allocate more than 50 KFENCE
objects. Should the kernel exhaust the pool, KFENCE will stop allocating
new objects and fall back to SLAB/SLUB until one of the objects is
freed.

An immediate consequence of reducing the pool size is that a freed
KFENCE object will be reused 4x times faster, effectively reducing the
probability of detecting a use-after-free. Since KFENCE is a best-effort
error detection tool, not a use-after-free mitigation mechanism, we
believe this should not be problematic.

Bug: 181822795
Test: run KFENCE on an Android device
Signed-off-by: Alexander Potapenko <glider@google.com>
Change-Id: I88fca80eea8b382115de03dbb104fd305b35476f
2026-05-07 17:24:11 +03:00
..
alpha UPSTREAM: net: retrieve netns cookie via getsocketopt 2026-05-07 10:18:28 -04:00
arc
arm UPSTREAM: arm: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
arm64 ANDROID: gki_defconfig: reduce KFENCE pool size 2026-05-07 17:24:11 +03:00
c6x
csky UPSTREAM: csky: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
h8300
hexagon
ia64 BACKPORT: maccess: rename probe_kernel_address to get_kernel_nofault 2026-01-14 18:13:21 -08:00
m68k Merge android11-5.4.302(91d385eb) into msm-5.4 2026-01-30 11:41:11 +05:30
microblaze
mips UPSTREAM: net: retrieve netns cookie via getsocketopt 2026-05-07 10:18:28 -04:00
nds32 BACKPORT: maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofault 2026-01-14 18:13:21 -08:00
nios2
openrisc
parisc UPSTREAM: net: retrieve netns cookie via getsocketopt 2026-05-07 10:18:28 -04:00
powerpc UPSTREAM: powerpc: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
riscv BACKPORT: kbuild: check CONFIG_AS_IS_LLVM instead of LLVM_IAS 2026-05-05 20:02:23 +03:00
s390 UPSTREAM: s390: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
sh UPSTREAM: sh: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
sparc UPSTREAM: net: retrieve netns cookie via getsocketopt 2026-05-07 10:18:28 -04:00
um Merge android11-5.4.302(91d385eb) into msm-5.4 2026-01-30 11:41:11 +05:30
unicore32
x86 ANDROID: gki_defconfig: reduce KFENCE pool size 2026-05-07 17:24:11 +03:00
xtensa UPSTREAM: xtensa: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
.gitignore
Kconfig