From: Andrew Morton <akpm@linux-foundation.org>
To: kvm-devel@lists.sourceforge.net
Cc: kees@outflux.net, bugme-daemon@bugzilla.kernel.org
Subject: Re: [Bugme-new] [Bug 10246] New: "in" after successful ioperm() results in SEGV after kvm use
Date: Fri, 14 Mar 2008 19:22:55 -0700 [thread overview]
Message-ID: <20080314192255.7c6e54fd.akpm@linux-foundation.org> (raw)
In-Reply-To: <bug-10246-10286@http.bugzilla.kernel.org/>
On Fri, 14 Mar 2008 18:48:15 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=10246
>
> Summary: "in" after successful ioperm() results in SEGV after kvm
> use
> Product: Memory Management
> Version: 2.5
> KernelVersion: 2.6.25-rc5
> Platform: All
> OS/Version: Linux
> Tree: Mainline
> Status: NEW
> Severity: normal
> Priority: P1
> Component: Other
> AssignedTo: akpm@osdl.org
> ReportedBy: kees@outflux.net
>
>
> Latest working kernel version: N/A
> Earliest failing kernel version: 2.6.24
> Distribution: Ubuntu, but tested with mainline
> Hardware Environment: intel mobo, Intel(R) Core(TM)2 Quad CPU Q6600@2.40GHz
> Software Environment: kvm 62 (x86_64)
> Problem Description:
>
> After a successful ioperm() call, otherwise valid "in" instructions will segv
> if a kvm VM has started.
>
> Steps to reproduce:
>
> 1) run attached reproducer prior to starting a kvm VM, results are:
> # ./ioperm
> getting 0x3b4-0x3df permission...
> fetching 0x3cc...
> ok: 1
>
> 2) start a kvm VM (bug exists only after actually starting a guest VM)
>
> 3) run reproducer, which now fails:
> # ./ioperm
> getting 0x3b4-0x3df permission...
> fetching 0x3cc...
> Segmentation fault (core dumped)
>
> Note that it does not always fail. Running within gdb seems to reduce the
> chances that it will fail. But when it does, it is clearly the "in" that is
> failing:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000004006e4 in inb ()
> (gdb) x/1i $pc
> 0x4006e4 <inb+12>: in (%dx),%al
> (gdb) info reg rdx
> rdx 0x3cc 972
>
> I have had the sense that running the CPUs at full load (niced) increases the
> chance for failure.
>
There is a testcase in the bugzilla report.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
parent reply other threads:[~2008-03-15 2:22 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <bug-10246-10286@http.bugzilla.kernel.org/>]
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=20080314192255.7c6e54fd.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=kees@outflux.net \
--cc=kvm-devel@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox