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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:51:52 +0000 (08:51 +0100)
commita4d121d90e28daf1619781ee1eb098705a474ec9
tree4ac9a79f4de9ba21dce529499955d2f67c41f301
parentd4926994be7f5669a57ff796cbd3213f4178a40a
sparc: Correct ctx->saw_frame_pointer logic.

[ Upstream commit e2ac579a7a18bcd9e8cf14cf42eac0b8a2ba6c4b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/sparc/net/bpf_jit_comp_64.c