All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
@ 2011-02-03 10:16 Laurent Vivier
  2011-02-05 19:40 ` riku voipio
  0 siblings, 1 reply; 11+ messages in thread
From: Laurent Vivier @ 2011-02-03 10:16 UTC (permalink / raw)
  To: weil, riku.voipio
  Cc: kwolf, aliguori, mst, armbru, qemu-devel, blauwirbel, kraxel, pbonzini

>On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote:
>> [PATCH] linux-user: Fix possible realloc memory leak  
>> (http://patchwork.ozlabs.org/patch/79217/)
>
>Looks ok for me.

And this one ?

linux-user: correct core dump format

http://patchwork.ozlabs.org/patch/78464/

Laurent

-- 
--------------------- Laurent@vivier.eu  ---------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard

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

* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
  2011-02-03 10:16 [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes) Laurent Vivier
@ 2011-02-05 19:40 ` riku voipio
  2011-02-07 13:09   ` Anthony Liguori
  0 siblings, 1 reply; 11+ messages in thread
From: riku voipio @ 2011-02-05 19:40 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: aliguori, qemu-devel

On 02/03/2011 12:16 PM, Laurent Vivier wrote:
>> On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote:
>>> [PATCH] linux-user: Fix possible realloc memory leak
>>> (http://patchwork.ozlabs.org/patch/79217/)
>> Looks ok for me.

> And this one ?
>
> linux-user: correct core dump format
>
> http://patchwork.ozlabs.org/patch/78464/

Do you need it for 0.14 ?

I intend to include this and other in a pull request for master soon.

Riku

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

* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
  2011-02-05 19:40 ` riku voipio
@ 2011-02-07 13:09   ` Anthony Liguori
  0 siblings, 0 replies; 11+ messages in thread
From: Anthony Liguori @ 2011-02-07 13:09 UTC (permalink / raw)
  To: riku voipio; +Cc: aliguori, Laurent Vivier, qemu-devel

On 02/05/2011 01:40 PM, riku voipio wrote:
> On 02/03/2011 12:16 PM, Laurent Vivier wrote:
>>> On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote:
>>>> [PATCH] linux-user: Fix possible realloc memory leak
>>>> (http://patchwork.ozlabs.org/patch/79217/)
>>> Looks ok for me.
>
>> And this one ?
>>
>> linux-user: correct core dump format
>>
>> http://patchwork.ozlabs.org/patch/78464/
>
> Do you need it for 0.14 ?
>
> I intend to include this and other in a pull request for master soon.

This looks reasonably important.  Can you just do a pull request for 
master for the patches that might be good for 0.14?

If you can do that in the next couple days, it'll make it into -rc2 no 
problem.

Regards,

Anthony Liguori

> Riku
>

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

* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
  2011-02-09  9:20 Laurent Vivier
  2011-02-09  9:52 ` Peter Maydell
