OSDN Git Service

sparc: Correct ctx->saw_frame_pointer logic.
authorDavid Miller <davem@davemloft.net>
Mon, 26 Nov 2018 22:52:18 +0000 (14:52 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 27 Nov 2018 01:52:29 +0000 (17:52 -0800)
commite2ac579a7a18bcd9e8cf14cf42eac0b8a2ba6c4b
tree75afa7eec4276f83a823baec06bffa6103283168
parentc44768a33da81b4a0986e79bbf0588f1a0651dec
sparc: Correct ctx->saw_frame_pointer logic.

We need to initialize the frame pointer register not just if it is
seen as a source operand, but also if it is seen as the destination
operand of a store or an atomic instruction (which effectively is a
source operand).

This is exercised by test_verifier's "non-invalid fp arithmetic"

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/sparc/net/bpf_jit_comp_64.c