Net patches
The following changes since commit 5c1c3e4f02e458cf280c677c817ae4fd1ed9bf10:
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200803' into staging (2020-08-03 20:34:26 +0100)
are available in the git repository at:
https://github.com/jasowang/qemu.git tags/net-pull-request
for you to fetch changes up to 035e69b063835a5fd23cacabd63690a3d84532a8:
hw/net/net_tx_pkt: fix assertion failure in net_tx_pkt_add_raw_fragment() (2020-08-04 14:14:48 +0800)
----------------------------------------------------------------
----------------------------------------------------------------
Lukas Straub (1):
colo-compare: Remove superfluous NULL-pointer checks for s->iothread
Mauro Matteo Cascella (1):
hw/net/net_tx_pkt: fix assertion failure in net_tx_pkt_add_raw_fragment()
hw/net/net_tx_pkt.c | 5 ++++- net/colo-compare.c | 8 ++------ 2 files changed, 6 insertions(+), 7 deletions(-)
[PULL 2/2] hw/net/net_tx_pkt: fix assertion failure in net_tx_pkt_add_raw_fragment()
From: Mauro Matteo Cascella <[email protected]>
An assertion failure issue was found in the code that processes network packets while adding data fragments into the packet context. It could be abused by a malicious guest to abort the QEMU process on the host. This patch replaces the affected assert() with a conditional statement, returning false if the current data fragment exceeds max_raw_frags.
--- hw/net/net_tx_pkt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
hw/net/net_tx_pkt.c +4 -1
@@ -379,7 +379,10 @@ bool net_tx_pkt_add_raw_fragment(struct NetTxPkt *pkt, hwaddr pa,hwaddr mapped_len =0 ;struct iovec *ventry;assert (pkt); -assert (pkt->max_raw_frags > pkt->raw_frags); + +if (pkt->raw_frags >= pkt->max_raw_frags) { +return false; + }if (!len) {return true;
Signature · 1 line
2.7.4
[PULL 1/2] colo-compare: Remove superfluous NULL-pointer checks for s->iothread
In reply to Jason WangFrom: Lukas Straub <[email protected]>
s->iothread is checked for NULL on object creation in colo_compare_complete, so it's guaranteed not to be NULL.
This resolves a false alert from Coverity (CID 1429969).
--- net/colo-compare.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
net/colo-compare.c +2 -6
@@ -1442,9 +1442,7 @@ static void colo_compare_finalize(Object *obj)qemu_chr_fe_deinit (&s->chr_notify_dev, false); } -if (s->iothread) { -colo_compare_timer_del (s); - } +colo_compare_timer_del (s);qemu_bh_delete (s->event_bh);
@@ -1470,9 +1468,7 @@ static void colo_compare_finalize(Object *obj)g_hash_table_destroy (s->connection_track_table); } -if (s->iothread) { -object_unref (OBJECT (s->iothread)); - } +object_unref (OBJECT (s->iothread));g_free (s->pri_indev);g_free (s->sec_indev);
Signature · 1 line
2.7.4
Peter Maydell
AppliedQuoted 13 lines · Jason Wang
The following changes since commit
5c1c3e4f02e458cf280c677c817ae4fd1ed9bf10:Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200803' into staging (2020-08-03 20:34:26 +0100)
are available in the git repository at:
https://github.com/jasowang/qemu.git tags/net-pull-request
for you to fetch changes up to
035e69b063835a5fd23cacabd63690a3d84532a8:hw/net/net_tx_pkt: fix assertion failure in
net_tx_pkt_add_raw_fragment()(2020-08-04 14:14:48 +0800)
Quoted 8 lines
----------------------------------------------------------------
----------------------------------------------------------------
Lukas Straub (1):colo-compare: Remove superfluous NULL-pointer checks for s->iothreadMauro Matteo Cascella (1):
hw/net/net_tx_pkt: fix assertion failure innet_tx_pkt_add_raw_fragment()
Hi; this pullreq includes a patch where there's mangled UTF-8 in one of the commit messages: the "colo-compare: Remove superfluous NULL-pointer checks for s->iothread" patch has a mangled version of the e-with-acute-accent character in Philippe's surname in his
Reviewed-by: tag.
Since this is the day of rc3 and I think you're at a timezone offset that would make rerolling the series in time tricky, I'm going to let this through. But please can you fix your patch-handling workflow to ensure it doesn't corrupt UTF-8 ?
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.
-- PMM
Quoted 27 lines · Peter Maydell
Quoted 12 lines · Jason Wang
The following changes since commit
5c1c3e4f02e458cf280c677c817ae4fd1ed9bf10:Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200803' into staging (2020-08-03 20:34:26 +0100)are available in the git repository at:
https://github.com/jasowang/qemu.git tags/net-pull-request
for you to fetch changes up to
035e69b063835a5fd23cacabd63690a3d84532a8:hw/net/net_tx_pkt: fix assertion failure in net_tx_pkt_add_raw_fragment() (2020-08-04 14:14:48 +0800)Quoted 8 lines
----------------------------------------------------------------
----------------------------------------------------------------
Lukas Straub (1):colo-compare: Remove superfluous NULL-pointer checks for s->iothreadMauro Matteo Cascella (1):
hw/net/net_tx_pkt: fix assertion failure innet_tx_pkt_add_raw_fragment()Hi; this pullreq includes a patch where there's mangled UTF-8 in one of the commit messages: the "colo-compare: Remove superfluous NULL-pointer checks for
s->iothread" patch has a mangled version of the e-with-acute-accent character in Philippe's surname in his
Reviewed-by: tag.
Quoted 4 lines
Since this is the day of rc3 and I think you're at a timezone offset that would make rerolling the series in time tricky, I'm going to let this through. But please can you fix your patch-handling workflow to ensure it doesn't corrupt UTF-8 ?
My bad, it's time for me to use patchwork probably (or is there a better tools)?
Thanks
Quoted 8 lines
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.-- PMM