From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932353AbWDUTd2 (ORCPT ); Fri, 21 Apr 2006 15:33:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932354AbWDUTd2 (ORCPT ); Fri, 21 Apr 2006 15:33:28 -0400 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:33408 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S932353AbWDUTd1 (ORCPT ); Fri, 21 Apr 2006 15:33:27 -0400 Date: Fri, 21 Apr 2006 12:27:43 -0700 From: Chris Wright To: David Wilk Cc: Hugh Dickins , Greg KH , Chris Wright , Marcelo Tosatti , stable@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [stable] 2.6.16.6 breaks java... sort of Message-ID: <20060421192743.GH3061@sorel.sous-sol.org> References: <20060419192803.GA19852@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * David Wilk (davidwilk@gmail.com) wrote: > Ok, on my first test system (lowest amount of ram) a 2.6.16.9 kernel > patched with the patch you provided works fine. I'll throw it on some > other systems and we'll see how it does. Was that same (lowest amount of ram) system failing before Hugh's patch with vanilla 2.6.16.9? What we're looking for is to see if the app was doing: 1) shmget(0444) [RDONLY], shmat(SHM_RDONLY), mprotect(PROT_WRITE) or 2) shmget(0666) [RDWR], shmat(SHM_RDONLY), mprotect(PROT_WRITE) The first is definitely a bug, and that's what the original patch was closing. The second is technically (as in POSIX) undefined, and the original patch treated it as a bug as well. Hugh's additional patch allows this behaviour, as it's vaguely similar to open(RDWR), mmap(PROT_READ), mprotect(PROT_WRITE), which is legitimate. So we're trying to determine if that's what your app is doing. strace output may be unwieldy, but that (or using syscall audit) would be helpful to clarify. thanks, -chris