diff options
author | Roi Dayan <roid@mellanox.com> | 2016-09-18 18:20:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-19 22:10:15 -0400 |
commit | babd6134a54d70efe875fa5661a20eaecb63f278 (patch) | |
tree | 78c9c6ed58345d58c73e94b63c266f83507c26ba /Documentation/acpi | |
parent | 7ac327318e09a53e3df431dfd3f664dac7aba4df (diff) |
net/mlx5: Fix flow counter bulk command out mailbox allocation
The FW command output length should be only the length of struct
mlx5_cmd_fc_bulk out field. Failing to do so will cause the memcpy
call which is invoked later in the driver to write over wrong memory
address and corrupt kernel memory which results in random crashes.
This bug was found using the kernel address sanitizer (kasan).
Fixes: a351a1b03bf1 ('net/mlx5: Introduce bulk reading of flow counters')
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/acpi')
0 files changed, 0 insertions, 0 deletions