From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Fri, 14 Sep 2012 07:08:30 +0000 Subject: Re: [patch 1/2] Staging: silicom: add some range checks to proc functions Message-Id: <20120914070830.GC13767@mwanda> List-Id: References: <20120914065600.GF11886@elgon.mountain> In-Reply-To: <20120914065600.GF11886@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org On Fri, Sep 14, 2012 at 09:56:00AM +0300, Dan Carpenter wrote: > If you tried to cat more than 255 characters (the last character is for > the terminator) to these proc files then it would corrupt kernel memory. > > Signed-off-by: Dan Carpenter Actually sorry for this, I meant to check first before sending. Is it possible to do a zero size write to a proc file? In sysfs it isn't but I'm not sure about proc. I may need to redo this. regards, dan carpenter