login
Header Space

 
 

Re: file offset corruption on 32-bit machines?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Lennart Sorensen <lsorense@...>
Cc: Bodo Eggert <7eggert@...>, Diego Calleja <diegocg@...>, Jiri Kosina <jkosina@...>, Michal Hocko <mhocko@...>, Meelis Roos <mroos@...>, Linux Kernel list <linux-kernel@...>, <linux-fsdevel@...>
Date: Monday, April 14, 2008 - 12:53 pm

On Mon 14-04-08 12:22:02, Lennart Sorensen wrote:
  Well, but imagine you have a file /proc/my_secret_file from which you
are able to read from position A:a and B:b but not from position
A:b. Concievably, checks for the file position could be bypassed because of
this race... I know this is kind of dumb example but I can imagine someone
can eventually find something like this. So I guess one spin lock/unlock
pair is a price worth paying in the callpath which is quite long anyway.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: file offset corruption on 32-bit machines?, Bodo Eggert, (Fri Apr 11, 8:24 am)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Fri Apr 11, 9:55 am)
Re: file offset corruption on 32-bit machines?, Jan Kara, (Mon Apr 14, 12:20 pm)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Mon Apr 14, 12:22 pm)
Re: file offset corruption on 32-bit machines?, Jan Kara, (Mon Apr 14, 12:53 pm)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Mon Apr 14, 1:06 pm)
Re: file offset corruption on 32-bit machines?, Jan Kara, (Mon Apr 14, 3:03 pm)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Mon Apr 14, 3:29 pm)
Re: file offset corruption on 32-bit machines?, Pavel Machek, (Tue Apr 15, 4:57 am)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Tue Apr 15, 11:32 am)
Re: file offset corruption on 32-bit machines?, Pavel Machek, (Tue Apr 15, 1:34 pm)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Tue Apr 15, 2:24 pm)
Re: file offset corruption on 32-bit machines?, Pavel Machek, (Tue Apr 15, 3:12 pm)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Tue Apr 15, 3:49 pm)
Re: file offset corruption on 32-bit machines?, Pavel Machek, (Tue Apr 15, 4:06 pm)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Tue Apr 15, 4:29 pm)
Re: file offset corruption on 32-bit machines?, Bryan Henderson, (Tue Apr 15, 6:11 pm)
Re: file offset corruption on 32-bit machines?, Jamie Lokier, (Wed Apr 16, 5:40 am)
Re: file offset corruption on 32-bit machines?, Peter Zijlstra, (Tue Apr 15, 4:28 pm)
Re: file offset corruption on 32-bit machines?, Pavel Machek, (Wed Apr 16, 4:15 am)
Re: file offset corruption on 32-bit machines?, Alan Cox, (Wed Apr 16, 6:54 am)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Wed Apr 16, 9:57 am)
Re: file offset corruption on 32-bit machines?, Peter Zijlstra, (Wed Apr 16, 4:20 am)
Re: file offset corruption on 32-bit machines?, Jan Kara, (Mon Apr 14, 3:42 pm)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Mon Apr 14, 3:45 pm)
Re: file offset corruption on 32-bit machines?, Alan Cox, (Mon Apr 14, 12:54 pm)
Re: file offset corruption on 32-bit machines?, Alexey Dobriyan, (Mon Apr 14, 2:34 pm)
Re: file offset corruption on 32-bit machines?, Bryan Henderson, (Fri Apr 11, 12:59 pm)
Re: file offset corruption on 32-bit machines?, Lennart Sorensen, (Fri Apr 11, 1:15 pm)
Re: file offset corruption on 32-bit machines?, Pavel Machek, (Sat Apr 12, 4:48 am)
Re: file offset corruption on 32-bit machines?, Bryan Henderson, (Fri Apr 11, 5:29 pm)
speck-geostationary