* [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze
@ 2018-07-16 21:44 Michael Roth
2018-07-16 21:44 ` [Qemu-devel] [PULL for-3.0 1/2] qga: fix 'driver' leak in guest-get-fsinfo Michael Roth
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Michael Roth @ 2018-07-16 21:44 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell
The following changes since commit 102ad0a80f5110483efd06877c29c4236be267f9:
Merge remote-tracking branch 'remotes/armbru/tags/pull-misc-2018-07-16' into staging (2018-07-16 15:34:38 +0100)
are available in the git repository at:
git://github.com/mdroth/qemu.git tags/qga-pull-2018-07-16-tag
for you to fetch changes up to d9c745c1768727aadd77e352c85114bc61e67bd4:
qga: fix file descriptor leak (2018-07-16 15:05:58 -0500)
----------------------------------------------------------------
qemu-ga patch queue for hard-freeze
* fix file descriptor leak in suspend command
* fix leak in guest-get-fsinfo
----------------------------------------------------------------
Marc-André Lureau (1):
qga: fix 'driver' leak in guest-get-fsinfo
Paolo Bonzini (1):
qga: fix file descriptor leak
qga/commands-posix.c | 2 ++
1 file changed, 2 insertions(+)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL for-3.0 1/2] qga: fix 'driver' leak in guest-get-fsinfo
2018-07-16 21:44 [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze Michael Roth
@ 2018-07-16 21:44 ` Michael Roth
2018-07-16 21:44 ` [Qemu-devel] [PULL for-3.0 2/2] qga: fix file descriptor leak Michael Roth
2018-07-17 9:54 ` [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze Peter Maydell
2 siblings, 0 replies; 6+ messages in thread
From: Michael Roth @ 2018-07-16 21:44 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Marc-André Lureau
From: Marc-André Lureau <marcandre.lureau@redhat.com>
'driver' is leaked when the loop is not broken.
Leak introduced by commit 743c71d03c20d64f2bae5fba6f26cdf5e4b1bda6,
spotted by ASAN.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
qga/commands-posix.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 233f78a406..c46767b0dd 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -890,6 +890,7 @@ static void build_guest_fsinfo_for_real_device(char const *syspath,
break;
}
+ g_free(driver);
if (sscanf(p, "/%x:%x:%x.%x%n",
pci, pci + 1, pci + 2, pci + 3, &pcilen) == 4) {
p += pcilen;
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL for-3.0 2/2] qga: fix file descriptor leak
2018-07-16 21:44 [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze Michael Roth
2018-07-16 21:44 ` [Qemu-devel] [PULL for-3.0 1/2] qga: fix 'driver' leak in guest-get-fsinfo Michael Roth
@ 2018-07-16 21:44 ` Michael Roth
2018-07-17 9:54 ` [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze Peter Maydell
2 siblings, 0 replies; 6+ messages in thread
From: Michael Roth @ 2018-07-16 21:44 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Paolo Bonzini
From: Paolo Bonzini <pbonzini@redhat.com>
The file descriptor for /sys/power/state was never closed. Reported
by Coverity.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
qga/commands-posix.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index c46767b0dd..37e8a2d791 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -1652,6 +1652,7 @@ static bool linux_sys_state_supports_mode(SuspendMode mode, Error **errp)
}
ret = read(fd, buf, sizeof(buf) - 1);
+ close(fd);
if (ret <= 0) {
return false;
}
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze
2018-07-16 21:44 [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze Michael Roth
2018-07-16 21:44 ` [Qemu-devel] [PULL for-3.0 1/2] qga: fix 'driver' leak in guest-get-fsinfo Michael Roth
2018-07-16 21:44 ` [Qemu-devel] [PULL for-3.0 2/2] qga: fix file descriptor leak Michael Roth
@ 2018-07-17 9:54 ` Peter Maydell
2 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2018-07-17 9:54 UTC (permalink / raw)
To: Michael Roth; +Cc: QEMU Developers
On 16 July 2018 at 22:44, Michael Roth <mdroth@linux.vnet.ibm.com> wrote:
> The following changes since commit 102ad0a80f5110483efd06877c29c4236be267f9:
>
> Merge remote-tracking branch 'remotes/armbru/tags/pull-misc-2018-07-16' into staging (2018-07-16 15:34:38 +0100)
>
> are available in the git repository at:
>
> git://github.com/mdroth/qemu.git tags/qga-pull-2018-07-16-tag
>
> for you to fetch changes up to d9c745c1768727aadd77e352c85114bc61e67bd4:
>
> qga: fix file descriptor leak (2018-07-16 15:05:58 -0500)
>
> ----------------------------------------------------------------
> qemu-ga patch queue for hard-freeze
>
> * fix file descriptor leak in suspend command
> * fix leak in guest-get-fsinfo
>
> ----------------------------------------------------------------
> Marc-André Lureau (1):
> qga: fix 'driver' leak in guest-get-fsinfo
>
> Paolo Bonzini (1):
> qga: fix file descriptor leak
>
> qga/commands-posix.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze
@ 2018-07-24 0:01 Michael Roth
2018-07-24 12:29 ` Peter Maydell
0 siblings, 1 reply; 6+ messages in thread
From: Michael Roth @ 2018-07-24 0:01 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell
The following changes since commit 4eecc2e212bae7308d8582d99f665dfc253c9dda:
Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180723' into staging (2018-07-23 19:24:05 +0100)
are available in the Git repository at:
git://github.com/mdroth/qemu.git tags/qga-pull-2018-07-23-tag
for you to fetch changes up to ae7da1e5f658ea21d96e565514de20ff2cf24fa1:
qga: process_event() simplification and leak fix (2018-07-23 18:54:26 -0500)
----------------------------------------------------------------
qemu-ga patch queue for hard-freeze
* fix leak in qga main loop error path
* better error reporting when Windows version doesn't support fstrim
----------------------------------------------------------------
Marc-André Lureau (1):
qga: process_event() simplification and leak fix
Sameeh Jubran (1):
qga-win: Handle fstrim for OSes lower than Win8
qga/commands-win32.c | 13 +++++++++++++
qga/main.c | 54 ++++++++++++++++++++++++++--------------------------
2 files changed, 40 insertions(+), 27 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze
2018-07-24 0:01 Michael Roth
@ 2018-07-24 12:29 ` Peter Maydell
0 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2018-07-24 12:29 UTC (permalink / raw)
To: Michael Roth; +Cc: QEMU Developers
On 24 July 2018 at 01:01, Michael Roth <mdroth@linux.vnet.ibm.com> wrote:
> The following changes since commit 4eecc2e212bae7308d8582d99f665dfc253c9dda:
>
> Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180723' into staging (2018-07-23 19:24:05 +0100)
>
> are available in the Git repository at:
>
> git://github.com/mdroth/qemu.git tags/qga-pull-2018-07-23-tag
>
> for you to fetch changes up to ae7da1e5f658ea21d96e565514de20ff2cf24fa1:
>
> qga: process_event() simplification and leak fix (2018-07-23 18:54:26 -0500)
>
> ----------------------------------------------------------------
> qemu-ga patch queue for hard-freeze
>
> * fix leak in qga main loop error path
> * better error reporting when Windows version doesn't support fstrim
>
> ----------------------------------------------------------------
> Marc-André Lureau (1):
> qga: process_event() simplification and leak fix
>
> Sameeh Jubran (1):
> qga-win: Handle fstrim for OSes lower than Win8
>
> qga/commands-win32.c | 13 +++++++++++++
> qga/main.c | 54 ++++++++++++++++++++++++++--------------------------
> 2 files changed, 40 insertions(+), 27 deletions(-)
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-07-24 12:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-16 21:44 [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze Michael Roth
2018-07-16 21:44 ` [Qemu-devel] [PULL for-3.0 1/2] qga: fix 'driver' leak in guest-get-fsinfo Michael Roth
2018-07-16 21:44 ` [Qemu-devel] [PULL for-3.0 2/2] qga: fix file descriptor leak Michael Roth
2018-07-17 9:54 ` [Qemu-devel] [PULL for-3.0 0/2] qemu-ga patch queue for hard-freeze Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2018-07-24 0:01 Michael Roth
2018-07-24 12:29 ` Peter Maydell
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).