netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/3] liquidio: avoid vm low memory crashes
@ 2017-07-18  0:49 Felix Manlunas
  2017-07-18  0:50 ` [PATCH v2 net-next 1/3] liquidio: lowmem: init allocated memory to 0 Felix Manlunas
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Felix Manlunas @ 2017-07-18  0:49 UTC (permalink / raw)
  To: davem
  Cc: netdev, raghu.vatsavayi, derek.chickles, satananda.burla,
	ricardo.farrington

From: Rick Farrington <ricardo.farrington@cavium.com>

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(-)

-- 
2.9.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-19 20:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18  0:49 [PATCH v2 net-next 0/3] liquidio: avoid vm low memory crashes Felix Manlunas
2017-07-18  0:50 ` [PATCH v2 net-next 1/3] liquidio: lowmem: init allocated memory to 0 Felix Manlunas
2017-07-18  0:51 ` [PATCH v2 net-next 2/3] liquidio: lowmem: do not dereference null ptr Felix Manlunas
2017-07-18  0:51 ` [PATCH v2 net-next 3/3] liquidio: lowmem: init allocated memory to 0 Felix Manlunas
2017-07-18  6:23 ` [PATCH v2 net-next 0/3] liquidio: avoid vm low memory crashes Leon Romanovsky
2017-07-18 15:08   ` Ricardo Farrington
2017-07-19 20:25 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).