@ 2011-02-09 10:25 ` Riku Voipio
  1 sibling, 0 replies; 11+ messages in thread
From: Riku Voipio @ 2011-02-09 10:25 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: aliguori, riku.voipio, qemu-devel

> >Actually that patch is not ok. The issues you fix on m68k appear
> >on arm/eabi after applying your patch. bswap part appears ok, but
> >the padding is needed atleast on arm.
 
> How do you test this patch ? Do you use native gdb on ARM ? Because, for m68k, cross-compiled gdb does not work (it cannot have sizeof(prstatus_t) for m68k).

I tried both native and cross-gdb, version 7.2. Both fail with your patch applied
and work fine without it.

Before your patch, objdump (CodeSourcery cs2009q3 cross) output looks like:

-snip-
Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 note0         000001bc  00000000  00000000  000000d4  2**0
                  CONTENTS, READONLY
  1 .reg/23968    00000048  00000000  00000000  00000130  2**2
                  CONTENTS
  2 .reg          00000048  00000000  00000000  00000130  2**2
                  CONTENTS
  3 .auxv         00000070  00000000  00000000  00000220  2**2
                  CONTENTS
  4 load1         00000000  00008000  00000000  00001000  2**12
                  ALLOC, READONLY, CODE
-snip-

after:

-snip-
Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 note0         000001bc  00000000  00000000  000000d4  2**0
                  CONTENTS, READONLY
  1 .auxv         00000070  00000000  00000000  00000220  2**2
                  CONTENTS
  2 load1         00000000  00008000  00000000  00001000  2**12
                  ALLOC, READONLY, CODE
                  CONTENTS, ALLOC, LOAD
-snip-

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

* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
@ 2011-02-09 10:14 Laurent Vivier
  0 siblings, 0 replies; 11+ messages in thread
From: Laurent Vivier @ 2011-02-09 10:14 UTC (permalink / raw)
  To: peter.maydell, Laurent; +Cc: aliguori, riku.voipio, qemu-devel

>On 9 February 2011 09:20, Laurent Vivier <Laurent@vivier.eu> wrote:
>> It is strange as we have in gdb, if I remember correctly, an explicit check 
>of the size of prstatus:
>>
>> gdb/bfd/elf.c:
>>
>>    if defined (HAVE_PRSTATUS_T)
>>
>>    static bfd_boolean
>>    elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
>> ...
>>      if (note->descsz == sizeof (prstatus_t))
>> ...
>>
>> How do you test this patch ? Do you use native gdb on ARM ? Because, for 
>m68k, cross-compiled gdb does not work (it cannot have sizeof(prstatus_t) for 
>m68k).
>
>I dunno about m68k, but if ARM gdb behaves differently natively
>versus the cross-tools version (ie hosted on x86 to target ARM)
>then that sounds like a bug we in Linaro would like to know
>about :-)

What I saw for m68k is it cannot access to the saved registers of the core dump  (i.e. you cannot use cross-compiled gdb to debug a core dump ...)

What you can try is to generate a core dump with a "kill -SIGILL" on a qemu-arm process (don't forget to do "ulimit -c unlimited" before) and then load the core with your cross-compiled gdb.

Regards,
Laurent
-- 
--------------------- Laurent@vivier.eu  ---------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard

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

* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
  2011-02-09  9:20 Laurent Vivier
@ 2011-02-09  9:52 ` Peter Maydell
  2011-02-09 10:25 ` Riku Voipio
  1 sibling, 0 replies; 11+ messages in thread
From: Peter Maydell @ 2011-02-09  9:52 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: aliguori, riku.voipio, qemu-devel

On 9 February 2011 09:20, Laurent Vivier <Laurent@vivier.eu> wrote:
> It is strange as we have in gdb, if I remember correctly, an explicit check of the size of prstatus:
>
> gdb/bfd/elf.c:
>
>    if defined (HAVE_PRSTATUS_T)
>
>    static bfd_boolean
>    elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
> ...
>      if (note->descsz == sizeof (prstatus_t))
> ...
>
> How do you test this patch ? Do you use native gdb on ARM ? Because, for m68k, cross-compiled gdb does not work (it cannot have sizeof(prstatus_t) for m68k).

I dunno about m68k, but if ARM gdb behaves differently natively
versus the cross-tools version (ie hosted on x86 to target ARM)
then that sounds like a bug we in Linaro would like to know
about :-)

-- PMM

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

* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
@ 2011-02-09  9:20 Laurent Vivier
  2011-02-09  9:52 ` Peter Maydell
  2011-02-09 10:25 ` Riku Voipio
  0 siblings, 2 replies; 11+ messages in thread
From: Laurent Vivier @ 2011-02-09  9:20 UTC (permalink / raw)
  To: laurent, riku.voipio; +Cc: aliguori, qemu-devel

>On Sat, Feb 05, 2011 at 10:49:51PM +0100, Laurent Vivier wrote:
>> >On 02/03/2011 12:16 PM, Laurent Vivier wrote:
>> >> And this one ?
>> >>
>> >> linux-user: correct core dump format
>> >>
>> >> http://patchwork.ozlabs.org/patch/78464/
>
>Actually that patch is not ok. The issues you fix on m68k appear
>on arm/eabi after applying your patch. bswap part appears ok, but
>the padding is needed atleast on arm.

It is strange as we have in gdb, if I remember correctly, an explicit check of the size of prstatus:

gdb/bfd/elf.c:

    if defined (HAVE_PRSTATUS_T)

    static bfd_boolean
    elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
...
      if (note->descsz == sizeof (prstatus_t))
...

How do you test this patch ? Do you use native gdb on ARM ? Because, for m68k, cross-compiled gdb does not work (it cannot have sizeof(prstatus_t) for m68k).

Regards,
Laurent


-- 
--------------------- Laurent@vivier.eu  ---------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard

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

* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
  2011-02-05 21:49 Laurent Vivier
@ 2011-02-09  7:03 ` Riku Voipio
  0 siblings, 0 replies; 11+ messages in thread
