Skip to contentSkip to conversation

66583: regressions - FAIL

xen-4.4-testing test osstest service owner 5 participants 11 messages Dec 20, 2015 – Jan 6, 2016

lore
Share & tools
lore

osstest service owner

author Acked-by Ian Campbell Reviewed-by Andrew Cooper
#0 lore raw

flight 66583 xen-4.4-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/66583/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:

 build-amd64-prev              5 xen-build                 fail REGR. vs. 66458
 build-i386-prev               5 xen-build                 fail REGR. vs. 66458

test-amd64-amd64-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 66458 test-armhf-armhf-xl-credit2 15 guest-start/debian.repeat fail REGR. vs. 66458 test-amd64-i386-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 66458

Regressions which are regarded as allowable (not blocking):
test-amd64-amd64-xl-qemuu-win7-amd64 13 guest-localmigrate fail REGR. vs. 66458
test-armhf-armhf-xl-multivcpu 15 guest-start/debian.repeat fail like 66458
test-amd64-i386-xl-qemuu-win7-amd64 16 guest-stop fail like 66458

Tests which did not succeed, but are not blocking:
test-amd64-amd64-rumpuserxen-amd64 1 build-check(1) blocked n/a
test-amd64-i386-rumpuserxen-i386 1 build-check(1) blocked n/a

 test-amd64-amd64-migrupgrade  1 build-check(1)               blocked  n/a
 test-amd64-i386-migrupgrade   1 build-check(1)               blocked  n/a
 test-armhf-armhf-libvirt-qcow2  9 debian-di-install            fail never pass
 build-amd64-rumpuserxen       6 xen-build                    fail   never pass
 build-i386-rumpuserxen        6 xen-build                    fail   never pass
 test-armhf-armhf-libvirt-raw  9 debian-di-install            fail   never pass
 test-amd64-amd64-qemuu-nested-intel 16 debian-hvm-install/l1/l2 fail never pass
 test-amd64-amd64-qemuu-nested-amd 16 debian-hvm-install/l1/l2  fail never pass
 test-armhf-armhf-xl-multivcpu 13 saverestore-support-check    fail  never pass
 test-armhf-armhf-xl-multivcpu 12 migrate-support-check        fail  never pass
 test-armhf-armhf-xl          12 migrate-support-check        fail   never pass
 test-armhf-armhf-xl          13 saverestore-support-check    fail   never pass
 test-armhf-armhf-libvirt     11 guest-start                  fail   never pass
 test-amd64-i386-libvirt      12 migrate-support-check        fail   never pass
 test-armhf-armhf-xl-arndale  12 migrate-support-check        fail   never pass
 test-armhf-armhf-xl-arndale  13 saverestore-support-check    fail   never pass
 test-amd64-amd64-libvirt-vhd 11 migrate-support-check        fail   never pass
 test-armhf-armhf-xl-cubietruck 12 migrate-support-check        fail never pass
 test-armhf-armhf-xl-cubietruck 13 saverestore-support-check    fail never pass
 test-amd64-amd64-libvirt     12 migrate-support-check        fail   never pass
 test-armhf-armhf-xl-credit2  13 saverestore-support-check    fail   never pass
 test-armhf-armhf-xl-credit2  12 migrate-support-check        fail   never pass

test-amd64-amd64-xl-qemut-win7-amd64 16 guest-stop fail never pass
test-armhf-armhf-xl-vhd 9 debian-di-install fail never pass
test-amd64-i386-xl-qemut-win7-amd64 16 guest-stop fail never pass
test-amd64-i386-xend-qemut-winxpsp3 20 leak-check/check fail never pass

version targeted for testing:
xen fd4db045339863c901e887fe35fe958ce766351e
baseline version:
xen d0b73c9bf21f9199401a36eeda7ba0a4412aad6d

Last test of basis    66458  2015-12-17 09:42:47 Z    3 days
Failing since         66520  2015-12-18 10:37:08 Z    2 days    2 attempts
Testing same since    66583  2015-12-19 06:03:35 Z    1 days    1 attempts

