summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@plumgrid.com>2014-04-22 20:18:57 -0700
committerDavid S. Miller <davem@davemloft.net>2014-04-23 15:34:41 -0400
commit83d5b7ef99c9f05e87333b334a638de1264ab8e4 (patch)
treef95ec9cdb441ecfcd32cafe96c1d30a865c9ba35 /drivers/net/ethernet/smsc
parentc06cbcb6052edd8f4ee00d65f874b26404ac8f96 (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>
Diffstat (limited to 'drivers/net/ethernet/smsc')
0 files changed, 0 insertions, 0 deletions