qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] dump: Fix issues flagged by Coverity
@ 2023-12-22  9:38 Markus Armbruster
  2023-12-22  9:38 ` [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R Markus Armbruster
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Armbruster @ 2023-12-22  9:38 UTC (permalink / raw)
  To: qemu-devel

v2:
* PATCH 1 superseded by commit 95a40c44501 (dump: Add close fd on
  error return to avoid resource leak)
* PATCH 2 fell through the cracks; reposting unchanged

Markus Armbruster (1):
  dump: Fix HMP dump-guest-memory -z without -R

 dump/dump-hmp-cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.43.0



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

* [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R
  2023-12-22  9:38 [PATCH v2 0/1] dump: Fix issues flagged by Coverity Markus Armbruster
@ 2023-12-22  9:38 ` Markus Armbruster
  2024-01-11 12:34   ` Markus Armbruster
  2024-01-17  8:28   ` Michael Tokarev
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Armbruster @ 2023-12-22  9:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stephen Brennan, Marc-André Lureau

-z without -R has no effect: the dump format remains @elf.  Fix the
logic error so it becomes @kdump-zlib.

Fixes: e6549197f7ed (dump: Add command interface for kdump-raw formats)
Fixes: CID 1523841
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 dump/dump-hmp-cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dump/dump-hmp-cmds.c b/dump/dump-hmp-cmds.c
index b428ec33df..d9340427c3 100644
--- a/dump/dump-hmp-cmds.c
+++ b/dump/dump-hmp-cmds.c
@@ -41,7 +41,7 @@ void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)
         dump_format = DUMP_GUEST_MEMORY_FORMAT_WIN_DMP;
     }
 
-    if (zlib && raw) {
+    if (zlib) {
         if (raw) {
             dump_format = DUMP_GUEST_MEMORY_FORMAT_KDUMP_RAW_ZLIB;
         } else {
-- 
2.43.0



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

* Re: [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R
  2023-12-22  9:38 ` [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R Markus Armbruster
@ 2024-01-11 12:34   ` Markus Armbruster
  2024-01-11 15:10     ` Marc-André Lureau
  2024-01-17  8:28   ` Michael Tokarev
  1 sibling, 1 reply; 6+ messages in thread
From: Markus Armbruster @ 2024-01-11 12:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stephen Brennan, Marc-André Lureau

Any takers?

Markus Armbruster <armbru@redhat.com> writes:

> -z without -R has no effect: the dump format remains @elf.  Fix the
> logic error so it becomes @kdump-zlib.
>
> Fixes: e6549197f7ed (dump: Add command interface for kdump-raw formats)
> Fixes: CID 1523841
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> Reviewed-by: Stephen Brennan <stephen.s.brennan@oracle.com>
> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  dump/dump-hmp-cmds.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dump/dump-hmp-cmds.c b/dump/dump-hmp-cmds.c
> index b428ec33df..d9340427c3 100644
> --- a/dump/dump-hmp-cmds.c
> +++ b/dump/dump-hmp-cmds.c
> @@ -41,7 +41,7 @@ void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)
>          dump_format = DUMP_GUEST_MEMORY_FORMAT_WIN_DMP;
>      }
>  
> -    if (zlib && raw) {
> +    if (zlib) {
>          if (raw) {
>              dump_format = DUMP_GUEST_MEMORY_FORMAT_KDUMP_RAW_ZLIB;
>          } else {



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

* Re: [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R
  2024-01-11 12:34   ` Markus Armbruster
@ 2024-01-11 15:10     ` Marc-André Lureau
  2024-01-11 16:05       ` Markus Armbruster
  0 siblings, 1 reply; 6+ messages in thread
From: Marc-André Lureau @ 2024-01-11 15:10 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: qemu-devel, Stephen Brennan

Hi Markus

On Thu, Jan 11, 2024 at 4:36 PM Markus Armbruster <armbru@redhat.com> wrote:
>
> Any takers?
>

I have it in my "dump" queue, but it's the only patch I got so far (I
could have missed others).

If it can go through my other means, that's fine with me

> Markus Armbruster <armbru@redhat.com> writes:
>
> > -z without -R has no effect: the dump format remains @elf.  Fix the
> > logic error so it becomes @kdump-zlib.
> >
> > Fixes: e6549197f7ed (dump: Add command interface for kdump-raw formats)
> > Fixes: CID 1523841
> > Signed-off-by: Markus Armbruster <armbru@redhat.com>
> > Reviewed-by: Stephen Brennan <stephen.s.brennan@oracle.com>
> > Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > ---
> >  dump/dump-hmp-cmds.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/dump/dump-hmp-cmds.c b/dump/dump-hmp-cmds.c
> > index b428ec33df..d9340427c3 100644
> > --- a/dump/dump-hmp-cmds.c
> > +++ b/dump/dump-hmp-cmds.c
> > @@ -41,7 +41,7 @@ void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)
> >          dump_format = DUMP_GUEST_MEMORY_FORMAT_WIN_DMP;
> >      }
> >
> > -    if (zlib && raw) {
> > +    if (zlib) {
> >          if (raw) {
> >              dump_format = DUMP_GUEST_MEMORY_FORMAT_KDUMP_RAW_ZLIB;
> >          } else {
>
>


-- 
Marc-André Lureau


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

* Re: [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R
  2024-01-11 15:10     ` Marc-André Lureau
@ 2024-01-11 16:05       ` Markus Armbruster
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Armbruster @ 2024-01-11 16:05 UTC (permalink / raw)
  To: Marc-André Lureau; +Cc: qemu-devel, Stephen Brennan, qemu-trivial

Marc-André Lureau <marcandre.lureau@gmail.com> writes:

> Hi Markus
>
> On Thu, Jan 11, 2024 at 4:36 PM Markus Armbruster <armbru@redhat.com> wrote:
>>
>> Any takers?
>>
>
> I have it in my "dump" queue, but it's the only patch I got so far (I
> could have missed others).
>
> If it can go through my other means, that's fine with me

Let's try qemu-trivial (cc'ed).  Thanks!

>> Markus Armbruster <armbru@redhat.com> writes:



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

* Re: [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R
  2023-12-22  9:38 ` [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R Markus Armbruster
  2024-01-11 12:34   ` Markus Armbruster
@ 2024-01-17  8:28   ` Michael Tokarev
  1 sibling, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2024-01-17  8:28 UTC (permalink / raw)
  To: Markus Armbruster, qemu-devel
  Cc: Stephen Brennan, Marc-André Lureau, QEMU Trivial

22.12.2023 12:38, Markus Armbruster :
> -z without -R has no effect: the dump format remains @elf.  Fix the
> logic error so it becomes @kdump-zlib.
> 
> Fixes: e6549197f7ed (dump: Add command interface for kdump-raw formats)
> Fixes: CID 1523841
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> Reviewed-by: Stephen Brennan <stephen.s.brennan@oracle.com>
> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Applied to trivial-patches tree, thanks!

/mjt


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

end of thread, other threads:[~2024-01-17  8:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-22  9:38 [PATCH v2 0/1] dump: Fix issues flagged by Coverity Markus Armbruster
2023-12-22  9:38 ` [PATCH v2 1/1] dump: Fix HMP dump-guest-memory -z without -R Markus Armbruster
2024-01-11 12:34   ` Markus Armbruster
2024-01-11 15:10     ` Marc-André Lureau
2024-01-11 16:05       ` Markus Armbruster
2024-01-17  8:28   ` Michael Tokarev

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