Re: jffs2: -ENOSPC when truncating file?!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jörn
Date: Saturday, February 23, 2008 - 11:57 pm

On Sun, 24 February 2008 09:36:07 +0900, David Woodhouse wrote:

Could a naïve implementation of this get exploited by doing a large
number of truncates that just shave single bytes off various files?

Looks like the safe way to do it would be to write out a replacement
node for the truncated node, if the special case ever triggers.

Jörn

-- 
"[One] doesn't need to know [...] how to cause a headache in order
to take an aspirin."
-- Scott Culp, Manager of the Microsoft Security Response Center, 2001
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sat Feb 23, 4:57 pm)
Re: jffs2: -ENOSPC when truncating file?!, David Woodhouse, (Sat Feb 23, 5:36 pm)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Sat Feb 23, 11:57 pm)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sun Feb 24, 12:24 am)
Re: jffs2: -ENOSPC when truncating file?!, David Woodhouse, (Sun Feb 24, 3:57 am)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Sun Feb 24, 4:08 am)
Re: jffs2: -ENOSPC when truncating file?!, Jamie Lokier, (Sun Feb 24, 9:11 am)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sun Feb 24, 12:02 pm)
Re: jffs2: -ENOSPC when truncating file?!, Alexander Belyakov, (Mon Feb 25, 12:48 am)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Mon Mar 3, 5:15 am)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Mon Mar 3, 8:10 am)
Re: jffs2: -ENOSPC when truncating file?!, Alexander Belyakov, (Mon Mar 3, 9:09 am)