complete test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm
branch xen-unstable
xenbranch xen-unstable
job test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm testid debian-hvm-install
Tree: linux git://xenbits.xen.org/linux-pvops.git
Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git
Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.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: xen git://xenbits.xen.org/xen.git
Bug introduced: 0897514b4b376a167f968f79c6ea0dee1061458e
Bug not present: 4000a7c7d7b0e01837abd3918e393f289c07d68c Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/101803/
commit 0897514b4b376a167f968f79c6ea0dee1061458e
Author: Andrew Cooper <[email protected]>
Date: Wed Oct 26 10:34:21 2016 +0100
tools/oxenstored: Avoid allocating invalid transaction ids
The transaction id of 0 is reserved, meaning "not in a transaction". It is up to the xenstored server to allocate transaction ids. While oxenstored starts its ids at 1, but insufficient care is taken with truncation cases.
A 32bit oxenstored has an int with 31 bits of width, meaning that the transaction id will wrap around to 0 after 2 billion transactions.
A 64bit oxenstored has an int with 63 bits of width, meaning that once 4 billion transactions are used, the allocated id will be truncated when written into the uin32_t field in the ring. This causes the client to reply with the truncated id, breaking any further attempt to use any transactions.
Limit all transaction ids to the range between 1 and 0x7ffffffe. This is the best which can be done without making oxenstored depend on Stdint or Cstruct, yet still work for 32bit builds.
Also check that the proposed new transaction id isn't currently in use. For the first 2 billion transactions there is no chance of a collision, and after that, the chance is at most 20 (the default open transaction quota) in 2 billion.
For bisection revision-tuple graph see:
http://logs.test-lab.xenproject.org/osstest/results/bisect/xen-unstable/test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.debian-hvm-install.html
Revision IDs in each graph node refer, respectively, to the Trees above.
----------------------------------------
Running cs-bisection-step --graph-out=/home/logs/results/bisect/xen-unstable/test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.debian-hvm-install --summary-out=tmp/101803.bisection-summary --basis-template=101673 --blessings=real,real-bisect xen-unstable test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm debian-hvm-install
Searching for failure / basis pass:
101780 fail [host=nobling0] / 101673 [host=nobling1] 101654 [host=chardonnay0] 101644 [host=fiano1] 101626 [host=nocera0] 101601 [host=elbling1] 101590 [host=italia0] 101571 [host=elbling0] 101563 [host=pinot0] 101555 [host=chardonnay1] 101546 [host=italia1] 101533 [host=baroque0] 101510 [host=huxelrebe1] 101496 [host=fiano0] 101491 [host=baroque1] 101484 [host=chardonnay0] 101475 [host=huxelrebe0] 101440 [host=fiano1] 101429 [host=elbling1] 101415 [host=italia1] 101396 [host=italia0] 101383 [host=nobling1] 101379 [host=elbling0] 101372 [host=chardonnay1] 101364 ok.
Failure / basis pass flights: 101780 / 101364
(tree with no url: minios)
(tree with no url: ovmf)
(tree with no url: seabios)
Tree: linux git://xenbits.xen.org/linux-pvops.git
Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git
Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.git
Tree: qemuu git://xenbits.xen.org/qemu-xen.git
Tree: xen git://xenbits.xen.org/xen.git
Latest b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 35ac0c08178ac15565b32ca56b00fa5414f1d3b1
Basis pass b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 570117996772b762e9654e58e708943a4db68b4f 68dc7185cbffab34211c77339874f2ea517990fd
Generating revisions with ./adhoc-revtuple-generator git://xenbits.xen.org/linux-pvops.git#b65f2f457c49b2cfd7967c34b7a0b04c25587f13-b65f2f457c49b2cfd7967c34b7a0b04c25587f13 git://xenbits.xen.org/osstest/linux-firmware.git#c530a75c1e6a472b0eb9558310b518f0dfcd8860-c530a75c1e6a472b0eb9558310b518f0dfcd8860 git://xenbits.xen.org/qemu-xen-traditional.git#c4e0d84d3c92923fdbc7fa922638d54e5e834753-c4e0d84d3c92923fdbc7fa922638d54e5e834753 git://xenbits.xen.org/qemu-xen.git#570117996772b762e9654e58e708943a4db68b4f-6cfcdf037edadba984ccf8476b5d1e2a0940b789 git://xenbits.xen.org/xen.git#68dc7185cbffab34211c77339874f2ea517990fd-35ac0c08178ac15565b32ca56b00fa5414f1d3b1
Loaded 2004 nodes in revision graph
Searching for test results:
101364 pass b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 570117996772b762e9654e58e708943a4db68b4f 68dc7185cbffab34211c77339874f2ea517990fd
101372 [host=chardonnay1]
101379 [host=elbling0]
101383 [host=nobling1]
101415 [host=italia1]
101396 [host=italia0]
101429 [host=elbling1]
101440 [host=fiano1]
101475 [host=huxelrebe0]
101484 [host=chardonnay0]
101491 [host=baroque1]
101546 [host=italia1]
101496 [host=fiano0]
101533 [host=baroque0]
101510 [host=huxelrebe1]
101555 [host=chardonnay1]
101590 [host=italia0]
101563 [host=pinot0]
101571 [host=elbling0]
101601 [host=elbling1]
101626 [host=nocera0]
101654 [host=chardonnay0]
101644 [host=fiano1]
101673 [host=nobling1]
101698 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 e26722422764d3ddfe59e76f5efbd330f8f9288f
101780 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 35ac0c08178ac15565b32ca56b00fa5414f1d3b1
101790 pass b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 2f5a483928116781025d2334684e8a0c2eb8792e
101756 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 a418ec07cf2668197548c6503924139a2098e41d
101791 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 35ac0c08178ac15565b32ca56b00fa5414f1d3b1
101801 pass b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 4000a7c7d7b0e01837abd3918e393f289c07d68c
101793 pass b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 4000a7c7d7b0e01837abd3918e393f289c07d68c
101726 []
101803 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 0897514b4b376a167f968f79c6ea0dee1061458e
101794 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 1b843b2097e89d0fae18123cde88da9d167d9a0c
101786 pass b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 570117996772b762e9654e58e708943a4db68b4f 68dc7185cbffab34211c77339874f2ea517990fd
101787 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 a418ec07cf2668197548c6503924139a2098e41d
101797 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 0897514b4b376a167f968f79c6ea0dee1061458e
101789 pass b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 570117996772b762e9654e58e708943a4db68b4f 8b4664265bb398db4d5581959566a3f8036696ce
101798 pass b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 4000a7c7d7b0e01837abd3918e393f289c07d68c
101799 fail b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 0897514b4b376a167f968f79c6ea0dee1061458e
Searching for interesting versions
Result found: flight 101364 (pass), for basis pass
Result found: flight 101780 (fail), for basis failure
Repro found: flight 101786 (pass), for basis pass
Repro found: flight 101791 (fail), for basis failure
0 revisions at b65f2f457c49b2cfd7967c34b7a0b04c25587f13 c530a75c1e6a472b0eb9558310b518f0dfcd8860 c4e0d84d3c92923fdbc7fa922638d54e5e834753 6cfcdf037edadba984ccf8476b5d1e2a0940b789 4000a7c7d7b0e01837abd3918e393f289c07d68c
No revisions left to test, checking graph state.
Result found: flight 101793 (pass), for last pass
Result found: flight 101797 (fail), for first failure
Repro found: flight 101798 (pass), for last pass
Repro found: flight 101799 (fail), for first failure
Repro found: flight 101801 (pass), for last pass
Repro found: flight 101803 (fail), for first failure
*** Found and reproduced problem changeset ***
Bug is in tree: xen git://xenbits.xen.org/xen.git
Bug introduced: 0897514b4b376a167f968f79c6ea0dee1061458e
Bug not present: 4000a7c7d7b0e01837abd3918e393f289c07d68c Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/101803/
commit 0897514b4b376a167f968f79c6ea0dee1061458e
Author: Andrew Cooper <[email protected]>
Date: Wed Oct 26 10:34:21 2016 +0100
tools/oxenstored: Avoid allocating invalid transaction ids
The transaction id of 0 is reserved, meaning "not in a transaction". It is up to the xenstored server to allocate transaction ids. While oxenstored starts its ids at 1, but insufficient care is taken with truncation cases.
A 32bit oxenstored has an int with 31 bits of width, meaning that the transaction id will wrap around to 0 after 2 billion transactions.
A 64bit oxenstored has an int with 63 bits of width, meaning that once 4 billion transactions are used, the allocated id will be truncated when written into the uin32_t field in the ring. This causes the client to reply with the truncated id, breaking any further attempt to use any transactions.
Limit all transaction ids to the range between 1 and 0x7ffffffe. This is the best which can be done without making oxenstored depend on Stdint or Cstruct, yet still work for 32bit builds.
Also check that the proposed new transaction id isn't currently in use. For the first 2 billion transactions there is no chance of a collision, and after that, the chance is at most 20 (the default open transaction quota) in 2 billion.
Revision graph left in /home/logs/results/bisect/xen-unstable/test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.debian-hvm-install.{dot,ps,png,html,svg}.
----------------------------------------
101803: tolerable ALL FAIL
flight 101803 xen-unstable real-bisect [real]
http://logs.test-lab.xenproject.org/osstest/logs/101803/
Failures :-/ but no regressions.
Tests which did not succeed,
including tests which could not be run:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 9 debian-hvm-install fail baseline untested
jobs:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 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.xen.org/xen-devel
Quoted 19 lines · osstest service owner
branch xen-unstable
xenbranch xen-unstable
job test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm testid debian-hvm-installTree: linux
git://xenbits.xen.org/linux-pvops.git
Tree: linuxfirmwaregit://xenbits.xen.org/osstest/linux-firmware.git
Tree: qemugit://xenbits.xen.org/qemu-xen-traditional.git
Tree: qemuugit://xenbits.xen.org/qemu-xen.git
Tree: xengit://xenbits.xen.org/xen.git*** Found and reproduced problem changeset ***
Bug is in tree: xen
git://xenbits.xen.org/xen.git
Bug introduced:0897514b4b376a167f968f79c6ea0dee1061458e
Bug not present:4000a7c7d7b0e01837abd3918e393f289c07d68cLast fail repro: http://logs.test-lab.xenproject.org/osstest/logs/101803/
Quoted 5 lines
commit
0897514b4b376a167f968f79c6ea0dee1061458e
Author: Andrew Cooper <[email protected]>
Date: Wed Oct 26 10:34:21 2016 +0100
tools/oxenstored: Avoid allocating invalid transaction ids
I have to admit that I am staring at this report in belief, but it is apparently deterministic. It is very strange that only this job is affected; if there was actually a problem with xenstore transactions, I would have thought that there to be collateral damage everywhere.
Looking through the logs, there are several concerning things happening even in the success cases.
First:
(XEN) HVM1 restore: CPU 0
(XEN) avc: denied { getvcpucontext } for domid=0 target=2 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:dm_dom_t tclass=domain
The toolstack calls getvcpucontext as part of domain creation, and the XSM policy disallows this on dm_dom_t's. Interestingly, this failure doesn't appear to be fatal to domain creation, and it really ought to be. I expect there is also another bug lurking in the lower levels of the toolstack.
Second:
(XEN) Assertion '!in_irq()' failed at xmalloc_tlsf.c:577
(XEN) ----[ Xen-4.8.0-rc x86_64 debug=y Not tainted ]----
<snip>
(XEN) Xen call trace:
(XEN) [<ffff82d08013cf20>] _xmalloc+0x2f/0x313 (XEN) [<ffff82d08016a6f9>] services.c#context_struct_to_string+0x98/0x16d (XEN) [<ffff82d08016c0c2>] security_sid_to_context+0xd3/0xe7 (XEN) [<ffff82d080162596>] hooks.c#flask_show_security_evtchn+0x6f/0x87 (XEN) [<ffff82d08010819a>] event_channel.c#dump_evtchn_info+0x246/0x2cb (XEN) [<ffff82d080116271>] handle_keypress+0x8c/0xac (XEN) [<ffff82d08014600b>] console.c#__serial_rx+0x38/0x73 (XEN) [<ffff82d0801467ea>] console.c#serial_rx+0x8a/0x8f (XEN) [<ffff82d080148b17>] serial_rx_interrupt+0x90/0xac (XEN) [<ffff82d08014756a>] ns16550.c#ns16550_interrupt+0x57/0x71 (XEN) [<ffff82d0801839fb>] do_IRQ+0x56e/0x60f (XEN) [<ffff82d080254d67>] common_interrupt+0x67/0x70 (XEN) [<ffff82d0801cd586>] mwait-idle.c#mwait_idle+0x2af/0x2f9
The 'e' debugkey isn't safe to use when XSM is compiled in, as security_sid_to_context() allocates memory.
Furthermore, any unexpected host crashes should cause a failure of the test. This appears to have gone unnoticed because it happens in the capture-logs phase, with presumably sufficient timeouts that OSSTest doesn't notice that the host rebooted in the middle of log collection.
Third:
(d2) **************************
(d2) blk_open(/local/domain/2/device/vbd/5632) -> 6
(d2) xs_watch(device-model/1/logdirty/cmd, logdirty)
(d2) xs_watch(device-model/1/command, dm-command)
(d2) xs_watch(/local/domain/1/cpu, vcpu-set)
(d2) xs_read(/local/domain/0/backend/pci/1/0/msitranslate): ENOENT (d2) xs_read(/local/domain/0/backend/pci/1/0/power_mgmt): ENOENT (d2) open(/var/log/dm-serial.log) -> 7
(d2) fcntl(-1, 3, 3ffbc8/17775710)
(d2) fcntl(-1, 4, ffffffff/37777777777)
(d2) fcntl(7, 3, ffffffff/37777777777)
(d2) fcntl(7, 4, ffffffff/37777777777)
(d2) xs_watch(/local/domain/0/backend/console/1, be:0x14b1a7:1:0x186800) (d2) xs_directory(/local/domain/0/backend/console/1): EACCES (d2) xs_watch(/local/domain/0/backend/vkbd/1, be:0x1479ff:1:0x1867c0) (d2) xs_directory(/local/domain/0/backend/vkbd/1): EACCES
(d2) xs_read(device-model/1/disable_pf): ENOENT
(d2) xs_watch(/local/domain/1/log-throttling, /local/domain/1/log-throttling)
(d2) Thread "kbdfront": pointer: 0x0xb0182570, stack: 0x0xaa0000 (d2) ******************* FBFRONT for /local/domain/2/device/vfb/0 **********
The stub qemu attempts to read d1's backends. It probably shouldn't be doing that.
Comparing the xenstored-access logs, between the success and failure cases, it does appear that in the failing case, all transactions have the id 1. I am trying to debug why.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 41 lines · Andrew Cooper
Quoted 19 lines · osstest service owner
branch xen-unstable
xenbranch xen-unstable
job test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm testid debian-hvm-installTree: linux
git://xenbits.xen.org/linux-pvops.git
Tree: linuxfirmwaregit://xenbits.xen.org/osstest/linux-firmware.git
Tree: qemugit://xenbits.xen.org/qemu-xen-traditional.git
Tree: qemuugit://xenbits.xen.org/qemu-xen.git
Tree: xengit://xenbits.xen.org/xen.git*** Found and reproduced problem changeset ***
Bug is in tree: xen
git://xenbits.xen.org/xen.git
Bug introduced:0897514b4b376a167f968f79c6ea0dee1061458e
Bug not present:4000a7c7d7b0e01837abd3918e393f289c07d68cLast fail repro: http://logs.test-lab.xenproject.org/osstest/logs/101803/Quoted 5 lines
commit
0897514b4b376a167f968f79c6ea0dee1061458e
Author: Andrew Cooper <[email protected]>
Date: Wed Oct 26 10:34:21 2016 +0100
tools/oxenstored: Avoid allocating invalid transaction idsI have to admit that I am staring at this report in belief, but it is apparently deterministic. It is very strange that only this job is affected; if there was actually a problem with xenstore transactions, I would have thought that there to be collateral damage everywhere.
Looking through the logs, there are several concerning things happening even in the success cases.
First:
(XEN) HVM1 restore: CPU 0
(XEN) avc: denied { getvcpucontext } for domid=0 target=2 scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:dm_dom_t tclass=domain
Quoted 6 lines
The toolstack calls getvcpucontext as part of domain creation, and the XSM policy disallows this on dm_dom_t's. Interestingly, this failure doesn't appear to be fatal to domain creation, and it really ought to be. I expect there is also another bug lurking in the lower levels of the toolstack.
No idea about this at the moment.
Quoted 20 lines
Second:
(XEN) Assertion '!in_irq()' failed at xmalloc_tlsf.c:577
(XEN) ----[ Xen-4.8.0-rcx86_64debug=y Not tainted ]----
<snip>
(XEN) Xen call trace:(XEN) [<ffff82d08013cf20>] _xmalloc+0x2f/0x313 (XEN) [<ffff82d08016a6f9>] services.c#context_struct_to_string+0x98/0x16d (XEN) [<ffff82d08016c0c2>] security_sid_to_context+0xd3/0xe7 (XEN) [<ffff82d080162596>] hooks.c#flask_show_security_evtchn+0x6f/0x87 (XEN) [<ffff82d08010819a>] event_channel.c#dump_evtchn_info+0x246/0x2cb (XEN) [<ffff82d080116271>] handle_keypress+0x8c/0xac (XEN) [<ffff82d08014600b>] console.c#__serial_rx+0x38/0x73 (XEN) [<ffff82d0801467ea>] console.c#serial_rx+0x8a/0x8f (XEN) [<ffff82d080148b17>] serial_rx_interrupt+0x90/0xac (XEN) [<ffff82d08014756a>] ns16550.c#ns16550_interrupt+0x57/0x71 (XEN) [<ffff82d0801839fb>] do_IRQ+0x56e/0x60f (XEN) [<ffff82d080254d67>] common_interrupt+0x67/0x70 (XEN) [<ffff82d0801cd586>] mwait-idle.c#mwait_idle+0x2af/0x2f9
Quoted 3 lines
The 'e' debugkey isn't safe to use when XSM is compiled in, as
security_sid_to_context()allocates memory.
This can not be easily fixed without reworking the XSM framework API. I propose we just disable the offending snippet.
Quoted 29 lines
Furthermore, any unexpected host crashes should cause a failure of the test. This appears to have gone unnoticed because it happens in the capture-logs phase, with presumably sufficient timeouts that OSSTest doesn't notice that the host rebooted in the middle of log collection.
Third:
(d2) **************************
(d2)blk_open(/local/domain/2/device/vbd/5632)-> 6
(d2)xs_watch(device-model/1/logdirty/cmd, logdirty)
(d2)xs_watch(device-model/1/command, dm-command)
(d2)xs_watch(/local/domain/1/cpu, vcpu-set)
(d2)xs_read(/local/domain/0/backend/pci/1/0/msitranslate): ENOENT (d2)xs_read(/local/domain/0/backend/pci/1/0/power_mgmt): ENOENT (d2) open(/var/log/dm-serial.log) -> 7
(d2)fcntl(-1, 3, 3ffbc8/17775710)
(d2)fcntl(-1, 4, ffffffff/37777777777)
(d2)fcntl(7, 3, ffffffff/37777777777)
(d2)fcntl(7, 4, ffffffff/37777777777)
(d2)xs_watch(/local/domain/0/backend/console/1, be:0x14b1a7:1:0x186800)(d2)xs_directory(/local/domain/0/backend/console/1): EACCES (d2)xs_watch(/local/domain/0/backend/vkbd/1, be:0x1479ff:1:0x1867c0)(d2)xs_directory(/local/domain/0/backend/vkbd/1): EACCES
(d2)xs_read(device-model/1/disable_pf): ENOENT
(d2)xs_watch(/local/domain/1/log-throttling, /local/domain/1/log-throttling)
(d2) Thread "kbdfront": pointer: 0x0xb0182570, stack: 0x0xaa0000 (d2) ******************* FBFRONT for /local/domain/2/device/vfb/0 **********
Quoted 3 lines
The stub qemu attempts to read d1's backends. It probably shouldn't be doing that.
This is (supposedly) harmless, so a low priority bug.
Wei.
Quoted 6 lines
Comparing the xenstored-access logs, between the success and failure cases, it does appear that in the failing case, all transactions have the id 1. I am trying to debug why.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 19 lines · osstest service owner
branch xen-unstable
xenbranch xen-unstable
job test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm testid debian-hvm-installTree: linux
git://xenbits.xen.org/linux-pvops.git
Tree: linuxfirmwaregit://xenbits.xen.org/osstest/linux-firmware.git
Tree: qemugit://xenbits.xen.org/qemu-xen-traditional.git
Tree: qemuugit://xenbits.xen.org/qemu-xen.git
Tree: xengit://xenbits.xen.org/xen.git*** Found and reproduced problem changeset ***
Bug is in tree: xen
git://xenbits.xen.org/xen.git
Bug introduced:0897514b4b376a167f968f79c6ea0dee1061458e
Bug not present:4000a7c7d7b0e01837abd3918e393f289c07d68cLast fail repro: http://logs.test-lab.xenproject.org/osstest/logs/101803/
Quoted 5 lines
commit
0897514b4b376a167f968f79c6ea0dee1061458e
Author: Andrew Cooper <[email protected]>
Date: Wed Oct 26 10:34:21 2016 +0100
tools/oxenstored: Avoid allocating invalid transaction ids
Looking at xenstored-access.log before:
A8.1 write /vm/6fc3ae48-3d32-4710-aaac-55801d273773/uuid
6fc3ae48-3d32-4710-aaac-55801d273773
A8.1 write /vm/6fc3ae48-3d32-4710-aaac-55801d273773/name
debianhvm.guest.osstest
A8.1 write
/local/domain/1/control/platform-feature-multiprocessor-suspend 1
A8.1 write
/local/domain/1/control/platform-feature-xs_reset_watches 1
A8.1 commit A8 write /libxl/1/dm-version qemu_xen_traditional A8.2 write /local/domain/1/memory/static-max 5120000 A8.2 write /local/domain/1/memory/target 5115904 A8.2 write /local/domain/1/memory/videoram 4096 A8.2 write /local/domain/1/domid 1
And after:
A8.1 write /vm/0a3c1b35-33f8-432d-aab7-b98ea16d490f/uuid
0a3c1b35-33f8-432d-aab7-b98ea16d490f
A8.1 write /vm/0a3c1b35-33f8-432d-aab7-b98ea16d490f/name
debianhvm.guest.osstest
A8.1 write
/local/domain/1/control/platform-feature-multiprocessor-suspend 1
A8.1 write
/local/domain/1/control/platform-feature-xs_reset_watches 1
A8.1 commit A8 write /libxl/1/dm-version qemu_xen_traditional A8.1 write /local/domain/1/memory/static-max 5120000 A8.1 write /local/domain/1/memory/target 5115904 A8.1 write /local/domain/1/memory/videoram 4096 A8.1 write /local/domain/1/domid 1
the logging shows that almost all details are identical, other than the transaction ids on successive transactions.
Compiling oxenstored locally on my dev box (and in the XenServer build system) confirms that transaction ids behave as intended, i.e. ids are allocated incrementally, even with the identified changeset in place.
Where can I find the build logs for the bisection runs? I am fairly sure I have a newer version of Ocaml than comes by default in Debian, and I wonder whether I have hit some version-dependent behaviour.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Andrew Cooper writes ("Re: [Xen-devel] [xen-unstable bisection] complete test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm"):
Quoted 2 lines · osstest service owner
Quoted 1 line
Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/101803/
...
Quoted 3 lines
Where can I find the build logs for the bisection runs? I am fairly sure I have a newer version of Ocaml than comes by default in Debian, and I wonder whether I have hit some version-dependent behaviour.
Let me walk you through this.
We'll follow links starting with, say, the "Last fail repro" url, above:
http://logs.test-lab.xenproject.org/osstest/logs/101803/
Click on the test column heading to get to
Scroll down and you'll see Test control variables'. Select the build of interest, which I think is buildjob'. (There are also xenbuildjob' which is the hypervisor build, and kernbuildjob' which is, as might be expected, the kernel.) So click through to 101797.build-i386-xsm:
http://logs.test-lab.xenproject.org/osstest/logs/101797/build-i386-xsm/info.html
The main build log is that for the `xen-build' step:
http://logs.test-lab.xenproject.org/osstest/logs/101797/build-i386-xsm/4.ts-xen-build-prep.log
Finding out which ocaml was actually installed can sometimes be a little harder, because build host sharing means that the run of `host-build-prep' shown in that job might be a no-op, and there isn't an easy way to click through to the job that actually did the install (sorry).
However, it's easy enough to know what ocaml was probably installed:
looking at Test control variables' in the build job, you see all_host_suite' with value `jessie'. Then go here
https://www.debian.org/distrib/packages
and in the search package directories' enter ocaml' (searching within `stable', since jessie is currently stable);
https://packages.debian.org/search?keywords=ocaml&searchon=names&suite=stable§ion=all
Results: 4.01.0-5.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 40 lines · Ian Jackson
Andrew Cooper writes ("Re: [Xen-devel] [xen-unstable bisection] complete test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm"):
Quoted 2 lines · osstest service owner
Quoted 1 line
Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/101803/
...
Quoted 3 lines
Where can I find the build logs for the bisection runs? I am fairly sure I have a newer version of Ocaml than comes by default in Debian, and I wonder whether I have hit some version-dependent behaviour.
Let me walk you through this.
We'll follow links starting with, say, the "Last fail repro" url, above:
http://logs.test-lab.xenproject.org/osstest/logs/101803/
Click on the test column heading to get to
Scroll down and you'll see
Test control variables'. Select the build of interest, which I think isbuildjob'. (There are alsoxenbuildjob' which is the hypervisor build, andkernbuildjob' which is, as might be expected, the kernel.) So click through to 101797.build-i386-xsm:http://logs.test-lab.xenproject.org/osstest/logs/101797/build-i386-xsm/info.html
The main build log is that for the `xen-build' step:
http://logs.test-lab.xenproject.org/osstest/logs/101797/build-i386-xsm/4.ts-xen-build-prep.log
Finding out which ocaml was actually installed can sometimes be a little harder, because build host sharing means that the run of `host-build-prep' shown in that job might be a no-op, and there isn't an easy way to click through to the job that actually did the install (sorry).
However, it's easy enough to know what ocaml was probably installed:
looking atTest control variables' in the build job, you seeall_host_suite' with value `jessie'. Then go here
Quoted 8 lines
https://www.debian.org/distrib/packages
and in the
search package directories' enterocaml' (searching within `stable', since jessie is currently stable);https://packages.debian.org/search?keywords=ocaml&searchon=names&suite=stable§ion=all
Results: 4.01.0-5.
Thankyou. It turns out that I am using the same version of Ocaml.
However, looking at the build log, I think the fact that this is a 32bit build of the binary might be the salient point. Let me see if I can rebuild oxenstored as 32bit.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel