All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: kvm@vger.kernel.org
Subject: [Bug 42980] BUG in gfn_to_pfn_prot
Date: Wed, 28 Mar 2012 13:03:26 GMT	[thread overview]
Message-ID: <201203281303.q2SD3QhF032459@bugzilla.kernel.org> (raw)
In-Reply-To: <bug-42980-28872@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=42980


Avi Kivity <avi@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |avi@redhat.com




--- Comment #1 from Avi Kivity <avi@redhat.com>  2012-03-28 13:03:25 ---
   0:    89 d0                    mov    %edx,%eax
   2:    8d 4c ff 0c              lea    0xc(%rdi,%rdi,8),%ecx
   6:    4d 89 e0                 mov    %r12,%r8
   9:    48 d3 e8                 shr    %cl,%rax
   c:    4c 03 45 a8              add    -0x58(%rbp),%r8
  10:    25 ff 01 00 00           and    $0x1ff,%eax
  15:    41 39 f6                 cmp    %esi,%r14d
  18:    89 45 bc                 mov    %eax,-0x44(%rbp)
  1b:    89 c0                    mov    %eax,%eax
  1d:    49 8d 04 c0              lea    (%r8,%rax,8),%rax
  21:    48 89 45 b0              mov    %rax,-0x50(%rbp)
  25:    0f 84 e1 00 00 00        je     0x10c
  2b:    4c 8b 00                 mov    (%rax),%r8
  2e:    41 f6 c0 01              test   $0x1,%r8b
  32:    74 40                    je     0x74
  34:    4c 8b 0d 89 80 01 00     mov    0x18089(%rip),%r9        # 0x180c4
  3b:    4d 89 c2                 mov    %r8,%r10

Appears to be __direct_map()'s

        if (!is_shadow_present_pte(*iterator.sptep)) {
            u64 base_addr = iterator.addr;

%rax is 0xffff87ffffffffff. That is one less than the base of the direct map of
all physical memory.  So it looks like the code


static bool shadow_walk_okay(struct kvm_shadow_walk_iterator *iterator)
{
    if (iterator->level < PT_PAGE_TABLE_LEVEL)
        return false;

    iterator->index = SHADOW_PT_INDEX(iterator->addr, iterator->level);
    iterator->sptep    = ((u64 *)__va(iterator->shadow_addr)) +
iterator->index;
    return true;
}

saw iterator->shadow_addr == -1ULL.

That might be INVALID_PAGE assigned to pae_root (but that is masked out in
shadow_walk_init()) or a stray -1 due to a completely unrelated bug.

Anything interesting about how this was triggered?

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

  reply	other threads:[~2012-03-28 13:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 21:28 [Bug 42980] New: BUG in gfn_to_pfn_prot bugzilla-daemon
2012-03-28 13:03 ` bugzilla-daemon [this message]
2012-03-28 13:37 ` [Bug 42980] " bugzilla-daemon
2012-03-28 13:45 ` bugzilla-daemon
2012-03-28 13:49 ` bugzilla-daemon
2012-03-28 15:07 ` bugzilla-daemon
2012-05-10 10:53 ` bugzilla-daemon
2012-05-10 13:17 ` bugzilla-daemon
2012-05-10 13:30 ` bugzilla-daemon
2012-05-17 20:58 ` bugzilla-daemon
2012-06-16  3:16 ` bugzilla-daemon
2012-07-01  9:46 ` bugzilla-daemon
2012-08-15 21:58 ` bugzilla-daemon
2012-08-15 22:24 ` bugzilla-daemon
2012-08-15 22:34 ` bugzilla-daemon
2012-08-15 22:38 ` bugzilla-daemon
2012-08-15 22:47 ` bugzilla-daemon
2012-08-16  9:32 ` bugzilla-daemon
2012-11-17 22:00 ` bugzilla-daemon
2012-11-17 22:10 ` bugzilla-daemon
2012-11-18 14:15   ` Avi Kivity
2012-11-18 14:15 ` bugzilla-daemon
2012-11-18 17:06 ` bugzilla-daemon
2012-12-08 20:50 ` bugzilla-daemon
2014-06-25  2:11 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201203281303.q2SD3QhF032459@bugzilla.kernel.org \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.