Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 05 Nov 2013 09:59:14 +0100 (CET) Received: from alius.ayous.org ([89.238.89.44]:38473 "EHLO alius.ayous.org" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6816288Ab3KEI7LyhwEV (ORCPT ); Tue, 5 Nov 2013 09:59:11 +0100 Received: from eos.turmzimmer.net ([2001:a60:f006:aba::1]) by alius.turmzimmer.net with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1VdcTZ-0004pW-1k; Tue, 05 Nov 2013 08:59:05 +0000 Received: from aba by eos.turmzimmer.net with local (Exim 4.69) (envelope-from ) id 1VdcTT-0005wJ-Jp; Tue, 05 Nov 2013 09:58:59 +0100 Date: Tue, 5 Nov 2013 09:58:59 +0100 From: Andreas Barth To: Rich Felker Cc: "Joseph S. Myers" , David Miller , aurelien@aurel32.net, linux-mips@linux-mips.org, libc-alpha@sourceware.org Subject: Re: prlimit64: inconsistencies between kernel and userland Message-ID: <20131105085859.GE28240@mails.so.argh.org> References: <20130628133835.GA21839@hall.aurel32.net> <20131104213756.GD18700@hall.aurel32.net> <20131104.194519.1657797548878784116.davem@davemloft.net> <20131105012203.GA24286@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131105012203.GA24286@brightrain.aerifal.cx> X-Editor: Vim http://www.vim.org/ User-Agent: Mutt/1.5.18 (2008-05-17) 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: 38453 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: aba@ayous.org 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 * Rich Felker (dalias@aerifal.cx) [131105 02:22]: > 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... Or just replace 0x7fffffffffffffff by kernels infinity - and still fixing glibc, because the same value as the kernel should be the right answer long term. Andi