Re: [edk2] [PATCH] MdeModulePkg/Core/Pei: Critical buffer overflow when loading TE Images

2013-02-18 Thread Dong, Eric
Oliver, In red mark code is used to fix the alignment issue raised in IPF platform, we can't remove it. For TE image, it also needs to make sure the section data is section alignment. So in my patch, i just expand the memory size to the PE image size for TE image. Attach my patch; please help t

Re: [edk2] QEMU + OVMF Query:Fedora 18 installed on ATA disk and then booted it as NVMe disk ( with F18 installed on it) giving dracut-initqueue errors.

2013-02-18 Thread baban devkate
Hey Laszlo, Finally OS booted using my driver!!! I used Ubuntu 12.10 instead F18. It worked like charm. It was great learning experience with you, thanks a lot. Regards, Baban On Fri, Feb 15, 2013 at 5:54 PM, baban devkate wrote: > Yes, Dracut is 95% scripting, that makes very difficult

Re: [edk2] [Qemu-devel] [SeaBIOS] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread Laszlo Ersek
On 02/18/13 20:09, Laszlo Ersek wrote: > On 02/18/13 20:00, Kevin O'Connor wrote: >> On Mon, Feb 18, 2013 at 08:31:01PM +0200, Gleb Natapov wrote: >>> Laszlo explained to me that the problem is that after reset we end up >>> in SeaBIOS reset code instead of OVMF one. This is because kvm starts >>>

Re: [edk2] [SeaBIOS] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread David Woodhouse
On Mon, 2013-02-18 at 19:16 +0100, Laszlo Ersek wrote: > On 02/18/13 18:45, Gleb Natapov wrote: > > On Mon, Feb 18, 2013 at 06:12:55PM +0100, Laszlo Ersek wrote: > > >> CS =f000 000f f300 > >> ^^^^ > >> |base limitflags > >> selector > >

Re: [edk2] [SeaBIOS] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread Laszlo Ersek
On 02/18/13 18:45, Gleb Natapov wrote: > On Mon, Feb 18, 2013 at 06:12:55PM +0100, Laszlo Ersek wrote: >> CS =f000 000f f300 >> ^^^^ >> |base limitflags >> selector >> > This is because real mode is emulated as vm86 mode on intel cpus wi

[edk2] Windows Device Firmware Update.

2013-02-18 Thread Ramesh Raju
Hi, Does anybody has the sample Capsule package that has both DXE driver and Firmware image on it? I mean both windows 8 INF file, Capsule Package to update the device firmware. I mean do we have same driver to test the below function? 1) Device firmware capsule will have both DXE driver( R

Re: [edk2] [SeaBIOS] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread Kevin O'Connor
On Mon, Feb 18, 2013 at 06:12:55PM +0100, Laszlo Ersek wrote: > On 02/18/13 13:53, David Woodhouse wrote: > I single-stepped qemu-1.3.1 in x86_cpu_reset() / > cpu_x86_load_seg_cache(), and we seem to set the correct base. However > when I pause the VM when it's spinning in the reset loop, and I iss

Re: [edk2] [PATCH] MdeModulePkg/Core/Pei: Critical buffer overflow when loading TE Images

2013-02-18 Thread Ryan Harkin
On 18 February 2013 16:56, Olivier Martin wrote: > Dear MdePkg and MdeModulePkg maintainers, > > > > We found a buffer overflow in the TE image loading. This issue is > architecture independent and could potentially crash the platform. > > The issue has been introduced by this commit: “Fix alignme

Re: [edk2] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread Laszlo Ersek
On 02/18/13 13:53, David Woodhouse wrote: > Nevertheless, on my workstation as on yours, we do seem to end up > executing from the CSM in RAM when we reset. But on my laptop, it > executes the *ROM* as it should. > > This patch 'fixes' it, and I think it might even be correct in itself, > but I do

[edk2] [PATCH] MdeModulePkg/Core/Pei: Critical buffer overflow when loading TE Images

2013-02-18 Thread Olivier Martin
Dear MdePkg and MdeModulePkg maintainers, We found a buffer overflow in the TE image loading. This issue is architecture independent and could potentially crash the platform. The issue has been introduced by this commit: "Fix alignment requirement when Load IPF TeImage into memory" (https://gi

Re: [edk2] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread Paolo Bonzini
Il 18/02/2013 16:00, David Woodhouse ha scritto: > On Mon, 2013-02-18 at 15:46 +0100, Paolo Bonzini wrote: >> > If you want to submit this patch for upstream QEMU (I agree it is a >> > good idea), please set dc->reset instead in i440fx_class_init. > Thanks. > > I just copied the way that PIIX3 doe

Re: [edk2] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread David Woodhouse
On Mon, 2013-02-18 at 15:46 +0100, Paolo Bonzini wrote: > If you want to submit this patch for upstream QEMU (I agree it is a > good idea), please set dc->reset instead in i440fx_class_init. Thanks. I just copied the way that PIIX3 does it... is that something that piix3_class_init() should be do

Re: [edk2] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread Paolo Bonzini
Il 18/02/2013 13:53, David Woodhouse ha scritto: > > diff --git a/hw/piix_pci.c b/hw/piix_pci.c > index 6c77e49..6dcf1c5 100644 > --- a/hw/piix_pci.c > +++ b/hw/piix_pci.c > @@ -171,6 +171,23 @@ static int i440fx_load_old(QEMUFile* f, void *opaque, > int version_id) > return 0; > } > > +s

Re: [edk2] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread David Woodhouse
On Mon, 2013-02-18 at 10:40 +, David Woodhouse wrote: > On Sat, 2013-02-16 at 02:37 +0100, Laszlo Ersek wrote: > > I give up. Thanks for the help & sorry about spamming three lists. > > I've managed to reproduce this on a clean F18 system. This is the stock > qemu 1.2.2-6.fc18 on kernel 3.7.6-

Re: [edk2] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-18 Thread David Woodhouse
On Sat, 2013-02-16 at 02:37 +0100, Laszlo Ersek wrote: > I give up. Thanks for the help & sorry about spamming three lists. I've managed to reproduce this on a clean F18 system. This is the stock qemu 1.2.2-6.fc18 on kernel 3.7.6-201.fc18.x86_64 with a newly-installed Fedora 18 VM in the guest. q