complete build-i386-xcpkern
branch xen-unstable
xen branch xen-unstable
job build-i386-xcpkern
test kernel-build
Tree: http://hg.uk.xensource.com/xen-unstable.hg
*** Found and reproduced problem changeset ***
Bug is in tree: http://hg.uk.xensource.com/xen-unstable.hg
Bug introduced: 5cd9612db2bb
Bug not present: aba70e59a90d
changeset: 22448:5cd9612db2bb user: Keir Fraser <[email protected]> date: Mon Nov 29 14:34:32 2010 +0000
x86-64: don't crash Xen upon direct pv guest access to GDT/LDT mapping area
handle_gdt_ldt_mapping_fault() is intended to deal with indirect accesses (i.e. those caused by descriptor loads) to the GDT/LDT mapping area only. While for 32-bit segment limits indeed prevent the function being entered for direct accesses (i.e. a #GP fault will be raised even before the address translation gets done, on 64-bit even user mode accesses would lead to control reaching the BUG_ON() at the beginning of that function.
Fortunately the fix is simple: Since the guest kernel runs in ring 3, any guest direct access will have the "user mode" bit set, whereas descriptor loads always do the translations to access the actual descriptors as kernel mode ones.
Further, relax the BUG_ON() in handle_gdt_ldt_mapping_fault() to a check-and-bail. This avoids any problems in future, if we don't execute x86_64 guest kernels in ring 3 (e.g., because we use a lightweight HVM container).
For bisection revision-tuple graph see:
http://www.chiark.greenend.org.uk/~xensrcts/results/bisect.xen-unstable.build-i386-xcpkern.kernel-build.html
Revision IDs in each graph node refer, respectively, to the Trees above.
----------------------------------------
Found failure, as expected, in flight 2861
Host specification list: host=gall-mite
Searching for basis pass: 2856.
(tree in basispass but not in latest: http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27.hg)
(tree in basispass but not in latest: http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27.pq.hg)
Tree: http://hg.uk.xensource.com/xen-unstable.hg
Latest 3afb5ecbf69f
Basis pass aba70e59a90d
Generating revisions with ./adhoc-revtuple-generator http://hg.uk.xensource.com/xen-unstable.hg#aba70e59a90d-3afb5ecbf69f
pulling from http://hg.uk.xensource.com/xen-unstable.hg
searching for changes
no changes found
pulling from http://hg.uk.xensource.com/xen-unstable.hg
searching for changes
no changes found
Loaded 1000 nodes in revision graph
Searching for test results:
2853 pass aba70e59a90d
2854 pass aba70e59a90d
2871 fail 3afb5ecbf69f
2872 fail 5cd9612db2bb
2873 fail 5cd9612db2bb
2855 pass aba70e59a90d
2849 pass aba70e59a90d
2861 fail 3afb5ecbf69f
2850 pass irrelevant
2856 pass aba70e59a90d
Searching for interesting versions
0 revisions at aba70e59a90d
No revisions left to test, checking graph state.
*** Found and reproduced problem changeset ***
Bug is in tree: http://hg.uk.xensource.com/xen-unstable.hg
Bug introduced: 5cd9612db2bb
Bug not present: aba70e59a90d
changeset: 22448:5cd9612db2bb user: Keir Fraser <[email protected]> date: Mon Nov 29 14:34:32 2010 +0000
x86-64: don't crash Xen upon direct pv guest access to GDT/LDT mapping area
handle_gdt_ldt_mapping_fault() is intended to deal with indirect accesses (i.e. those caused by descriptor loads) to the GDT/LDT mapping area only. While for 32-bit segment limits indeed prevent the function being entered for direct accesses (i.e. a #GP fault will be raised even before the address translation gets done, on 64-bit even user mode accesses would lead to control reaching the BUG_ON() at the beginning of that function.
Fortunately the fix is simple: Since the guest kernel runs in ring 3, any guest direct access will have the "user mode" bit set, whereas descriptor loads always do the translations to access the actual descriptors as kernel mode ones.
Further, relax the BUG_ON() in handle_gdt_ldt_mapping_fault() to a check-and-bail. This avoids any problems in future, if we don't execute x86_64 guest kernels in ring 3 (e.g., because we use a lightweight HVM container).
Revision graph left in /home/xc_osstest/results/bisect.xen-unstable.build-i386-xcpkern.kernel-build.{dot,ps,png,html}.
----------------------------------------
2873: ALL FAIL
flight 2873 xen-unstable real-bisect [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/2873/
tests which did not succeed:
build-i386-xcpkern 4 kernel-build fail
version targeted for testing:
baseline version:
jobs:
build-i386-xcpkern fail
-------------------------------------------------------------------------------
build-i386-xcpkern:
1 hosts-allocate pass 2 host-install(2) pass 3 host-build-prep pass 4 kernel-build fail
xen 22448:5cd9612db2bb
------------------------------------------------------------
sg-report-flight on woking.cam.xci-test.com
logs: /home/xc_osstest/logs
images: /home/xc_osstest/images
Logs, config files, etc. are available at
http://www.chiark.greenend.org.uk/~xensrcts/logs
Test harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary
Looks like cause of failure was in the kernel build. So this bisection result doesn't look very likely?
-- Keir
Quoted 130 lines · xen.org
branch xen-unstable
xen branch xen-unstable
job build-i386-xcpkern
test kernel-buildTree: http://hg.uk.xensource.com/xen-unstable.hg
*** Found and reproduced problem changeset ***
Bug is in tree: http://hg.uk.xensource.com/xen-unstable.hg
Bug introduced:5cd9612db2bb
Bug not present:aba70e59a90dchangeset: 22448:5cd9612db2bb user: Keir Fraser <[email protected]> date: Mon Nov 29 14:34:32 2010 +0000x86-64: don't crash Xen upon direct pv guest access to GDT/LDT mapping
area
handle_gdt_ldt_mapping_fault()is intended to deal with indirect accesses (i.e. those caused by descriptor loads) to the GDT/LDT mapping area only. While for 32-bit segment limits indeed prevent the function being entered for direct accesses (i.e. a #GP fault will be raised even before the address translation gets done, on 64-bit even user mode accesses would lead to control reaching theBUG_ON()at the beginning of that function.Fortunately the fix is simple: Since the guest kernel runs in ring 3, any guest direct access will have the "user mode" bit set, whereas descriptor loads always do the translations to access the actual descriptors as kernel mode ones.
Signed-off-by Jan Beulich <[email protected]>Further, relax the
BUG_ON()inhandle_gdt_ldt_mapping_fault()to a check-and-bail. This avoids any problems in future, if we don't executex86_64guest kernels in ring 3 (e.g., because we use a lightweight HVM container).Signed-off-by Keir Fraser <[email protected]>For bisection revision-tuple graph see:
http://www.chiark.greenend.org.uk/~xensrcts/results/bisect.xen-unstable.build-
i386-xcpkern.kernel-build.html
Revision IDs in each graph node refer, respectively, to the Trees above.----------------------------------------
Found failure, as expected, in flight 2861 Host specification list: host=gall-mite Searching for basis pass: 2856.
(tree in basispass but not in latest:
http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27.hg)
(tree in basispass but not in latest:
http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27.pq.hg)
Tree: http://hg.uk.xensource.com/xen-unstable.hg
Latest3afb5ecbf69f
Basis passaba70e59a90d
Generating revisions with ./adhoc-revtuple-generator
http://hg.uk.xensource.com/xen-unstable.hg#aba70e59a90d-3afb5ecbf69f
pulling from http://hg.uk.xensource.com/xen-unstable.hg
searching for changes
no changes found
pulling from http://hg.uk.xensource.com/xen-unstable.hg
searching for changes
no changes found
Loaded 1000 nodes in revision graph
Searching for test results:
2853 passaba70e59a90d
2854 passaba70e59a90d
2871 fail3afb5ecbf69f
2872 fail5cd9612db2bb
2873 fail5cd9612db2bb
2855 passaba70e59a90d
2849 passaba70e59a90d
2861 fail3afb5ecbf69f
2850 pass irrelevant
2856 passaba70e59a90d
Searching for interesting versions
0 revisions ataba70e59a90d
No revisions left to test, checking graph state.*** Found and reproduced problem changeset ***
Bug is in tree: http://hg.uk.xensource.com/xen-unstable.hg
Bug introduced:5cd9612db2bb
Bug not present:aba70e59a90dchangeset: 22448:5cd9612db2bb user: Keir Fraser <[email protected]> date: Mon Nov 29 14:34:32 2010 +0000x86-64: don't crash Xen upon direct pv guest access to GDT/LDT mapping
area
handle_gdt_ldt_mapping_fault()is intended to deal with indirect accesses (i.e. those caused by descriptor loads) to the GDT/LDT mapping area only. While for 32-bit segment limits indeed prevent the function being entered for direct accesses (i.e. a #GP fault will be raised even before the address translation gets done, on 64-bit even user mode accesses would lead to control reaching theBUG_ON()at the beginning of that function.Fortunately the fix is simple: Since the guest kernel runs in ring 3, any guest direct access will have the "user mode" bit set, whereas descriptor loads always do the translations to access the actual descriptors as kernel mode ones.
Signed-off-by Jan Beulich <[email protected]>Further, relax the
BUG_ON()inhandle_gdt_ldt_mapping_fault()to a check-and-bail. This avoids any problems in future, if we don't executex86_64guest kernels in ring 3 (e.g., because we use a lightweight HVM container).Signed-off-by Keir Fraser <[email protected]>Revision graph left in
/home/xc_osstest/results/bisect.xen-unstable.build-i386-xcpkern.kernel-build.{dot,ps,png,html}.
----------------------------------------
2873: ALL FAILflight 2873 xen-unstable real-bisect [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/2873/
Quoted 10 lines
tests which did not succeed:
build-i386-xcpkern 4 kernel-build failversion targeted for testing:
baseline version:jobs:
build-i386-xcpkern fail
------------------------------------------------------------------------------> -
Quoted 23 lines
build-i386-xcpkern:
1 hosts-allocate pass 2 host-install(2) pass 3 host-build-prep pass 4 kernel-build failxen 22448:5cd9612db2bb
------------------------------------------------------------
sg-report-flight on woking.cam.xci-test.com
logs:/home/xc_osstest/logs
images:/home/xc_osstest/imagesLogs, config files, etc. are available at
http://www.chiark.greenend.org.uk/~xensrcts/logsTest harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Looks like cause of failure was in the kernel build. So this bisection result doesn't look very likely?
If it failed in a guest running on the new hypervisor, this might still indicate a problem with the change, but the log doesn't provide any helpful detail (it's the "hg clone" of a 2.6.27 tree that causes a Python exception, but that can't be connected to the c/s in question without further information).
Jan
Quoted 174 lines · xen.org
Quoted 131 lines
branch xen-unstable
xen branch xen-unstable
job build-i386-xcpkern
test kernel-buildTree: http://hg.uk.xensource.com/xen-unstable.hg
*** Found and reproduced problem changeset ***
Bug is in tree: http://hg.uk.xensource.com/xen-unstable.hg
Bug introduced:5cd9612db2bb
Bug not present:aba70e59a90dchangeset: 22448:5cd9612db2bb user: Keir Fraser <[email protected]> date: Mon Nov 29 14:34:32 2010 +0000x86-64: don't crash Xen upon direct pv guest access to GDT/LDT mapping
area
handle_gdt_ldt_mapping_fault()is intended to deal with indirect accesses (i.e. those caused by descriptor loads) to the GDT/LDT mapping area only. While for 32-bit segment limits indeed prevent the function being entered for direct accesses (i.e. a #GP fault will be raised even before the address translation gets done, on 64-bit even user mode accesses would lead to control reaching theBUG_ON()at the beginning of that function.Fortunately the fix is simple: Since the guest kernel runs in ring 3, any guest direct access will have the "user mode" bit set, whereas descriptor loads always do the translations to access the actual descriptors as kernel mode ones.
Signed-off-by Jan Beulich <[email protected]>Further, relax the
BUG_ON()inhandle_gdt_ldt_mapping_fault()to a check-and-bail. This avoids any problems in future, if we don't executex86_64guest kernels in ring 3 (e.g., because we use a lightweight HVM container).Signed-off-by Keir Fraser <[email protected]>For bisection revision-tuple graph see:
http://www.chiark.greenend.org.uk/~xensrcts/results/bisect.xen-unstable.build-
i386-xcpkern.kernel-build.html
Revision IDs in each graph node refer, respectively, to the Trees above.----------------------------------------
Found failure, as expected, in flight 2861 Host specification list: host=gall-mite Searching for basis pass: 2856.
(tree in basispass but not in latest:
http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27.hg)
(tree in basispass but not in latest:
http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27.pq.hg)
Tree: http://hg.uk.xensource.com/xen-unstable.hg
Latest3afb5ecbf69f
Basis passaba70e59a90d
Generating revisions with ./adhoc-revtuple-generator
http://hg.uk.xensource.com/xen-unstable.hg#aba70e59a90d-3afb5ecbf69f
pulling from http://hg.uk.xensource.com/xen-unstable.hg
searching for changes
no changes found
pulling from http://hg.uk.xensource.com/xen-unstable.hg
searching for changes
no changes found
Loaded 1000 nodes in revision graph
Searching for test results:
2853 passaba70e59a90d
2854 passaba70e59a90d
2871 fail3afb5ecbf69f
2872 fail5cd9612db2bb
2873 fail5cd9612db2bb
2855 passaba70e59a90d
2849 passaba70e59a90d
2861 fail3afb5ecbf69f
2850 pass irrelevant
2856 passaba70e59a90d
Searching for interesting versions
0 revisions ataba70e59a90d
No revisions left to test, checking graph state.*** Found and reproduced problem changeset ***
Bug is in tree: http://hg.uk.xensource.com/xen-unstable.hg
Bug introduced:5cd9612db2bb
Bug not present:aba70e59a90dchangeset: 22448:5cd9612db2bb user: Keir Fraser <[email protected]> date: Mon Nov 29 14:34:32 2010 +0000x86-64: don't crash Xen upon direct pv guest access to GDT/LDT mapping
area
handle_gdt_ldt_mapping_fault()is intended to deal with indirect accesses (i.e. those caused by descriptor loads) to the GDT/LDT mapping area only. While for 32-bit segment limits indeed prevent the function being entered for direct accesses (i.e. a #GP fault will be raised even before the address translation gets done, on 64-bit even user mode accesses would lead to control reaching theBUG_ON()at the beginning of that function.Fortunately the fix is simple: Since the guest kernel runs in ring 3, any guest direct access will have the "user mode" bit set, whereas descriptor loads always do the translations to access the actual descriptors as kernel mode ones.
Signed-off-by Jan Beulich <[email protected]>Further, relax the
BUG_ON()inhandle_gdt_ldt_mapping_fault()to a check-and-bail. This avoids any problems in future, if we don't executex86_64guest kernels in ring 3 (e.g., because we use a lightweight HVM container).Signed-off-by Keir Fraser <[email protected]>Revision graph left in
/home/xc_osstest/results/bisect.xen-unstable.build-i386-xcpkern.kernel-build.{dot,ps,png,html}.
----------------------------------------
2873: ALL FAILflight 2873 xen-unstable real-bisect [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/2873/Quoted 10 lines
tests which did not succeed:
build-i386-xcpkern 4 kernel-build failversion targeted for testing:
baseline version:jobs:
build-i386-xcpkern fail------------------------------------------------------------------------------> -
Quoted 15 lines
build-i386-xcpkern:
1 hosts-allocate pass 2 host-install(2) pass 3 host-build-prep pass 4 kernel-build failxen 22448:5cd9612db2bb
------------------------------------------------------------
sg-report-flight on woking.cam.xci-test.com
logs:/home/xc_osstest/logs
images:/home/xc_osstest/imagesLogs, config files, etc. are available at
http://www.chiark.greenend.org.uk/~xensrcts/logsQuoted 8 lines
Test harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Ian Jackson writes ("[xen-unstable bisection] complete build-i386-xcpkern"):
Quoted 8 lines
branch xen-unstable
xen branch xen-unstable
job build-i386-xcpkern
test kernel-buildTree: http://hg.uk.xensource.com/xen-unstable.hg
*** Found and reproduced problem changeset ***
...
Quoted 3 lines
changeset: 22448:5cd9612db2bb user: Keir Fraser <[email protected]> date: Mon Nov 29 14:34:32 2010 +0000
This is a lie. The real problem was that the internal hg server was down.
Ian.