------------------------------------------------------------
People who touched revisions under test:
Ian Campbell <[email protected]>
Ian Jackson <[email protected]>
Jan Beulich <[email protected]>
Konrad Rzeszutek Wilk <[email protected]> Stefano Stabellini <[email protected]>

jobs:

 build-amd64-xend                                             pass    
 build-i386-xend                                              pass    
 build-amd64                                                  pass    
 build-armhf                                                  pass    
 build-i386                                                   pass    
 build-amd64-libvirt                                          pass    
 build-armhf-libvirt                                          pass    
 build-i386-libvirt                                           pass    
 build-amd64-prev                                             fail    
 build-i386-prev                                              fail    
 build-amd64-pvops                                            pass    
 build-armhf-pvops                                            pass    
 build-i386-pvops                                             pass    
 build-amd64-rumpuserxen                                      fail    
 build-i386-rumpuserxen                                       fail    
 test-amd64-amd64-xl                                          pass    
 test-armhf-armhf-xl                                          pass    
 test-amd64-i386-xl                                           pass    
 test-amd64-amd64-qemuu-nested-amd                            fail    
 test-amd64-i386-qemut-rhel6hvm-amd                           pass    
 test-amd64-i386-qemuu-rhel6hvm-amd                           pass    
 test-amd64-amd64-xl-qemut-debianhvm-amd64                    pass    
 test-amd64-i386-xl-qemut-debianhvm-amd64                     pass    
 test-amd64-amd64-xl-qemuu-debianhvm-amd64                    pass    
 test-amd64-i386-xl-qemuu-debianhvm-amd64                     pass    
 test-amd64-i386-freebsd10-amd64                              pass    
 test-amd64-amd64-xl-qemuu-ovmf-amd64                         fail    
 test-amd64-i386-xl-qemuu-ovmf-amd64                          fail    
 test-amd64-amd64-rumpuserxen-amd64                           blocked 
 test-amd64-amd64-xl-qemut-win7-amd64                         fail    
 test-amd64-i386-xl-qemut-win7-amd64                          fail    
 test-amd64-amd64-xl-qemuu-win7-amd64                         fail    
 test-amd64-i386-xl-qemuu-win7-amd64                          fail    
 test-armhf-armhf-xl-arndale                                  pass    
 test-amd64-amd64-xl-credit2                                  pass    
 test-armhf-armhf-xl-credit2                                  fail    
 test-armhf-armhf-xl-cubietruck                               pass    
 test-amd64-i386-freebsd10-i386                               pass    
 test-amd64-i386-rumpuserxen-i386                             blocked 
 test-amd64-amd64-qemuu-nested-intel                          fail    
 test-amd64-i386-qemut-rhel6hvm-intel                         pass    
 test-amd64-i386-qemuu-rhel6hvm-intel                         pass    
 test-amd64-amd64-libvirt                                     pass    
 test-armhf-armhf-libvirt                                     fail    
 test-amd64-i386-libvirt                                      pass    
 test-amd64-amd64-migrupgrade                                 blocked 
 test-amd64-i386-migrupgrade                                  blocked 
 test-amd64-amd64-xl-multivcpu                                pass    
 test-armhf-armhf-xl-multivcpu                                fail    
 test-amd64-amd64-pair                                        pass    
 test-amd64-i386-pair                                         pass    
 test-amd64-amd64-libvirt-pair                                pass    
 test-amd64-i386-libvirt-pair                                 pass    
 test-amd64-amd64-pv                                          pass    
 test-amd64-i386-pv                                           pass    
 test-amd64-amd64-amd64-pvgrub                                pass    
 test-amd64-amd64-i386-pvgrub                                 pass    
 test-amd64-amd64-pygrub                                      pass    
 test-armhf-armhf-libvirt-qcow2                               fail    
 test-amd64-amd64-xl-qcow2                                    pass    
 test-armhf-armhf-libvirt-raw                                 fail    
 test-amd64-i386-xl-raw                                       pass    
 test-amd64-i386-xl-qemut-winxpsp3-vcpus1                     pass    
 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1                     pass    
 test-amd64-amd64-libvirt-vhd                                 pass    
 test-armhf-armhf-xl-vhd                                      fail    
 test-amd64-i386-xend-qemut-winxpsp3                          fail    
 test-amd64-amd64-xl-qemut-winxpsp3                           pass    
 test-amd64-amd64-xl-qemuu-winxpsp3                           pass    

