Skip to contentSkip to conversation

task_struct slab cache use after free in 2.5.66

DISCUSSION Manfred Spraul 2 participants 2 messages Mar 28, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines · Zwane
Quoted 3 lines · Andrew Morton

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

#1 lore raw
Quoted 7 lines · Manfred Spraul

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.

Ok i'm going to give Andrew's debug patch a go.

Signature · 1 line
function.linuxpower.ca