From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Mason Subject: Re: btrfs: readdir problem workaround for 32-bit off_t Date: Sat, 17 Jan 2009 16:27:21 -0500 Message-ID: <1232227641.28343.3.camel@think.oraclecorp.com> References: Mime-Version: 1.0 Content-Type: text/plain Cc: linux-btrfs@vger.kernel.org, bug-glibc@gnu.org, Linux Kernel Mailing List To: Jan Engelhardt Return-path: In-Reply-To: List-ID: On Sat, 2009-01-17 at 20:39 +0100, Jan Engelhardt wrote: > Hi, > > > > I am seeing abnormal kernel<->userland interaction for range-exceeding > offsets during readdir. > A suggested patch for btrfs is below, but I think there could also > be involvement of (read: a bug in) Glibc. > Would the copied parties please have a look, as it may spans both glibc > and btrfs. > Thanks for looking into this. Your patch is how the code originally looked, but it can lead to loops in buggy userland (a git bug hit this). My plan was to mask off the limit the same way XFS now does. This is a btrfs bug, not glibc. -chris