From owner-freebsd-current@FreeBSD.ORG Thu Nov 30 14:02:15 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B616816A53D; Thu, 30 Nov 2006 14:02:15 +0000 (UTC) (envelope-from jarda@grisoft.cz) Received: from ms.grisoft.cz (ms.grisoft.cz [193.85.188.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id A325743E37; Thu, 30 Nov 2006 13:59:09 +0000 (GMT) (envelope-from jarda@grisoft.cz) Received: from localhost (gate2 [127.0.0.1]) by ms.grisoft.cz (Postfix) with ESMTP id CA78668011; Thu, 30 Nov 2006 14:58:53 +0100 (CET) Received: from ms.grisoft.cz ([127.0.0.1]) by localhost (gate2 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06572-07; Thu, 30 Nov 2006 14:58:53 +0100 (CET) Received: from jardas.grisoft.cz (unknown [192.168.104.87]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ms.grisoft.cz (Postfix) with ESMTP id 7D7A36800E; Thu, 30 Nov 2006 14:58:53 +0100 (CET) Received: from jardas.grisoft.cz (localhost [127.0.0.1]) by jardas.grisoft.cz (8.13.8/8.12.9) with ESMTP id kAUDwni4032420; Thu, 30 Nov 2006 14:58:49 +0100 (CET) (envelope-from jarda@jardas.grisoft.cz) Received: (from jarda@localhost) by jardas.grisoft.cz (8.13.8/8.13.8/Submit) id kAUDwnmm032419; Thu, 30 Nov 2006 14:58:49 +0100 (CET) (envelope-from jarda) Date: Thu, 30 Nov 2006 14:58:49 +0100 From: JAroslav Suchanek To: Robert Watson Message-ID: <20061130135849.GC31809@jardas.grisoft.cz> References: <20061130131143.GA31809@jardas.grisoft.cz> <20061130134403.P41812@fledge.watson.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <20061130134403.P41812@fledge.watson.org> X-Virus-Scanned: by AVG Anti-Virus at grisoft.cz X-Mailman-Approved-At: Thu, 30 Nov 2006 15:41:22 +0000 Cc: freebsd-current@FreeBSD.org Subject: Re: shmget regression? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 14:02:15 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 30, 2006 at 01:45:21PM +0000, Robert Watson wrote: > > On Thu, 30 Nov 2006, JAroslav Suchanek wrote: > > > I've tried to post PR, but it seems it got lost somewhere. > > > > I just wonder whether there was some change in shmget behavior in > > current. > > > > Look at this patch to src/sys-cur/tools/regression/sysvshm/shmtest.c > > Can you send the output of 'ipcs' after the below code runs so that I can > see the mode it ended up being created with? You might try reverting the > priv(9) change to sysv_ipc.c and see if that fixes thanks? Thanks for your prompt reply. I've attached output of ipcs -ma before and after the test, output of kdump as well... I will try the revert later... Best regards, -- Jarda Suchanek --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ipcs_before.out" Shared Memory: T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME m 2424834 0 --rwarwarwa root guest root guest 1 94208 11174 11174 8:23:31 8:23:32 8:23:31 m 458755 0 --rw------- jarda guest jarda guest 2 393216 11187 11174 8:23:55 10:12:02 8:23:55 m 65540 0 --rw------- jarda guest jarda guest 2 393216 11187 11174 8:23:55 10:12:02 8:23:55 m 65541 0 --rw------- jarda guest jarda guest 2 393216 11212 11174 8:25:56 8:25:57 8:25:56 m 65542 0 --rw------- jarda guest jarda guest 2 393216 11212 11174 8:25:56 8:25:57 8:25:56 m 131079 0 --rw------- jarda guest jarda guest 2 393216 32137 11174 14:31:46 14:31:48 14:31:46 m 131080 0 --rw------- jarda guest jarda guest 2 393216 32137 11174 14:31:43 14:31:48 14:31:43 m 65545 0 --rw------- jarda guest jarda guest 2 393216 13130 11174 12:26:09 no-entry 12:26:09 m 983050 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:47:10 no-entry 9:47:10 m 524299 0 --rw-r--r-- root guest root guest 3 110592 11174 24738 9:49:46 no-entry 9:47:10 m 196620 0 --rw-r--r-- root guest root guest 2 122880 11174 24738 9:47:10 no-entry 9:47:10 m 196621 0 --rw-r--r-- root guest root guest 2 122880 11174 24738 9:47:10 no-entry 9:47:10 m 196622 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:47:10 no-entry 9:47:10 m 196623 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:47:10 no-entry 9:47:10 m 196624 0 --rw-r--r-- root guest root guest 3 122880 11174 24738 9:47:11 no-entry 9:47:11 m 196625 0 --rw-r--r-- root guest root guest 3 110592 11174 24738 9:47:10 no-entry 9:47:10 m 196626 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:49:46 no-entry 9:49:46 m 196627 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:49:46 no-entry 9:49:46 m 196628 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:49:46 no-entry 9:49:46 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ipcs_after.out" Shared Memory: T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME m 262145 1080653749 --rw-r----- root wheel root wheel 0 4096 32361 0 no-entry no-entry 14:53:35 m 2424834 0 --rwarwarwa root guest root guest 1 94208 11174 11174 8:23:31 8:23:32 8:23:31 m 458755 0 --rw------- jarda guest jarda guest 2 393216 11187 11174 8:23:55 10:12:02 8:23:55 m 65540 0 --rw------- jarda guest jarda guest 2 393216 11187 11174 8:23:55 10:12:02 8:23:55 m 65541 0 --rw------- jarda guest jarda guest 2 393216 11212 11174 8:25:56 8:25:57 8:25:56 m 65542 0 --rw------- jarda guest jarda guest 2 393216 11212 11174 8:25:56 8:25:57 8:25:56 m 131079 0 --rw------- jarda guest jarda guest 2 393216 32137 11174 14:31:46 14:31:48 14:31:46 m 131080 0 --rw------- jarda guest jarda guest 2 393216 32137 11174 14:31:43 14:31:48 14:31:43 m 65545 0 --rw------- jarda guest jarda guest 2 393216 13130 11174 12:26:09 no-entry 12:26:09 m 983050 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:47:10 no-entry 9:47:10 m 524299 0 --rw-r--r-- root guest root guest 3 110592 11174 24738 9:49:46 no-entry 9:47:10 m 196620 0 --rw-r--r-- root guest root guest 2 122880 11174 24738 9:47:10 no-entry 9:47:10 m 196621 0 --rw-r--r-- root guest root guest 2 122880 11174 24738 9:47:10 no-entry 9:47:10 m 196622 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:47:10 no-entry 9:47:10 m 196623 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:47:10 no-entry 9:47:10 m 196624 0 --rw-r--r-- root guest root guest 3 122880 11174 24738 9:47:11 no-entry 9:47:11 m 196625 0 --rw-r--r-- root guest root guest 3 110592 11174 24738 9:47:10 no-entry 9:47:10 m 196626 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:49:46 no-entry 9:49:46 m 196627 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:49:46 no-entry 9:49:46 m 196628 0 --rw-r--r-- root guest root guest 2 110592 11174 24738 9:49:46 no-entry 9:49:46 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="kdump.out" 32361 shmtest CALL stat(0xbfbfed5e,0xbfbfeb10) 32361 shmtest NAMI "./shmtest" 32361 shmtest RET stat 0 32361 shmtest CALL getpid 32361 shmtest RET getpid 32361/0x7e69 32361 shmtest CALL shmget(0x406977b5,0x1000,0x3a0) 32361 shmtest RET shmget 262145/0x40001 32361 shmtest CALL shmget(0x406977b5,0x1000,0x1a0) 32361 shmtest RET shmget -1 errno 13 Permission denied --envbJBWh7q8WU6mo--