mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Anil Kumar" <anilk@subexgroup.com>
To: <kiran.thirumalai@in.ibm.com>, <linux-kernel@vger.kernel.org>
Subject: RE: Validation of memory allocated through kmalloc
Date: Tue, 3 Jul 2001 13:12:42 +0530	[thread overview]
Message-ID: <NEBBIIKAMMOCGCPMPBJOAEDMCHAA.anilk@subexgroup.com> (raw)
In-Reply-To: <20010610144501.A14342@localhost.in.ibm.com>

use sys_mprotect(...)  to verify the validity of the returned address.

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of
kiran.thirumalai@in.ibm.com
Sent: Sunday, June 10, 2001 2:45 PM
To: linux-kernel@vger.kernel.org
Subject: Validation of memory allocated through kmalloc


Hi,
Is there some kernel api to validate memory allocated using kmalloc.
Suppose, I allocate some memory using kmalloc and at a later point of
execution
I would like to validate if the memory allocated is not possibly freed by
some other thread.

Pls suggest a patch/pointers if any.
I also noticed a commented 'CONFIG_DEBUG_MALLOC' config option  (2.4.3
source),
It doesn't seem to be functional.  Any pointers towards the history behind
it would also be helpful.

Thanks in advance,
Kiran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


DISCLAIMER: This correspondence is confidential and intended for the named
recipient(s) only. If you are not the named recipient and receive this
correspondence in error, you must not copy, distribute or take any action in
reliance on it and you should delete it from your system and notify the
sender immediately. Unless otherwise stated, any views or opinions expressed
are solely those of the author and do not represent those of Subex Systems
Limited.



      reply	other threads:[~2001-07-03  7:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-10  9:15 kiran.thirumalai
2001-07-03  7:42 ` Anil Kumar [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=NEBBIIKAMMOCGCPMPBJOAEDMCHAA.anilk@subexgroup.com \
    --to=anilk@subexgroup.com \
    --cc=kiran.thirumalai@in.ibm.com \
    --cc=linux-kernel@vger.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®