linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Validating dynamically allocated kernel memory
@ 2001-06-11 11:41 kiran.thirumalai
  2001-06-11 12:54 ` Anil Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: kiran.thirumalai @ 2001-06-11 11:41 UTC (permalink / raw)
  To: linux-kernel

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

PS: My previous post went through minus subject due to oversight
:-(...Apologising and resending ....



^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Validating dynamically allocated kernel memory
  2001-06-11 11:41 Validating dynamically allocated kernel memory kiran.thirumalai
@ 2001-06-11 12:54 ` Anil Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Anil Kumar @ 2001-06-11 12:54 UTC (permalink / raw)
  To: kiran.thirumalai, linux-kernel

try "sys_mprotect" with neccessary bit patterns set i.e, read/write/exec
type of protection check.

anil

-----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: Monday, June 11, 2001 5:12 PM
To: linux-kernel@vger.kernel.org
Subject: Validating dynamically allocated kernel memory


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

PS: My previous post went through minus subject due to oversight
:-(...Apologising and resending ....


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-11 12:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-11 11:41 Validating dynamically allocated kernel memory kiran.thirumalai
2001-06-11 12:54 ` Anil Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).