mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* task_struct slab cache use after free in 2.5.66
@ 2003-03-28  3:19 Zwane Mwaikambo
  2003-03-28  3:28 ` Zwane Mwaikambo
  2003-03-28  4:23 ` Andrew Morton
  0 siblings, 2 replies; 7+ messages in thread
From: Zwane Mwaikambo @ 2003-03-28  3:19 UTC (permalink / raw)
  To: Linux Kernel

I'm having a few stability problems with 2.5.66 under test loads. I 
can't quite parse the slab debugging stuff. Is this actually useful to 
anyone?

Slab corruption: start=c1f23380, expend=c1f2399f, problemat=c1f23388
Data: ********6A 
******************************************************************************************************* 
Next: ********************************
slab error in check_poison_obj(): cache `task_struct': object was modified after freeing
Call Trace:
 [<c0142953>] check_poison_obj+0x123/0x170
 [<c0144337>] kmem_cache_alloc+0x117/0x160
 [<c011fdde>] dup_task_struct+0x9e/0xc0
 [<c011fdde>] dup_task_struct+0x9e/0xc0
 [<c0120b82>] copy_process+0x82/0xe30
 [<c0126d3b>] do_softirq+0xbb/0xc0
 [<c012196f>] do_fork+0x3f/0x170
 [<c01077b7>] sys_fork+0x17/0x30
 [<c0109497>] syscall_call+0x7/0xb


-- 
function.linuxpower.ca

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: task_struct slab cache use after free in 2.5.66
@ 2003-03-28  6:25 Manfred Spraul
  2003-03-28  6:25 ` Zwane Mwaikambo
  0 siblings, 1 reply; 7+ messages in thread
From: Manfred Spraul @ 2003-03-28  6:25 UTC (permalink / raw)
  To: Zwane Mwaikambo; +Cc: linux-kernel, Andrew Morton

Zwane wrote:

>On Thu, 27 Mar 2003, Andrew Morton wrote:
>
>> That's the second report of this.  Someone did a put_task_struct against a
>> freed task_struct.  I'll cook up a debug patch to trap it.  Something like
>> this:
>
>Well there is also the detach_pid bug which suddenly vanished... I'm not 
>aware of anyone sending a patch for that (but i can't be certain i havent 
>been keeping up with lkml lately). I posted some debug information for 
>that one about a week ago:
>
>Pine.LNX.4.50.0303221152460.18911-100000@montezuma.mastecende.com
>
>Manfred?

I didn't send a patch. One thing I noticed from reading zwane's bug report is that the reference count of the task structure was off by at least 3:

	__detach_pid(p, PIDTYPE_PGID)

failed because the task structure was already filled with slab poison.

--
	Manfred







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

end of thread, other threads:[~2003-03-28  6:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28  3:19 task_struct slab cache use after free in 2.5.66 Zwane Mwaikambo
2003-03-28  3:28 ` Zwane Mwaikambo
2003-03-28  4:23 ` Andrew Morton
2003-03-28  4:25   ` Zwane Mwaikambo
2003-03-28  6:22     ` Zwane Mwaikambo
2003-03-28  6:25 Manfred Spraul
2003-03-28  6:25 ` Zwane Mwaikambo

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®