Re: [PATCH bpf-next] bpf: fix precision bit propagation for BPF_ST instructions

2019-07-12 Thread Daniel Borkmann
On 07/09/2019 05:32 AM, Andrii Nakryiko wrote: > When backtracking instructions to propagate precision bit for registers > and stack slots, one class of instructions (BPF_ST) weren't handled > causing extra stack slots to be propagated into parent state. Parent > state might not have that much stac

[PATCH bpf-next] bpf: fix precision bit propagation for BPF_ST instructions

2019-07-08 Thread Andrii Nakryiko
When backtracking instructions to propagate precision bit for registers and stack slots, one class of instructions (BPF_ST) weren't handled causing extra stack slots to be propagated into parent state. Parent state might not have that much stack allocated, though, which causes warning on invalid st