From: Avi Kivity <avi@redhat.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Lee Schermerhorn <Lee.Schermerhorn@hp.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
stable <stable@kernel.org>, Rik van Riel <riel@redhat.com>,
David Howells <dhowells@redhat.com>
Subject: Re: [PATCH] Define a UNIQUE value for AS_UNEVICTABLE flag
Date: Thu, 02 Apr 2009 22:13:18 +0300 [thread overview]
Message-ID: <49D50E4E.20103@redhat.com> (raw)
In-Reply-To: <2f11576a0904021102r19165d89le45563b438621e08@mail.gmail.com>
KOSAKI Motohiro wrote:
> (cc to Avi)
>
>
>>> [PATCH] Define UNIQUE value of AS_UNEVICTABLE
>>>
>>> Needed in 2.6.28, 2.6.29, ...
>>>
>>> A new "address_space flag"--AS_MM_ALL_LOCKS--was defined to use the next
>>> available AS flag while the Unevictable LRU was under development. The
>>> Unevictable LRU was using the same flag and "no one" noticed. Current
>>> mainline, since 2.6.28, has same value for two symbolic flag names.
>>>
>> argh.
>>
>> What are the user-observable effects of the bug, and why didn't anyone
>> notice it until now?
>>
>
> AS_MM_ALL_LOCKS is used by mmu_notifier. it mean it is used by only kvm.
> In the other hand, AS_UNEVICTABLE mean unevictable shmem or ramfs.
>
> Then, if shmem opend process use ioctl(KVM_CREATE_VM), unevictable
> flag on the shmem accidentally turn off.
> but, fortunatelly, In modern desktop environment, only KVM control
> program use above ioctl. then, we can assume this doesn't use shmem
> and ramfs.
>
> Am I missing anything?
>
Qemu, the main kvm user, indeed doesn't use shm or ramfs. However it is
not inconceivable that one day it will, as a way to share memory among
guests.
It isn't surprising that no bug was observed, but let's fix it.
(If hugetlbfs is considered unevictable, then qemu can trigger this bug
today)
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
next prev parent reply other threads:[~2009-04-02 19:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 16:47 Lee Schermerhorn
2009-04-02 16:53 ` Andrew Morton
2009-04-02 18:02 ` KOSAKI Motohiro
2009-04-02 19:13 ` Avi Kivity [this message]
2009-04-02 18:08 ` Lee Schermerhorn
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=49D50E4E.20103@redhat.com \
--to=avi@redhat.com \
--cc=Lee.Schermerhorn@hp.com \
--cc=akpm@linux-foundation.org \
--cc=dhowells@redhat.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@redhat.com \
--cc=stable@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®