Patch "ARM: net: bpf: move stack documentation" has been added to the 4.14-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
ARM: net: bpf: move stack documentation
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
arm-net-bpf-move-stack-documentation.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
70ec3a6c2c11e4b0e107a65de943a082f9aff351Mon Sep 17 00:00:00 2001
From: Russell King <[email protected]>
Date: Sat, 13 Jan 2018 21:26:14 +0000
Subject: ARM: net: bpf: move stack documentation
From: Russell King <[email protected]>
commit 70ec3a6c2c11e4b0e107a65de943a082f9aff351 upstream.
Move the stack documentation towards the top of the file, where it's relevant for things like the register layout.
--- arch/arm/net/bpf_jit_32.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-)
arch/arm/net/bpf_jit_32.c +21 -21
@@ -27,6 +27,27 @@int bpf_jit_enable__read_mostly ; +/* +* eBPF prog stack layout +* +* high +* original ARM_SP => +-----+ eBPF prologue +* |FP/LR| +* current ARM_FP => +-----+ +* | ... | callee saved registers +* eBPF fp register => +-----+ <= (BPF_FP) +* | ... | eBPF JIT scratch space +* | | eBPF prog stack +* +-----+ +* |RSVD | JIT scratchpad +* current ARM_SP => +-----+ <= (BPF_FP - STACK_SIZE) +* | | +* | ... | Function call stack +* | | +* +-----+ +* low +*/ +#define STACK_OFFSET (k) (k)#define TMP_REG_1 (MAX_BPF_JIT_REG + 0)/* TEMP Register 1 */ #define TMP_REG_2 (MAX_BPF_JIT_REG + 1)/* TEMP Register 2 */
@@ -1091,27 +1112,6 @@ static void build_prologue(struct jit_ctu16 reg_set =0 ; -/* -* eBPF prog stack layout -* -* high -* original ARM_SP => +-----+ eBPF prologue -* |FP/LR| -* current ARM_FP => +-----+ -* | ... | callee saved registers -* eBPF fp register => +-----+ <= (BPF_FP) -* | ... | eBPF JIT scratch space -* | | eBPF prog stack -* +-----+ -* |RSVD | JIT scratchpad -* current A64_SP => +-----+ <= (BPF_FP - STACK_SIZE) -* | | -* | ... | Function call stack -* | | -* +-----+ -* low -*/ -/* Save callee saved registers. */ reg_set |= (1 <<r4) | (1 <<r5) | (1 <<r6) | (1 <<r7) | (1 <<r8) | (1 <<r10);#ifdef CONFIG_FRAME_POINTER
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/arm-net-bpf-fix-stack-alignment.patch queue-4.14/arm-net-bpf-fix-ldx-instructions.patch queue-4.14/arm-net-bpf-fix-register-saving.patch queue-4.14/arm-net-bpf-move-stack-documentation.patch queue-4.14/arm-net-bpf-correct-stack-layout-documentation.patch queue-4.14/arm-net-bpf-clarify-tail_call-index.patch queue-4.14/arm-net-bpf-avoid-bx-instruction-on-non-thumb-capable-cpus.patch queue-4.14/arm-net-bpf-fix-tail-call-jumps.patch