mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Potential DOS in load_elf_library?
@ 2005-03-18  8:15 Yichen Xie
  2005-03-18  8:42 ` Andrew Morton
  2005-03-18  8:52 ` Herbert Xu
  0 siblings, 2 replies; 5+ messages in thread
From: Yichen Xie @ 2005-03-18  8:15 UTC (permalink / raw)
  To: linux-kernel

Hi guys, I was looking at the load_elf_library function (fs/binfmt_elf.c) 
in 2.6.10, and noticed the following:

 	elf_phdata = (struct elf_phdr *) kmalloc(j, GFP_KERNEL);
 	...
 	while (elf_phdata->p_type != PT_LOAD) elf_phdata++;
 	...
 	kfree(elf_phdata);

Could this be problematic since the pointer being freed might be different 
from that returned from kmalloc?

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

end of thread, other threads:[~2005-03-18  9:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-18  8:15 Potential DOS in load_elf_library? Yichen Xie
2005-03-18  8:42 ` Andrew Morton
2005-03-18  8:52 ` Herbert Xu
2005-03-18  9:05   ` Andrew Morton
2005-03-18  9:09     ` Herbert Xu

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®