Re: [PATCH net-next] bpf: fix liveness propagation to parent in spilled stack slots

2017-08-17 Thread David Miller
From: Daniel Borkmann Date: Thu, 17 Aug 2017 14:59:40 +0200 > Using parent->regs[] when propagating REG_LIVE_READ for spilled regs > doesn't work since parent->regs[] denote the set of normal registers > but not spilled ones. Propagate to the correct regs. > > Fixes: dc503a8ad984 ("bpf/verifier:

[PATCH net-next] bpf: fix liveness propagation to parent in spilled stack slots

2017-08-17 Thread Daniel Borkmann
Using parent->regs[] when propagating REG_LIVE_READ for spilled regs doesn't work since parent->regs[] denote the set of normal registers but not spilled ones. Propagate to the correct regs. Fixes: dc503a8ad984 ("bpf/verifier: track liveness for pruning") Reported-by: Dan Carpenter Signed-off-by: