liquidio: avoid vm low memory crashes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 3 repliesIn review
- v13 patches 2 repliesSuperseded
Changes in v2 from the cover letter
1. Corrected syntax in 'Subject' lines; no functional or code changes.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | liquidio: lowmem: init allocated memory to 0drivers/ | +2 | 0 replies | |
| 2/3 | liquidio: lowmem: do not dereference null ptrdrivers/ | +2 | 0 replies | |
| 3/3 | liquidio: lowmem: init allocated memory to 0drivers/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 net-next 0/3] liquidio: avoid vm low memory crashes
From: Rick Farrington <[email protected]>
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[0]' in octeon_setup_output_queues() and 'oct->instr_queue[0]' in octeon_setup_instr_queues().
change log:
V1 -> V2:
1. Corrected syntax in 'Subject' lines; no functional or code changes.
Rick Farrington (3):
liquidio: lowmem: init allocated memory to 0
liquidio: lowmem: do not dereference null ptr
liquidio: lowmem: init allocated memory to 0
drivers/net/ethernet/cavium/liquidio/octeon_device.c | 8 ++++---- drivers/net/ethernet/cavium/liquidio/octeon_droq.c | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-)
Signature · 1 line
2.9.0