DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] vhost fixes for OVS SIGSEGV in PMD
@ 2022-08-01 11:53 Claudio Fontana
  2022-08-01 11:53 ` [PATCH 1/2] vhost: fix error handling in virtio_dev_tx_split Claudio Fontana
  2022-08-01 11:53 ` [PATCH 2/2] vhost: improve error handling in desc_to_mbuf Claudio Fontana
  0 siblings, 2 replies; 5+ messages in thread
From: Claudio Fontana @ 2022-08-01 11:53 UTC (permalink / raw)
  To: dev; +Cc: Claudio Fontana

Hi, the real meat is in patch 1/2,

which fixes a segmentation fault in the OVS PMD thread when
resynchronizing with QEMU after the guest application has been killed
with SIGKILL.

This fixes an issue where the guest DPDK application is able
to crash the OVS process on the host.

Patch 2/2 is just an improvement in the current error handling.

For your review and comments,

Claudio

Claudio Fontana (2):
  vhost: fix error handling in virtio_dev_tx_split
  vhost: improve error handling in desc_to_mbuf

 lib/vhost/virtio_net.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH v2 0/2] vhost fixes for OVS SIGSEGV in PMD
@ 2022-08-02  0:39 Claudio Fontana
  2022-08-02  0:39 ` [PATCH 2/2] vhost: improve error handling in desc_to_mbuf Claudio Fontana
  0 siblings, 1 reply; 5+ messages in thread
From: Claudio Fontana @ 2022-08-02  0:39 UTC (permalink / raw)
  To: Maxime Coquelin, Chenbo Xia; +Cc: dev, Claudio Fontana

This is an alternative, more general fix compared with PATCH v1.

The series fixes a segmentation fault in the OVS PMD thread when
resynchronizing with QEMU after the guest application has been killed
with SIGKILL (patch 1/2),

The segmentation fault can be caused by the guest DPDK application,
which is able this way to crash the OVS process on the host,
see the backtrace in patch 1/2.

Patch 2/2 is an additional improvement in the current error handling.

---

Changes from v1:

* patch 1/2: instead of only fixing virtio_dev_tx_split, put the check
  for nr_vec == 0 inside desc_to_mbuf and mbuf_to_desc, so that in no
  case they attempt to read and dereference addresses from the buf_vec[]
  array when it does not contain any valid elements.

---

For your review and comments,

Claudio

Claudio Fontana (2):
  vhost: check for nr_vec == 0 in desc_to_mbuf, mbuf_to_desc
  vhost: improve error handling in desc_to_mbuf

 lib/vhost/virtio_net.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/2] vhost fixes for OVS SIGSEGV in PMD
@ 2022-07-31 20:17 Claudio Fontana
  2022-07-31 20:17 ` [PATCH 2/2] vhost: improve error handling in desc_to_mbuf Claudio Fontana
  0 siblings, 1 reply; 5+ messages in thread
From: Claudio Fontana @ 2022-07-31 20:17 UTC (permalink / raw)
  To: dev; +Cc: Claudio Fontana

Hi, the real meat is in patch 1/2,

which fixes a segmentation fault in the OVS PMD thread when
resynchronizing with QEMU after the guest application has been killed
with SIGKILL.

This fixes an issue where the guest DPDK application is able
to crash the OVS process on the host.

Patch 2/2 is just an improvement in the current error handling.

For your review and comments,

Claudio

Claudio Fontana (2):
  vhost: fix error handling in virtio_dev_tx_split
  vhost: improve error handling in desc_to_mbuf

 lib/vhost/virtio_net.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2022-08-02  0:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 11:53 [PATCH 0/2] vhost fixes for OVS SIGSEGV in PMD Claudio Fontana
2022-08-01 11:53 ` [PATCH 1/2] vhost: fix error handling in virtio_dev_tx_split Claudio Fontana
2022-08-01 11:53 ` [PATCH 2/2] vhost: improve error handling in desc_to_mbuf Claudio Fontana
  -- strict thread matches above, loose matches on Subject: below --
2022-08-02  0:39 [PATCH v2 0/2] vhost fixes for OVS SIGSEGV in PMD Claudio Fontana
2022-08-02  0:39 ` [PATCH 2/2] vhost: improve error handling in desc_to_mbuf Claudio Fontana
2022-07-31 20:17 [PATCH 0/2] vhost fixes for OVS SIGSEGV in PMD Claudio Fontana
2022-07-31 20:17 ` [PATCH 2/2] vhost: improve error handling in desc_to_mbuf Claudio Fontana

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