Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 05 Nov 2013 02:22:35 +0100 (CET) Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:43494 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6817088Ab3KEBWcfLFxp (ORCPT ); Tue, 5 Nov 2013 02:22:32 +0100 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1VdVLH-0006im-00; Tue, 05 Nov 2013 01:22:03 +0000 Date: Mon, 4 Nov 2013 20:22:03 -0500 To: "Joseph S. Myers" Cc: David Miller , aurelien@aurel32.net, linux-mips@linux-mips.org, libc-alpha@sourceware.org Subject: Re: prlimit64: inconsistencies between kernel and userland Message-ID: <20131105012203.GA24286@brightrain.aerifal.cx> References: <20130628133835.GA21839@hall.aurel32.net> <20131104213756.GD18700@hall.aurel32.net> <20131104.194519.1657797548878784116.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: Rich Felker Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 38452 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: dalias@aerifal.cx Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Tue, Nov 05, 2013 at 01:04:45AM +0000, Joseph S. Myers wrote: > On Mon, 4 Nov 2013, David Miller wrote: > > > From: Aurelien Jarno > > Date: Mon, 4 Nov 2013 22:37:56 +0100 > > > > > Any news about this issue? It really starts to causes a lot of issues in > > > Debian. I have added a Cc: to libc people so that we can also hear their > > > opinion. > > > > I had the same exact problem on sparc several years ago, I simply fixed > > the glibc header value, it's the only way to fix this. > > > > Yes, that means you then have to recompile applications and libraries > > that reference this value. > > Surely you can create new symbol versions for getrlimit64 and setrlimit64, > with the old versions just using the 32-bit syscalls (or otherwise > translating between conventions, but using the 32-bit syscalls is the > simplest approach)? I see no need to break compatibility with existing > binaries. > > As I noted in > , at that time > the value of RLIM64_INFINITY for o32/n32 was purely a glibc convention the > kernel didn't see at all. It's only with the use of newer syscalls that > this glibc convention is any sort of problem. Why not just make them convert any value >= 0x7fffffffffffffff to infinity before making the syscall? There's certainly no meaningful use for finite values in that range... Rich