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



Sorry, I perhaps didn't said clearly.

As I knwon, if we remove vma from vma tree of task, the SIGSEGV must be got!
but I am not removed them , I just unmapped them. and the SIGSEGV occurs 
some times,
not alway.

I doublt on it.

Any clearly idea?

many thanks.

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


  reply	other threads:[~2005-09-16  8:02 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
2005-09-16  8:02   ` liyu@WAN [this message]
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=432A7C0F.8050903@ccoss.com.cn \
    --to=liyu@ccoss.com.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    /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