linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: BlaisorBlade <blaisorblade_spam@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Re: [patch 1/1] Fix malloc-use-vmalloc
Date: Mon, 26 Jul 2004 14:18:37 -0400	[thread overview]
Message-ID: <200407261818.i6QIIbfL001867@ccure.user-mode-linux.org> (raw)
In-Reply-To: Your message of "Thu, 22 Jul 2004 17:55:45 +0200." <200407221752.42186.blaisorblade_spam@yahoo.it>

blaisorblade_spam@yahoo.it said:
> 1) I think that the intervals don't include high_physmem and end_vm,
> so we  should have addr < ... instead of addr <=.

Yup.

> 2) Also, even worse, it seems ok until you read your comment. During
> the boot,  if random values are in the vars (and it's so until
> kmalloc_ok is turned on)  we can have malloc()ed memory thought of as
> kmalloc()ed or vmalloc()ed one,  and then leaked.

The comment was badly worded.

> 3) Solution to 2): if I am right about thing #1, then it should be
> enough to  set end_vm and high_physmem to 0 at startup (they are
> global vars, so it's  already true), once there are the < instead of
> <=. And don't say in the  comment that memory regions are not
> initialized. 

They are all globals, so they are initialized to 0.  It looks to me like
anything which hits that code before kmalloc is set up will correctly go
through the __real_free case.

				Jeff



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      reply	other threads:[~2004-07-26 17:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-04 10:56 [uml-devel] [patch 1/1] Fix malloc-use-vmalloc blaisorblade_spam
2004-07-13 17:57 ` [uml-devel] " Jeff Dike
2004-07-22 15:55   ` BlaisorBlade
2004-07-26 18:18     ` Jeff Dike [this message]

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=200407261818.i6QIIbfL001867@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=user-mode-linux-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