public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: "liyu@WAN" <liyu@ccoss.com.cn>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [Question] Can we release vma that include code when one process is running?
Date: Thu, 15 Sep 2005 22:46:21 +1000	[thread overview]
Message-ID: <43296D1D.4000407@yahoo.com.au> (raw)
In-Reply-To: <432919C3.7060708@ccoss.com.cn>

liyu@WAN wrote:

>    It seem that code in other place jump here to enter kernel. this is 
> in a anonymous
> code area.
>    At first time, I think this SIGSEGV will trigger by anonymous code 
> that is swapped,
> but I wrote one specical condition check to filte out this sort of code, 
> IOW, I do
> not swap out it. but I still get SIGSEGV.
> 
>    May be, we can not be release the vma that include code? or, Is there 
> have some errors
> in my words for page fault?
> 

That's right, you cannot release the VMA if the application still
expects to use memory in that area. The page fault handler will
see that no VMA exists in that region and raise a SIGSEGV.

See arch/i386/mm/fault.c:do_page_fault


Nick

-- 
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com 

  reply	other threads:[~2005-09-15 12:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-15  6:50 [Question] Can we release vma that include code when one process is running? liyu@WAN
2005-09-15 12:46 ` Nick Piggin [this message]
2005-09-16  8:02   ` liyu@WAN
2005-09-18  8:15     ` Nick Piggin

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=43296D1D.4000407@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liyu@ccoss.com.cn \
    /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