commit | 83d5b7ef99c9f05e87333b334a638de1264ab8e4 | [log] [tgz] |
---|---|---|
author | Alexei Starovoitov <ast@plumgrid.com> | Tue Apr 22 20:18:57 2014 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 23 15:34:41 2014 -0400 |
tree | f95ec9cdb441ecfcd32cafe96c1d30a865c9ba35 | |
parent | c06cbcb6052edd8f4ee00d65f874b26404ac8f96 [diff] |
net: filter: initialize A and X registers exisiting BPF verifier allows uninitialized access to registers, 'ret A' is considered to be a valid filter. So initialize A and X to zero to prevent leaking kernel memory In the future BPF verifier will be rejecting such filters Signed-off-by: Alexei Starovoitov <ast@plumgrid.com> Cc: Daniel Borkmann <dborkman@redhat.com> Acked-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>