diff options
author | David S. Miller <davem@davemloft.net> | 2017-07-19 23:24:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-19 23:24:47 +0300 |
commit | 6b098a08ad93660e72e9ddbf5869f93bb5719386 (patch) | |
tree | 5b93999c4fe78c526c1571e7db1230e4e0c4679b /net/openvswitch/flow.c | |
parent | 741912c55365f1a48611e20d3291433b686f6846 (diff) | |
parent | 2c4aac74a9f28e0431f5335401d5fc8f744fa1e1 (diff) | |
download | linux-6b098a08ad93660e72e9ddbf5869f93bb5719386.tar.xz |
Merge branch 'liquidio-lowmem-fixes'
Rick Farrington says:
====================
liquidio: avoid vm low memory crashes
This patchset addresses issues brought about by low memory conditions
in a VM. These conditions were not seen when the driver was exercised
normally. Rather, they were brought about through manual fault injection.
They are being included in the interest of hardening the driver against
unforeseen circumstances.
1. Fix GPF in octeon_init_droq(); zero the allocated block 'recv_buf_list'.
This prevents a GPF trying to access an invalid 'recv_buf_list[i]' entry
in octeon_droq_destroy_ring_buffers() if init didn't alloc all entries.
2. Don't dereference a NULL ptr in octeon_droq_destroy_ring_buffers().
3. For defensive programming, zero the allocated block 'oct->droq' in
octeon_setup_output_queues() and 'oct->instr_queue' in
octeon_setup_instr_queues().
change log:
V1 -> V2:
1. Corrected syntax in 'Subject' lines; no functional or code changes.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/flow.c')
0 files changed, 0 insertions, 0 deletions