------------------------------------------------------------
sg-report-flight on osstest.test-lab.xenproject.org
logs: /home/logs/logs
images: /home/logs/images

Logs, config files, etc. are available at
http://logs.test-lab.xenproject.org/osstest/logs

Explanation of these reports, and of osstest in general, is at
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README.email;hb=master
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README;hb=master

Test harness code can be found at
http://xenbits.xen.org/gitweb?p=osstest.git;a=summary

Not pushing.

------------------------------------------------------------
commit fd4db045339863c901e887fe35fe958ce766351e

Author: Ian Jackson <[email protected]>
Date:   Fri Dec 18 14:58:40 2015 +0000

QEMU_TAG update

commit 4dacb5d7429913430895fe38cb58308ea4fa4a05

Author: Jan Beulich <[email protected]>
Date:   Thu Dec 17 14:31:28 2015 +0100

x86/HVM: avoid reading ioreq state more than once

Otherwise, especially when the compiler chooses to translate the switch() to a jump table, unpredictable behavior (and in the jump table case arbitrary code execution) can result.

This is XSA-166.

master commit: b452430a4cdfc801fa4bc391aed7522365e1deb6 master date: 2015-12-17 14:22:46 +0100

commit 52a5c0bf5350f045810d159af0c06305dd9d517f

Author: Jan Beulich <[email protected]>
Date:   Thu Dec 17 14:30:57 2015 +0100

x86: don't leak ST(n)/XMMn values to domains first using them

FNINIT doesn't alter these registers, and hence using it is insufficient to initialize a guest's initial state.

This is CVE-2015-8555 / XSA-165.

master commit: 81818b3f277544535974204f8d840da86fa8a44f master date: 2015-12-17 14:22:13 +0100
========================================
commit c51f20baba0bc01e7e3a3a16e72be9a0ed6cb734

Author: Stefano Stabellini <[email protected]>
Date:   Fri Nov 20 10:56:00 2015 -0500

blkif: Avoid double access to src->nr_segments

src is stored in shared memory and src->nr_segments is dereferenced twice at the end of the function. If a compiler decides to compile this into two separate memory accesses then the size limitation could be bypassed.

Fix it by removing the double access to src->nr_segments.

This is part of XSA-155.

commit bc468fe34e146026854242676635d9435dab5c0d

Author: Stefano Stabellini <[email protected]>
Date:   Fri Nov 20 10:37:08 2015 -0500

xenfb: avoid reading twice the same fields from the shared page

Reading twice the same field could give the guest an attack of opportunity. In the case of event->type, gcc could compile the switch statement into a jump table, effectively ending up reading the type field multiple times.

This is part of XSA-155.

#1 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 20.12.15 at 13:25, <[email protected]> wrote:

flight 66583 xen-4.4-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/66583/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:

 build-amd64-prev              5 xen-build                 fail REGR. vs. 66458
 build-i386-prev               5 xen-build                 fail REGR. vs. 66458

Ian, Stefano,

is one of you two looking into this?

