public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* bug report: mem_write
@ 2006-08-24  8:25 Amnon Shiloh
  2006-08-24 10:35 ` Gerard J Snitselaar
  2006-08-24 14:00 ` [2.6.18 patch] fix mem_write return value (was: Re: bug report: mem_write) Frederik Deweerdt
  0 siblings, 2 replies; 6+ messages in thread
From: Amnon Shiloh @ 2006-08-24  8:25 UTC (permalink / raw)
  To: linux-kernel

Hi,

Alright, I know that "mem_write" (fs/proc/base.c) is a "security hazard",
but I need to use it anyway (as super-user only), and find it broken,
somewhere between Linux-2.6.17 and Linux-2.6.18-rc4.

The point is that in the beginning of the routine, "copied" is set to 0,
but it is no good because in lines 805 and 812 it is set to other values.
Finally, the routine returns as if it copied 12 (=ENOMEM) bytes less than
it actually did.

Amnon.


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

end of thread, other threads:[~2006-08-25  1:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24  8:25 bug report: mem_write Amnon Shiloh
2006-08-24 10:35 ` Gerard J Snitselaar
2006-08-24 14:00 ` [2.6.18 patch] fix mem_write return value (was: Re: bug report: mem_write) Frederik Deweerdt
2006-08-24 16:33   ` Eric W. Biederman
2006-08-24 22:07     ` Frederik Deweerdt
2006-08-25  1:05       ` Amnon Shiloh

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