From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752756AbbJXVzq (ORCPT ); Sat, 24 Oct 2015 17:55:46 -0400 Received: from imap.thunk.org ([74.207.234.97]:42296 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752397AbbJXVzp (ORCPT ); Sat, 24 Oct 2015 17:55:45 -0400 Date: Sat, 24 Oct 2015 17:55:37 -0400 From: "Theodore Ts'o" To: Sigurd =?iso-8859-1?Q?N=E6ss?= Cc: linux-kernel@vger.kernel.org Subject: Re: lseek(fd, 0, SEEK_CUR) returns unexpected result for O_APPEND file on linux 2.6.32-431.29.2 Message-ID: <20151024215537.GB27558@thunk.org> Mail-Followup-To: Theodore Ts'o , Sigurd =?iso-8859-1?Q?N=E6ss?= , linux-kernel@vger.kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 24, 2015 at 01:18:11AM +0100, Sigurd Nęss wrote: > Below is a description of a simple test case that causes lseek(fd, 0, > SEEK_CUR) to return an unexpectedly small result on one of my > computers, with linux 2.6.32-431.29.2, but none of the others. I'm > posting it on the off chance that this is (or was) a kernel bug, and > not some problem on my end. The kernel versions you are mentioning are all RHEL kernel versions. The problem doesn't reproduce on the latest mainline kernel. Cheers, - Ted