block-qcow.c: In function 'get_cluster_offset':
block-qcow.c:444:3: error: 'tmp_ptr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
memcpy(tmp_ptr, l1_ptr, 4096);
^
block-qcow.c:619:7: error: 'tmp_ptr2' may be used uninitialized in this function [-Werror=maybe-uninitialized]

   if (write(s->fd, tmp_ptr2, 4096) != 4096) {
       ^

cc1: all warnings being treated as errors /home/osstest/build.66583.build-amd64-prev/xen/tools/blktap/drivers/../../../tools/Rules.mk:89: recipe for target 'block-qcow.o' failed make[5]: *** [block-qcow.o] Error 1

Thanks, Jan

#2 lore raw
Quoted 17 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 20.12.15 at 13:25, <[email protected]> wrote:

flight 66583 xen-4.4-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/66583/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:

 build-amd64-prev              5 xen-build                 fail REGR. vs. 66458
 build-i386-prev               5 xen-build                 fail REGR. vs. 66458

Ian, Stefano,

is one of you two looking into this?

block-qcow.c: In function 'get_cluster_offset':
block-qcow.c:444:3: error: 'tmp_ptr' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Quoted 8 lines
   memcpy(tmp_ptr, l1_ptr, 4096);
   ^
block-qcow.c:619:7: error: 'tmp_ptr2' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (write(s->fd, tmp_ptr2, 4096) != 4096) {
       ^

cc1: all warnings being treated as errors /home/osstest/build.66583.build-amd64-prev/xen/tools/blktap/drivers/../../../tools/Rules.mk:89: recipe for target 'block-qcow.o' failed make[5]: *** [block-qcow.o] Error 1

What does build-amd64-prev means? I cannot find the explanation of the test anywhere.

#3 lore raw
Quoted 30 lines
Quoted 1 line
Quoted 1 line · On 22.12.15 at 14:55, <[email protected]> wrote:
Quoted 9 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 20.12.15 at 13:25, <[email protected]> wrote:

flight 66583 xen-4.4-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/66583/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
build-amd64-prev 5 xen-build fail REGR. vs.

66458

Quoted 1 line
Quoted 1 line

build-i386-prev 5 xen-build fail REGR. vs.

66458

Quoted 7 lines

Ian, Stefano,

is one of you two looking into this?

block-qcow.c: In function 'get_cluster_offset':
block-qcow.c:444:3: error: 'tmp_ptr' may be used uninitialized in this

function [-Werror=maybe-uninitialized]

Quoted 3 lines
   memcpy(tmp_ptr, l1_ptr, 4096);
   ^

block-qcow.c:619:7: error: 'tmp_ptr2' may be used uninitialized in this

function [-Werror=maybe-uninitialized]

Quoted 4 lines
   if (write(s->fd, tmp_ptr2, 4096) != 4096) {
       ^

cc1: all warnings being treated as errors

Quoted 6 lines

/home/osstest/build.66583.build-amd64-prev/xen/tools/blktap/drivers/../../../to ols/Rules.mk:89: recipe for target 'block-qcow.o' failed

Quoted 1 line

make[5]: *** [block-qcow.o] Error 1

What does build-amd64-prev means? I cannot find the explanation of the test anywhere.

Iiuc it's the build pf the previous version, needed to test n-1 -> n migration. I.e. (in line with the respective 4.3 failure) it indicates that 4.3's qemu doesn't build.

Jan

#4 lore raw
Quoted 32 lines · Jan Beulich
Quoted 32 lines
Quoted 1 line
Quoted 1 line · On 22.12.15 at 14:55, <[email protected]> wrote:
Quoted 9 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 20.12.15 at 13:25, <[email protected]> wrote:

flight 66583 xen-4.4-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/66583/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
build-amd64-prev 5 xen-build fail REGR. vs.

66458

Quoted 1 line
Quoted 1 line

build-i386-prev 5 xen-build fail REGR. vs.

66458

Quoted 7 lines

Ian, Stefano,

is one of you two looking into this?

block-qcow.c: In function 'get_cluster_offset':
block-qcow.c:444:3: error: 'tmp_ptr' may be used uninitialized in this

function [-Werror=maybe-uninitialized]

Quoted 3 lines
   memcpy(tmp_ptr, l1_ptr, 4096);
   ^

block-qcow.c:619:7: error: 'tmp_ptr2' may be used uninitialized in this

function [-Werror=maybe-uninitialized]

Quoted 4 lines
   if (write(s->fd, tmp_ptr2, 4096) != 4096) {
       ^

cc1: all warnings being treated as errors

/home/osstest/build.66583.build-amd64-prev/xen/tools/blktap/drivers/../../../to ols/Rules.mk:89: recipe for target 'block-qcow.o' failed

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

make[5]: *** [block-qcow.o] Error 1

What does build-amd64-prev means? I cannot find the explanation of the test anywhere.

Iiuc it's the build pf the previous version, needed to test n-1 -> n migration. I.e. (in line with the respective 4.3 failure) it indicates that 4.3's qemu doesn't build.

Thanks for the explanation, it was very helpful.

Quoted 1 line

From the logs what is not building is actually tools/blktap, not QEMU

though, but I cannot reproduce the failure.

Acked-by Ian Jackson
#5 lore raw
Quoted 44 lines · Stefano Stabellini
Quoted 43 lines · Jan Beulich
Quoted 42 lines
Quoted 1 line
Quoted 1 line · On 22.12.15 at 14:55, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 20.12.15 at 13:25, <[email protected]> wrote:

flight 66583 xen-4.4-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/66583/

Regressions :-(

Tests which did not succeed and are blocking, including tests which could not be run:
 build-amd64-prev              5 xen-build                 fail REGR. vs.

66458

Quoted 2 lines
Quoted 2 lines

 build-i386-prev               5 xen-build                 fail REGR. vs.

66458

Quoted 8 lines

Ian, Stefano,

is one of you two looking into this?

block-qcow.c: In function 'get_cluster_offset':
block-qcow.c:444:3: error: 'tmp_ptr' may be used uninitialized in this

function [-Werror=maybe-uninitialized]

Quoted 4 lines

   memcpy(tmp_ptr, l1_ptr, 4096);
   ^
block-qcow.c:619:7: error: 'tmp_ptr2' may be used uninitialized in this

function [-Werror=maybe-uninitialized]

Quoted 4 lines

   if (write(s->fd, tmp_ptr2, 4096) != 4096) {
       ^
cc1: all warnings being treated as errors

/home/osstest/build.66583.build-amd64- prev/xen/tools/blktap/drivers/../../../to ols/Rules.mk:89: recipe for target 'block-qcow.o' failed

Quoted 1 line

make[5]: *** [block-qcow.o] Error 1

What does build-amd64-prev means? I cannot find the explanation of the
test anywhere.

Quoted 8 lines
Quoted 3 lines

Iiuc it's the build pf the previous version, needed to test n-1 -> n migration. I.e. (in line with the respective 4.3 failure) it indicates that 4.3's qemu doesn't build.

Thanks for the explanation, it was very helpful.

From the logs what is not building is actually tools/blktap, not QEMU though, but I cannot reproduce the failure.

I think we want to backport:

commit 345e44a85d71a1a910385f33c7f1ba3683026d18
Author: Dario Faggioli <[email protected]> Date:   Fri Jun 20 16:09:00 2014 +0200

    blktap2: Fix two 'maybe uninitialized' variables

    for which gcc 4.9.0 complains about, like this:

    block-qcow.c: In function `get_cluster_offset':
    block-qcow.c:431:3: error: `tmp_ptr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
       memcpy(tmp_ptr, l1_ptr, 4096);
       ^
    block-qcow.c:606:7: error: `tmp_ptr2' may be used uninitialized in this function [-Werror=maybe-uninitialized]
       if (write(s->fd, tmp_ptr2, 4096) != 4096) {
           ^
    cc1: all warnings being treated as errors /home/dario/Sources/xen/xen/xen.git/tools/blktap2/drivers/../../../tools/Rules.mk:89:
     recipe for target 'block-qcow.o' failed
    make[5]: *** [block-qcow.o] Error 1

    The proper behavior is to return upon allocation failure.
    About what to return, 0 seems the best option, looking
    at both the function and the call sites.

(this will have been exposed by the update to Jessie's compiler)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw

Ian Campbell writes ("Re: [Xen-devel] [xen-4.4-testing test] 66583: regressions - FAIL"):

Quoted 5 lines

I think we want to backport:

commit 345e44a85d71a1a910385f33c7f1ba3683026d18
Author: Dario Faggioli <[email protected]> Date:   Fri Jun 20 16:09:00 2014 +0200

This is already in stable-4.4, as 5e39eb05, and has been since June.

Ian.

#7 lore raw
Quoted 9 lines · Ian Jackson

Ian Campbell writes ("Re: [Xen-devel] [xen-4.4-testing test] 66583:
regressions - FAIL"):

Quoted 5 lines

I think we want to backport:

commit 345e44a85d71a1a910385f33c7f1ba3683026d18
Author: Dario Faggioli <[email protected]> Date:   Fri Jun 20 16:09:00 2014 +0200

This is already in stable-4.4, as 5e39eb05, and has been since June.

This failure is in build-*-prev, i.e. the backport needs to be to 4.3 (and presumably earlier). Sorry for not making that clear.

But it is already there as c591613f8c62, also from June.

So now I am rather perplexed by the build failures, which look identical to the ones in the commit message, modulo some line number skew.

http://logs.test-lab.xenproject.org/osstest/logs/66583/build-amd64-prev/5.ts-xen-build.log

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#8 lore raw
Quoted 15 lines · Ian Campbell
Quoted 9 lines · Ian Jackson

Ian Campbell writes ("Re: [Xen-devel] [xen-4.4-testing test] 66583:
regressions - FAIL"):

Quoted 5 lines

I think we want to backport:

commit 345e44a85d71a1a910385f33c7f1ba3683026d18
Author: Dario Faggioli <[email protected]> Date:   Fri Jun 20 16:09:00 2014 +0200

This is already in stable-4.4, as 5e39eb05, and has been since June.

This failure is in build-*-prev, i.e. the backport needs to be to 4.3 (and
presumably earlier). Sorry for not making that clear.

Quoted 8 lines

But it is already there as c591613f8c62, also from June.

So now I am rather perplexed by the build failures, which look identical to
the ones in the commit message, modulo some line number skew.

http://logs.test-lab.xenproject.org/osstest/logs/66583/build-amd64-
prev/5.ts-xen-build.log

FYI (and obviously) this also happened to the proper build jobs in 66638 which was a xen-4.3-testing flight. It was building 0574a773238f and:

$ git diff 0574a773238f origin/staging -- tools/blktap2/drivers/block-qcow.c
$

Where origin/staging is 8e4d18e113c9 and flight 67053 built that just fine.

So, wtf...

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#9 lore raw
Quoted 29 lines · Ian Campbell
Quoted 17 lines · Ian Campbell
Quoted 9 lines · Ian Jackson

Ian Campbell writes ("Re: [Xen-devel] [xen-4.4-testing test] 66583:
regressions - FAIL"):

Quoted 5 lines

I think we want to backport:

commit 345e44a85d71a1a910385f33c7f1ba3683026d18
Author: Dario Faggioli <[email protected]> Date:   Fri Jun 20 16:09:00 2014 +0200

This is already in stable-4.4, as 5e39eb05, and has been since June.

This failure is in build-*-prev, i.e. the backport needs to be to 4.3 (and
presumably earlier). Sorry for not making that clear.

But it is already there as c591613f8c62, also from June.

Quoted 7 lines

So now I am rather perplexed by the build failures, which look identical
to
the ones in the commit message, modulo some line number skew.

http://logs.test-lab.xenproject.org/osstest/logs/66583/build-amd64-
prev/5.ts-xen-build.log

FYI (and obviously) this also happened to the proper build jobs in 66638 which was a xen-4.3-testing flight. It was building 0574a773238f and:

Quoted 8 lines
$ git diff 0574a773238f origin/staging -- tools/blktap2/drivers/block-
qcow.c
$

Where origin/staging is 8e4d18e113c9 and flight 67053 built that just fine.

So, wtf...

Aha, this failure is in tools/blktap/drivers/block-qcow.c and not tools/blktap2/drivers/block-qcow.c.

345e44a85d71 was writing after blktap1 was remove from the tree so backporting it wouldn't have helped.

    $ git show 345e44a85d71a | patch tools/blktap/drivers/block-qcow.c
    patching file tools/blktap/drivers/block-qcow.c
    Hunk #1 succeeded at 440 (offset 13 lines).
    Hunk #2 succeeded at 614 (offset 13 lines).
    $ 

Seems like the way to go for all branches which still have blktap1 (4.5 and back, although it was disabled by default in 76c66c689b85 which was in 4.4.0-rc1.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by
#10 lore raw

Ian Campbell writes ("Re: [Xen-devel] [xen-4.4-testing test] 66583: regressions - FAIL"):

Quoted 2 lines

Aha, this failure is in tools/blktap/drivers/block-qcow.c and not tools/blktap2/drivers/block-qcow.c.

Well spotted.

Quoted 2 lines

345e44a85d71 was writing after blktap1 was remove from the tree so backporting it wouldn't have helped.

Right.

Quoted 9 lines
    $ git show 345e44a85d71a | patch tools/blktap/drivers/block-qcow.c
    patching file tools/blktap/drivers/block-qcow.c
    Hunk #1 succeeded at 440 (offset 13 lines).
    Hunk #2 succeeded at 614 (offset 13 lines).
    $ 

Seems like the way to go for all branches which still have blktap1 (4.5 and back, although it was disabled by default in 76c66c689b85 which was in 4.4.0-rc1.

I have done roughly this, to 4.3-4.5 inclusive.

Ian.

commit a64bfae49ae845ba4cb8cb6923fa08c41439872a

Author: Dario Faggioli <[email protected]>
Date:   Fri Jun 20 16:09:00 2014 +0200

blktap: Fix two 'maybe uninitialized' variables

[ Cross-ported to blktap1 from 345e44a85d71a
"blktap2: Fix two 'maybe uninitialized' variables" -iwj; Remainder of commit message is from blktap2's version. ]

for which gcc 4.9.0 complains about, like this:

block-qcow.c: In function `get_cluster_offset':
block-qcow.c:431:3: error: `tmp_ptr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
memcpy(tmp_ptr, l1_ptr, 4096);
^
block-qcow.c:606:7: error: `tmp_ptr2' may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (write(s->fd, tmp_ptr2, 4096) != 4096) {
^
cc1: all warnings being treated as errors /home/dario/Sources/xen/xen/xen.git/tools/blktap2/drivers/../../../tools/Rules.mk:89:
recipe for target 'block-qcow.o' failed
make[5]: *** [block-qcow.o] Error 1

The proper behavior is to return upon allocation failure. About what to return, 0 seems the best option, looking at both the function and the call sites.

Backport-requested-by Ian Campbell <[email protected]>
(cherry picked from commit 845e8c1653242bbd9b9de5a081182db0f3f39054)
(cherry picked from commit e003d429d8c63523df40663b4586c572ce796659)
tools/blktap/drivers/block-qcow.c +2 -0
index 0e4e9cf..8fb6023 100644
@@ -440,6 +440,7 @@ static uint64_t get_cluster_offset(struct tdqcow_state *s,
 
 		if (posix_memalign((void **)&tmp_ptr, 4096, 4096) != 0) {
 			DPRINTF("ERROR allocating memory for L1 table\n");
+                        return 0;
 		}
 		memcpy(tmp_ptr, l1_ptr, 4096);
 
@@ -613,6 +614,7 @@ found:
 		
 		if (posix_memalign((void **)&tmp_ptr2, 4096, 4096) != 0) {
 			DPRINTF("ERROR allocating memory for L1 table\n");
+                        return 0;
 		}
 		memcpy(tmp_ptr2, l2_ptr, 4096);
 		lseek(s->fd, l2_offset + (l2_sector << 12), SEEK_SET);