Skip to contentSkip to conversation

6821: regressions - FAIL

linux test xen.org 1 participant 1 message Apr 12, 2011

lore
Share & tools
lore

xen.org

author
#0 lore raw

flight 6821 linux real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/6821/

Regressions :-(

Tests which did not succeed and are blocking:
test-amd64-i386-xl-credit2 10 guest-saverestore fail REGR. vs. 6731

Tests which did not succeed, but are not blocking, including regressions (tests previously passed) regarded as allowable:

 test-amd64-amd64-win         16 leak-check/check             fail   never pass
 test-amd64-amd64-xl-win      13 guest-stop                   fail   never pass
 test-amd64-i386-rhel6hvm-amd  8 guest-saverestore            fail   never pass
 test-amd64-i386-rhel6hvm-intel  8 guest-saverestore            fail never pass
 test-amd64-i386-win-vcpus1   16 leak-check/check             fail   never pass
 test-amd64-i386-win          16 leak-check/check             fail   never pass
 test-amd64-i386-xl-win-vcpus1 13 guest-stop                   fail  never pass
 test-i386-i386-pair          16 guest-start                  fail    like 6731
 test-i386-i386-win           16 leak-check/check             fail   never pass
 test-i386-i386-xl-win        13 guest-stop                   fail   never pass

version targeted for testing:
linux ae333e97552c81ab10395ad1ffc6d6daaadb144a
baseline version:
linux bb1a15e55ec665a64c8a9c6bd699b1f16ac01ff4

------------------------------------------------------------
People who touched revisions under test:
Andrew Morton <[email protected]> Jeremy Fitzhardinge <[email protected]> Linus Torvalds <[email protected]>
------------------------------------------------------------

jobs:

 build-amd64                                                  pass     
 build-i386                                                   pass     
 build-amd64-pvops                                            pass     
 build-i386-pvops                                             pass     
 test-amd64-amd64-xl                                          pass     
 test-amd64-i386-xl                                           pass     
 test-i386-i386-xl                                            pass     
 test-amd64-i386-rhel6hvm-amd                                 fail     
 test-amd64-i386-xl-credit2                                   fail     
 test-amd64-i386-rhel6hvm-intel                               fail     
 test-amd64-i386-xl-multivcpu                                 pass     
 test-amd64-amd64-pair                                        pass     
 test-amd64-i386-pair                                         pass     
 test-i386-i386-pair                                          fail     
 test-amd64-amd64-pv                                          pass     
 test-amd64-i386-pv                                           pass     
 test-i386-i386-pv                                            pass     
 test-amd64-i386-win-vcpus1                                   fail     
 test-amd64-i386-xl-win-vcpus1                                fail     
 test-amd64-amd64-win                                         fail     
 test-amd64-i386-win                                          fail     
 test-i386-i386-win                                           fail     
 test-amd64-amd64-xl-win                                      fail     
 test-i386-i386-xl-win                                        fail     

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

Not pushing.

------------------------------------------------------------
commit ae333e97552c81ab10395ad1ffc6d6daaadb144a

Author: Jeremy Fitzhardinge <[email protected]>
Date:   Thu Dec 2 14:31:18 2010 -0800

vmalloc: eagerly clear ptes on vunmap

[ Backport from 64141da587241301ce8638cc945f8b67853156ec ]

On stock 2.6.37-rc4, running:

# mount lilith:/export /mnt/lilith
# find /mnt/lilith/ -type f -print0 | xargs -0 file

crashes the machine fairly quickly under Xen. Often it results in oops messages, but the couple of times I tried just now, it just hung quietly and made Xen print some rude messages:

(XEN) mm.c:2389:d80 Bad type (saw 7400000000000001 != exp 3000000000000000) for mfn 1d7058 (pfn 18fa7)
(XEN) mm.c:964:d80 Attempt to create linear p.t. with write perms (XEN) mm.c:2389:d80 Bad type (saw 7400000000000010 != exp 1000000000000000) for mfn 1d2e04 (pfn 1d1fb)
(XEN) mm.c:2965:d80 Error while pinning mfn 1d2e04

Which means the domain tried to map a pagetable page RW, which would allow it to map arbitrary memory, so Xen stopped it. This is because vm_unmap_ram() left some pages mapped in the vmalloc area after NFS had finished with them, and those pages got recycled as pagetable pages while still having these RW aliases.

Removing those mappings immediately removes the Xen-visible aliases, and so it has no problem with those pages being reused as pagetable pages. Deferring the TLB flush doesn't upset Xen because it can flush the TLB itself as needed to maintain its invariants.

When unmapping a region in the vmalloc space, clear the ptes immediately. There's no point in deferring this because there's no amortization benefit.

The TLBs are left dirty, and they are flushed lazily to amortize the cost of the IPIs.

This specific motivation for this patch is an oops-causing regression since 2.6.36 when using NFS under Xen, triggered by the NFS client's use of vm_map_ram() introduced in 56e4ebf877b60 ("NFS: readdir with vmapped pages") . XFS also uses vm_map_ram() and could cause similar problems.

Cc Nick Piggin <[email protected]>
Cc Bryan Schumaker <[email protected]>
Cc Trond Myklebust <[email protected]>
Cc Alex Elder <[email protected]>
Cc Dave Chinner <[email protected]>
Cc Christoph Hellwig <[email protected]>