public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* free_task_struct() called too early?
@ 2001-08-10 18:13 Chen, Kenneth W
  2001-08-10 18:57 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Chen, Kenneth W @ 2001-08-10 18:13 UTC (permalink / raw)
  To: linux-kernel

When a process terminates, it appears that the task structure is freed too
early.  There are memory references to the kernel task area (task_struct and
stack space) after free_task_struct(p) is called.

If I modify the following line in include/asm-i386/processor.h

#define free_task_struct(p)   free_pages((unsigned long) (p), 1) to
#define free_task_struct(p)   memset((void*) (p), 0xf, PAGE_SIZE*2);
free_pages((unsigned long) (p), 1)
then kernel will boot to init and lockup on when first task terminates.

Has anyone looked into or aware of this issue?


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <no.id>]

end of thread, other threads:[~2001-08-10 22:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-10 18:13 free_task_struct() called too early? Chen, Kenneth W
2001-08-10 18:57 ` Andrew Morton
     [not found] <no.id>
2001-08-10 22:43 ` Alan Cox
2001-08-10 22:57   ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox