android_kernel_sony_sdm845/init
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Borkmann 181fe66dd5 UPSTREAM: bpf, x86, arm64: Enable jit by default when not built as always-on
After Spectre 2 fix via 290af86629b2 ("bpf: introduce BPF_JIT_ALWAYS_ON
config") most major distros use BPF_JIT_ALWAYS_ON configuration these days
which compiles out the BPF interpreter entirely and always enables the
JIT. Also given recent fix in e1608f3fa857 ("bpf: Avoid setting bpf insns
pages read-only when prog is jited"), we additionally avoid fragmenting
the direct map for the BPF insns pages sitting in the general data heap
since they are not used during execution. Latter is only needed when run
through the interpreter.

Since both x86 and arm64 JITs have seen a lot of exposure over the years,
are generally most up to date and maintained, there is more downside in
!BPF_JIT_ALWAYS_ON configurations to have the interpreter enabled by default
rather than the JIT. Add a ARCH_WANT_DEFAULT_BPF_JIT config which archs can
use to set the bpf_jit_{enable,kallsyms} to 1. Back in the days the
bpf_jit_kallsyms knob was set to 0 by default since major distros still
had /proc/kallsyms addresses exposed to unprivileged user space which is
not the case anymore. Hence both knobs are set via BPF_JIT_DEFAULT_ON which
is set to 'y' in case of BPF_JIT_ALWAYS_ON or ARCH_WANT_DEFAULT_BPF_JIT.

Change-Id: I45eebc988228a01ef3ff66018f167eb68aaa6bc1
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/f78ad24795c2966efcc2ee19025fa3459f622185.1575903816.git.daniel@iogearbox.net
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:59:20 +07:00
..
calibrate.c
do_mounts.c CHROMIUM: dm: boot time specification of dm= 2017-01-27 13:55:15 -08:00
do_mounts.h CHROMIUM: dm: boot time specification of dm= 2017-01-27 13:55:15 -08:00
do_mounts_dm.c init: Initialize uuid pointer 2017-06-05 17:07:49 -07:00
do_mounts_initrd.c
do_mounts_md.c
do_mounts_rd.c init: use pr_cont() when displaying rotator during ramdisk loading. 2016-11-24 09:32:20 -08:00
init_task.c BACKPORT: pid: Implement PIDTYPE_TGID 2026-05-15 17:59:02 +07:00
initramfs.c ANDROID: initramfs: call free_initrd() when skipping init 2017-12-05 18:05:48 +00:00
Kconfig UPSTREAM: bpf, x86, arm64: Enable jit by default when not built as always-on 2026-05-15 17:59:20 +07:00
main.c Merge remote-tracking branch 'common/android-4.9-q' into android12-4.9-sdm845 2022-09-06 06:20:26 +03:00
Makefile BACKPORT: Construct init thread stack in the linker script rather than by union 2026-05-15 17:59:01 +07:00
noinitramfs.c ANDROID: initramfs: Add skip_initramfs command line option 2017-01-27 13:52:19 -08:00
version.c UPSTREAM: locking/atomic, kref: Add KREF_INIT() 2021-01-05 16:00:48 +00:00