All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fixup! qemu: backport patches to fix cves
@ 2019-03-20 13:16 kai.kang
  2019-03-20 21:34 ` Alexey Brodkin
  0 siblings, 1 reply; 4+ messages in thread
From: kai.kang @ 2019-03-20 13:16 UTC (permalink / raw)
  To: richard.purdie; +Cc: alexey.brodkin, openembedded-core

From: Kai Kang <kai.kang@windriver.com>

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-devtools/qemu/qemu/0015-fix-CVE-2018-20124.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/qemu/qemu/0015-fix-CVE-2018-20124.patch b/meta/recipes-devtools/qemu/qemu/0015-fix-CVE-2018-20124.patch
index ad846958a7..985b819409 100644
--- a/meta/recipes-devtools/qemu/qemu/0015-fix-CVE-2018-20124.patch
+++ b/meta/recipes-devtools/qemu/qemu/0015-fix-CVE-2018-20124.patch
@@ -38,7 +38,7 @@ index d7a4bbd9..7f8028f8 100644
 -        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_NO_SGE, ctx);
 +    if (!num_sge || num_sge > MAX_SGE) {
 +        pr_dbg("invalid num_sge=%d\n", num_sge);
-+        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_INV_NUM_SGE, ctx);
++        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_NO_SGE, ctx);
          return;
      }
  
@@ -51,7 +51,7 @@ index d7a4bbd9..7f8028f8 100644
 -        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_NO_SGE, ctx);
 +    if (!num_sge || num_sge > MAX_SGE) {
 +        pr_dbg("invalid num_sge=%d\n", num_sge);
-+        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_INV_NUM_SGE, ctx);
++        comp_handler(IBV_WC_GENERAL_ERR, VENDOR_ERR_NO_SGE, ctx);
          return;
      }
  
-- 
2.20.0



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

* Re: [PATCH] fixup! qemu: backport patches to fix cves
  2019-03-20 13:16 [PATCH] fixup! qemu: backport patches to fix cves kai.kang
@ 2019-03-20 21:34 ` Alexey Brodkin
  2019-03-21  3:26   ` Kang Kai
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Brodkin @ 2019-03-20 21:34 UTC (permalink / raw)
  To: kai.kang; +Cc: openembedded-core

Hi Kai Kang,

> -----Original Message-----
> From: kai.kang@windriver.com <kai.kang@windriver.com>
> Sent: Wednesday, March 20, 2019 4:16 PM
> To: richard.purdie@linuxfoundation.org
> Cc: alexey.brodkin@synopsys.com; openembedded-core@lists.openembedded.org
> Subject: [PATCH] fixup! qemu: backport patches to fix cves

Just wondering if you were able to reproduce mentioned problem
on your side before fixing it?

Given Richard's input this problem was supposed to be caught
before your previous commit hit OE master branch but somehow it
slipped through the cracks...

Or otherwise my setup should be somehow very special if it only
happens for me.

-Alexey



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

* Re: [PATCH] fixup! qemu: backport patches to fix cves
  2019-03-20 21:34 ` Alexey Brodkin
@ 2019-03-21  3:26   ` Kang Kai
  2019-03-21  5:53     ` Alexey Brodkin
  0 siblings, 1 reply; 4+ messages in thread
From: Kang Kai @ 2019-03-21  3:26 UTC (permalink / raw)
  To: Alexey Brodkin; +Cc: openembedded-core

On 2019/3/21 上午5:34, Alexey Brodkin wrote:
> Hi Kai Kang,
>
>> -----Original Message-----
>> From: kai.kang@windriver.com <kai.kang@windriver.com>
>> Sent: Wednesday, March 20, 2019 4:16 PM
>> To: richard.purdie@linuxfoundation.org
>> Cc: alexey.brodkin@synopsys.com; openembedded-core@lists.openembedded.org
>> Subject: [PATCH] fixup! qemu: backport patches to fix cves
> Just wondering if you were able to reproduce mentioned problem
> on your side before fixing it?
>
> Given Richard's input this problem was supposed to be caught
> before your previous commit hit OE master branch but somehow it
> slipped through the cracks...
>
> Or otherwise my setup should be somehow very special if it only
> happens for me.

I can reproduce the build failure with default configure:

$ . poky/oe-init-build-env
$ bitbake qemu-system-native

It should be covered by autobuilder. :(

And there is no error to build qemu and qemu-native  that 
hw/rdma/rdma_backend.c is not even compiled because:

* CONFIG_PCI is not set for qemu-native

* CONFIG_PVRDMA is not set for qemu


Regards,
Kai




>
> -Alexey
>
>

-- 
Kai Kang



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

* Re: [PATCH] fixup! qemu: backport patches to fix cves
  2019-03-21  3:26   ` Kang Kai
@ 2019-03-21  5:53     ` Alexey Brodkin
  0 siblings, 0 replies; 4+ messages in thread
From: Alexey Brodkin @ 2019-03-21  5:53 UTC (permalink / raw)
  To: Kang Kai, richard.purdie; +Cc: openembedded-core

Hi Kai,

> -----Original Message-----
> From: Kang Kai <Kai.Kang@windriver.com>
> Sent: Thursday, March 21, 2019 6:27 AM
> To: Alexey Brodkin <alexey.brodkin@synopsys.com>
> Cc: openembedded-core@lists.openembedded.org; richard.purdie@linuxfoundation.org
> Subject: Re: [PATCH] fixup! qemu: backport patches to fix cves
> 
> On 2019/3/21 上午5:34, Alexey Brodkin wrote:
> > Hi Kai Kang,
> >
> >> -----Original Message-----
> >> From: kai.kang@windriver.com <kai.kang@windriver.com>
> >> Sent: Wednesday, March 20, 2019 4:16 PM
> >> To: richard.purdie@linuxfoundation.org
> >> Cc: alexey.brodkin@synopsys.com; openembedded-core@lists.openembedded.org
> >> Subject: [PATCH] fixup! qemu: backport patches to fix cves
> > Just wondering if you were able to reproduce mentioned problem
> > on your side before fixing it?
> >
> > Given Richard's input this problem was supposed to be caught
> > before your previous commit hit OE master branch but somehow it
> > slipped through the cracks...
> >
> > Or otherwise my setup should be somehow very special if it only
> > happens for me.
> 
> I can reproduce the build failure with default configure:
> 
> $ . poky/oe-init-build-env
> $ bitbake qemu-system-native
> 
> It should be covered by autobuilder. :(
> 
> And there is no error to build qemu and qemu-native  that
> hw/rdma/rdma_backend.c is not even compiled because:
> 
> * CONFIG_PCI is not set for qemu-native
> * CONFIG_PVRDMA is not set for qemu

Thanks for confirmation!

Richard, FWIW I hit this issue building "build-appliance-image"
which I use for smoke-testing as there're quite a few packages
being built.

-Alexey

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

end of thread, other threads:[~2019-03-21  5:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-20 13:16 [PATCH] fixup! qemu: backport patches to fix cves kai.kang
2019-03-20 21:34 ` Alexey Brodkin
2019-03-21  3:26   ` Kang Kai
2019-03-21  5:53     ` Alexey Brodkin

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.