Skip to contentSkip to conversation

complete build-amd64-xen-freebsd

freebsd-master bisection osstest service owner 1 participant 1 message Apr 27, 2019

lore
Share & tools
lore
#0 lore raw

branch xen-unstable
xenbranch xen-unstable
job build-amd64-xen-freebsd
testid host-install(5)

Tree: freebsd git://github.com/freebsd/freebsd.git
Tree: qemuu git://xenbits.xen.org/qemu-xen.git
Tree: xen git://xenbits.xen.org/xen.git

*** Found and reproduced problem changeset ***

Bug is in tree: freebsd git://github.com/freebsd/freebsd.git
Bug introduced: d61e108233bfdb3dfc507938f2a839b9884f053d
Bug not present: 070cf1ede1850d8c1824181e258b6ec1ac293255 Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/135357/

commit d61e108233bfdb3dfc507938f2a839b9884f053d
Author: kevans <[email protected]>
Date: Thu Apr 25 12:44:08 2019 +0000

tun/tap: close race between destroy/ioctl handler

It seems that there should be a better way to handle this, but this seems to be the more common approach and it should likely get replaced in all of the places it happens... Basically, thread 1 is in the process of destroying the tun/tap while thread 2 is executing one of the ioctls that requires the tun/tap mutex and the mutex is destroyed before the ioctl handler can acquire it.

This is only one of the races described/found in PR 233955.

PR: 233955
Reviewed by: ae
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20027

For bisection revision-tuple graph see:
http://logs.test-lab.xenproject.org/osstest/results/bisect/freebsd-master/build-amd64-xen-freebsd.host-install(5).html
Revision IDs in each graph node refer, respectively, to the Trees above.

----------------------------------------
Running cs-bisection-step '--graph-out=/home/logs/results/bisect/freebsd-master/build-amd64-xen-freebsd.host-install(5)' --summary-out=tmp/135357.bisection-summary --basis-template=135233 --blessings=real,real-bisect freebsd-master build-amd64-xen-freebsd 'host-install(5)'
Searching for failure / basis pass:
135317 fail [host=godello1] / 135233 ok.
Failure / basis pass flights: 135317 / 135233
(tree in basispass but not in latest: seabios)
Tree: freebsd git://github.com/freebsd/freebsd.git
Tree: qemuu git://xenbits.xen.org/qemu-xen.git
Tree: xen git://xenbits.xen.org/xen.git
Latest 4284b348ee30b1fa32b59632063e08537834f86b de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b
Basis pass b58321507702a1125aed58ddc320b560b1bffc71 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b
Generating revisions with ./adhoc-revtuple-generator git://github.com/freebsd/freebsd.git#b58321507702a1125aed58ddc320b560b1bffc71-4284b348ee30b1fa32b59632063e08537834f86b git://xenbits.xen.org/qemu-xen.git#de5b678ca4dcdfa83e322491d478d66df56c1986-de5b678ca4dcdfa83e322491d478d66df56c1986 git://xenbits.xen.org/xen.git#cb70a26f78848fe45f593f7ebc9cfaac760a791b-cb70a26f78848fe45f593f7ebc9cfaac760a791b
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
error: The last gc run reported the following. Please correct the root cause
and remove gc.log.
Automatic cleanup will not be performed until the file is removed.

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping.
error: The last gc run reported the following. Please correct the root cause and remove gc.log.
Automatic cleanup will not be performed until the file is removed.

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

Use of uninitialized value $parents in array dereference at ./adhoc-revtuple-generator line 465.
Use of uninitialized value in concatenation (.) or string at ./adhoc-revtuple-generator line 465.
Use of uninitialized value $parents in array dereference at ./adhoc-revtuple-generator line 465.
Use of uninitialized value in concatenation (.) or string at ./adhoc-revtuple-generator line 465.
Loaded 1012 nodes in revision graph
Searching for test results:
135233 pass b58321507702a1125aed58ddc320b560b1bffc71 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135334 pass b58321507702a1125aed58ddc320b560b1bffc71 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135317 fail 4284b348ee30b1fa32b59632063e08537834f86b de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135335 fail 4284b348ee30b1fa32b59632063e08537834f86b de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135338 fail c438332a2269e86193bd40cd6553373617de2be0 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135339 pass e8c3f745e387efdf46ee483db6427a7aad75f9d6 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135342 pass 070cf1ede1850d8c1824181e258b6ec1ac293255 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135347 fail 9fa301b5e86ec7c2e1a353524120334e90e91073 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135348 fail d61e108233bfdb3dfc507938f2a839b9884f053d de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135352 pass 070cf1ede1850d8c1824181e258b6ec1ac293255 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135353 fail d61e108233bfdb3dfc507938f2a839b9884f053d de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135356 pass 070cf1ede1850d8c1824181e258b6ec1ac293255 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b 135357 fail d61e108233bfdb3dfc507938f2a839b9884f053d de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b
Searching for interesting versions
Result found: flight 135233 (pass), for basis pass
Result found: flight 135317 (fail), for basis failure
Repro found: flight 135334 (pass), for basis pass
Repro found: flight 135335 (fail), for basis failure
0 revisions at 070cf1ede1850d8c1824181e258b6ec1ac293255 de5b678ca4dcdfa83e322491d478d66df56c1986 cb70a26f78848fe45f593f7ebc9cfaac760a791b
No revisions left to test, checking graph state.
Result found: flight 135342 (pass), for last pass
Result found: flight 135348 (fail), for first failure
Repro found: flight 135352 (pass), for last pass
Repro found: flight 135353 (fail), for first failure
Repro found: flight 135356 (pass), for last pass
Repro found: flight 135357 (fail), for first failure

*** Found and reproduced problem changeset ***

Bug is in tree: freebsd git://github.com/freebsd/freebsd.git
Bug introduced: d61e108233bfdb3dfc507938f2a839b9884f053d
Bug not present: 070cf1ede1850d8c1824181e258b6ec1ac293255 Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/135357/

Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping.
error: The last gc run reported the following. Please correct the root cause and remove gc.log.
Automatic cleanup will not be performed until the file is removed.

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

commit d61e108233bfdb3dfc507938f2a839b9884f053d
Author: kevans <[email protected]>
Date: Thu Apr 25 12:44:08 2019 +0000

tun/tap: close race between destroy/ioctl handler

It seems that there should be a better way to handle this, but this seems to be the more common approach and it should likely get replaced in all of the places it happens... Basically, thread 1 is in the process of destroying the tun/tap while thread 2 is executing one of the ioctls that requires the tun/tap mutex and the mutex is destroyed before the ioctl handler can acquire it.

This is only one of the races described/found in PR 233955.

PR: 233955
Reviewed by: ae
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20027

Revision graph left in /home/logs/results/bisect/freebsd-master/build-amd64-xen-freebsd.host-install(5).{dot,ps,png,html,svg}.
----------------------------------------
135357: tolerable ALL FAIL

flight 135357 freebsd-master real-bisect [real]
http://logs.test-lab.xenproject.org/osstest/logs/135357/

Failures :-/ but no regressions.

Tests which did not succeed,
including tests which could not be run:
build-amd64-xen-freebsd 5 host-install(5) fail baseline untested

jobs:
build-amd64-xen-freebsd fail

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

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel