From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762700AbYDNQ72 (ORCPT ); Mon, 14 Apr 2008 12:59:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760536AbYDNQ7T (ORCPT ); Mon, 14 Apr 2008 12:59:19 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:45227 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1758427AbYDNQ7S (ORCPT ); Mon, 14 Apr 2008 12:59:18 -0400 Date: Mon, 14 Apr 2008 17:54:52 +0100 From: Alan Cox To: Jan Kara Cc: Lennart Sorensen , Bodo Eggert <7eggert@gmx.de>, Diego Calleja , Jiri Kosina , Michal Hocko , Meelis Roos , Linux Kernel list , linux-fsdevel@vger.kernel.org Subject: Re: file offset corruption on 32-bit machines? Message-ID: <20080414175452.27c3652d@core> In-Reply-To: <20080414165354.GF15824@duck.suse.cz> References: <20080411135544.GG2160@csclub.uwaterloo.ca> <20080414162031.GD15824@duck.suse.cz> <20080414162202.GB7387@csclub.uwaterloo.ca> <20080414165354.GF15824@duck.suse.cz> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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 Unlikely as the ppos passed to the driver is a private copy and the user could equally use pread/pwrite to specify that offset.