diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-04-23 03:18:57 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-23 19:34:41 (GMT) |
commit | 83d5b7ef99c9f05e87333b334a638de1264ab8e4 (patch) | |
tree | f95ec9cdb441ecfcd32cafe96c1d30a865c9ba35 /crypto/testmgr.c | |
parent | c06cbcb6052edd8f4ee00d65f874b26404ac8f96 (diff) | |
download | linux-83d5b7ef99c9f05e87333b334a638de1264ab8e4.tar.xz |
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>
Diffstat (limited to 'crypto/testmgr.c')
0 files changed, 0 insertions, 0 deletions