From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263700AbUJ3ABk (ORCPT ); Fri, 29 Oct 2004 20:01:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263552AbUJ2X6y (ORCPT ); Fri, 29 Oct 2004 19:58:54 -0400 Received: from rav-az.mvista.com ([65.200.49.157]:4207 "EHLO zipcode.az.mvista.com") by vger.kernel.org with ESMTP id S263674AbUJ2X5I (ORCPT ); Fri, 29 Oct 2004 19:57:08 -0400 Subject: Re: 2.6.9 kernel oops with openais From: Steven Dake Reply-To: sdake@mvista.com To: Chris Wright Cc: Mark Haverkamp , Openais List , linux-kernel In-Reply-To: <20041029164551.U2357@build.pdx.osdl.net> References: <1099090282.14581.19.camel@persist.az.mvista.com> <1099091302.13961.42.camel@markh1.pdx.osdl.net> <1099091816.14581.22.camel@persist.az.mvista.com> <20041029163944.H14339@build.pdx.osdl.net> <1099093468.1207.8.camel@persist.az.mvista.com> <20041029164551.U2357@build.pdx.osdl.net> Content-Type: text/plain Organization: MontaVista Software, Inc. Message-Id: <1099094226.1207.13.camel@persist.az.mvista.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 29 Oct 2004 16:57:06 -0700 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Chris The change was that from 2.6.8 to 2.6.9 the rlimit for memlock was changed from infinity to 32k (and at the same time, normal users are now allowed to use mlockall if they dont have alot of memory to mlock). I fixed up the openais code by doing something evil from uid 0 like: struct rlimit rlimit; rlimit.rlim_cur = RLIM_INFINITY; rlimit.rlim_max = RLIM_INFINITY; setrlimit (RLIMIT_MEMLOCK, &rlimit); Thanks -steve On Fri, 2004-10-29 at 16:45, Chris Wright wrote: > * Steven Dake (sdake@mvista.com) wrote: > > The use case is this (on 2.6.9): > > > > task starts as uid 0 > > task calls mlockall > > task allocates several mb of ram > > task drops root privs to non prived uid > > further memory allocations fail > > What's the RLIMIT_MEMLOCK? > > thanks, > -chris