From: Riku Voipio @ 2011-02-09  7:03 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: aliguori, riku voipio, qemu-devel

On Sat, Feb 05, 2011 at 10:49:51PM +0100, Laurent Vivier wrote:
> >On 02/03/2011 12:16 PM, Laurent Vivier wrote:
> >> And this one ?
> >>
> >> linux-user: correct core dump format
> >>
> >> http://patchwork.ozlabs.org/patch/78464/

Actually that patch is not ok. The issues you fix on m68k appear
on arm/eabi after applying your patch. bswap part appears ok, but
the padding is needed atleast on arm.

Riku

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

* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
@ 2011-02-05 21:49 Laurent Vivier
  2011-02-09  7:03 ` Riku Voipio
  0 siblings, 1 reply; 11+ messages in thread
From: Laurent Vivier @ 2011-02-05 21:49 UTC (permalink / raw)
  To: riku voipio; +Cc: aliguori, qemu-devel

Hi,

I've no need, just put it in your tree where you want...

Regards,
Laurent

riku voipio <riku.voipio@iki.fi> a écrit :

>On 02/03/2011 12:16 PM, Laurent Vivier wrote:
>>> On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote:
>>>> [PATCH] linux-user: Fix possible realloc memory leak
>>>> (http://patchwork.ozlabs.org/patch/79217/)
>>> Looks ok for me.
>
>> And this one ?
>>
>> linux-user: correct core dump format
>>
>> http://patchwork.ozlabs.org/patch/78464/
>
>Do you need it for 0.14 ?
>
>I intend to include this and other in a pull request for master soon.
>
>Riku

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

* [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
  2011-02-02 19:28 ` [Qemu-devel] [PING 0.14] Missing patches (mostly fixes) Stefan Weil
  2011-02-02 21:25   ` [Qemu-devel] " Michael S. Tsirkin
@ 2011-02-03  7:00   ` Riku Voipio
  1 sibling, 0 replies; 11+ messages in thread
From: Riku Voipio @ 2011-02-03  7:00 UTC (permalink / raw)
  To: Stefan Weil
  Cc: Kevin Wolf, Anthony Liguori, Michael S. Tsirkin, Riku Voipio,
	qemu-devel, Markus Armbruster, Blue Swirl, Gerd Hoffmann,
	Paolo Bonzini

On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote:
> [PATCH] linux-user: Fix possible realloc memory leak  
> (http://patchwork.ozlabs.org/patch/79217/)

Looks ok for me.

Riku

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

* [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
  2011-02-02 19:28 ` [Qemu-devel] [PING 0.14] Missing patches (mostly fixes) Stefan Weil
@ 2011-02-02 21:25   ` Michael S. Tsirkin
  2011-02-03  7:00   ` Riku Voipio
  1 sibling, 0 replies; 11+ messages in thread
From: Michael S. Tsirkin @ 2011-02-02 21:25 UTC (permalink / raw)
  To: Stefan Weil
  Cc: Kevin Wolf, Anthony Liguori, Riku Voipio, qemu-devel,
	Markus Armbruster, Blue Swirl, Gerd Hoffmann, Paolo Bonzini

On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote:
> [PATCH 1/3] pci: Fix memory leak (http://patchwork.ozlabs.org/patch/79996/)

Looks good. Pls cc me on patches next time to make sure I do not miss a
patch.

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

end of thread, other threads:[~2011-02-09 10:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-03 10:16 [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes) Laurent Vivier
2011-02-05 19:40 ` riku voipio
2011-02-07 13:09   ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2011-02-09 10:14 Laurent Vivier
2011-02-09  9:20 Laurent Vivier
2011-02-09  9:52 ` Peter Maydell
2011-02-09 10:25 ` Riku Voipio
2011-02-05 21:49 Laurent Vivier
2011-02-09  7:03 ` Riku Voipio
2011-01-27  8:29 [Qemu-devel] [0.14] Queue of 0.14 patches/pull? Paolo Bonzini
2011-02-02 19:28 ` [Qemu-devel] [PING 0.14] Missing patches (mostly fixes) Stefan Weil
2011-02-02 21:25   ` [Qemu-devel] " Michael S. Tsirkin
2011-02-03  7:00   ` Riku Voipio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.