From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 02:53:11 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC5D0106564A for ; Sun, 22 Apr 2012 02:53:11 +0000 (UTC) (envelope-from Hilko.Meyer@gmx.de) Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53]) by mx1.freebsd.org (Postfix) with ESMTP id A6D918FC0C for ; Sun, 22 Apr 2012 02:53:11 +0000 (UTC) Received: from mail-in-21-z2.arcor-online.net (mail-in-21-z2.arcor-online.net [151.189.8.185]) by mx.arcor.de (Postfix) with ESMTP id 2099621256A for ; Sun, 22 Apr 2012 04:21:50 +0200 (CEST) Received: from mail-in-14.arcor-online.net (mail-in-14.arcor-online.net [151.189.21.54]) by mail-in-21-z2.arcor-online.net (Postfix) with ESMTP id 1186FED97C for ; Sun, 22 Apr 2012 04:21:50 +0200 (CEST) Received: from Dell-oben.fritz.box (dyndsl-031-150-144-240.ewe-ip-backbone.de [31.150.144.240]) (Authenticated sender: hilko.meyer@arcor.de) by mail-in-14.arcor-online.net (Postfix) with ESMTPA id EB5899C02E for ; Sun, 22 Apr 2012 04:21:49 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net EB5899C02E From: Hilko Meyer To: freebsd-stable@freebsd.org Date: Sun, 22 Apr 2012 04:21:49 +0200 Message-ID: X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: scanlogd doesnt start anymore after upgrade from 8.2 to 8.3 cause of USB X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 02:53:12 -0000 Hi, today I updated one server to 8.3. Now scanlod fails to start with some weird error message: root@falko:~> /usr/local/etc/rc.d/scanlogd start =20 Starting scanlogd. pcap_compile: USB link-layer type filtering not implemented /usr/local/etc/rc.d/scanlogd: WARNING: failed to start scanlogd USB?!? Where does that come from? tcpdump seems affected too: root@falko:~> tcpdump=20 tcpdump: WARNING: usbus0: no IPv4 address assigned tcpdump: unsupported data link type USB Any ideas about the reason? regards, Hilko From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 03:18:12 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2DE2106566B for ; Sun, 22 Apr 2012 03:18:12 +0000 (UTC) (envelope-from claudius@ambtec.de) Received: from server.ambtec.de (server.ambtec.de [IPv6:2a01:4f8:151:7182::2]) by mx1.freebsd.org (Postfix) with ESMTP id 559498FC08 for ; Sun, 22 Apr 2012 03:18:12 +0000 (UTC) Received: from server.ambtec.de (localhost [IPv6:::1]) by server.ambtec.de (Postfix) with ESMTP id 81A82ACD3 for ; Sun, 22 Apr 2012 05:18:11 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at ambtec.de Received: from server.ambtec.de ([IPv6:::1]) by server.ambtec.de (server.ambtec.de [::1]) (amavisd-new, port 10024) with LMTP id lqx5PhcTasqX for ; Sun, 22 Apr 2012 05:18:10 +0200 (CEST) Received: from [192.168.0.101] (e176001245.adsl.alicedsl.de [85.176.1.245]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.ambtec.de (Postfix) with ESMTPSA id 63568ACCC for ; Sun, 22 Apr 2012 05:18:10 +0200 (CEST) Message-ID: <4F937872.8050002@ambtec.de> Date: Sun, 22 Apr 2012 05:18:10 +0200 From: Claudius User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120330 Thunderbird/11.0.1 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: scanlogd doesnt start anymore after upgrade from 8.2 to 8.3 cause of USB X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 03:18:12 -0000 If you are using packet filter, echo hw.usb.no_pf=1 >>/boot/loader.conf http://lists.freebsd.org/pipermail/freebsd-stable/2012-January/065421.html Hope this helps. -- regards Claudius On 22/04/12 04:21, Hilko Meyer wrote: > Hi, > > today I updated one server to 8.3. Now scanlod fails to start with some > weird error message: > root@falko:~> /usr/local/etc/rc.d/scanlogd start > Starting scanlogd. > pcap_compile: USB link-layer type filtering not implemented > /usr/local/etc/rc.d/scanlogd: WARNING: failed to start scanlogd > > USB?!? Where does that come from? tcpdump seems affected too: > root@falko:~> tcpdump > tcpdump: WARNING: usbus0: no IPv4 address assigned > tcpdump: unsupported data link type USB > > Any ideas about the reason? > > regards, > Hilko > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 09:24:34 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F440106564A for ; Sun, 22 Apr 2012 09:24:34 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id D05B38FC0A for ; Sun, 22 Apr 2012 09:24:33 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1SLsvR-000Gp0-Ok for freebsd-stable@freebsd.org; Sun, 22 Apr 2012 12:17:45 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 22 Apr 2012 12:17:45 +0300 From: Daniel Braniss Message-ID: Subject: lost devices in 8.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 09:24:34 -0000 hi, I'm trying to upgrade this old opteron box, which is running 8.2, but when booting 8.3 the disks disappear. with 8.2: ... atapci1@pci0:0:7:1: class=0x01018a card=0x74691022 chip=0x74691022 rev=0x03 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'UltraATA/133 Controller (AMD-8111)' class = mass storage subclass = ATA ... atapci0@pci0:3:5:0: class=0x010400 card=0x61141095 chip=0x31141095 rev=0x02 hdr=0x00 vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' device = 'SATALink/SATARaid Controller (Sil 3114)' class = mass storage subclass = RAID but none on 8.3: none0@pci0:0:7:1: class=0x01018a card=0x74691022 chip=0x74691022 rev=0x03 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'UltraATA/133 Controller (AMD-8111)' class = mass storage subclass = ATA ... none3@pci0:3:5:0: class=0x018000 card=0x31141095 chip=0x31141095 rev=0x02 hdr=0x00 vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' device = 'SATALink/SATARaid Controller (Sil 3114)' class = mass storage and the only diff in the configuration is that 8.3 has: options ATA_CAM nodevice ata nodevice atadisk # ATA disk drives nodevice ataraid # ATA RAID drives nodevice atapicd # ATAPI CDROM drives nodevice atapifd # ATAPI floppy drives nodevice atapist # ATAPI tape drives cheers, danny From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 14:14:02 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 09CEA106566C for ; Sun, 22 Apr 2012 14:14:02 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 977FF8FC0A for ; Sun, 22 Apr 2012 14:14:01 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id q3MEDT1K065487; Sun, 22 Apr 2012 16:13:30 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id q3MEDTxe065486; Sun, 22 Apr 2012 16:13:29 +0200 (CEST) (envelope-from marius) Date: Sun, 22 Apr 2012 16:13:29 +0200 From: Marius Strobl To: Daniel Braniss Message-ID: <20120422141329.GA65465@alchemy.franken.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: lost devices in 8.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 14:14:02 -0000 On Sun, Apr 22, 2012 at 12:17:45PM +0300, Daniel Braniss wrote: > hi, > I'm trying to upgrade this old opteron box, which is running 8.2, but > when booting 8.3 the disks disappear. > > with 8.2: > ... > atapci1@pci0:0:7:1: class=0x01018a card=0x74691022 chip=0x74691022 > rev=0x03 hdr=0x00 > vendor = 'Advanced Micro Devices (AMD)' > device = 'UltraATA/133 Controller (AMD-8111)' > class = mass storage > subclass = ATA > ... > atapci0@pci0:3:5:0: class=0x010400 card=0x61141095 chip=0x31141095 > rev=0x02 hdr=0x00 > vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' > device = 'SATALink/SATARaid Controller (Sil 3114)' > class = mass storage > subclass = RAID > > but none on 8.3: > none0@pci0:0:7:1: class=0x01018a card=0x74691022 chip=0x74691022 > rev=0x03 hdr=0x00 > vendor = 'Advanced Micro Devices (AMD)' > device = 'UltraATA/133 Controller (AMD-8111)' > class = mass storage > subclass = ATA > ... > none3@pci0:3:5:0: class=0x018000 card=0x31141095 chip=0x31141095 > rev=0x02 hdr=0x00 > vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' > device = 'SATALink/SATARaid Controller (Sil 3114)' > class = mass storage > > and the only diff in the configuration is that 8.3 has: > options ATA_CAM > nodevice ata You need "device ata". > nodevice atadisk # ATA disk drives > nodevice ataraid # ATA RAID drives > nodevice atapicd # ATAPI CDROM drives > nodevice atapifd # ATAPI floppy drives > nodevice atapist # ATAPI tape drives > Marius From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 15:47:26 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 67C2C106564A for ; Sun, 22 Apr 2012 15:47:26 +0000 (UTC) (envelope-from Hilko.Meyer@gmx.de) Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53]) by mx1.freebsd.org (Postfix) with ESMTP id 1EC848FC08 for ; Sun, 22 Apr 2012 15:47:26 +0000 (UTC) Received: from mail-in-05-z2.arcor-online.net (mail-in-05-z2.arcor-online.net [151.189.8.17]) by mx.arcor.de (Postfix) with ESMTP id 7DED721270E for ; Sun, 22 Apr 2012 17:47:24 +0200 (CEST) Received: from mail-in-15.arcor-online.net (mail-in-15.arcor-online.net [151.189.21.55]) by mail-in-05-z2.arcor-online.net (Postfix) with ESMTP id 7AAEC73CA2 for ; Sun, 22 Apr 2012 17:47:24 +0200 (CEST) Received: from Dell-oben.fritz.box (dyndsl-031-150-144-240.ewe-ip-backbone.de [31.150.144.240]) (Authenticated sender: hilko.meyer@arcor.de) by mail-in-15.arcor-online.net (Postfix) with ESMTPA id 6006F1ABAA1 for ; Sun, 22 Apr 2012 17:47:24 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-15.arcor-online.net 6006F1ABAA1 From: Hilko Meyer To: freebsd-stable@freebsd.org Date: Sun, 22 Apr 2012 17:47:24 +0200 Message-ID: References: In-Reply-To: X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: scanlogd doesnt start anymore after upgrade from 8.2 to 8.3 cause of USB X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 15:47:26 -0000 Claudius wrote: >If you are using packet filter, >echo hw.usb.no_pf=3D1 >>/boot/loader.conf > >http://lists.freebsd.org/pipermail/freebsd-stable/2012-January/065421.ht= ml > >Hope this helps. Thanks!=20 | echo hw.usb.no_pf=3D1 >>/boot/loader.conf did the trick. That helped. I'm a bit puzzled to see a disrupive change like this merged to a Stable-branch without a heads-up and without documentation how to disable it. regards, hilko PS: forgot to mention I'm not subsricbed to this list. Please keep me CCed. From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 19:18:26 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB96F1065674 for ; Sun, 22 Apr 2012 19:18:26 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7F06D8FC17 for ; Sun, 22 Apr 2012 19:18:26 +0000 (UTC) Received: by iahk25 with SMTP id k25so20383722iah.13 for ; Sun, 22 Apr 2012 12:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=aU5556nP7E8boYmMJ3f7di8ad0fN/dfsyDcMyF2thaQ=; b=D8sU41P5aupxnbKg3H/WeMmZsRm3YB5fMoUECKzbIKiqtSyt4PbKeaSVLuyUzDTWNp LbpP41aJdL6RSTQcQZMSvsfFsf2her8hWWcKtIWB4IpZgYHGbiP7jne5cL395tzn0hIQ 05aKOcoFQj+uWedBBNEXfiHlyL4S5v0q4/ZkA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=aU5556nP7E8boYmMJ3f7di8ad0fN/dfsyDcMyF2thaQ=; b=BJXI9MclTykFow4UkyA8VgrRi13cNXdZm5IFT/20D/od/KeYBBtFjnG+hXMfrDrKSy PGy0/i7BBujI1EcQwDXE2bxp45ygpjQEDbMzR5+cIgFr2WFS+w/XqxyE9AH73MeGWMY3 3aIrPSjgOUk3IsnH52BbJdvpkuPO6EjAAahmuNtnHnrv9aZ4KmjhRH7MkLXFxU4IuBTQ 3a4dMzIRVSRZXMd7TQR6dKsdrtfd59Gw+vYw/aHcrGlZegnd+PXoQxBvBr4PsXJr04AW yjpkOWPs1aO8dMOHZ0gE2YUIwage7tY72gycKNUcTYEcZ4iWDzEjqlodp8LpYqUnNCY0 8LcA== Received: by 10.42.80.19 with SMTP id t19mr490204ick.55.1335122306071; Sun, 22 Apr 2012 12:18:26 -0700 (PDT) Received: from DataIX.net (adsl-99-119-128-6.dsl.klmzmi.sbcglobal.net. [99.119.128.6]) by mx.google.com with ESMTPS id iu5sm18564259igc.14.2012.04.22.12.18.25 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 Apr 2012 12:18:25 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q3MJINjd018380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Apr 2012 15:18:23 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q3MJIMIf018379; Sun, 22 Apr 2012 15:18:22 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sun, 22 Apr 2012 15:18:22 -0400 From: Jason Hellenthal To: Hilko Meyer Message-ID: <20120422191822.GA16958@DataIX.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Gm-Message-State: ALoCoQkCmXbv69WeK2o5FJ3bxVIwaskpnRbcbyAF7PWPOYDM2W8Q+2kNp0C5YTtE9BsAj8gjPRR9 Cc: freebsd-stable@freebsd.org Subject: Re: scanlogd doesnt start anymore after upgrade from 8.2 to 8.3 cause of USB X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 19:18:27 -0000 Did you recompile your ports so this would go away ? More than likely some of your system is running against libpcap installed from ports etc... This happens. You should also expect these things to happen in an upgrade when you leave software behind. On Sun, Apr 22, 2012 at 05:47:24PM +0200, Hilko Meyer wrote: > Claudius wrote: > >If you are using packet filter, > >echo hw.usb.no_pf=1 >>/boot/loader.conf > > > >http://lists.freebsd.org/pipermail/freebsd-stable/2012-January/065421.html > > > >Hope this helps. > > Thanks! > | echo hw.usb.no_pf=1 >>/boot/loader.conf > did the trick. That helped. > > I'm a bit puzzled to see a disrupive change like this merged to a > Stable-branch without a heads-up and without documentation how to > disable it. > > > regards, > hilko > PS: forgot to mention I'm not subsricbed to this list. Please keep me > CCed. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- - (2^(N-1)) From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 20:07:18 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 352B9106566B for ; Sun, 22 Apr 2012 20:07:18 +0000 (UTC) (envelope-from Hilko.Meyer@gmx.de) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mx1.freebsd.org (Postfix) with ESMTP id DEBCC8FC0A for ; Sun, 22 Apr 2012 20:07:17 +0000 (UTC) Received: from mail-in-11-z2.arcor-online.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mx.arcor.de (Postfix) with ESMTP id 4F6FE1FB037; Sun, 22 Apr 2012 22:07:15 +0200 (CEST) Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53]) by mail-in-11-z2.arcor-online.net (Postfix) with ESMTP id 137AC1CB845; Sun, 22 Apr 2012 22:07:15 +0200 (CEST) Received: from Dell-oben.fritz.box (dyndsl-031-150-144-240.ewe-ip-backbone.de [31.150.144.240]) (Authenticated sender: hilko.meyer@arcor.de) by mail-in-13.arcor-online.net (Postfix) with ESMTPA id D0AAE2127E6; Sun, 22 Apr 2012 22:07:14 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-13.arcor-online.net D0AAE2127E6 From: Hilko Meyer To: Jason Hellenthal Date: Sun, 22 Apr 2012 22:07:14 +0200 Message-ID: References: <20120422191822.GA16958@DataIX.net> In-Reply-To: <20120422191822.GA16958@DataIX.net> X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: scanlogd doesnt start anymore after upgrade from 8.2 to 8.3 cause of USB X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 20:07:18 -0000 Jason Hellenthal schrieb: > >Did you recompile your ports so this would go away ? That was the first thing I tried. Didn't helped. >More than likely some of your system is running against libpcap >installed from ports etc... This happens. No libcap from ports installed. And both affected programs linked to systemlibpcap: hilko@falko:~> ldd /usr/sbin/tcpdump /usr/sbin/tcpdump: libpcap.so.7 =3D> /lib/libpcap.so.7 (0x28112000) libcrypto.so.6 =3D> /lib/libcrypto.so.6 (0x2813f000) libc.so.7 =3D> /lib/libc.so.7 (0x2829a000) hilko@falko:~> ldd /usr/local/bin/scanlogd /usr/local/bin/scanlogd: libpcap.so.7 =3D> /lib/libpcap.so.7 (0x2808f000) libc.so.7 =3D> /lib/libc.so.7 (0x280bc000) >You should also expect these things to happen in an upgrade when you >leave software behind. Thats true, but that wasn't the case here. In my understanding it's related to this from the 8.3-Releasenotes: | The FreeBSD usb(4) subsystem now supports USB packet filter. This = allows | to capture packets which go through each USB host controller. The | implementation is almost based on bpf(4) code. The userland program | usbdump(8) has been added.[r221174] After that 'netstat -i' shows usbus entries. And it seens the contributed libcap doesn't know how to handle that. regards, hilko From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 22:00:06 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E643106566B for ; Sun, 22 Apr 2012 22:00:06 +0000 (UTC) (envelope-from aw1@swelter.hanley.stade.co.uk) Received: from outbound-queue-2.mail.thdo.gradwell.net (outbound-queue-2.mail.thdo.gradwell.net [212.11.70.35]) by mx1.freebsd.org (Postfix) with ESMTP id 356A68FC14 for ; Sun, 22 Apr 2012 22:00:06 +0000 (UTC) Received: from outbound-edge-1.mail.thdo.gradwell.net (bonnie.gradwell.net [212.11.70.2]) by outbound-queue-2.mail.thdo.gradwell.net (Postfix) with ESMTP id 48E992238E for ; Sun, 22 Apr 2012 22:59:07 +0100 (BST) Received: from 93-97-22-18.zone5.bethere.co.uk (HELO swelter.hanley.stade.co.uk) (93.97.22.18) (smtp-auth username postmaster%pop3.stade.co.uk, mechanism cram-md5) by outbound-edge-1.mail.thdo.gradwell.net (qpsmtpd/0.83) with (AES256-SHA encrypted) ESMTPSA; Sun, 22 Apr 2012 22:59:06 +0100 Received: from swelter.hanley.stade.co.uk (localhost [127.0.0.1]) by swelter.hanley.stade.co.uk (8.14.5/8.14.5) with ESMTP id q3MLx2ij076258 for ; Sun, 22 Apr 2012 22:59:02 +0100 (BST) (envelope-from aw1@swelter.hanley.stade.co.uk) Received: (from aw1@localhost) by swelter.hanley.stade.co.uk (8.14.5/8.14.5/Submit) id q3MLx20m076257 for freebsd-stable@freebsd.org; Sun, 22 Apr 2012 22:59:02 +0100 (BST) (envelope-from aw1) Date: Sun, 22 Apr 2012 22:59:02 +0100 From: Adrian Wontroba To: freebsd-stable@freebsd.org Message-ID: <20120422215902.GA72219@swelter.hanley.stade.co.uk> Mail-Followup-To: Adrian Wontroba , freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.3-PRERELEASE Organization: Oh dear, I've joined one again. X-Virus-Scanned: clamav-milter 0.97.3 at swelter.hanley.stade.co.uk X-Virus-Status: Clean X-Gradwell-MongoId: 4f947f2a.1251c-3e25-1 X-Gradwell-Auth-Method: mailbox X-Gradwell-Auth-Credentials: postmaster@pop3.stade.co.uk Subject: RELENG_8 still identifies itself as 8.3-PRERELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aw1@stade.co.uk List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 22:00:06 -0000 A RELENG_8 system built this morning still identifies itself as 8.3-PRERELEASE. Any chance of this becoming 8.3-STABLE soon? While this is entirely cosmetic, it does cause me issues at $JOB. -- Adrian Wontroba A fool and his money soon go partying. From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 22:15:06 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00B86106564A for ; Sun, 22 Apr 2012 22:15:06 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from glenbarber.us (onyx.glenbarber.us [199.48.134.227]) by mx1.freebsd.org (Postfix) with SMTP id 9FD158FC14 for ; Sun, 22 Apr 2012 22:15:05 +0000 (UTC) Received: (qmail 78486 invoked by uid 0); 22 Apr 2012 18:14:59 -0400 Received: from unknown (HELO glenbarber.us) (76.124.49.145) by 0 with SMTP; 22 Apr 2012 18:14:59 -0400 Date: Sun, 22 Apr 2012 18:14:57 -0400 From: Glen Barber To: Adrian Wontroba Message-ID: <20120422221457.GC1968@glenbarber.us> References: <20120422215902.GA72219@swelter.hanley.stade.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="69pVuxX8awAiJ7fD" Content-Disposition: inline In-Reply-To: <20120422215902.GA72219@swelter.hanley.stade.co.uk> X-Operating-System: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@FreeBSD.org Subject: Re: RELENG_8 still identifies itself as 8.3-PRERELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 22:15:06 -0000 --69pVuxX8awAiJ7fD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Sun, Apr 22, 2012 at 10:59:02PM +0100, Adrian Wontroba wrote: > A RELENG_8 system built this morning still identifies itself as > 8.3-PRERELEASE. > > Any chance of this becoming 8.3-STABLE soon? While this is entirely > cosmetic, it does cause me issues at $JOB. > If this is a problem for you at $JOB, the attached patch will fix the version output until the change is made in the official sources. Glen --69pVuxX8awAiJ7fD Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sys-conf-newversh.sh.diff.txt" Index: sys/conf/newvers.sh =================================================================== --- sys/conf/newvers.sh (revision 234589) +++ sys/conf/newvers.sh (working copy) @@ -32,7 +32,7 @@ TYPE="FreeBSD" REVISION="8.3" -BRANCH="PRERELEASE" +BRANCH="STABLE" if [ "X${BRANCH_OVERRIDE}" != "X" ]; then BRANCH=${BRANCH_OVERRIDE} fi --69pVuxX8awAiJ7fD-- From owner-freebsd-stable@FreeBSD.ORG Sun Apr 22 22:39:50 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 114D01065670 for ; Sun, 22 Apr 2012 22:39:50 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 91C088FC0C for ; Sun, 22 Apr 2012 22:39:49 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id AEDBA25D3A71; Sun, 22 Apr 2012 22:39:47 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 9C429BE569F; Sun, 22 Apr 2012 22:39:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id JdimQvT3GSjx; Sun, 22 Apr 2012 22:39:45 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id E637EBE569E; Sun, 22 Apr 2012 22:39:45 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <20120422215902.GA72219@swelter.hanley.stade.co.uk> Date: Sun, 22 Apr 2012 22:39:44 +0000 Content-Transfer-Encoding: 7bit Message-Id: References: <20120422215902.GA72219@swelter.hanley.stade.co.uk> To: aw1@stade.co.uk X-Mailer: Apple Mail (2.1084) Cc: freebsd-stable@freebsd.org Subject: Re: RELENG_8 still identifies itself as 8.3-PRERELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 22:39:50 -0000 On 22. Apr 2012, at 21:59 , Adrian Wontroba wrote: > A RELENG_8 system built this morning still identifies itself as > 8.3-PRERELEASE. > > Any chance of this becoming 8.3-STABLE soon? While this is entirely > cosmetic, it does cause me issues at $JOB. Fixed. -- Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do! From owner-freebsd-stable@FreeBSD.ORG Mon Apr 23 03:02:46 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 173DB106566C for ; Mon, 23 Apr 2012 03:02:46 +0000 (UTC) (envelope-from aw1@swelter.hanley.stade.co.uk) Received: from outbound-queue-2.mail.thdo.gradwell.net (outbound-queue-2.mail.thdo.gradwell.net [212.11.70.35]) by mx1.freebsd.org (Postfix) with ESMTP id B89478FC08 for ; Mon, 23 Apr 2012 03:02:45 +0000 (UTC) Received: from outbound-edge-1.mail.thdo.gradwell.net (bonnie.gradwell.net [212.11.70.2]) by outbound-queue-2.mail.thdo.gradwell.net (Postfix) with ESMTP id D60C52261D for ; Mon, 23 Apr 2012 04:02:44 +0100 (BST) Received: from 93-97-22-18.zone5.bethere.co.uk (HELO swelter.hanley.stade.co.uk) (93.97.22.18) (smtp-auth username postmaster%pop3.stade.co.uk, mechanism cram-md5) by outbound-edge-1.mail.thdo.gradwell.net (qpsmtpd/0.83) with (AES256-SHA encrypted) ESMTPSA; Mon, 23 Apr 2012 04:02:44 +0100 Received: from swelter.hanley.stade.co.uk (localhost [127.0.0.1]) by swelter.hanley.stade.co.uk (8.14.5/8.14.5) with ESMTP id q3N31jGb004411 for ; Mon, 23 Apr 2012 04:01:45 +0100 (BST) (envelope-from aw1@swelter.hanley.stade.co.uk) Received: (from aw1@localhost) by swelter.hanley.stade.co.uk (8.14.5/8.14.5/Submit) id q3N31jda004410 for freebsd-stable@FreeBSD.org; Mon, 23 Apr 2012 04:01:45 +0100 (BST) (envelope-from aw1) Date: Mon, 23 Apr 2012 04:01:45 +0100 From: Adrian Wontroba To: freebsd-stable@FreeBSD.org Message-ID: <20120423030145.GA2943@swelter.hanley.stade.co.uk> Mail-Followup-To: Adrian Wontroba , freebsd-stable@FreeBSD.org References: <20120422215902.GA72219@swelter.hanley.stade.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.3-PRERELEASE Organization: Oh dear, I've joined one again. X-Virus-Scanned: clamav-milter 0.97.3 at swelter.hanley.stade.co.uk X-Virus-Status: Clean X-Gradwell-MongoId: 4f94c654.35a6-591-1 X-Gradwell-Auth-Method: mailbox X-Gradwell-Auth-Credentials: postmaster@pop3.stade.co.uk Cc: Subject: Re: RELENG_8 still identifies itself as 8.3-PRERELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aw1@stade.co.uk List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 03:02:46 -0000 On Sun, Apr 22, 2012 at 10:39:44PM +0000, Bjoern A. Zeeb wrote: > On 22. Apr 2012, at 21:59 , Adrian Wontroba wrote: > > A RELENG_8 system built this morning still identifies itself as > > 8.3-PRERELEASE. > > Any chance of this becoming 8.3-STABLE soon? While this is entirely > > cosmetic, it does cause me issues at $JOB. > Fixed. Thanks! Thanks also for the suggestions from others. -- Adrian Wontroba From owner-freebsd-stable@FreeBSD.ORG Mon Apr 23 04:33:24 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1C38106566B for ; Mon, 23 Apr 2012 04:33:24 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward3.mail.yandex.net (forward3.mail.yandex.net [IPv6:2a02:6b8:0:602::3]) by mx1.freebsd.org (Postfix) with ESMTP id 628248FC15 for ; Mon, 23 Apr 2012 04:33:24 +0000 (UTC) Received: from smtp2.mail.yandex.net (smtp2.mail.yandex.net [77.88.46.102]) by forward3.mail.yandex.net (Yandex) with ESMTP id E58A0B40EEC; Mon, 23 Apr 2012 08:33:22 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1335155603; bh=lsBD8yWIw8daXkNcZZSwIIjTr3K6MylYnWauo206Em0=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Hf2IDE0xgk6XRHTfOoTBNT1NmjqGz/O1am+E7fCbLro6UxsCy3cEOt2E/qPwfEtyQ IRJQtRlg0UJRqJEzI2Da1e7HbHXZjT/ykkDm9mipRlZRcNGAX/RV0qgDX5m+Sw0H19 Bsf0T+SUJYsjCmMO2QPEZUvilt45HRlBVEnnJKws= Received: from smtp2.mail.yandex.net (localhost [127.0.0.1]) by smtp2.mail.yandex.net (Yandex) with ESMTP id B73E8E203CC; Mon, 23 Apr 2012 08:33:22 +0400 (MSK) Received: from mail.kirov.so-ups.ru (mail.kirov.so-ups.ru [178.74.170.1]) by smtp2.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XLK8Gjb0-XMKuHcYw; Mon, 23 Apr 2012 08:33:22 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1335155602; bh=lsBD8yWIw8daXkNcZZSwIIjTr3K6MylYnWauo206Em0=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=YxhPkXJs3pInMJfzdiYNI09lUmyU3UzzyEkg0FbZzuE0hiuHVfodWO1qel26rUKMt qfBf/pKDUowzR8qDm5s5E3WNWNLcXdlutKZ7GjUw2JQXFN45n3dutTu5lLwMnbGqt/ c7UjRAsom27664yTesECvy4DuXFpMJnVWJglMFZU= Message-ID: <4F94DB91.6040907@yandex.ru> Date: Mon, 23 Apr 2012 08:33:21 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: markk@knigma.org References: <4F91AE64.2090703@knigma.org> In-Reply-To: <4F91AE64.2090703@knigma.org> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: GEOM_PART: integrity check failed (mirror/gm0, MBR) on FreeBSD 8.3-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 04:33:25 -0000 On 20.04.2012 22:43, Mark Knight wrote: > I just did a source upgrade from 8.2 to 8.3. System boots but has this warning: > > GEOM_PART: integrity check failed (mirror/gm0, MBR) > Google points to issues with FreeBSD 9 and the need to migrate to GPT but I wasn't expecting this > with 8.3! It is not necessary to migrate to GPT. You should understand why it is happens. You can enable verbose boot mode and you will see why it complains. > Are there any quick fixes to eliminate this warning or is it safe to ignore please? > sudo gpart list: > > Geom name: mirror/gm0 > modified: false > state: CORRUPT > last: 976773166 > first: 63 > 1. Name: mirror/gm0s1 > Mediasize: 500107829760 (465G) > Consumers: > 1. Name: mirror/gm0 > Mediasize: 500107861504 (465G) The problem is that mirror/gm0 provides only 500107861504 bytes, but the MBR expects 500107829760 + 32256 bytes. -- WBR, Andrey V. Elsukov From owner-freebsd-stable@FreeBSD.ORG Mon Apr 23 14:25:15 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A97D106566C for ; Mon, 23 Apr 2012 14:25:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0F1308FC0C for ; Mon, 23 Apr 2012 14:25:15 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 7CDC7B924; Mon, 23 Apr 2012 10:25:14 -0400 (EDT) From: John Baldwin To: pyunyh@gmail.com Date: Mon, 23 Apr 2012 10:24:41 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <20120228210329.GA2741@localhost> <201203061036.05227.jhb@freebsd.org> <20120307204052.GC9436@michelle.cdnetworks.com> In-Reply-To: <20120307204052.GC9436@michelle.cdnetworks.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204231024.42237.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 23 Apr 2012 10:25:14 -0400 (EDT) Cc: Pavel Gorshkov , freebsd-stable@freebsd.org Subject: Re: msk0: interrupt storm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 14:25:15 -0000 On Wednesday, March 07, 2012 3:40:53 pm YongHyeon PYUN wrote: > On Tue, Mar 06, 2012 at 10:36:05AM -0500, John Baldwin wrote: > > On Thursday, March 01, 2012 8:29:55 pm YongHyeon PYUN wrote: > > > On Wed, Feb 29, 2012 at 01:03:29AM +0400, Pavel Gorshkov wrote: > > > > My laptop running 9.0-RELEASE/amd64/GENERIC freezes and > > > > (sometimes) unfreezes intermittently, logging the following: > > > > > > > > Feb 28 23:07:36 lifebook kernel: interrupt storm detected on "irq259:"; > > throttling interrupt source > > > > > > > > $ vmstat -i > > > > ... > > > > irq259: mskc0 11669511 3456 > > > > > > > > > > > > Looks very similar to this: > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=164569 > > > > > > > > Any suggestions? > > > > > > Try disabling MSI and see whether that makes any difference. > > > > I also get interrupt storms with msk. They do fix themselves when they > > happen, and I've seen it happen with the machine is idle. This is on my > > little netbook where msk had several problems initially that have since been > > fixed. > > > > mskc0: port 0x2000-0x20ff mem > > 0xe0000000-0xe0003fff irq 19 at device 0.0 on pci32 > > msk0: on mskc0 > > msk0: Ethernet address: 00:24:81:40:e3:ef > > miibus0: on msk0 > > e1000phy0: PHY 0 on miibus0 > > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > > > > mskc0@pci0:32:0:0: class=0x020000 card=0x3056103c chip=0x436c11ab > > rev=0x10 hdr=0x00 > > vendor = 'Marvell Technology Group Ltd.' > > device = '88E8072 PCI-E Gigabit Ethernet Controller' > > class = network > > subclass = ethernet > > > > John, can you let me know the value of B0_Y2_SP_ISRC2 register in > interrupt handler when you see the interrupt storm? I finally tested this. I added some KTR traces to dump ISRC2 on each call to msk_intr() and hacked the interrupt thread code to turn KTR tracing off when a storm occurred. The traces look like this: index cpu timestamp trace ------ --- ---------------- ----- 148 0 111662766108828 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 147 0 111662765994576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 146 0 111662765380260 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 145 0 111662765257308 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 144 0 111662765134356 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 143 0 111662765011560 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 142 0 111662764888656 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 141 0 111662764773924 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 140 0 111662764659360 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 139 0 111662764528140 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 138 0 111662764413576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 137 0 111662764287852 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 ... (All traces have the same register value.) The TSC on this netbook runs at machdep.tsc_freq: 1596035244 (The timestamps above are TSC values.) Let me know if you'd like me to log more stuff in the driver. Thanks! -- John Baldwin From owner-freebsd-stable@FreeBSD.ORG Mon Apr 23 17:08:14 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D75DF106566B for ; Mon, 23 Apr 2012 17:08:13 +0000 (UTC) (envelope-from prabhpal@digital-infotech.net) Received: from mail.digital-infotech.net (mail.digital-infotech.net [41.211.25.193]) by mx1.freebsd.org (Postfix) with ESMTP id 800988FC0C for ; Mon, 23 Apr 2012 17:08:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id 06F6F2E400C for ; Mon, 23 Apr 2012 17:08:27 +0000 (GMT) Received: from mail.digital-infotech.net ([127.0.0.1]) by localhost (mail.digital-infotech.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 07110-06 for ; Mon, 23 Apr 2012 17:08:26 +0000 (GMT) Received: from mail.digital-infotech.net (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id B5FA52E400A for ; Mon, 23 Apr 2012 17:08:26 +0000 (GMT) Received: from 41.211.25.193 (SquirrelMail authenticated user prabhpal@digital-infotech.net) by mail.digital-infotech.net with HTTP; Mon, 23 Apr 2012 17:08:26 -0000 Message-ID: <542d8a7ba1b614d2260f117a29e412cb.squirrel@mail.digital-infotech.net> Date: Mon, 23 Apr 2012 17:08:26 -0000 From: "Prabhpal S. Mavi" To: freebsd-stable@freebsd.org User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: FreeBSD_9.0_Port_Upgrade X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: prabhpal@digital-infotech.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 17:08:14 -0000 Dear FreeBSD Friends, i have FreeBSD 9.0 Stable Running the following roles for past four months. Everything is functioning smooth alright. I read that system should be upgraded frequently. i am afraid that if i upgrade something can break. i am planing to run it like that until FreeBSD 9.2 is out, perhaps two years before upgrade. i am not sure if this is a good idea. i seek your advice about the upgrade. ROLE: Postfix Mail Server With Virtual Users Support Using MySQL Database, Apache Web Server, Certificate Authority (CA). Squirrelmail, Postfix Admin, Maia MailGuard Postfix-Admin, SPF, Postgray Filter, spamassassin, Clamav. i want to know the advice from experts, what is best? is it really important to update the system to new ports available. Or once i have no issue, i should follow golden rule. don't fix if not broken. i personally want my system to update at all time and exclude critical ports. i read that sometimes serious problems can occur after Perl upgrade in FreeBSD. these are the things prevent me from upgrade. i am actually working with CentOS / Debian for past 7 years for an ISP. Just did the first setup with FreeBSD. please advice Prabhpal Singh From owner-freebsd-stable@FreeBSD.ORG Mon Apr 23 17:22:50 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 694DD106566B for ; Mon, 23 Apr 2012 17:22:50 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from nk11p00mm-asmtp010.mac.com (nk11p00mm-asmtp010.mac.com [17.158.161.9]) by mx1.freebsd.org (Postfix) with ESMTP id 4CCC48FC08 for ; Mon, 23 Apr 2012 17:22:50 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com (unknown [17.209.4.71]) by nk11p00mm-asmtp010.mac.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0M2Y0054209T0F00@nk11p00mm-asmtp010.mac.com> for freebsd-stable@freebsd.org; Mon, 23 Apr 2012 17:22:42 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7580,1.0.260,0.0.0000 definitions=2012-04-23_04:2012-04-23, 2012-04-23, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1204230169 From: Chuck Swiger X-Priority: 3 (Normal) In-reply-to: <542d8a7ba1b614d2260f117a29e412cb.squirrel@mail.digital-infotech.net> Date: Mon, 23 Apr 2012 10:22:40 -0700 Message-id: References: <542d8a7ba1b614d2260f117a29e412cb.squirrel@mail.digital-infotech.net> To: prabhpal@digital-infotech.net X-Mailer: Apple Mail (2.1084) Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD_9.0_Port_Upgrade X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 17:22:50 -0000 On Apr 23, 2012, at 10:08 AM, Prabhpal S. Mavi wrote: > i have FreeBSD 9.0 Stable Running the following roles for past four > months. Everything is functioning smooth alright. I read that system > should be upgraded frequently. i am afraid that if i upgrade something can > break. It's a good idea to update when a relevant security advisory comes out for something you use (see portaudit and FreeBSD security announcements). Beyond that, it's up to you and your users to decide upon how much testing you need to do to validate changes. It's not expected that upgrading the FreeBSD OS or ports would break things, but software can get complicated and people make mistakes sometimes. In any event, if you have working backups, then you should always be able to restore back to a known-working condition. If you don't have backups, fix that before doing anything else. Regards, -- -Chuck From owner-freebsd-stable@FreeBSD.ORG Mon Apr 23 17:24:05 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 18A901065679 for ; Mon, 23 Apr 2012 17:24:05 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id C69C88FC16 for ; Mon, 23 Apr 2012 17:24:04 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id A0ADE1CC73; Mon, 23 Apr 2012 14:23:54 -0300 (BRT) Received: from 187.69.30.63 (SquirrelMail authenticated user matheus) by eternamente.info with HTTP; Mon, 23 Apr 2012 14:23:54 -0300 Message-ID: In-Reply-To: References: <090f695268b53508b424fde0025497bd.squirrel@eternamente.info> Date: Mon, 23 Apr 2012 14:23:54 -0300 From: "Nenhum_de_Nos" Cc: freebsd-stable@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: Any options on crypt+zfs ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 17:24:05 -0000 On Sat, April 21, 2012 12:46, Ronald Klop wrote: > On Mon, 16 Apr 2012 19:32:43 +0200, Nenhum_de_Nos > wrote: > >> hail, >> >> I have a soekris running an atom and 2GB RAM and ZFS using 7 drives, >> small capacity though, to >> test and study if I can make my home server this box and this way. It >> will be a simple server, >> three users tops. >> >> I followed the handbook and made the geli step on the disks: >> >> Geom name: label/zfs1.eli >> State: ACTIVE >> EncryptionAlgorithm: AES-XTS >> KeyLength: 128 >> Crypto: software >> UsedKey: 0 >> Flags: NONE >> KeysAllocated: 38 >> KeysTotal: 38 >> Providers: >> 1. Name: label/zfs1.eli >> Mediasize: 160041881600 (149G) >> Sectorsize: 4096 >> Mode: r1w1e1 >> Consumers: >> 1. Name: label/zfs1 >> Mediasize: 160041885184 (149G) >> Sectorsize: 512 >> Mode: r1w1e1 >> >> >> all disks are this way (just 4 disks are on geli zfs). >> >> would it be faster, if I had geli over zfs, and not the other way (as is >> now) ? >> >> my performance is too low (I know the hardware is not that much, but I >> compared it to a friend's >> arm based AP-Router gadget and my setup is when much equal. I have 1.6 >> GHz Atom and 2GB ram, he >> has not half this ... I know can't compare arm and x86 clock for clock >> ...) >> >> I'll try to run geli on single disk, to see how much ZFS is impacting on >> performance, but, is >> there any other way around ? All I want is RAID5, and FreeBSD has not >> developed RAID5 from GEOM >> (AFAIK) since a long time. ZFS is the way people go in recent years. >> >> suggestions are welcome, just want to upgrade my old 8.0 BETA3 using >> geom mirror/stripe to a newer >> approach that would be supported by FreeBSD. >> >> I have an external enclosure for 4 SATA disks (port multiplier included) >> using 4 disks, another >> port multiplier 5x1 using now 3 disks, and: >> >> ahci1@pci0:13:0:0: class=0x010601 card=0x10601b21 chip=0x06121b21 >> rev=0x01 hdr=0x00 >> vendor = 'ASMedia Technology Inc.' >> class = mass storage >> subclass = SATA >> >> with two eSATA to the Port Multipliers. > > First try to look for the bottleneck. > What is the performance without GELI? And what performance do you want to > have? If you want performance, why do you use encryption on low-end > hardware? > > Ronald. Hi Ronald, GELI is it. Without GELI I can get to almost 10MB/s (Fast Ethernet wire speed). But when GELI is on the way, 3MB/s is never reached. well, I don't want to have a gigabit wire speed encrypted file server. All I want is to look for the ways to make mine as fast as it can be. If 2MB/s is the fastest it can go, then I'll see if it is enough or not. I just need to make sure I'm in the fastest config possible. I got to see that Via Padlock and their site says is really fast (wouldn't they ?!), so I'm trying to get a board from them to see it myself. But first I need to get rid of the atom board, as this is my home, I can't have so many machines :) thanks for all, matheus >> thanks, >> >> matheus >> >> machine: >> ACPI Error: A valid RSDP was not found (20110527/tbxfroot-237) >> Copyright (c) 1992-2012 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> The Regents of the University of California. All rights reserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 9.0-RELEASE #0: Wed Apr 11 13:04:15 BRT 2012 >> root@macgyver:/usr/obj/usr/src/sys/net6501-amd64 amd64 >> ACPI Error: A valid RSDP was not found (20110527/tbxfroot-237) >> CPU: Genuine Intel(R) CPU @ 1.60GHz (1600.04-MHz K8-class CPU) >> Origin = "GenuineIntel" Id = 0x20661 Family = 6 Model = 26 >> Stepping = 1 >> Features=0xbfe9fbff >> Features2=0x40e3bd >> AMD Features=0x20100800 >> AMD Features2=0x1 >> TSC: P-state invariant, performance statistics >> real memory = 2147352576 (2047 MB) >> avail memory = 2046488576 (1951 MB) >> MPTable: >> Event timer "LAPIC" quality 400 >> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs >> FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads >> cpu0 (BSP): APIC ID: 0 >> cpu1 (AP/HT): APIC ID: 1 >> ioapic0: Assuming intbase of 0 >> ioapic0 irqs 0-23 on motherboard >> kbd0 at kbdmux0 >> ACPI Error: A valid RSDP was not found (20110527/tbxfroot-237) >> ACPI: Table initialisation failed: AE_NOT_FOUND >> ACPI: Try disabling either ACPI or apic support. >> cryptosoft0: on motherboard > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-stable@FreeBSD.ORG Mon Apr 23 20:56:28 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EEB9106566C for ; Mon, 23 Apr 2012 20:56:28 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 76BBD8FC15 for ; Mon, 23 Apr 2012 20:56:27 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q3NKuH68016244 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 23 Apr 2012 21:56:18 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q3NKuH68016244 Authentication-Results: smtp.infracaninophile.co.uk/q3NKuH68016244; dkim=none (no signature); dkim-adsp=none Message-ID: <4F95C1EA.5020702@FreeBSD.org> Date: Mon, 23 Apr 2012 21:56:10 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: prabhpal@digital-infotech.net References: <542d8a7ba1b614d2260f117a29e412cb.squirrel@mail.digital-infotech.net> In-Reply-To: <542d8a7ba1b614d2260f117a29e412cb.squirrel@mail.digital-infotech.net> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5D69907F154DC68810DC63EC" X-Virus-Scanned: clamav-milter 0.97.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-stable@FreeBSD.org Subject: Re: FreeBSD_9.0_Port_Upgrade X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 20:56:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5D69907F154DC68810DC63EC Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 23/04/2012 18:08, Prabhpal S. Mavi wrote: > i want to know the advice from experts, what is best? is it really > important to update the system to new ports available. Or once i have n= o > issue, i should follow golden rule. don't fix if not broken. i personal= ly > want my system to update at all time and exclude critical ports. i read= > that sometimes serious problems can occur after Perl upgrade in FreeBSD= =2E > these are the things prevent me from upgrade. i am actually working wit= h > CentOS / Debian for past 7 years for an ISP. Just did the first setup w= ith > FreeBSD. please advice There isn't a one-size-fits-all best answer to this sort of question. How often you update, how much down time you are willing to tolerate, how much effort you are willing to put in to trade off against the risk of outage depends on the particulars of your system and your user-base. It's a balance of various risks against effort. Not updating at all means the system should just keep running as it is now (assuming there aren't any great variations in usage levels or so forth.) But if any security vulnerabilities are found then you will be vulnerable to system compromise. However, security problems are generally few and far between. If you only upgrade applications exposed to security problems, you run the risk that the updated version will have got out of synch with the rest of your installed application base. This is a common cause of problems in the ports. So you update the application with the security problem, plus anything it depends on, and any other application that depends on something that got updated. That's more like a viable strategy, except you now have to put some effort into working out exactly what needs to be updated. It is also the case that doing infrequent updates involving many applications and over large deltas in version numbers has pretty much the highest risk of something going wrong. So to avoid that, you track updates as they go into ports, and keep everything pretty much up to date. This means that updates tend to happen to one application at a time (so generally a smaller chunk of work, and easier to deal with), and you go from one version to the next (so less chance of breakage because of application changes). Also, you aren't doing updates as an emergency response to security vulnerabilities all the time, so you can plan and schedule your updates in advance. Plus you will be doing updates regularly, so the process will become familiar to you and practice makes mistakes much less likely.= Except that now you're following exactly the strategy that so terrifies people at first sight: you track new releases of software as they come out, which surely leaves you vulnerable to regressions in that software. Well, yes. But regressions in such popular applications as apache, mysql and postfix are very quickly discovered and fixed in the ports. Also, those projects have very good developers working for them and good testing regimes, so such regressions are rare in any case. To ameliorate those risks, well, as part of your updating process, you can update your ports tree, and then take maybe two weeks where you watch the freebsd-ports@ mailing lists or various mailing lists specific to your applications of interest and see if there are any reports of trouble. If it's all clear, then you can update with reasonable confidence. (Although I will state here that although this delay is a good concept, in my experience it only very rarely proves to have been necessary.) In fact, probably the biggest risk when updating is that you, the admin, makes a mistake. Making updates into a routine, regular task helps. But the biggest way you can save yourself from grief comes right out of Sysadmin-101: *never do anything you cannot directly undo*. This means: always have a plan for being able to back-out your changes before you start. You can keep backup copies of the ports you are updating (portmaster(8) does this automatically, although it doesn't have a specific command to revert to a saved package; that you have to do manually), or you can use filesystem snapshots (particularly good with ZFS) or you can just rely on good old filesystem backups. If you're running a particularly important system that really cannot afford unscheduled outages, then really you want to have a development server that you can practice the updates on and use for testing (plus you can make package tarballs on the development server, which will cut down the time needed to work on the live server). Or you may have a hot spare system, or you can split up a HA pair or many other means of reducing the risks of something going sufficiently wrong that it affects service. Even if you can't afford spare hardware for a dev system, you could use a jail on your live server to much the same effect. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig5D69907F154DC68810DC63EC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+VwfEACgkQ8Mjk52CukIxvPgCdFw5X1Jer6Ln6E/3dn65WE3Lu aKYAnRXg5e+wmT4JCeK1OFv8Jomh/q9f =2EU7 -----END PGP SIGNATURE----- --------------enig5D69907F154DC68810DC63EC-- From owner-freebsd-stable@FreeBSD.ORG Mon Apr 23 22:08:16 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FEBF1065670 for ; Mon, 23 Apr 2012 22:08:16 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5B88FC0C for ; Mon, 23 Apr 2012 22:08:16 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SMRQb-0005dr-Sv for freebsd-stable@freebsd.org; Tue, 24 Apr 2012 00:08:13 +0200 Received: from www01.lwilke.de ([78.47.159.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Apr 2012 00:08:13 +0200 Received: from lw by www01.lwilke.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Apr 2012 00:08:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Lars Wilke Date: Mon, 23 Apr 2012 21:42:39 +0000 Lines: 79 Message-ID: References: <542d8a7ba1b614d2260f117a29e412cb.squirrel@mail.digital-infotech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: www01.lwilke.de User-Agent: slrn/0.9.9p1 (Linux) Subject: Re: FreeBSD_9.0_Port_Upgrade X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 22:08:16 -0000 * Prabhpal S. Mavi wrote: > Dear FreeBSD Friends, > > i have FreeBSD 9.0 Stable Running the following roles for past four > months. Everything is functioning smooth alright. I read that system > should be upgraded frequently. i am afraid that if i upgrade something can > break. > > i am planing to run it like that until FreeBSD 9.2 is out, perhaps two > years before upgrade. i am not sure if this is a good idea. i seek your > advice about the upgrade. > > ROLE: Postfix Mail Server With Virtual Users Support Using MySQL Database, > Apache Web Server, Certificate Authority (CA). Squirrelmail, Postfix > Admin, Maia MailGuard Postfix-Admin, SPF, Postgray Filter, spamassassin, > Clamav. > [...] First you have to be aware that the stable tree in FBSD means something completly different than a release in Red Hat/CentOS land. Here stable is the stable branch which gets updates, bugfixes and new features. From this branch the next release is created. These updates and new features might not be as disruptive as in the development branch but still things change. So you might consider using a release branch instead, which only gets security and critical bugfixes. Critical really means critical here and not every bugfix around. In this regard a release branch is very stable :) So with stable you are really tracking a rolling release more like Debian testing or say a rolling release repository like the fasttrack repo in CentOS/Scientific Linux. While the release branch is more like staying on the same minor release in Red Hat. But the minor release in Red Hat gets far more updates even for not so serious bugs and sometimes even driver updates. The last part is AFAIU the reason that many people recomend the stable branch in FBSD, b/c you get bugfixes and some driver updates faster or even at all. If you would be on the release branch you would either have to switch to stable or wait for the next release branch to get these updates and fixes. As you are on stable i would suggest a test machine with the same setup, or at least a virtual machine with the same setup. Maybe a jail will do for you, else you could use something like virtualbox. Backups, always have backups and do some backups before doing something. Under Linux there is a nifty tool called etckeeper, it basically hooks into the package manager and tracks changes to /etc via version control. No idea if something like this is available under FBSD but you could roll your own ... If you use ZFS snapshots are easy and cheap, also there is basic Live Upgrade/Boot Environment support. http://anonsvn.h3q.com/projects/freebsd-patches/wiki/manageBE If you use ZFS, i really suggest you look into this one, b/c it allows you to switch your complete system around at will. Also, the updates can be tested on an exact production copy without affecting the running system. On the security side i would suggest some form of host basesd intrusion detection and some common sense hardening. Generally monitoring (alarming+capacity/trending) for a live service is a good idea, too. Accompanied by following the security advisories and using portaudit should be enough, i guess ... hth --lars From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 04:07:26 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DEDD1065675; Tue, 24 Apr 2012 04:07:26 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 12BEB8FC08; Tue, 24 Apr 2012 04:07:26 +0000 (UTC) Received: by dadz14 with SMTP id z14so932421dad.17 for ; Mon, 23 Apr 2012 21:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=fGGYdiLZYnCSAguzcDxo+WaQSO+4u86wM7en4XI7wHM=; b=xfUuLtGVKxQicCVcxxspdKdPjRGTs0pixWT9ENLVurCr6ujqg3UhFBqYqsFLzmdS5e qaT5CxT9gTLNeIdCWQvXD5B366cvS4Xvk6PuqZ3ZCsnFiCMNYm+Uw0kzQFeWL7cEZZw3 SsmoRpPXfTqQEe/ud3fVoMYkIoRzEUCNyH57zAg+p5/20d8yimEsS+hnhsfLCC8l43iG lGrN3bui/y0UjqC1CaKKMck9HupGOt28ufGCMpeq+uPU1xpOMp1kY3jHvUrNcGep7Mar 99oJbr0DV2U2eez8B2QNfye6m/9snd54ywvhNgYCs+QtXp8jocuUj8qCp4v3JeqL0lXC +A9A== Received: by 10.68.237.163 with SMTP id vd3mr568773pbc.33.1335240445901; Mon, 23 Apr 2012 21:07:25 -0700 (PDT) Received: from pyunyh@gmail.com ([114.111.62.249]) by mx.google.com with ESMTPS id wf6sm16249198pbc.8.2012.04.23.21.07.22 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Apr 2012 21:07:24 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 24 Apr 2012 13:07:19 -0700 From: YongHyeon PYUN Date: Tue, 24 Apr 2012 13:07:19 -0700 To: John Baldwin Message-ID: <20120424200719.GB6932@michelle.cdnetworks.com> References: <20120228210329.GA2741@localhost> <201203061036.05227.jhb@freebsd.org> <20120307204052.GC9436@michelle.cdnetworks.com> <201204231024.42237.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <201204231024.42237.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: Pavel Gorshkov , freebsd-stable@freebsd.org Subject: Re: msk0: interrupt storm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 04:07:26 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 23, 2012 at 10:24:41AM -0400, John Baldwin wrote: > On Wednesday, March 07, 2012 3:40:53 pm YongHyeon PYUN wrote: > > On Tue, Mar 06, 2012 at 10:36:05AM -0500, John Baldwin wrote: > > > On Thursday, March 01, 2012 8:29:55 pm YongHyeon PYUN wrote: > > > > On Wed, Feb 29, 2012 at 01:03:29AM +0400, Pavel Gorshkov wrote: > > > > > My laptop running 9.0-RELEASE/amd64/GENERIC freezes and > > > > > (sometimes) unfreezes intermittently, logging the following: > > > > > > > > > > Feb 28 23:07:36 lifebook kernel: interrupt storm detected on "irq259:"; > > > throttling interrupt source > > > > > > > > > > $ vmstat -i > > > > > ... > > > > > irq259: mskc0 11669511 3456 > > > > > > > > > > > > > > > Looks very similar to this: > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=164569 > > > > > > > > > > Any suggestions? > > > > > > > > Try disabling MSI and see whether that makes any difference. > > > > > > I also get interrupt storms with msk. They do fix themselves when they > > > happen, and I've seen it happen with the machine is idle. This is on my > > > little netbook where msk had several problems initially that have since been > > > fixed. > > > > > > mskc0: port 0x2000-0x20ff mem > > > 0xe0000000-0xe0003fff irq 19 at device 0.0 on pci32 > > > msk0: on mskc0 > > > msk0: Ethernet address: 00:24:81:40:e3:ef > > > miibus0: on msk0 > > > e1000phy0: PHY 0 on miibus0 > > > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > > > > > > mskc0@pci0:32:0:0: class=0x020000 card=0x3056103c chip=0x436c11ab > > > rev=0x10 hdr=0x00 > > > vendor = 'Marvell Technology Group Ltd.' > > > device = '88E8072 PCI-E Gigabit Ethernet Controller' > > > class = network > > > subclass = ethernet > > > > > > > John, can you let me know the value of B0_Y2_SP_ISRC2 register in > > interrupt handler when you see the interrupt storm? > > I finally tested this. I added some KTR traces to dump ISRC2 on each > call to msk_intr() and hacked the interrupt thread code to turn KTR tracing > off when a storm occurred. The traces look like this: > > index cpu timestamp trace > ------ --- ---------------- ----- > 148 0 111662766108828 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 147 0 111662765994576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 146 0 111662765380260 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 145 0 111662765257308 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 144 0 111662765134356 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 143 0 111662765011560 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 142 0 111662764888656 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 141 0 111662764773924 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 140 0 111662764659360 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 139 0 111662764528140 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 138 0 111662764413576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > 137 0 111662764287852 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > ... > > (All traces have the same register value.) The TSC on this netbook runs > at machdep.tsc_freq: 1596035244 > > (The timestamps above are TSC values.) > > Let me know if you'd like me to log more stuff in the driver. Thanks! wonder why the deivce gets TWSI completion interrupt since the driver does not monitor temperature sensor. In addition, the interrupt was already disabled so have no idea how this can happen. Here, I assume your controller implemented optional temperature sensor and it is monitored by H/W. Anyway, try attached patch and let me know whether it makes any difference. --vtzGhvizbBRQ85DL Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="msk.TWSI.diff" Index: sys/dev/msk/if_msk.c =================================================================== --- sys/dev/msk/if_msk.c (revision 234591) +++ sys/dev/msk/if_msk.c (working copy) @@ -3734,6 +3734,9 @@ if ((status & Y2_IS_STAT_BMU) != 0 && domore == 0) CSR_WRITE_4(sc, STAT_CTRL, SC_STAT_CLR_IRQ); + /* Clear TWSI IRQ. */ + if ((status & Y2_IS_TWSI_RDY) != 0) + CSR_WRITE_4(sc, B2_I2C_IRQ, 1); /* Reenable interrupts. */ CSR_WRITE_4(sc, B0_Y2_SP_ICR, 2); --vtzGhvizbBRQ85DL-- From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 07:23:31 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B7B1C1065672 for ; Tue, 24 Apr 2012 07:23:31 +0000 (UTC) (envelope-from dave@jetcafe.org) Received: from hugeraid.jetcafe.org (hugeraid.jetcafe.org [205.147.26.109]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2A88FC0C for ; Tue, 24 Apr 2012 07:23:31 +0000 (UTC) Received: from hugeraid.jetcafe.org (localhost [127.0.0.1]) by hugeraid.jetcafe.org (8.13.8/8.13.8) with ESMTP id q3O7AQaQ075735 for ; Tue, 24 Apr 2012 00:10:26 -0700 (PDT) Message-Id: <201204240710.q3O7AQaQ075735@hugeraid.jetcafe.org> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 24 Apr 2012 00:10:26 -0700 From: Dave Hayes Subject: Attempting to boot into ramdisk on 8.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 07:23:31 -0000 I have a build process (which worked at release 7.3) that makes a bootable ISO using a ramdisk image as the boot volume. At release 8 it panics right after reporting the real memory size with: kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode ... [thread pid 0 tid 0 ] Stopped at pmap_enter+0x19a: moveq (%rcx),%r14 (I have the text frozen on another screen if more data is needed, I've literally spent weeks trying to get this panic to appear on the screen so it's not going anywhere.) I build the world with this system without cross compiling. # uname -mrs FreeBSD 8.3-RC1 amd64 The system that paniced is very similar: a 64-bit amd4 system. What am I doing wrong, if anything? How can I do a successful large ramdisk boot? My process is to copy the entire OS to a ramdisk and boot off of that. I use the following ideas for this: /boot/loader.conf: mfsroot_type="mfs_root" mfsroot_name="/mfsboot" vfs.root.mountfrom="ufs:md0" vfs.root.mountfrom.options="rw" ## Tunables kern.ipc.nmbclusters=32768 net.inet.tcp.tcbhashsize=16384 vm.pmap.pg_ps_enabled=1 accf_http_load="YES" net.inet.tcp.syncache.hashsize=1024 net.inet.tcp.syncache.bucketlimit=100 The size of mfsboot is 600M. The diff between GENERIC and my kernel config, comments left in so people can see what I was doing 7.3ish: 28.43d26 < ### FBCD64 SPECIFIC < #options MD_ROOT_SIZE="524288" < options GEOM_UZIP < #options INCLUDE_CONFIG_FILE < #options ZERO_COPY_SOCKETS < #options HZ=1000 < #options DEVICE_POLLING < #options NKPT=600 # not set up on amd64 < # < # Debugging < options KDB < options DDB < options BREAK_TO_DEBUGGER < options ALT_BREAK_TO_DEBUGGER Thanks in advance for any assistance! -- Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>> The opinions expressed above are entirely my own <<< One of the most common defenses against really learning something is to believe that one knows it already. From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 08:51:27 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29437106566C for ; Tue, 24 Apr 2012 08:51:27 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id A17538FC0A for ; Tue, 24 Apr 2012 08:51:26 +0000 (UTC) Received: by lbbgm6 with SMTP id gm6so385995lbb.13 for ; Tue, 24 Apr 2012 01:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=cpWz+8egMB3X66mP0soib17jJK8ywsWbLpN1/KC/y1w=; b=Oer0aDFNV9u+Hte+/154UcG6dsaspPFQzPIH2o4trNeEBfGHcmntnAdcE6/3klwBrh dB8KI533LjEITrUvaMdJHMiBxHggQi6UDxcz+SkfbtI9XP4HHj9jCoB9zcaSsxup6Fb9 iLX+nFVIcQZeAbbk2ATcAvk6OHRGAVOu7KL497bmph89Y0MQKPIeuQm+ns3Hl+IGbPt4 JnGrqDBw/kiDR977vpJeMgfcGUGc0lnfWSRKfLKKHEGVQPSoe60qlHWwRlyR/xNGsV33 Fprl1x2mRqpm/6kwr0VtrThBMzP5bICTPRhlWMcGm3cdXG1v07LJ9mAQcs22q6PagrX5 DnXA== MIME-Version: 1.0 Received: by 10.152.114.106 with SMTP id jf10mr6535312lab.16.1335257480114; Tue, 24 Apr 2012 01:51:20 -0700 (PDT) Received: by 10.152.25.69 with HTTP; Tue, 24 Apr 2012 01:51:20 -0700 (PDT) Date: Tue, 24 Apr 2012 12:51:20 +0400 Message-ID: From: Sergey Kandaurov To: freebsd-stable Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: panic: vm_page_free: freeing free page X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 08:51:27 -0000 Yep, this is quite old - 7.2-STABLE i386. I got this panic after starting doing some Xorg activity, otherwise system was idle for some hours. I wonder if this is know/fixed in later versions. If that's true then please just ignore this mail. Unread portion of the kernel message buffer: vm_page_free: pindex(0), busy(0), VPO_BUSY(0), hold(0) panic: vm_page_free: freeing free page cpuid =3D 0 Uptime: 7d1h47m51s (kgdb) bt #0 doadump () at pcpu.h:196 #1 0xc057ce07 in boot (howto=3D260) at /usr/home/pluknet/cvs-7/src/sys/kern/kern_shutdown.c:418 #2 0xc057d0d9 in panic (fmt=3DVariable "fmt" is not available. ) at /usr/home/pluknet/cvs-7/src/sys/kern/kern_shutdown.c:574 #3 0xc06da965 in vm_page_free_toq (m=3D0xc1c1edb8) at /usr/home/pluknet/cvs-7/src/sys/vm/vm_page.c:1375 #4 0xc06dab66 in vm_page_free (m=3D0xc1c1edb8) at /usr/home/pluknet/cvs-7/src/sys/vm/vm_page.c:506 #5 0xc06d9850 in vm_object_page_remove (object=3D0xc7bad300, start=3D0, en= d=3D256, clean_only=3D0) at /usr/home/pluknet/cvs-7/src/sys/vm/vm_object.c:1955 #6 0xc06d1756 in vm_map_delete (map=3DVariable "map" is not available. ) at /usr/home/pluknet/cvs-7/src/sys/vm/vm_map.c:2329 #7 0xc06d5287 in munmap (td=3D0xc5f0c240, uap=3D0xe8a01cfc) at /usr/home/pluknet/cvs-7/src/sys/vm/vm_mmap.c:582 #8 0xc071f375 in syscall (frame=3D0xe8a01d38) at /usr/home/pluknet/cvs-7/src/sys/i386/i386/trap.c:1101 #9 0xc0703a20 in Xint0x80_syscall () at /usr/home/pluknet/cvs-7/src/sys/i386/i386/exception.s:262 (kgdb) up #1 0xc057ce07 in boot (howto=3D260) at /usr/home/pluknet/cvs-7/src/sys/kern/kern_shutdown.c:418 418 doadump(); (kgdb) up #2 0xc057d0d9 in panic (fmt=3DVariable "fmt" is not available. ) at /usr/home/pluknet/cvs-7/src/sys/kern/kern_shutdown.c:574 574 boot(bootopt); (kgdb) up #3 0xc06da965 in vm_page_free_toq (m=3D0xc1c1edb8) at /usr/home/pluknet/cvs-7/src/sys/vm/vm_page.c:1375 warning: Source file is more recent than executable. 1375 if (VM_PAGE_IS_FREE(m)) (kgdb) inspect *m $1 =3D {pageq =3D {tqe_next =3D 0xc1c1ee48, tqe_prev =3D 0xc2c69328}, listq= =3D { tqe_next =3D 0xc1c1ee48, tqe_prev =3D 0xc7bad32c}, left =3D 0x0, right =3D 0xc1b9f5d0, object =3D 0x0, pindex =3D 0, phys_addr =3D 6917980= 16, md =3D { pat_mode =3D 6, pv_list =3D {tqh_first =3D 0x0, tqh_last =3D 0xc1c1ede4= }}, queue =3D 2 '\002', segind =3D 3 '\003', flags =3D 131, order =3D 11 '\v'= , pool =3D 0 '\0', cow =3D 0, wire_count =3D 0, hold_count =3D 0, oflags = =3D 0, act_count =3D 5 '\005', busy =3D 0 '\0', valid =3D 0 '\0', dirty =3D 255 = '=D0=AA'} (kgdb) up #4 0xc06dab66 in vm_page_free (m=3D0xc1c1edb8) at /usr/home/pluknet/cvs-7/src/sys/vm/vm_page.c:506 506 vm_page_free_toq(m); (kgdb) up #5 0xc06d9850 in vm_object_page_remove (object=3D0xc7bad300, start=3D0, en= d=3D256, clean_only=3D0) at /usr/home/pluknet/cvs-7/src/sys/vm/vm_object.c:1955 1955 vm_page_free(p); (kgdb) inspect *p $2 =3D {pageq =3D {tqe_next =3D 0xc1c1ee48, tqe_prev =3D 0xc2c69328}, listq= =3D { tqe_next =3D 0xc1c1ee48, tqe_prev =3D 0xc7bad32c}, left =3D 0x0, right =3D 0xc1b9f5d0, object =3D 0x0, pindex =3D 0, phys_addr =3D 6917980= 16, md =3D { pat_mode =3D 6, pv_list =3D {tqh_first =3D 0x0, tqh_last =3D 0xc1c1ede4= }}, queue =3D 2 '\002', segind =3D 3 '\003', flags =3D 131, order =3D 11 '\v'= , pool =3D 0 '\0', cow =3D 0, wire_count =3D 0, hold_count =3D 0, oflags = =3D 0, act_count =3D 5 '\005', busy =3D 0 '\0', valid =3D 0 '\0', dirty =3D 255 = '=D0=AA'} (kgdb) inspect *object $3 =3D {mtx =3D {lock_object =3D {lo_name =3D 0xc0777524 "vm object", lo_type =3D 0xc077818b "standard object", lo_flags =3D 21168128, lo_witness_data =3D {lod_list =3D {stqe_next =3D 0x0}, lod_witness = =3D 0x0}}, mtx_lock =3D 3320889920, mtx_recurse =3D 0}, object_list =3D { tqe_next =3D 0xca3fa300, tqe_prev =3D 0xca632818}, shadow_head =3D { lh_first =3D 0x0}, shadow_list =3D {le_next =3D 0x0, le_prev =3D 0xc8c4= 5a20}, memq =3D {tqh_first =3D 0xc1c1edb8, tqh_last =3D 0xc23411a8}, root =3D 0x= c2171ef8, size =3D 1024, generation =3D 2748, ref_count =3D 2, shadow_count =3D 0, type =3D 0 '\0', memattr =3D 6 '\006', flags =3D 12544, pg_color =3D 4684= 8, paging_in_progress =3D 1, resident_page_count =3D 179, backing_object =3D= 0x0, backing_object_offset =3D 0, pager_object_list =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}, rvq =3D {lh_first =3D 0x0}, cache =3D 0x0, handle = =3D 0x0, un_pager =3D {vnp =3D {vnp_size =3D 0}, devp =3D {devp_pglist =3D {tqh_fi= rst =3D 0x0, tqh_last =3D 0x0}}, sgp =3D {sgp_pglist =3D {tqh_first =3D 0x0, tqh_last =3D 0x0}}, swp =3D {swp_bcount =3D 0}}} --=20 wbr, pluknet From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 09:00:57 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03EE9106566C for ; Tue, 24 Apr 2012 09:00:57 +0000 (UTC) (envelope-from andrej@antiszoc.hu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id A9E4F8FC18 for ; Tue, 24 Apr 2012 09:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=antiszoc.hu; s=default; h=Message-ID:Subject:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=HwqRvQ3OynsAQeT7c9PV4Vi2OtnY+BtwxPCfgw2I2Aw=; b=LhMvyN5hyU3M7YoWD5gZtyM3/tNynrbuUArD6OE7mAtP4xOdGLhSvQg0GRimFO9205gM0bScmzf8DH6p5r6n7/n+h1xMq09ZZDVASUlLnVHoELjioYU/fR9PRKc9Ptsv; Authentication-Results: mail.deployis.eu dkim=none Received: from localhost ([127.0.0.1]:53486 helo=mail.deployis.eu) by mail.deployis.eu with esmtp (Exim 4.71 #1 (Debian)) id 1SMbc9-0003Dj-P6 from for ; Tue, 24 Apr 2012 11:00:49 +0200 Received: from [194.152.141.2] by mail.deployis.eu with HTTP (HTTP/1.1 POST); Tue, 24 Apr 2012 11:00:49 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 24 Apr 2012 11:00:49 +0200 From: =?UTF-8?Q?G=C3=B3t_Andr=C3=A1s?= To: Message-ID: X-Sender: andrej@antiszoc.hu User-Agent: RoundCube Webmail/0.2.1 X-Mail-Status-postahivatal: trustedmail (from 127.0.0.1) X-Spam-Score-postahivatal: -51 Subject: will there be a fix for CVE-2012-2110 (openssl) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 09:00:57 -0000 Dear List, Does the RELEASE_8.2 or RELENG_8 needs the CVE-2012-2110 fix for openssl? Best, Andras From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 10:54:20 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C27DA106564A for ; Tue, 24 Apr 2012 10:54:20 +0000 (UTC) (envelope-from prabhpal@digital-infotech.net) Received: from mail.digital-infotech.net (mail.digital-infotech.net [41.211.25.193]) by mx1.freebsd.org (Postfix) with ESMTP id 2D5F58FC0C for ; Tue, 24 Apr 2012 10:54:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id 0DE862E400C; Tue, 24 Apr 2012 11:02:57 +0000 (GMT) Received: from mail.digital-infotech.net ([127.0.0.1]) by localhost (mail.digital-infotech.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 01568-10; Tue, 24 Apr 2012 11:02:56 +0000 (GMT) Received: from mail.digital-infotech.net (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id 8586D2E400A; Tue, 24 Apr 2012 11:02:56 +0000 (GMT) Received: from 41.211.25.193 (SquirrelMail authenticated user prabhpal@digital-infotech.net) by mail.digital-infotech.net with HTTP; Tue, 24 Apr 2012 11:02:56 -0000 Message-ID: In-Reply-To: References: <542d8a7ba1b614d2260f117a29e412cb.squirrel@mail.digital-infotech.net> Date: Tue, 24 Apr 2012 11:02:56 -0000 From: "Prabhpal S. Mavi" To: "Lars Wilke" User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD_9.0_Port_Upgrade - Exclude Ports X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: prabhpal@digital-infotech.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 10:54:20 -0000 > * Prabhpal S. Mavi wrote: >> Dear FreeBSD Friends, >> >> i have FreeBSD 9.0 Stable Running the following roles for past four >> months. Everything is functioning smooth alright. I read that system >> should be upgraded frequently. i am afraid that if i upgrade something >> can >> break. >> >> i am planing to run it like that until FreeBSD 9.2 is out, perhaps two >> years before upgrade. i am not sure if this is a good idea. i seek your >> advice about the upgrade. >> >> ROLE: Postfix Mail Server With Virtual Users Support Using MySQL >> Database, >> Apache Web Server, Certificate Authority (CA). Squirrelmail, Postfix >> Admin, Maia MailGuard Postfix-Admin, SPF, Postgray Filter, >> spamassassin, >> Clamav. >> [...] > > First you have to be aware that the stable tree in FBSD means something > completly different than a release in Red Hat/CentOS land. > > Here stable is the stable branch which gets updates, bugfixes and new > features. From this branch the next release is created. > > These updates and new features might not be as disruptive as > in the development branch but still things change. > So you might consider using a release branch instead, which only gets > security and critical bugfixes. > > Critical really means critical here and not every bugfix around. > In this regard a release branch is very stable :) > > So with stable you are really tracking a rolling release more like > Debian testing or say a rolling release repository like the fasttrack > repo in CentOS/Scientific Linux. > > While the release branch is more like staying on the same minor release > in Red Hat. But the minor release in Red Hat gets far more updates even > for not so serious bugs and sometimes even driver updates. > > The last part is AFAIU the reason that many people recomend the stable > branch in FBSD, b/c you get bugfixes and some driver updates faster or > even at all. > > If you would be on the release branch you would either have to switch > to stable or wait for the next release branch to get these updates and > fixes. > > As you are on stable i would suggest a test machine with the same > setup, or at least a virtual machine with the same setup. Maybe a jail > will do for you, else you could use something like virtualbox. > > Backups, always have backups and do some backups before doing something. > Under Linux there is a nifty tool called etckeeper, it basically hooks > into the package manager and tracks changes to /etc via version control. > No idea if something like this is available under FBSD but you could > roll your own ... > > If you use ZFS snapshots are easy and cheap, also there is basic Live > Upgrade/Boot Environment support. > > http://anonsvn.h3q.com/projects/freebsd-patches/wiki/manageBE > > If you use ZFS, i really suggest you look into this one, b/c it allows > you to switch your complete system around at will. Also, the updates > can be tested on an exact production copy without affecting the running > system. > > On the security side i would suggest some form of host basesd intrusion > detection and some common sense hardening. > > Generally monitoring (alarming+capacity/trending) for a live service is > a good idea, too. > > Accompanied by following the security advisories and using portaudit > should > be enough, i guess ... > > hth > --lars > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > Dear All, First, thank you very much for your valuable advice time and efforts you did put to write the response. how can i exclude some ports from being update when using port manager utility? i mean which switch can i use or edit the file for exclude. Thanks / Regards Thanks / Regards Prabhpal From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 14:27:54 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E6401065672 for ; Tue, 24 Apr 2012 14:27:54 +0000 (UTC) (envelope-from prvs=0461f407c8=ob@gruft.de) Received: from main.mx.e-gitt.net (service.rules.org [IPv6:2001:1560:2342::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1D2848FC12 for ; Tue, 24 Apr 2012 14:27:54 +0000 (UTC) Received: from ob by main.mx.e-gitt.net with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SMgid-000CJd-4l for freebsd-stable@freebsd.org; Tue, 24 Apr 2012 16:27:51 +0200 Date: Tue, 24 Apr 2012 16:27:51 +0200 From: Oliver Brandmueller To: freebsd-stable@freebsd.org Message-ID: <20120424142751.GV65313@e-Gitt.NET> Mail-Followup-To: freebsd-stable@freebsd.org References: <20120330083830.GB65313@e-Gitt.NET> <4F761F4B.90409@p6m7g8.com> <20120403133351.GY65313@e-Gitt.NET> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120403133351.GY65313@e-Gitt.NET> X-Face: "TT~P'b_)-jKU_0^a=usXryz`YTz)z.[FZrI,A~PREI2U}frrZ`>_J&; ^t|^.dR/mqtC,Vb.Y>~u8(|aL)vAv(k">zY"]*m*y|b8S7:WK[/qP5i>HO#Ek; C[X:b|FP0*Ly_4Ni User-Agent: Mutt/1.5.21 (2010-09-15) Sender: Oliver Brandmueller Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 14:27:54 -0000 Hi, After figuring an easy way to repeat the behaviour and hunting it down to the combination of ZFS+newNFS and removal of files or directories I opened PR kern/167266 Greetings, Oliver -- | Oliver Brandmueller http://sysadm.in/ ob@sysadm.in | | Ich bin das Internet. Sowahr ich Gott helfe. | From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 18:04:38 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14D12106564A for ; Tue, 24 Apr 2012 18:04:38 +0000 (UTC) (envelope-from dustinwenz@xtechllc.com) Received: from internet02.xtechllc.com (internet02.tru-signal.com [65.127.24.21]) by mx1.freebsd.org (Postfix) with ESMTP id CC9A98FC12 for ; Tue, 24 Apr 2012 18:04:37 +0000 (UTC) Received: from service02.office.ebureau.com (service02.office.ebureau.com [192.168.20.15]) by internet02.xtechllc.com (Postfix) with ESMTP id D4BC4C434F5 for ; Tue, 24 Apr 2012 12:55:07 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by service02.office.ebureau.com (Postfix) with ESMTP id 78AE998C3B36 for ; Tue, 24 Apr 2012 12:55:07 -0500 (CDT) X-Virus-Scanned: amavisd-new at ebureau.com Received: from service02.office.ebureau.com ([127.0.0.1]) by localhost (service02.office.iscompanies.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4OrtGBAQ3XZj for ; Tue, 24 Apr 2012 12:55:06 -0500 (CDT) Received: from square.office.iscompanies.com (square.office.iscompanies.com [10.10.20.22]) by service02.office.ebureau.com (Postfix) with ESMTPSA id B29E298C3B28 for ; Tue, 24 Apr 2012 12:55:06 -0500 (CDT) From: Dustin Wenz Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 24 Apr 2012 12:55:06 -0500 Message-Id: <17DD4C39-6905-4A5B-AE86-87F149CBD5BC@xtechllc.com> To: freebsd-stable@freebsd.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) Subject: Can MPS discard a misbehaving disk? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 18:04:38 -0000 I am having trouble with MPS becoming unresponsive in certain disk = failure conditions. So far, I've experienced this with 3TB Hitachi disks = (0S03208) and 3TB Seagate Barracuda disks (ST3000DM001, firmware CC9D) = while using the MPS driver with an LSI SAS2116 controller on FreeBSD = 8.2-STABLE. In these particular instances, the disks are part of a zpool of mirrors. = When a disk fails, I generally see a message like "kernel: = (da5:mps0:0:5:0): SCSI command timeout on device handle 0x0017 SMID = 148", followed by an indefinite number of "mps0: (0:5:0) terminated ioc = 804b scsi 0 state c xfer 65536" messages. What I would want to happen in this case is for the disk to simply go = offline in the zpool, in order for the pool to continue functioning. = However, the pool status still shows the disk as online. Any attempts to = disable the disk (such as with zpool offline, remove, or detach) will = hang and never complete, as will attempting a rescan with camcontrol. Of = course, any attempts to access data in the pool will hang as well. Rebooting the system in this state is also bad; when the disk is first = discovered, it will begin a cycle of mps scsi errors during startup that = never seem to stop. The only way to recover, at least that I know of, is = to physically remove the disk from the chassis. Once I do that, the = system continues running perfectly. Basically my question is this: How can I get MPS to ignore a failed disk = and never attempt to access it again? I don't care if it does so = automatically, or I if I need to perform some administrative operation = to drop the device reference. I've seen a number of people on the list = having problems that appear similar to this; but those seem more to do = with firmware or compatibility issues. I my case, these disks are = definitely dead... they no longer work in any other systems, and often = make sad clicking noises. I suppose this is also something that ZFS could do, independent of the = driver. If a device is unresponsive, shouldn't it take it offline on = it's own? - .Dustin From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 19:07:20 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 560E5106566C for ; Tue, 24 Apr 2012 19:07:20 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id F1D8B8FC0A for ; Tue, 24 Apr 2012 19:07:19 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 7271DB911; Tue, 24 Apr 2012 15:07:19 -0400 (EDT) From: John Baldwin To: pyunyh@gmail.com Date: Tue, 24 Apr 2012 15:07:14 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <20120228210329.GA2741@localhost> <201204231024.42237.jhb@freebsd.org> <20120424200719.GB6932@michelle.cdnetworks.com> In-Reply-To: <20120424200719.GB6932@michelle.cdnetworks.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201204241507.14699.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 24 Apr 2012 15:07:19 -0400 (EDT) Cc: Pavel Gorshkov , freebsd-stable@freebsd.org Subject: Re: msk0: interrupt storm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 19:07:20 -0000 On Tuesday, April 24, 2012 4:07:19 pm YongHyeon PYUN wrote: > On Mon, Apr 23, 2012 at 10:24:41AM -0400, John Baldwin wrote: > > On Wednesday, March 07, 2012 3:40:53 pm YongHyeon PYUN wrote: > > > On Tue, Mar 06, 2012 at 10:36:05AM -0500, John Baldwin wrote: > > > > On Thursday, March 01, 2012 8:29:55 pm YongHyeon PYUN wrote: > > > > > On Wed, Feb 29, 2012 at 01:03:29AM +0400, Pavel Gorshkov wrote: > > > > > > My laptop running 9.0-RELEASE/amd64/GENERIC freezes and > > > > > > (sometimes) unfreezes intermittently, logging the following: > > > > > > > > > > > > Feb 28 23:07:36 lifebook kernel: interrupt storm detected on "irq259:"; > > > > throttling interrupt source > > > > > > > > > > > > $ vmstat -i > > > > > > ... > > > > > > irq259: mskc0 11669511 3456 > > > > > > > > > > > > > > > > > > Looks very similar to this: > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=164569 > > > > > > > > > > > > Any suggestions? > > > > > > > > > > Try disabling MSI and see whether that makes any difference. > > > > > > > > I also get interrupt storms with msk. They do fix themselves when they > > > > happen, and I've seen it happen with the machine is idle. This is on my > > > > little netbook where msk had several problems initially that have since been > > > > fixed. > > > > > > > > mskc0: port 0x2000-0x20ff mem > > > > 0xe0000000-0xe0003fff irq 19 at device 0.0 on pci32 > > > > msk0: on mskc0 > > > > msk0: Ethernet address: 00:24:81:40:e3:ef > > > > miibus0: on msk0 > > > > e1000phy0: PHY 0 on miibus0 > > > > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > > > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > > > > > > > > mskc0@pci0:32:0:0: class=0x020000 card=0x3056103c chip=0x436c11ab > > > > rev=0x10 hdr=0x00 > > > > vendor = 'Marvell Technology Group Ltd.' > > > > device = '88E8072 PCI-E Gigabit Ethernet Controller' > > > > class = network > > > > subclass = ethernet > > > > > > > > > > John, can you let me know the value of B0_Y2_SP_ISRC2 register in > > > interrupt handler when you see the interrupt storm? > > > > I finally tested this. I added some KTR traces to dump ISRC2 on each > > call to msk_intr() and hacked the interrupt thread code to turn KTR tracing > > off when a storm occurred. The traces look like this: > > > > index cpu timestamp trace > > ------ --- ---------------- ----- > > 148 0 111662766108828 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 147 0 111662765994576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 146 0 111662765380260 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 145 0 111662765257308 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 144 0 111662765134356 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 143 0 111662765011560 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 142 0 111662764888656 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 141 0 111662764773924 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 140 0 111662764659360 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 139 0 111662764528140 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 138 0 111662764413576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > 137 0 111662764287852 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > ... > > > > (All traces have the same register value.) The TSC on this netbook runs > > at machdep.tsc_freq: 1596035244 > > > > (The timestamps above are TSC values.) > > > > Let me know if you'd like me to log more stuff in the driver. Thanks! > > wonder why the deivce gets TWSI completion interrupt since the > driver does not monitor temperature sensor. In addition, the > interrupt was already disabled so have no idea how this can happen. > Here, I assume your controller implemented optional temperature > sensor and it is monitored by H/W. > Anyway, try attached patch and let me know whether it makes any > difference. It does fix the interrupt storms. I added a debugging printf to fire each time msk_intr() sees this bit to see if it storms, etc. What I see is that each time I would previously get a single printf reporting an interrupt storm, I now get a single printf reporting that the TWSI_RDY bit was set. -- John Baldwin From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 20:10:10 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 398C6106564A for ; Tue, 24 Apr 2012 20:10:10 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) by mx1.freebsd.org (Postfix) with ESMTP id BC8278FC0C for ; Tue, 24 Apr 2012 20:10:09 +0000 (UTC) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id D77C05C45D for ; Tue, 24 Apr 2012 22:10:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at incore.de Received: from dss.incore.de ([10.3.0.3]) by inetmail.dmz (inetmail.dmz [10.3.0.3]) (amavisd-new, port 10024) with LMTP id xWSAxylRo-YB for ; Tue, 24 Apr 2012 22:10:02 +0200 (CEST) Received: from mail.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id EF2F85C452 for ; Tue, 24 Apr 2012 22:10:01 +0200 (CEST) Received: from bsdmhs.longwitz (unknown [192.168.99.6]) by mail.incore (Postfix) with ESMTP id 8FBFF45048 for ; Tue, 24 Apr 2012 22:10:01 +0200 (CEST) Message-ID: <4F970899.2040105@incore.de> Date: Tue, 24 Apr 2012 22:10:01 +0200 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Subject: Re: Support for IPSec NAT-T in transoprt mode X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 20:10:10 -0000 I run FreeBSD 8.2, ipsec-tools-0.8.0_2 and mpd-5.5. To get NATed VPN clients working through L2TP/IPSec I use the patches given in kern/146190 for the files esp_var.h, ipsec.c, ipsec_input.c (only the "Ignore checksum" part) and xform_esp.c. Further the following patch: --- key.c.1st 2011-09-29 10:39:44.000000000 +0200 +++ key.c 2012-04-24 21:40:55.000000000 +0200 @@ -1312,11 +1312,14 @@ continue; if (key_cmpspidx_exactly(spidx, &sp->spidx)) { SP_ADDREF(sp); - break; + SPTREE_UNLOCK(); + goto found; } } SPTREE_UNLOCK(); + return NULL; + found: return sp; } @@ -2967,11 +2970,15 @@ LIST_FOREACH(sah, &V_sahtree, chain) { if (sah->state == SADB_SASTATE_DEAD) continue; - if (key_cmpsaidx(&sah->saidx, saidx, CMP_REQID)) - break; + if (key_cmpsaidx(&sah->saidx, saidx, CMP_REQID)) { + SAHTREE_UNLOCK(); + goto found; + } } SAHTREE_UNLOCK(); + return NULL; + found: return sah; } @@ -4064,10 +4071,12 @@ /* * If NAT-T is enabled, check ports for tunnel mode. * Do not check ports if they are set to zero in the SPD. - * Also do not do it for transport mode, as there is no + * Also do not do it for native transport mode, as there is no * port information available in the SP. */ - if (saidx1->mode == IPSEC_MODE_TUNNEL && + if ((saidx1->mode == IPSEC_MODE_TUNNEL || + (saidx1->mode == IPSEC_MODE_TRANSPORT && + saidx1->proto == IPPROTO_ESP)) && saidx1->src.sa.sa_family == AF_INET && saidx1->dst.sa.sa_family == AF_INET && Then a NATed FreeBSD or Android client works fine with L2TP/IPSec (PSK or certificate), also every iPhone with L2TP/IPSec (PSK). I don't know if we can handle the server side of Cisco IPSEC used by Apple for certificates on the iphone. Hints are very welcome. There is one limitation I would like to get over. From man 8 setkey: System that do not perform the port check cannot support multiple endpoints behind the same NAT. I think this is a FreeBSD kernel restriction: For the first incoming L2TP packet the IPSEC part of the kernel does not save the source port in the corresponding SA (maybe a field like natt_l2tp_port). So the kernel does for outgoing L2TP packets not know the correct SA, if two ore more SA's with the same IP exists. I would like to know if the patch mentioned in this thread adresses this problem. -- Dr. Andreas Longwitz Data Service GmbH Beethovenstr. 2A 23617 Stockelsdorf Amtsgericht Lübeck, HRB 318 BS Geschäftsführer: Wilfried Paepcke, Dr. Andreas Longwitz, Josef Flatau From owner-freebsd-stable@FreeBSD.ORG Tue Apr 24 22:40:10 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C14E106566B; Tue, 24 Apr 2012 22:40:10 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout2-b.corp.bf1.yahoo.com (mrout2-b.corp.bf1.yahoo.com [98.139.253.105]) by mx1.freebsd.org (Postfix) with ESMTP id EC02B8FC1B; Tue, 24 Apr 2012 22:40:09 +0000 (UTC) Received: from [IPv6:::1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout2-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q3OMdqcY094435; Tue, 24 Apr 2012 15:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1335307192; bh=OsIKf/kj2eaXy8ooD9zdUd7FxA+lTFSstqZXKLXlpOg=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=Et+qumSulZmHBYRDVshQdw3s0y9sJ64hXH84usicUETra6VkftaizK+jpBrnCQRwH MOXRRTa3uheVBngwJiqmGcSSBLWHrdzjNpkSf8qba99/GdUjDGeNrScXmTimdv6OzA 2Zu3B9Uop/WJPTNUPfiGNdvAuMle1H434vQ1rrkk= From: Sean Bruno To: "sbruno@freebsd.org" In-Reply-To: <1334590150.13287.5.camel@powernoodle-l7.hsd1.ca.comcast.net> References: <1334590150.13287.5.camel@powernoodle-l7.hsd1.ca.comcast.net> Content-Type: text/plain; charset="UTF-8" Date: Tue, 24 Apr 2012 15:39:51 -0700 Message-ID: <1335307191.11564.0.camel@powernoodle-l7.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-stable@freebsd.org" Subject: Re: ATI Radeon 4250 in Dual Head Config? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 22:40:10 -0000 On Mon, 2012-04-16 at 08:29 -0700, Sean Bruno wrote: > My xorg.conf foo is pretty weak today. > > Does anyone have an ATI 4250 in a dual head config? I'd be interested > in looking over your xorg.conf. > > Sean > I note that xrandr "just works" now with this card after updating my ports of xorg. thanks to the xorg team for making this update! Sean From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 02:33:06 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1646A106564A for ; Wed, 25 Apr 2012 02:33:06 +0000 (UTC) (envelope-from alie@affle.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id C63748FC0C for ; Wed, 25 Apr 2012 02:33:04 +0000 (UTC) Received: by qao25 with SMTP id 25so621597qao.13 for ; Tue, 24 Apr 2012 19:32:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=zD/YSzTOhTsy5iexOYUyjv0/qEVUfKVSJNSA4vVh5zg=; b=n6wsA0YhVZw2s6qmcqS8/tFCE0Tl29yH6ceukR+EETGl9ASZjhFKFeanGvSSlBXlOz ckQ/ans59JtfhpSKO/P5+HVZnCTzjIg0OhUYXjSUb1Z3f9Q68gq2cmRflnFG9hJ/550Z NZchmS45q/qQdgKVOfT54PZKMFSuGu1TmeLhGbWfgE5dTHPEguURNip04ptjP2g0fSaX 3rV5HeWmGq1x/A2guXxXolkuKDXzPT2GxR/4bpvj71CLIX/Ajn1d8pLrAxwFADifw3Gs aPxMSC5PltGjarDhKmQ3qKQdXbQrx9P1nBbQzqbWd7NxWL2gjZdlsnozLSu3O9KyFFEd JiCg== MIME-Version: 1.0 Received: by 10.229.134.212 with SMTP id k20mr137189qct.145.1335321178448; Tue, 24 Apr 2012 19:32:58 -0700 (PDT) Received: by 10.229.192.18 with HTTP; Tue, 24 Apr 2012 19:32:58 -0700 (PDT) Date: Wed, 25 Apr 2012 10:32:58 +0800 Message-ID: From: Alie Tan To: freebsd-stable@freebsd.org X-Gm-Message-State: ALoCoQmwQPZnMHu71vD/xbIcFmQaHajVVkG8TrOKAGtgLIcvJ+GNKH34OMNVbl/zhPlETIdGXdqc Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Unable to build RELENG_9 (r234602) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 02:33:06 -0000 Hi, I got this compilation error for 9-STABLE -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-empty-body -c /usr/src/usr.sbin/sysinstall/dispatch.c /usr/src/usr.sbin/sysinstall/dispatch.c:594:17: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] msgConfirm(err); Thanks, Alie T From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 06:26:26 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 635EA1065672 for ; Wed, 25 Apr 2012 06:26:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1FE378FC15 for ; Wed, 25 Apr 2012 06:26:26 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:91a4:9332:24dd:72e6] (unknown [IPv6:2001:7b8:3a7:0:91a4:9332:24dd:72e6]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 5C0FA5C59; Wed, 25 Apr 2012 08:26:25 +0200 (CEST) Message-ID: <4F979914.4010302@FreeBSD.org> Date: Wed, 25 Apr 2012 08:26:28 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120410 Thunderbird/12.0 MIME-Version: 1.0 To: Alie Tan References: In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Unable to build RELENG_9 (r234602) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 06:26:26 -0000 On 2012-04-25 04:32, Alie Tan wrote: > I got this compilation error for 9-STABLE > > -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality > -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-empty-body -c > /usr/src/usr.sbin/sysinstall/dispatch.c > /usr/src/usr.sbin/sysinstall/dispatch.c:594:17: error: format string is not > a string literal (potentially insecure) [-Werror,-Wformat-security] > msgConfirm(err); > 9-STABLE doesn't compile without -Werror warnings with clang yet. This sysinstall warning is specifically one that must still be fixed, but since sysinstall was removed from HEAD, it cannot be MFC'd. For now, just put NO_WERROR= in your src.conf. From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 06:32:44 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 04974106566B; Wed, 25 Apr 2012 06:32:44 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5908FC0C; Wed, 25 Apr 2012 06:32:43 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q3P6WaB6047911; Wed, 25 Apr 2012 09:32:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q3P6Wa10044442; Wed, 25 Apr 2012 09:32:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q3P6WaEL044441; Wed, 25 Apr 2012 09:32:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 25 Apr 2012 09:32:36 +0300 From: Konstantin Belousov To: Dimitry Andric Message-ID: <20120425063236.GJ2358@deviant.kiev.zoral.com.ua> References: <4F979914.4010302@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y9mj79SXHFwF8Pj6" Content-Disposition: inline In-Reply-To: <4F979914.4010302@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-stable@freebsd.org, Alie Tan Subject: Re: Unable to build RELENG_9 (r234602) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 06:32:44 -0000 --Y9mj79SXHFwF8Pj6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 25, 2012 at 08:26:28AM +0200, Dimitry Andric wrote: > On 2012-04-25 04:32, Alie Tan wrote: > > I got this compilation error for 9-STABLE > >=20 > > -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality > > -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-empty-body -c > > /usr/src/usr.sbin/sysinstall/dispatch.c > > /usr/src/usr.sbin/sysinstall/dispatch.c:594:17: error: format string is= not > > a string literal (potentially insecure) [-Werror,-Wformat-security] > > msgConfirm(err); > >=20 >=20 > 9-STABLE doesn't compile without -Werror warnings with clang yet. This > sysinstall warning is specifically one that must still be fixed, but > since sysinstall was removed from HEAD, it cannot be MFC'd. Commit directly into stable branch ? >=20 > For now, just put NO_WERROR=3D in your src.conf. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" --Y9mj79SXHFwF8Pj6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk+XmoQACgkQC3+MBN1Mb4jYLACeN4CvWU+mgj6AgGrnB6/nYtYz B20AniX2cl5QxVar6Lgiu1Wn0spazuvU =b0uc -----END PGP SIGNATURE----- --Y9mj79SXHFwF8Pj6-- From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 08:27:02 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33532106564A for ; Wed, 25 Apr 2012 08:27:02 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id AC0A18FC0A for ; Wed, 25 Apr 2012 08:27:01 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so1648875bkc.13 for ; Wed, 25 Apr 2012 01:26:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=AuKn1fV1XyXeIKLBxQEj8/xjU/dBt0MdS/OwSofCG6E=; b=Qk4Z7Rs4UtTaI7DOpqFfidAGinzb7ocJ8tokFLMOrAubIuzl/TNAeq6f40Jhk+1G6O hNoUeGKY9vL3Yv+VW5Vqb8h0GX2Fdx78mElXQNyZFylSlORuYBjquwp99kIAvs4Ibw67 06w93ls/NxMP03y8bYc4LCakhdQU3TRU4EP+jEzAVWEXYO6/tXPLoWiHNO61+uus3Yrl Z4mffqaWJa8ZShS9ndMUEirvdsNC/Vnd4Ha/1kuwGtEr3Zkmia+Eqb2UoSopNqbmMSCK +GGYZvr8YxK6oh71yc34j1cBcZa3uuLuxU9xoHO0QnnYD6CO/joJUHYNHRlIKF7dFV+2 PGTw== Received: by 10.204.128.207 with SMTP id l15mr555519bks.100.1335342418140; Wed, 25 Apr 2012 01:26:58 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id c5sm27714205bkw.7.2012.04.25.01.26.56 (version=SSLv3 cipher=OTHER); Wed, 25 Apr 2012 01:26:57 -0700 (PDT) Message-ID: <4F97B54F.8010209@my.gd> Date: Wed, 25 Apr 2012 10:26:55 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <20120422215902.GA72219@swelter.hanley.stade.co.uk> <20120423030145.GA2943@swelter.hanley.stade.co.uk> In-Reply-To: <20120423030145.GA2943@swelter.hanley.stade.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmU1RIDxkS05GTsTCHlVV+6RV6/P2ZJ0/5gwHx031c6QHre/AeT52p09TfFhMctxSfK5q7M Subject: Re: RELENG_8 still identifies itself as 8.3-PRERELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 08:27:02 -0000 On 4/23/12 5:01 AM, Adrian Wontroba wrote: > On Sun, Apr 22, 2012 at 10:39:44PM +0000, Bjoern A. Zeeb wrote: >> On 22. Apr 2012, at 21:59 , Adrian Wontroba wrote: >>> A RELENG_8 system built this morning still identifies itself as >>> 8.3-PRERELEASE. >>> Any chance of this becoming 8.3-STABLE soon? While this is entirely >>> cosmetic, it does cause me issues at $JOB. > >> Fixed. > > Thanks! > > Thanks also for the suggestions from others. > Would like to +1 this as I've had the same issue at work. Cheers. From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 12:03:54 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08F06106564A for ; Wed, 25 Apr 2012 12:03:54 +0000 (UTC) (envelope-from prabhpal@digital-infotech.net) Received: from mail.digital-infotech.net (mail.digital-infotech.net [41.211.25.193]) by mx1.freebsd.org (Postfix) with ESMTP id A535B8FC21 for ; Wed, 25 Apr 2012 12:03:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id D4A202E407B for ; Wed, 25 Apr 2012 12:12:27 +0000 (GMT) Received: from mail.digital-infotech.net ([127.0.0.1]) by localhost (mail.digital-infotech.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 03579-04 for ; Wed, 25 Apr 2012 12:12:27 +0000 (GMT) Received: from mail.digital-infotech.net (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id 930992E406A for ; Wed, 25 Apr 2012 12:12:27 +0000 (GMT) Received: from 41.211.25.193 (SquirrelMail authenticated user prabhpal@digital-infotech.net) by mail.digital-infotech.net with HTTP; Wed, 25 Apr 2012 12:12:27 -0000 Message-ID: <61ce56745065c37eacb3c3d49a768803.squirrel@mail.digital-infotech.net> Date: Wed, 25 Apr 2012 12:12:27 -0000 From: "Prabhpal S. Mavi" To: freebsd-stable@freebsd.org User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: DKIM FreeBSD 9.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: prabhpal@digital-infotech.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 12:03:54 -0000 Dear Friends, is anyone is able to setup DKIM with FreeBSD 9.0 and Postfix? thanks / Prabhpal From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 13:35:31 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 740291065675 for ; Wed, 25 Apr 2012 13:35:31 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1BAD28FC1D for ; Wed, 25 Apr 2012 13:35:31 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 7EFF8B924; Wed, 25 Apr 2012 09:35:30 -0400 (EDT) From: John Baldwin To: pyunyh@gmail.com Date: Wed, 25 Apr 2012 09:35:28 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <20120228210329.GA2741@localhost> <20120424200719.GB6932@michelle.cdnetworks.com> <201204241507.14699.jhb@freebsd.org> In-Reply-To: <201204241507.14699.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201204250935.28973.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 25 Apr 2012 09:35:30 -0400 (EDT) Cc: Pavel Gorshkov , freebsd-stable@freebsd.org Subject: Re: msk0: interrupt storm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 13:35:31 -0000 On Tuesday, April 24, 2012 3:07:14 pm John Baldwin wrote: > On Tuesday, April 24, 2012 4:07:19 pm YongHyeon PYUN wrote: > > On Mon, Apr 23, 2012 at 10:24:41AM -0400, John Baldwin wrote: > > > On Wednesday, March 07, 2012 3:40:53 pm YongHyeon PYUN wrote: > > > > On Tue, Mar 06, 2012 at 10:36:05AM -0500, John Baldwin wrote: > > > > > On Thursday, March 01, 2012 8:29:55 pm YongHyeon PYUN wrote: > > > > > > On Wed, Feb 29, 2012 at 01:03:29AM +0400, Pavel Gorshkov wrote: > > > > > > > My laptop running 9.0-RELEASE/amd64/GENERIC freezes and > > > > > > > (sometimes) unfreezes intermittently, logging the following: > > > > > > > > > > > > > > Feb 28 23:07:36 lifebook kernel: interrupt storm detected on > "irq259:"; > > > > > throttling interrupt source > > > > > > > > > > > > > > $ vmstat -i > > > > > > > ... > > > > > > > irq259: mskc0 11669511 3456 > > > > > > > > > > > > > > > > > > > > > Looks very similar to this: > > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=164569 > > > > > > > > > > > > > > Any suggestions? > > > > > > > > > > > > Try disabling MSI and see whether that makes any difference. > > > > > > > > > > I also get interrupt storms with msk. They do fix themselves when > they > > > > > happen, and I've seen it happen with the machine is idle. This is on > my > > > > > little netbook where msk had several problems initially that have > since been > > > > > fixed. > > > > > > > > > > mskc0: port 0x2000-0x20ff mem > > > > > 0xe0000000-0xe0003fff irq 19 at device 0.0 on pci32 > > > > > msk0: on > mskc0 > > > > > msk0: Ethernet address: 00:24:81:40:e3:ef > > > > > miibus0: on msk0 > > > > > e1000phy0: PHY 0 on miibus0 > > > > > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT, > > > > > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > > > > > > > > > > mskc0@pci0:32:0:0: class=0x020000 card=0x3056103c chip=0x436c11ab > > > > > rev=0x10 hdr=0x00 > > > > > vendor = 'Marvell Technology Group Ltd.' > > > > > device = '88E8072 PCI-E Gigabit Ethernet Controller' > > > > > class = network > > > > > subclass = ethernet > > > > > > > > > > > > > John, can you let me know the value of B0_Y2_SP_ISRC2 register in > > > > interrupt handler when you see the interrupt storm? > > > > > > I finally tested this. I added some KTR traces to dump ISRC2 on each > > > call to msk_intr() and hacked the interrupt thread code to turn KTR > tracing > > > off when a storm occurred. The traces look like this: > > > > > > index cpu timestamp trace > > > ------ --- ---------------- ----- > > > 148 0 111662766108828 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 147 0 111662765994576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 146 0 111662765380260 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 145 0 111662765257308 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 144 0 111662765134356 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 143 0 111662765011560 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 142 0 111662764888656 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 141 0 111662764773924 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 140 0 111662764659360 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 139 0 111662764528140 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 138 0 111662764413576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > 137 0 111662764287852 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > ... > > > > > > (All traces have the same register value.) The TSC on this netbook runs > > > at machdep.tsc_freq: 1596035244 > > > > > > (The timestamps above are TSC values.) > > > > > > Let me know if you'd like me to log more stuff in the driver. Thanks! > > > > wonder why the deivce gets TWSI completion interrupt since the > > driver does not monitor temperature sensor. In addition, the > > interrupt was already disabled so have no idea how this can happen. > > Here, I assume your controller implemented optional temperature > > sensor and it is monitored by H/W. > > Anyway, try attached patch and let me know whether it makes any > > difference. > > It does fix the interrupt storms. I added a debugging printf to fire each > time msk_intr() sees this bit to see if it storms, etc. What I see is that > each time I would previously get a single printf reporting an interrupt storm, > I now get a single printf reporting that the TWSI_RDY bit was set. Sadly, I spoke too soon. With this patch applied I got another storm last night where this bit was not set during the storm: index cpu timestamp trace ------ --- ---------------- ----- 71 0 36775451301480 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 70 0 36775450145436 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 69 0 36775449956940 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 68 0 36775449768564 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 67 0 36775448604912 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 66 0 36775448416872 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 65 0 36775448220444 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 64 0 36775446569772 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 63 0 36775445385804 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 62 0 36775445189340 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 61 0 36775444984476 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 60 0 36775443829368 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 59 0 36775443640920 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 58 0 36775443444324 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 57 0 36775442272836 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 Apr 24 14:50:53 pipkin kernel: mskc0: TWSI ready Apr 24 14:50:54 pipkin kernel: mskc0: TWSI ready Apr 24 20:19:49 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source Apr 24 21:40:14 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source Apr 25 05:19:31 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source Apr 25 08:04:38 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source (This trace was from the storm at 20:19:49.) -- John Baldwin From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 15:02:03 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A40D2106564A for ; Wed, 25 Apr 2012 15:02:03 +0000 (UTC) (envelope-from martin@sugioarto.com) Received: from mailserv.regfish.com (mailserv.regfish.com [79.140.61.33]) by mx1.freebsd.org (Postfix) with ESMTP id F3AEB8FC08 for ; Wed, 25 Apr 2012 15:02:02 +0000 (UTC) Received: (qmail 23098 invoked from network); 25 Apr 2012 14:49:34 -0000 Received: from pd9ec0889.dip0.t-ipconnect.de (HELO yuni.sugioarto.com) (46959-0001@[217.236.8.137]) (envelope-sender ) by mailserv.regfish.com (qmail-ldap-1.03) with SMTP for ; 25 Apr 2012 14:49:34 -0000 Received: from zelda.sugioarto.com (zelda.sugioarto.com [192.168.0.12]) by yuni.sugioarto.com (Postfix) with ESMTP id 3D7131BAC57; Wed, 25 Apr 2012 16:55:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sugioarto.com; s=mail; t=1335365718; bh=cIyE/HJhOuPQXc2Bm+1By0RNNRtOTvWhjQ+2GuzOl1c=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=bNmaKcF9QOXs3+FzvWhSspMLICq66PNXl1kDEWxbD4b61lZxC65u8GilGgDlbDovj HxP5Z4/b8wTV6Dha12UG7VflNIe+p9JZ3tGHMIV7DTWLCzwYTY1rCZtX5SklCzKyJ4 eEXK1leTr8qhLQzNgE+xP95JN4nz7BBOYdE153+g= Date: Wed, 25 Apr 2012 16:55:13 +0200 From: Martin Sugioarto To: prabhpal@digital-infotech.net Message-ID: <20120425165513.2641101a@zelda.sugioarto.com> In-Reply-To: <61ce56745065c37eacb3c3d49a768803.squirrel@mail.digital-infotech.net> References: <61ce56745065c37eacb3c3d49a768803.squirrel@mail.digital-infotech.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/_duO/aRWVokQ.RzaHjOQ2XS"; protocol="application/pgp-signature" Cc: freebsd-stable@freebsd.org Subject: Re: DKIM FreeBSD 9.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 15:02:03 -0000 --Sig_/_duO/aRWVokQ.RzaHjOQ2XS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Wed, 25 Apr 2012 12:12:27 -0000 schrieb "Prabhpal S. Mavi" : >=20 > Dear Friends, >=20 > is anyone is able to setup DKIM with FreeBSD 9.0 and Postfix? > thanks / Prabhpal Hi Prabhal, I would ask this in official forums, if I were you. I use opendkim as milter at port 8891 and have this line in main.cf: smtpd_milters =3D inet:localhost:8891 /etc/rc.conf: milteropendkim_enable=3D"YES" milteropendkim_uid=3D"dkim" milteropendkim_cfgfile=3D"/usr/local/etc/mail/opendkim.conf" You need to setup opendkim.conf properly and, of course, you need a DNS TXT entry with your key. You can find some howtos online about how to configure everything step-by-step. I hope this helps. -- Martin --Sig_/_duO/aRWVokQ.RzaHjOQ2XS Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJPmBBVAAoJEF8wvLx/5p/7ZeMP/i8Vjge67QQh/c3GhaxYln+L qqcqBOSAiVPE4RSgNbeobDeGnf6P7n2g6pzZDBG6exJuwg5CroF2c1Dibl1FFzsG BWO2eu2i9UO9rMvYeaKCsRoaofCIAJWZ+Rk8RjW6ViY/1fCeBHSIFlSERk8Dz65o gE41deRHMEW9xquke/7TUDCUmIzyQ+ipOOH1eo4i5xvNG83Qs7PoQiCAaJmSa02j DYTkbcStLhX/Vwuwad4Uc1j4sabYR7CBTUymRiK2rqgpmjkUXeycd0KnfyFZHPlz zVUt83kz/F0fmIJumuPkWBM7Aci6k6W5RUYWMqTmdOS5ykANPxodKunEemhA6LQA Je8c6w/Q4Q87qlNoiq1RSJVhDsivMY81Qd/yOFAB8SrvbBouEQwvpIshvq/wCtWu 758ilD4CG6jkfxm/l5Laf+VAm0J83gsyMa+BuSWrZZeWzUhuJFUh/iUBOUn9U8Pg mIPtC/hBr3y/kWNcIdeStKlIHmFO1xH87nZzBE9NBrMcEp9TQNqqqPj9vreLxqUO 0Z9xWEG8oeU1zbsnG0eaGIeSWmn1BdkHBoitKNJ+1SznqdbJxzMKItPB8atUlRAn zIaiyC00t44a/6G4G/lLMz2EIpEQf163UrFy/s7Oltd+M1tvP8rDD/UqgTbOAAEp kldkQ455f/RgNycdrYgx =UhxH -----END PGP SIGNATURE----- --Sig_/_duO/aRWVokQ.RzaHjOQ2XS-- From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 19:40:01 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 747CF1065674 for ; Wed, 25 Apr 2012 19:40:01 +0000 (UTC) (envelope-from prabhpal@digital-infotech.net) Received: from mail.digital-infotech.net (mail.digital-infotech.net [41.211.25.193]) by mx1.freebsd.org (Postfix) with ESMTP id 072378FC1A for ; Wed, 25 Apr 2012 19:40:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id ACFA62E4044; Wed, 25 Apr 2012 19:48:40 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digital-infotech.net; s=dkim; t=1335383320; bh=n70DOMNdKPMYXDM5LbUCJq+l6md+JepjF/Pr3En2sck=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=HUCU8t7rvbVfW96IfCreyky7P6oUyjZN+TXfml0gh5sJK95qlXGlnTRpGP0w8w7Pe iiGeOOK9mh205B3XNTvIfC/cF97qpQLXG9qMp6wWTn8q+se+5UvLAmItoJOjrbadEH SAobeoP4q/C3h+mX2sZFAvOV3VID0OADgn5JBTHk= Received: from mail.digital-infotech.net ([127.0.0.1]) by localhost (mail.digital-infotech.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 11558-07; Wed, 25 Apr 2012 19:48:37 +0000 (GMT) Received: from mail.digital-infotech.net (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id 515002E4040; Wed, 25 Apr 2012 19:48:37 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digital-infotech.net; s=dkim; t=1335383317; bh=n70DOMNdKPMYXDM5LbUCJq+l6md+JepjF/Pr3En2sck=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=fNSxQRBWRdODtIXOHWRU3j/iVK8jUO3M13M1MGKp4MMlag/blazHm7iwoGhdtu5N+ undAPJ5KC1oy5WpSWpUZw4YD3FqUv1n0X92PP0ISuPfBki6nSfMdQ59StAW+YcGuTz GIMoFLUXxtaAIbGxE63H5fJMQxiMqJ1OoN5rNlvM= Received: from 41.190.89.51 (SquirrelMail authenticated user prabhpal@digital-infotech.net) by mail.digital-infotech.net with HTTP; Wed, 25 Apr 2012 19:48:37 -0000 Message-ID: <5772d3db9e04754519dd1e685dbc3e6a.squirrel@mail.digital-infotech.net> In-Reply-To: <20120425165513.2641101a@zelda.sugioarto.com> References: <61ce56745065c37eacb3c3d49a768803.squirrel@mail.digital-infotech.net> <20120425165513.2641101a@zelda.sugioarto.com> Date: Wed, 25 Apr 2012 19:48:37 -0000 From: "Prabhpal S. Mavi" To: "Martin Sugioarto" User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: prabhpal@digital-infotech.net, freebsd-stable@freebsd.org Subject: Re: DKIM FreeBSD 9.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: prabhpal@digital-infotech.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 19:40:01 -0000 > Am Wed, 25 Apr 2012 12:12:27 -0000 > schrieb "Prabhpal S. Mavi" : > >> >> Dear Friends, >> >> is anyone is able to setup DKIM with FreeBSD 9.0 and Postfix? >> thanks / Prabhpal > > Hi Prabhal, > > I would ask this in official forums, if I were you. > > I use opendkim as milter at port 8891 and have this line in main.cf: > > smtpd_milters = inet:localhost:8891 > > /etc/rc.conf: > milteropendkim_enable="YES" > milteropendkim_uid="dkim" > milteropendkim_cfgfile="/usr/local/etc/mail/opendkim.conf" > > You need to setup opendkim.conf properly and, of course, you need a DNS > TXT entry with your key. > > You can find some howtos online about how to configure everything > step-by-step. > > I hope this helps. > > -- > Martin Dear Martin, Thank you very much for you response. I will cross check everything as you explained and update you tomorrow morning. Do have any document or link for FreeBSD 9.0? Appreciated you assistance. Thanks / Regards Prabhpal S. Mavi From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 19:41:44 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51D72106564A for ; Wed, 25 Apr 2012 19:41:44 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id BD4148FC15 for ; Wed, 25 Apr 2012 19:41:43 +0000 (UTC) Received: by lbbgm6 with SMTP id gm6so486118lbb.13 for ; Wed, 25 Apr 2012 12:41:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=68Is6Pnkjs23cXeQGwvyGqcJVpShlhqDGNo7zBk8I9M=; b=gRb2OLaZ8c1UJJnq1YYg7LDVvb6wP73PzLkzvIiqOfut6O8XIt39QPdTMeRFTwqnrE mVw30VrtHJG4ZWM6AUMxmG9UnoXJ6Jqeso0VINkb9h+xL+X1YPAY8p0EwrQYLRIEWgsj k+1fpI7u9mipcpyaVaotTByl/CHpXgRlChKH1JExuFoGEqsxfCIU7QzQ2jlN5EhBixKz LYok1vsSrg57+9Ab/x/WXnRdOT502OjTIONby1BrIl04zhVj5wBXdXtaO7hiWg8Z7H5Z aQgswpss1vcCm0hXk3/o+cGA3rKQmkBIRumbE6fva5hQeDTH2zRkQ2S6Cb609IRguwbs nMTQ== Received: by 10.152.110.170 with SMTP id ib10mr4307021lab.7.1335382902453; Wed, 25 Apr 2012 12:41:42 -0700 (PDT) Received: from zont-osx.local (ppp95-165-158-180.pppoe.spdop.ru. [95.165.158.180]) by mx.google.com with ESMTPS id mm11sm629974lab.2.2012.04.25.12.41.41 (version=SSLv3 cipher=OTHER); Wed, 25 Apr 2012 12:41:41 -0700 (PDT) Message-ID: <4F985374.9080807@zonov.org> Date: Wed, 25 Apr 2012 23:41:40 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Kai Gallasch References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnsCakB3yg/wAWVTlwQ+v+XeIAfKRxQy3mCIMhprKT0q+700IHnQL+DtuQHoUMBshuracBh Cc: freebsd-stable Subject: Re: FreeBSD 9.0 - BCE_JUMBO_HDRSPLIT kernel option for bce device still needed? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 19:41:44 -0000 On 4/19/12 11:11 PM, Kai Gallasch wrote: > Hi. > > I found the comment below in an older 8.1 kernel config file. > > # BCE_JUMBO_HDRSPLIT > # freebsd-current@freebsd.org/2009-11/msg00065.html > # [The bce driver does not have a memory leak, > # it does however have a bug which causes memory > # fragmentation leading to denied mbuf allocation.] > #=20 > # You need to put "options BCE_JUMBO_HDRSPLIT" > # In your kernel to enable the work arround. > > Is the kernel option BCE_JUMBO_HDRSPLIT still needed for a FreeBSD 9 kernel if you use the bce device (broadcom) ? > I find it in the 9.0 kernel LINT file but it's not part of the GENERIC kernel. > Hi, There is no such option in the kernel anymore, instead there is hw.bce.hdr_split tunable which is turn on by default. -- Andrey Zonov From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 20:07:36 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B2C2106566B; Wed, 25 Apr 2012 20:07:36 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id C64D28FC12; Wed, 25 Apr 2012 20:07:35 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so459985wgb.31 for ; Wed, 25 Apr 2012 13:07:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jkGn5d1g5U9fhvHCEuD1se+TIWYbjPYZ47IMq/tvKNg=; b=AVTLKqc32ZVY4VWJqm7+7rEPNBytp8GRKDaFUSdjkmUOpQMlqbSNgATTFlzI+SNUoM +WWvSfChA5imNGGl0l3PF/oyLxu7NdoTsUyf9Ppx23wo9Q1tJjGMa4QIzEzHpBVAKOZq e/kcRD8ONq5RyCKd0DOKy2P573e1pgL0wfvBMhOy3AdaF08zwkqestNC1Ir61TXf9xQv pMxCDFcVXTDH1U/CKMLsEHxO0z9yY9CXwhna0PpLlAl2uChCubf+sKlc1uHYFGxMbmJi 174PJMbM2RssmLkYssAG2rPViSGtVRcJZBo64xib6bnU0JMWj8MnSApnyRGXjsfqxR/7 FAFA== MIME-Version: 1.0 Received: by 10.180.85.69 with SMTP id f5mr9770678wiz.18.1335384454926; Wed, 25 Apr 2012 13:07:34 -0700 (PDT) Received: by 10.216.49.81 with HTTP; Wed, 25 Apr 2012 13:07:34 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Apr 2012 16:07:34 -0400 Message-ID: From: Arnaud Lacombe To: freebsd-stable , FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Complete hang on 9.0-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 20:07:36 -0000 Hi, On Sat, Apr 21, 2012 at 4:19 AM, Arnaud Lacombe wrote: > Hi, > > On Wed, Apr 18, 2012 at 2:22 AM, Arnaud Lacombe wrot= e: >> Hi, >> >> On Mon, Apr 16, 2012 at 5:50 PM, Arnaud Lacombe wro= te: >>> [...] >>> I reproduced the previous problem on 10-CURRENT from r233917, on the >>> following platform (here running 8.2-RELEASE): >>> >>> FreeBSD is a registered trademark of The FreeBSD Foundation. >>> FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 >>> =A0 =A0root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >>> Timecounter "i8254" frequency 1193182 Hz quality 0 >>> CPU: Intel(R) Atom(TM) CPU D525 =A0 @ 1.80GHz (1800.01-MHz K8-class CPU= ) >>> =A0Origin =3D "GenuineIntel" =A0Id =3D 0x106ca =A0Family =3D 6 =A0Model= =3D 1c =A0Stepping =3D 10 >>> =A0Features=3D0xbfebfbff >>> =A0Features2=3D0x40e31d >>> =A0AMD Features=3D0x20100800 >>> =A0AMD Features2=3D0x1 >>> =A0TSC: P-state invariant >>> real memory =A0=3D 2136539136 (2037 MB) >>> avail memory =3D 2043772928 (1949 MB) >>> ACPI APIC Table: <010312 APIC0947> >>> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs >>> FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 HTT threads >>> =A0cpu0 (BSP): APIC ID: =A00 >>> =A0cpu1 (AP/HT): APIC ID: =A01 >>> =A0cpu2 (AP): APIC ID: =A02 >>> =A0cpu3 (AP/HT): APIC ID: =A03 >>> >>> Complete system freeze while running about 2400 threads. I had to >>> power cycle the system to get it back alive. I discussed a way to >>> debug this with attilio@ on freebsd-stable@, but still did not had >>> time to implement it. >>> >> 10-CURRENT from r233917 hanged again today while running 3600 threads. >> I enabled WITNESS and INVARIANTS on that specific kernel, secretly >> hoping that they would trigger some meaningful information, but they >> did not. I would guess my last attempt is to enable SW_WATCHDOG, and >> gather some state information out of DDB when the watchdog trigger, if >> it does... >> >> Btw, this issue seems to be specifically happening on Atom/ICH8M >> platform running amd64 kernel, as I've never seen it on other >> platforms, and yet ran extensive tests. I am not entirely sure it >> happens on i386. I would need to check. >> > For the record, 9.0-RELEASE i386 has been running the test for about 2 > days on the D510 platform without any hang so far. I'll keep it > running all week-end to give me a better idea. > ... or I have been too eager to expect an amd64 only issue. Thanks to some nasty virus which stuck me in my bed for two days, I finally got FreeBSD 9.0-RELEASE i386 stuck while running a single, 4000 threads, process. I guess it's time to play with SW_WATCHDOG and DDB. As a side note, the D510 platform seem to be much harder to hang than the D525... - Arnaud From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 20:49:30 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B98AB106564A for ; Wed, 25 Apr 2012 20:49:30 +0000 (UTC) (envelope-from gorshkov.pavel@gmail.com) Received: from imp01.mtu.ru (imp01.mtu.ru [62.5.255.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE2A8FC14 for ; Wed, 25 Apr 2012 20:49:29 +0000 (UTC) Received: from localhost.my.domain ([91.79.70.53]) by imp01.mtu.ru with bizsmtp id 2LpM1j00n18xxrP01LpNYg; Thu, 26 Apr 2012 00:49:23 +0400 X-Spam-Flag: NO Received: from localhost (localhost [127.0.0.1]) by localhost.my.domain (8.14.5/8.14.5) with ESMTP id q3PKnK0F002790; Thu, 26 Apr 2012 00:49:21 +0400 (MSK) (envelope-from gorshkov.pavel@gmail.com) Date: Thu, 26 Apr 2012 00:49:20 +0400 From: Pavel Gorshkov To: John Baldwin Message-ID: <20120425204920.GA2734@localhost> References: <20120228210329.GA2741@localhost> <20120424200719.GB6932@michelle.cdnetworks.com> <201204241507.14699.jhb@freebsd.org> <201204250935.28973.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201204250935.28973.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Pyun YongHyeon , freebsd-stable@freebsd.org Subject: Re: msk0: interrupt storm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 20:49:30 -0000 On Wed, Apr 25, 2012 at 09:35:28AM -0400, John Baldwin wrote: > Sadly, I spoke too soon. With this patch applied I got another storm last night > where this bit was not set during the storm: > > index cpu timestamp trace > ------ --- ---------------- ----- > 71 0 36775451301480 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 70 0 36775450145436 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 69 0 36775449956940 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 68 0 36775449768564 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 67 0 36775448604912 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 66 0 36775448416872 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 65 0 36775448220444 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 64 0 36775446569772 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 63 0 36775445385804 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 62 0 36775445189340 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 61 0 36775444984476 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 60 0 36775443829368 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 59 0 36775443640920 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 58 0 36775443444324 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 57 0 36775442272836 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > > Apr 24 14:50:53 pipkin kernel: mskc0: TWSI ready > Apr 24 14:50:54 pipkin kernel: mskc0: TWSI ready > Apr 24 20:19:49 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source > Apr 24 21:40:14 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source > Apr 25 05:19:31 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source > Apr 25 08:04:38 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source > > (This trace was from the storm at 20:19:49.) Same here, I just fired up rtorrent and immediately got a storm accompanied by a 2 minute freeze: irq259: mskc0 6062100 8772 irq261: ahci0 8380 12 Total 6427430 9301 From owner-freebsd-stable@FreeBSD.ORG Wed Apr 25 21:34:13 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 126DE1065670; Wed, 25 Apr 2012 21:34:13 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id A21658FC22; Wed, 25 Apr 2012 21:34:12 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAFNsmE+DaFvO/2dsb2JhbABFFoVSrG2CCQEBBSMEUhsOChEZAgRVBogiC6hOkwWPSIEYBI51hwaBEY8tgwU X-IronPort-AV: E=Sophos;i="4.75,483,1330923600"; d="scan'208";a="166639981" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 25 Apr 2012 17:34:05 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id A5648B413F; Wed, 25 Apr 2012 17:34:05 -0400 (EDT) Date: Wed, 25 Apr 2012 17:34:05 -0400 (EDT) From: Rick Macklem To: Oliver Brandmueller Message-ID: <1587904922.3402243.1335389645650.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20120424142751.GV65313@e-Gitt.NET> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3402242_1883470986.1335389645646" X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-stable@freebsd.org Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 21:34:13 -0000 ------=_Part_3402242_1883470986.1335389645646 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Oliver Brandmueller wrote: > Hi, > > After figuring an easy way to repeat the behaviour and hunting it down > to the combination of ZFS+newNFS and removal of files or directories I > opened PR kern/167266 > Good work isolating this! I now see the problem. The new NFS server code assumed that VOP_LOOKUP() calls would not set SAVENAME, so it expected the path buffer to be free'd by the nfsvno_namei() when it hadn't set SAVENAME. It turns out ZFS sets SAVENAME in zfs_lookup() for the DELETE case. The attached patch, which is also here, should fix the problem for now: http://people.freebsd.org/~namei-leak.patch Please test this patch and let me know if it fixes the leak. jwd@ is working on a patch that will avoid using uma_zalloc() to get a path buffer for most cases for performance reasons. Once that patch goes it, the code should be patched so that it checks for SAVENAME being set for all cases where uma_zalloc() has allocated a path buffer, so that no more leaks like this will happen when underlying file systems set SAVENAME. rick ------=_Part_3402242_1883470986.1335389645646 Content-Type: text/x-patch; name=namei-leak.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=namei-leak.patch LS0tIGZzL25mc3NlcnZlci9uZnNfbmZzZHBvcnQuYy5zYXYJMjAxMi0wNC0yNSAxNjo1MDowNS4w MDAwMDAwMDAgLTA0MDAKKysrIGZzL25mc3NlcnZlci9uZnNfbmZzZHBvcnQuYwkyMDEyLTA0LTI1 IDE3OjA4OjQzLjAwMDAwMDAwMCAtMDQwMApAQCAtMTA0Nyw2ICsxMDQ3LDggQEAgbmZzdm5vX3Jl bW92ZXN1YihzdHJ1Y3QgbmFtZWlkYXRhICpuZHAsIAogCWVsc2UKIAkJdnB1dChuZHAtPm5pX2R2 cCk7CiAJdnB1dCh2cCk7CisJaWYgKChuZHAtPm5pX2NuZC5jbl9mbGFncyAmIFNBVkVOQU1FKSAh PSAwKQorCQluZnN2bm9fcmVscGF0aGJ1ZihuZHApOwogCU5GU0VYSVRDT0RFKGVycm9yKTsKIAly ZXR1cm4gKGVycm9yKTsKIH0KQEAgLTEwODYsNiArMTA4OCw4IEBAIG91dDoKIAllbHNlCiAJCXZw dXQobmRwLT5uaV9kdnApOwogCXZwdXQodnApOworCWlmICgobmRwLT5uaV9jbmQuY25fZmxhZ3Mg JiBTQVZFTkFNRSkgIT0gMCkKKwkJbmZzdm5vX3JlbHBhdGhidWYobmRwKTsKIAlORlNFWElUQ09E RShlcnJvcik7CiAJcmV0dXJuIChlcnJvcik7CiB9Cg== ------=_Part_3402242_1883470986.1335389645646-- From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 00:24:22 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9F35106564A for ; Thu, 26 Apr 2012 00:24:22 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 60AD18FC15 for ; Thu, 26 Apr 2012 00:24:22 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAM+UmE+DaFvO/2dsb2JhbABFFoVSrGuCCQEBBSNWGw4KAgINGQJZBogiC6hAkwGBL44ZgRgElXuBEY8tgwU X-IronPort-AV: E=Sophos;i="4.75,484,1330923600"; d="scan'208";a="169547133" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 25 Apr 2012 20:24:15 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 930BEB4017; Wed, 25 Apr 2012 20:24:15 -0400 (EDT) Date: Wed, 25 Apr 2012 20:24:15 -0400 (EDT) From: Rick Macklem To: Oliver Brandmueller Message-ID: <307304259.3406308.1335399855591.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20120424142751.GV65313@e-Gitt.NET> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-stable@freebsd.org Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 00:24:22 -0000 Oliver Brandmueller wrote: > Hi, > > After figuring an easy way to repeat the behaviour and hunting it down > to the combination of ZFS+newNFS and removal of files or directories I > opened PR kern/167266 > Oops, the patch for this is at: http://people.freebsd.org/~rmacklem/namei-leak.patch rick From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 04:41:43 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0971C1065672 for ; Thu, 26 Apr 2012 04:41:43 +0000 (UTC) (envelope-from martin@sugioarto.com) Received: from mailserv.regfish.com (mailserv.regfish.com [79.140.61.33]) by mx1.freebsd.org (Postfix) with ESMTP id 06FD68FC14 for ; Thu, 26 Apr 2012 04:41:41 +0000 (UTC) Received: (qmail 25809 invoked from network); 26 Apr 2012 04:35:52 -0000 Received: from pd9ec054f.dip0.t-ipconnect.de (HELO yuni.sugioarto.com) (46959-0001@[217.236.5.79]) (envelope-sender ) by mailserv.regfish.com (qmail-ldap-1.03) with SMTP for ; 26 Apr 2012 04:35:52 -0000 Received: from zelda.sugioarto.com (zelda.sugioarto.com [192.168.0.12]) by yuni.sugioarto.com (Postfix) with ESMTP id 06F291BAC55; Thu, 26 Apr 2012 06:41:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sugioarto.com; s=mail; t=1335415298; bh=L6uqc4C9Oa8jKeqs75Vo36VVW86NM0z+P69GaRKLOww=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=vBGmuKrY9Jl3QcMwh1lrXta7K1Q5eNn5uJ27nYK2Jg6/7kr24TGrNe6ZVXjNu1o07 eLflIGyFN7UHQgSNtjKth8+EhsKP7tPM4H6whO1Hf54svtuBrczxQ7GPZYuhvJAatw qFeU5DUnQtkLxNUH9xsuBJ/4P5PhMVxFev7KMPSg= Date: Thu, 26 Apr 2012 06:41:33 +0200 From: Martin Sugioarto To: prabhpal@digital-infotech.net Message-ID: <20120426064133.7d198b6b@zelda.sugioarto.com> In-Reply-To: <5772d3db9e04754519dd1e685dbc3e6a.squirrel@mail.digital-infotech.net> References: <61ce56745065c37eacb3c3d49a768803.squirrel@mail.digital-infotech.net> <20120425165513.2641101a@zelda.sugioarto.com> <5772d3db9e04754519dd1e685dbc3e6a.squirrel@mail.digital-infotech.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/TbgE/oburn=iOpA9fBYDCLw"; protocol="application/pgp-signature" Cc: freebsd-stable@freebsd.org Subject: Re: DKIM FreeBSD 9.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 04:41:43 -0000 --Sig_/TbgE/oburn=iOpA9fBYDCLw Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Wed, 25 Apr 2012 19:48:37 -0000 schrieb "Prabhpal S. Mavi" : > Dear Martin, Thank you very much for you response. I will cross check > everything as you explained and update you tomorrow morning. Do have > any document or link for FreeBSD 9.0? Hello Prabhal, you can use the official docs [1]. There is nothing specific as long as you know some basics about FreeBSD (services setup etc). [1] http://www.opendkim.org/docs.html (especially opendkim filter README File) -- Regards, Martin --Sig_/TbgE/oburn=iOpA9fBYDCLw Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJPmNIBAAoJEF8wvLx/5p/71/UP/1yrVD5+7Tz6Q/HYh145Bnxi kUSh6tysOUNHu9yKLOmxGaXUFdfsMRPi25LPvAWbrP2VJNq2hgpeLu1vdfuq0InV dlXCr3KJVB0x49C7vkyVocOwXD7YxGrxGcRi54qGbTHAKjjnkhC1POjNeK5+G7Gp r6M65oSoFU/US6svaejZ1zXfvX6VN2x44V/NsHAg63lBLhF8tCu8Wi+Pbmj8dPc1 YEKyS2AvLICu/JaPJGDxU8TR1/AqTSHrSQdZjDnXaJT6HmKdn9GHI4leg1QSgFHM zUuvb95IGrysyoN3yWC/cHhNjr/PimKC8x8HPZbTyR3y5NLdJU0zugyveIrTZ2Ka /wB6ygETmmhNMpxzdZSY5RmXVOiV949PwYpcCZsdwRcqhnRpqsDk7L6hQVwIUb0j 7jrCjiCy2RU3gM1h5fw7BTG7EBYxueUX5mFlUCnS2ZDu/YlPtTAuSGqakCg1vdml YiUQ673L1fE/fYhYelb4WA/TRnPG4NFuCGjeeZTSBYwgFxddsBdzjeikdThov7ki szQJrD4FNVszapIXnbGGBiL5Kj9DH0AMYqtWimofH0Tg5A9ofQW+iUYIVmd4/CRx eRe1bMEVBenxfPaEYTtJGpn9lHH5CVK1Ssl1T5ac3NYLviLB5fGCSDR0851uaWc2 VA00OeumZ8/oxs+jPdqA =CsEA -----END PGP SIGNATURE----- --Sig_/TbgE/oburn=iOpA9fBYDCLw-- From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 07:29:54 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A7D5106564A for ; Thu, 26 Apr 2012 07:29:54 +0000 (UTC) (envelope-from prabhpal@digital-infotech.net) Received: from mail.digital-infotech.net (mail.digital-infotech.net [41.211.25.193]) by mx1.freebsd.org (Postfix) with ESMTP id C86928FC0A for ; Thu, 26 Apr 2012 07:29:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id 76DEF2E401A; Thu, 26 Apr 2012 07:38:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digital-infotech.net; s=dkim; t=1335425914; bh=eQe+QtpcEW2VUn5IqbeeB9yrY9LVbTiydldDx1YbaGk=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=VBDcXuLRnRmr6MWxGgi63XEZRuyGWxJD658nsQsRPLohYg3QkOhdj7QlShoHRy49g erJilzEc+pwerFpr8pc+csEOB+U7D9WAYOi+Op5NheZv4MnEUiCHZPCdZo9ja2CRPn tYj2JyJGsVfiBIVw3DedGKQvfkcNu+gR1P/oaR9E= Received: from mail.digital-infotech.net ([127.0.0.1]) by localhost (mail.digital-infotech.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 01554-02; Thu, 26 Apr 2012 07:38:31 +0000 (GMT) Received: from mail.digital-infotech.net (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id 7D44C2E4002; Thu, 26 Apr 2012 07:38:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digital-infotech.net; s=dkim; t=1335425911; bh=eQe+QtpcEW2VUn5IqbeeB9yrY9LVbTiydldDx1YbaGk=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=BH0pGWTBmGVM6UQyKlxwp02mTf2NIyeqEeqEuEJ6kTe+J3jsxpgJm3QPQUqO3Eyi5 QoV6DzGt4ocoC5c8XtZKEfmZvsqbNRbYrwMDk+u4Q7292GHTHRhqOv60NbJ6HsRd9D e6qxBtE460YQ5oD8tFiclcVqQ5gFwrBe21qHT+VQ= Received: from 41.211.25.193 (SquirrelMail authenticated user prabhpal@digital-infotech.net) by mail.digital-infotech.net with HTTP; Thu, 26 Apr 2012 07:38:31 -0000 Message-ID: In-Reply-To: <20120426064133.7d198b6b@zelda.sugioarto.com> References: <61ce56745065c37eacb3c3d49a768803.squirrel@mail.digital-infotech.net> <20120425165513.2641101a@zelda.sugioarto.com> <5772d3db9e04754519dd1e685dbc3e6a.squirrel@mail.digital-infotech.net> <20120426064133.7d198b6b@zelda.sugioarto.com> Date: Thu, 26 Apr 2012 07:38:31 -0000 From: "Prabhpal S. Mavi" To: "Martin Sugioarto" User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: prabhpal@digital-infotech.net, freebsd-stable@freebsd.org Subject: Re: DKIM FreeBSD 9.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: prabhpal@digital-infotech.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 07:29:54 -0000 > you can use the official docs [1]. There is nothing specific as long as > you know some basics about FreeBSD (services setup etc). > > [1] http://www.opendkim.org/docs.html (especially opendkim filter > README File) > Regards, > Martin Dear Martin, i very much appreciated your time and efforts to assist me. externally grateful. i will update you whatever the case is, after i read the documentation. Well done ! Thanks / Regards Prabhpal S. Mavi Thanks / Regards Prabhpal S. Mavi From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 07:56:24 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4144D1065726 for ; Thu, 26 Apr 2012 07:56:24 +0000 (UTC) (envelope-from prabhpal@digital-infotech.net) Received: from mail.digital-infotech.net (mail.digital-infotech.net [41.211.25.193]) by mx1.freebsd.org (Postfix) with ESMTP id D096A8FC16 for ; Thu, 26 Apr 2012 07:56:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id 3EEED2E400C; Thu, 26 Apr 2012 08:05:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digital-infotech.net; s=dkim; t=1335427507; bh=Mb1Zms8NvctroLc+aOOu80Bb7icqMzLXpB3+/FXmC94=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=dlv52L8KsmA0RoWET8gJnrSvRm8L+y4lSwhsSpifpc/v5Yny6HAJaHn8HtYVD7p/B VdrDfNFdM5zZiFT3JV6AeKUaPJ20FxcGKsB0YX+q5fW7c65VC/KBgw7uw8nwP85GaM a6MGloawIXsn2mBipXg7lLmwL0NEXnWn04ppxRkQ= Received: from mail.digital-infotech.net ([127.0.0.1]) by localhost (mail.digital-infotech.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 01554-05; Thu, 26 Apr 2012 08:05:07 +0000 (GMT) Received: from mail.digital-infotech.net (localhost [127.0.0.1]) by mail.digital-infotech.net (Postfix) with ESMTP id A421D2E4002; Thu, 26 Apr 2012 08:05:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digital-infotech.net; s=dkim; t=1335427506; bh=Mb1Zms8NvctroLc+aOOu80Bb7icqMzLXpB3+/FXmC94=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=l+mNnJA+oJDdFw6v0gviGUHQJ3g797Zp2grDvpTj1/H1om70lK7nrHCko4wwaFHP3 JyFeoGGHRytaG/q7dKrLxlFE3lb//oirY5Nk/MkCYDQiotGBkkth3PVsmEpf2ZEo9/ IlGyR3Tbd1rHt0aQYR3Yf1Cdpz2CdTRYRUNh/Pm0= Received: from 41.211.25.193 (SquirrelMail authenticated user prabhpal@digital-infotech.net) by mail.digital-infotech.net with HTTP; Thu, 26 Apr 2012 08:05:06 -0000 Message-ID: In-Reply-To: References: <61ce56745065c37eacb3c3d49a768803.squirrel@mail.digital-infotech.net> <20120425165513.2641101a@zelda.sugioarto.com> <5772d3db9e04754519dd1e685dbc3e6a.squirrel@mail.digital-infotech.net> <20120426064133.7d198b6b@zelda.sugioarto.com> Date: Thu, 26 Apr 2012 08:05:06 -0000 From: "Prabhpal S. Mavi" To: freebsd-stable@freebsd.org User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Martin Sugioarto Subject: Re: DKIM FreeBSD 9.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: prabhpal@digital-infotech.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 07:56:24 -0000 > Dear Martin, > i very much appreciated your time and efforts to assist me. externally > grateful. i will update you whatever the case is, after i read the > documentation. > > Well done ! > > Thanks / Regards > Prabhpal S. Mavi Dear Martin, milter has started tagging the emails with dkim signature. nut following i get in header. Gmail servers says: smtp.mail=mark@digital-infotech.net; dkim=neutral (bad format) header.i=@digital-infotech.net Yahoo Servers Says: Authentication-Results: mta1273.mail.mud.yahoo.com from=digital-infotech.net; domainkeys=neutral (no sig); from=digital-infotech.net dkim=permerror (future timestamp) i tried to google to know the cause, but unable to figure out, is this my configuration problem or the public key is not correct that have copied in to DNS. ( imean the format). any idea please? format of created DKIM in DNS: "v=DKIM1; g=*; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC678E6Ssjhf7Lw0By0BkjapnD4 1gG0zaB6NSNxUoXu0jblYqd+ZQEOxut9v/IvQXISVZnHFdX2Ilw8eTPS57lG4E/x FUx2bhYwp8wLQ1vK8rgrwl9im2lp3ELiwEfYXDy1BXxDRFY8x85xr5Zqxwkwm0i6 7/99HWWtcQTkV3VztwIDAQAB" Thanks / Regards Prabh S. Mavi From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 08:36:57 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9EEB1106564A for ; Thu, 26 Apr 2012 08:36:57 +0000 (UTC) (envelope-from prvs=1463147095=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 32BC88FC12 for ; Thu, 26 Apr 2012 08:36:56 +0000 (UTC) X-Spam-Processed: mail1.multiplay.co.uk, Thu, 26 Apr 2012 09:35:57 +0100 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-5.0 required=6.0 tests=USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.2.5 Received: from r2d2 ([188.220.16.49]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50019464197.msg for ; Thu, 26 Apr 2012 09:35:56 +0100 X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=1463147095=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-stable@freebsd.org Message-ID: <74D763774ED14D99A36D376C7CD54D9C@multiplay.co.uk> From: "Steven Hartland" To: "Rick Macklem" , "Oliver Brandmueller" References: <307304259.3406308.1335399855591.JavaMail.root@erie.cs.uoguelph.ca> Date: Thu, 26 Apr 2012 09:35:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: freebsd-stable@freebsd.org Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 08:36:57 -0000 ----- Original Message ----- From: "Rick Macklem" To: "Oliver Brandmueller" Cc: Sent: Thursday, April 26, 2012 1:24 AM Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak > Oliver Brandmueller wrote: >> Hi, >> >> After figuring an easy way to repeat the behaviour and hunting it down >> to the combination of ZFS+newNFS and removal of files or directories I >> opened PR kern/167266 >> > Oops, the patch for this is at: > http://people.freebsd.org/~rmacklem/namei-leak.patch Is this specific to 9.x or is 8.x effected? Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 09:54:58 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98982106564A; Thu, 26 Apr 2012 09:54:58 +0000 (UTC) (envelope-from prvs=0463424ae3=ob@gruft.de) Received: from main.mx.e-gitt.net (service.rules.org [IPv6:2001:1560:2342::2]) by mx1.freebsd.org (Postfix) with ESMTP id 22CB98FC0A; Thu, 26 Apr 2012 09:54:58 +0000 (UTC) Received: from ob by main.mx.e-gitt.net with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SNLPa-000Dy7-NF; Thu, 26 Apr 2012 11:54:54 +0200 Date: Thu, 26 Apr 2012 11:54:54 +0200 From: Oliver Brandmueller To: Rick Macklem Message-ID: <20120426095454.GX65313@e-Gitt.NET> Mail-Followup-To: Rick Macklem , freebsd-stable@freebsd.org, John References: <20120424142751.GV65313@e-Gitt.NET> <1587904922.3402243.1335389645650.JavaMail.root@erie.cs.uoguelph.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1587904922.3402243.1335389645650.JavaMail.root@erie.cs.uoguelph.ca> X-Face: "TT~P'b_)-jKU_0^a=usXryz`YTz)z.[FZrI,A~PREI2U}frrZ`>_J&; ^t|^.dR/mqtC,Vb.Y>~u8(|aL)vAv(k">zY"]*m*y|b8S7:WK[/qP5i>HO#Ek; C[X:b|FP0*Ly_4Ni User-Agent: Mutt/1.5.21 (2010-09-15) Sender: Oliver Brandmueller Cc: freebsd-stable@freebsd.org Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 09:54:58 -0000 Hi, On Wed, Apr 25, 2012 at 05:34:05PM -0400, Rick Macklem wrote: > Good work isolating this! Thank you! > I now see the problem. The new NFS server code assumed that VOP_LOOKUP() > calls would not set SAVENAME, so it expected the path buffer to be free'd > by the nfsvno_namei() when it hadn't set SAVENAME. > > It turns out ZFS sets SAVENAME in zfs_lookup() for the DELETE case. > > The attached patch, which is also here, should fix the problem for now: > http://people.freebsd.org/~namei-leak.patch > > Please test this patch and let me know if it fixes the leak. Thanx for the explanation - anf coming up with a patch that fast! I applied the patch and in my testing environment I don't see the leak anymore. I will not be able to apply it to our prod environment before about mid of May, since I don't want to leave my fellow co-workers with any problems while being on holidays :) > jwd@ is working on a patch that will avoid using uma_zalloc() to get > a path buffer for most cases for performance reasons. Once that patch > goes it, the code should be patched so that it checks for SAVENAME being > set for all cases where uma_zalloc() has allocated a path buffer, so that > no more leaks like this will happen when underlying file systems set > SAVENAME. So is itlikely, that this final version will at some time be included into 9-STABLE or will the current patch (given more positive results come up) make it into -STABLE until the other one is ready? Greeting and many thanks, Oliver -- | Oliver Brandmueller http://sysadm.in/ ob@sysadm.in | | Ich bin das Internet. Sowahr ich Gott helfe. | From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 11:53:51 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EE72106566B; Thu, 26 Apr 2012 11:53:51 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id E27958FC08; Thu, 26 Apr 2012 11:53:50 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAIw2mU+DaFvO/2dsb2JhbABEFoVSrGqCCQEBBAEjVhsOCgICDRkCWQaIGwULp1+TJIEvjh6BGASVfYERjy+DBA X-IronPort-AV: E=Sophos;i="4.75,486,1330923600"; d="scan'208";a="169602361" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 26 Apr 2012 07:53:48 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 2B93DB4063; Thu, 26 Apr 2012 07:53:48 -0400 (EDT) Date: Thu, 26 Apr 2012 07:53:48 -0400 (EDT) From: Rick Macklem To: Oliver Brandmueller Message-ID: <1695893954.3415457.1335441228131.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20120426095454.GX65313@e-Gitt.NET> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-stable@freebsd.org Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 11:53:51 -0000 Oliver Brandmueller wrote: > Hi, > > On Wed, Apr 25, 2012 at 05:34:05PM -0400, Rick Macklem wrote: > > Good work isolating this! > > Thank you! > > > I now see the problem. The new NFS server code assumed that > > VOP_LOOKUP() > > calls would not set SAVENAME, so it expected the path buffer to be > > free'd > > by the nfsvno_namei() when it hadn't set SAVENAME. > > > > It turns out ZFS sets SAVENAME in zfs_lookup() for the DELETE case. > > > > The attached patch, which is also here, should fix the problem for > > now: > > http://people.freebsd.org/~namei-leak.patch > > > > Please test this patch and let me know if it fixes the leak. > > Thanx for the explanation - anf coming up with a patch that fast! > > I applied the patch and in my testing environment I don't see the leak > anymore. I will not be able to apply it to our prod environment before > about mid of May, since I don't want to leave my fellow co-workers > with > any problems while being on holidays :) > > > jwd@ is working on a patch that will avoid using uma_zalloc() to get > > a path buffer for most cases for performance reasons. Once that > > patch > > goes it, the code should be patched so that it checks for SAVENAME > > being > > set for all cases where uma_zalloc() has allocated a path buffer, so > > that > > no more leaks like this will happen when underlying file systems set > > SAVENAME. > > So is itlikely, that this final version will at some time be included > into 9-STABLE or will the current patch (given more positive results > come up) make it into -STABLE until the other one is ready? > Well, I think I can commit it to head with an MFC of 1 month. That way, hopefully you will have been able to test it in your production environment before it gets MFC'd to 9-STABLE. I suspect John's patch will be committed sometime later, but I'll leave that up to him. (He runs a server with ZFS, so he should be able to check for the leak.) > > Greeting and many thanks. > And thanks for tracking it down. It's surprising only one other person noticed this. I guess others don't have enough removes going on for the to get serious. rick From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 11:53:57 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36906106568D for ; Thu, 26 Apr 2012 11:53:57 +0000 (UTC) (envelope-from martin@sugioarto.com) Received: from mailserv.regfish.com (mailserv.regfish.com [79.140.61.33]) by mx1.freebsd.org (Postfix) with ESMTP id 9B3998FC19 for ; Thu, 26 Apr 2012 11:53:56 +0000 (UTC) Received: (qmail 12697 invoked from network); 26 Apr 2012 11:48:06 -0000 Received: from pd9ec054f.dip0.t-ipconnect.de (HELO yuni.sugioarto.com) (46959-0001@[217.236.5.79]) (envelope-sender ) by mailserv.regfish.com (qmail-ldap-1.03) with SMTP for ; 26 Apr 2012 11:48:06 -0000 Received: from zelda.sugioarto.com (zelda.sugioarto.com [192.168.0.12]) by yuni.sugioarto.com (Postfix) with ESMTP id 041761BAC55; Thu, 26 Apr 2012 13:53:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sugioarto.com; s=mail; t=1335441234; bh=AofafcyeHwild/Wp7A7u5u2JH4dtdOWSZ+E2k0j/rK4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=ES5g8mrGOow9scVN7VNVdt+OuvtXoHlQKFPL/eLUTFVM/pwwpQj7xoV8g+am0FS36 FWmwLu+Dy6kZoVKewrQDjspTS9ZacbISrCuuL6mLdlhG8Uocr+B6VH6q/OeJ4eItZ8 Tk16on+JIit0/GLvNW9U/Dz6uetWmbDLnJdovDjc= Date: Thu, 26 Apr 2012 13:53:48 +0200 From: Martin Sugioarto To: prabhpal@digital-infotech.net Message-ID: <20120426135348.0ad9ead4@zelda.sugioarto.com> In-Reply-To: References: <61ce56745065c37eacb3c3d49a768803.squirrel@mail.digital-infotech.net> <20120425165513.2641101a@zelda.sugioarto.com> <5772d3db9e04754519dd1e685dbc3e6a.squirrel@mail.digital-infotech.net> <20120426064133.7d198b6b@zelda.sugioarto.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/X/PNBg7w./cOGczgPLU0k9i"; protocol="application/pgp-signature" Cc: freebsd-stable@freebsd.org Subject: Re: DKIM FreeBSD 9.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 11:53:57 -0000 --Sig_/X/PNBg7w./cOGczgPLU0k9i Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Thu, 26 Apr 2012 08:05:06 -0000 schrieb "Prabhpal S. Mavi" : > Gmail servers says: > smtp.mail=3Dmark@digital-infotech.net; dkim=3Dneutral (bad format) > header.i=3D@digital-infotech.net >=20 > Yahoo Servers Says: > Authentication-Results: mta1273.mail.mud.yahoo.com > from=3Ddigital-infotech.net; domainkeys=3Dneutral (no sig); > from=3Ddigital-infotech.net dkim=3Dpermerror (future timestamp) >=20 > i tried to google to know the cause, but unable to figure out, is > this my configuration problem or the public key is not correct that > have copied in to DNS. ( imean the format). any idea please? >=20 > format of created DKIM in DNS: >=20 > "v=3DDKIM1; g=3D*; k=3Drsa; > p=3DMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC678E6Ssjhf7Lw0By0BkjapnD4 > 1gG0zaB6NSNxUoXu0jblYqd+ZQEOxut9v/IvQXISVZnHFdX2Ilw8eTPS57lG4E/x > FUx2bhYwp8wLQ1vK8rgrwl9im2lp3ELiwEfYXDy1BXxDRFY8x85xr5Zqxwkwm0i6 > 7/99HWWtcQTkV3VztwIDAQAB" Hi Prabhpal, can you please take a look at your signature header. My email client shows that your emails has been signed 2 times (there are 2 headers called "DKIM-Signature:"). This can be a problem. Test it by sending an email to yourself. Also... you should know about the problems around DKIM. Many servers append illegal headers and possibly modify email contents (like this mailing list here; it appends a signature and destroys the verification phase). Sometimes you need to take action manually and filter out headers from free mail providers etc. When you save an email, this command will verify the signature manually: /usr/local/sbin/opendkim -t email-file.eml I cannot really tell what's going on and this can take very long to figure this out. You should move the discussion to the official forums as a more appropriate place for these kinds of discussions. -- Martin --Sig_/X/PNBg7w./cOGczgPLU0k9i Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJPmTdRAAoJEF8wvLx/5p/7UwAP/Rk3dyk6cDifeftfU0HC6Amm PqypNstvF73oWr3DOx3buwTkPpgtJp2KM3OpLQAN5ilEuxK7EAgjzLp4cCEjE53U GWb0uqaBsQ1Ku8dCj3T0vCZwW5f0eqPZot9KtIaLIUehfDXZJjhpZuRkRyPE71MT U3exdDayqmvc9q/UtWxVXNRyswZjgPJWV8J/X1t7kKWb/DZu1P3Cy8kpYhoBgv2+ KSDf+pQwjFIGlhJlc9yWW+bHAo/I/2V51LnvFpO+EztSYeMMFGlKiASVON7W52Qs jmNYYc4nOWIewC/56gkKX2luUOYKpPdIBfBPg0Ps9YNePSP0dDF751LblfiBbGBD 0R2if2v9yir8f63OYmfTdBgn4vEj9u7Y80hJj2xZhMGtZVChTi9R6rvwQsvsYNQr ahHn9s+GbLE/nILWSQzxuctAdMfWv3PU6kmwBkMuMpLAYKJ+FHHdT4tTjeYpbs8j HjnKBwpCyUuYUD+HoqdW4/v2Ynm2QrMrNemUIpMxZHQi22NHe3jcvfa4uH21QUs7 lbayenEBqgMeqEOoUUNaO7BKh9o4K+6+fhQPqwsrUmHD7/jIt0LecDO3OdAywX4p pEZ/u88dfcMXtshhZ/9YhaN1YHY2dtLqmTedxhJ/otTslscUi1jf8OwSBdm88+E1 ltutY4A9xJGHosU0nAel =Zso3 -----END PGP SIGNATURE----- --Sig_/X/PNBg7w./cOGczgPLU0k9i-- From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 12:12:48 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9099F1065677 for ; Thu, 26 Apr 2012 12:12:48 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 449CA8FC12 for ; Thu, 26 Apr 2012 12:12:48 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEALk6mU+DaFvO/2dsb2JhbABBAxaFUqxqggkBAQEDAQEBASArIAsFBw8OAwQBAQECAg0ZAikBCR4IBggHBAEcBIdnBQunYZMlgS+JU4I5ghKBGASTToIvgRGPL4MEgUA X-IronPort-AV: E=Sophos;i="4.75,486,1330923600"; d="scan'208";a="166719770" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 26 Apr 2012 08:12:47 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 3FE3DB4061; Thu, 26 Apr 2012 08:12:47 -0400 (EDT) Date: Thu, 26 Apr 2012 08:12:47 -0400 (EDT) From: Rick Macklem To: Steven Hartland Message-ID: <451495816.3415957.1335442367240.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <74D763774ED14D99A36D376C7CD54D9C@multiplay.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-stable@freebsd.org, Oliver Brandmueller Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 12:12:48 -0000 Steven Hartland wrote: > ----- Original Message ----- > From: "Rick Macklem" > To: "Oliver Brandmueller" > Cc: > Sent: Thursday, April 26, 2012 1:24 AM > Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak > > > > Oliver Brandmueller wrote: > >> Hi, > >> > >> After figuring an easy way to repeat the behaviour and hunting it > >> down > >> to the combination of ZFS+newNFS and removal of files or > >> directories I > >> opened PR kern/167266 > >> > > Oops, the patch for this is at: > > http://people.freebsd.org/~rmacklem/namei-leak.patch > > Is this specific to 9.x or is 8.x effected? > At a glance, it looks to me like 8.x is affected. Note that the bug only affects the new NFS server (the experimental one for 8.x) when exporting ZFS volumes. (UFS exported volumes don't leak) If you are running a server that might be affected, just: # vmstat -z | fgrep -i namei on the server and see if the 3rd number shown is increasing. rick > Regards > Steve > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. > and the person or entity to whom it is addressed. In the event of > misdirection, the recipient is prohibited from using, copying, > printing or otherwise disseminating it or any information contained in > it. > > In the event of misdirection, illegible or incomplete transmission > please telephone +44 845 868 1337 > or return the E.mail to postmaster@multiplay.co.uk. > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 12:57:17 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EFDD106566B for ; Thu, 26 Apr 2012 12:57:17 +0000 (UTC) (envelope-from prvs=1463147095=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id C1C638FC0A for ; Thu, 26 Apr 2012 12:57:16 +0000 (UTC) X-Spam-Processed: mail1.multiplay.co.uk, Thu, 26 Apr 2012 13:56:27 +0100 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-5.0 required=6.0 tests=USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.2.5 Received: from r2d2 ([188.220.16.49]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50019466998.msg for ; Thu, 26 Apr 2012 13:56:27 +0100 X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=1463147095=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-stable@freebsd.org Message-ID: From: "Steven Hartland" To: "Rick Macklem" References: <451495816.3415957.1335442367240.JavaMail.root@erie.cs.uoguelph.ca> Date: Thu, 26 Apr 2012 13:56:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: freebsd-stable@freebsd.org, Oliver Brandmueller Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 12:57:17 -0000 ---- Original Message ----- From: "Rick Macklem" > At a glance, it looks to me like 8.x is affected. Note that the > bug only affects the new NFS server (the experimental one for 8.x) > when exporting ZFS volumes. (UFS exported volumes don't leak) > > If you are running a server that might be affected, just: > # vmstat -z | fgrep -i namei > on the server and see if the 3rd number shown is increasing. Many thanks Rick wasnt aware we had anything experimental enabled but I think that would be a yes looking at these number:- vmstat -z | fgrep -i namei NAMEI: 1024, 0, 1, 1483, 25285086096, 0 vmstat -z | fgrep -i namei NAMEI: 1024, 0, 0, 1484, 25285945725, 0 Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 13:00:26 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0D401065670 for ; Thu, 26 Apr 2012 13:00:26 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 593A98FC0C for ; Thu, 26 Apr 2012 13:00:26 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EACBGmU+DaFvO/2dsb2JhbABBA4VorGqCCQEBBAEjVgUHDw4HAwICDRkCWQYTiAgFp3OTI4EviVOCOYISgRgElX2QQIMEgUA X-IronPort-AV: E=Sophos;i="4.75,486,1330923600"; d="scan'208";a="169611152" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 26 Apr 2012 09:00:25 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 812A9B405A; Thu, 26 Apr 2012 09:00:25 -0400 (EDT) Date: Thu, 26 Apr 2012 09:00:25 -0400 (EDT) From: Rick Macklem To: Steven Hartland Message-ID: <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-stable@freebsd.org, Oliver Brandmueller Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 13:00:26 -0000 Steven Hartland wrote: > ---- Original Message ----- > From: "Rick Macklem" > > At a glance, it looks to me like 8.x is affected. Note that the > > bug only affects the new NFS server (the experimental one for 8.x) > > when exporting ZFS volumes. (UFS exported volumes don't leak) > > > > If you are running a server that might be affected, just: > > # vmstat -z | fgrep -i namei > > on the server and see if the 3rd number shown is increasing. > > Many thanks Rick wasnt aware we had anything experimental enabled > but I think that would be a yes looking at these number:- > > vmstat -z | fgrep -i namei > NAMEI: 1024, 0, 1, 1483, 25285086096, 0 > vmstat -z | fgrep -i namei > NAMEI: 1024, 0, 0, 1484, 25285945725, 0 > ^ I don't think so, since the 3rd number (USED) is 0 here. If that # is increasing over time, you have the leak. You are probably running the old (default in 8.x) NFS server. rick > Regards > Steve > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. > and the person or entity to whom it is addressed. In the event of > misdirection, the recipient is prohibited from using, copying, > printing or otherwise disseminating it or any information contained in > it. > > In the event of misdirection, illegible or incomplete transmission > please telephone +44 845 868 1337 > or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 14:02:17 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0DDD1065678 for ; Thu, 26 Apr 2012 14:02:17 +0000 (UTC) (envelope-from feld@feld.me) Received: from feld.me (unknown [IPv6:2607:f4e0:100:300::2]) by mx1.freebsd.org (Postfix) with ESMTP id 694A88FC1E for ; Thu, 26 Apr 2012 14:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=feld.me; s=blargle; h=In-Reply-To:Message-Id:From:Mime-Version:Date:References:Subject:To:Content-Type; bh=/+zVO5CpBtUwrLL8Yof80Y8ka7qcF14Pw+31ptGXbSI=; b=KQmcY3Gew/zndz5CYGfHr5MfZ+pmDkfzizWh4jC2X9lsEqZgPOHr7wW6HklvROkCKVCEaI4E8ECkee9MyZBHKsCHbJExENGspSn6QQTO6jKqUhOJxghdRiUt+ooVBIXe; Received: from localhost ([127.0.0.1] helo=mwi1.coffeenet.org) by feld.me with esmtp (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SNPGs-000Cz6-Eb for freebsd-stable@freebsd.org; Thu, 26 Apr 2012 09:02:15 -0500 Received: from feld@feld.me by mwi1.coffeenet.org (Archiveopteryx 3.1.4) with esmtpa id 1335448924-30163-30162/5/21; Thu, 26 Apr 2012 14:02:04 +0000 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-stable@freebsd.org References: <4F985374.9080807@zonov.org> Date: Thu, 26 Apr 2012 09:02:04 -0500 Mime-Version: 1.0 From: Mark Felder Message-Id: In-Reply-To: <4F985374.9080807@zonov.org> User-Agent: Opera Mail/11.62 (FreeBSD) X-SA-Score: -1.5 Subject: Re: FreeBSD 9.0 - BCE_JUMBO_HDRSPLIT kernel option for bce device still needed? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 14:02:17 -0000 On Wed, 25 Apr 2012 14:41:40 -0500, Andrey Zonov wrote: > > Hi, > > There is no such option in the kernel anymore, instead there is > hw.bce.hdr_split tunable which is turn on by default. > I've tried the kernel option and playing with this tunable on a pair of HP DL380s and had to give up. I was building ZFS SAN heads and was going to have 2x bce and 2x igb ethernets each LACP and Jumbo Frames. The bce devices simply would not work with jumbo frames. The packets disappeared into the great ether or something. Our switches never saw any being sent, and receiving jumbo frames showed absolutely no traffic via tcpdump. After dropping in a quad Intel NIC (4x igb) everything worked as expected. The bce hardware or driver is sketchy and I'd avoid it. From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 20:19:09 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AF8D1065674 for ; Thu, 26 Apr 2012 20:19:09 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id EA8468FC1B for ; Thu, 26 Apr 2012 20:19:08 +0000 (UTC) Received: by lbbgm6 with SMTP id gm6so13431lbb.13 for ; Thu, 26 Apr 2012 13:19:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=epCDstfQtk+KyvodrHwGQLYMgFrbOr0aa1V3Z3emUsg=; b=c2auBMkyu211/694gAFMeZ56fUG9TMbnkBWqcpD7n7PjZofTq3cVdaWCrxdAhz64Y2 HnlYXa5rPi7E4BfNeX366Sxh9Od+9V3s2Fj+YWHqx2ShExIxjpArBT9JKesP72vJGt70 X1UaSwKKUh52Tmewzaeuc6E0JuV66LrQB4A1x6rnR5BAq6Sld/AiwuWIAsDKTnfiqiFL /T6tYKOMbtPGdhj3VWLpxstC7EvryRvD8qrz2/js5c4/j8AJqxQgFmAOAuA0XN4/b/dN hnkjmJi3kNdWwpCtXCS7VTyunHuT5o/hGVepTThdP+VL5hYiC/9UKT8ojfat9rkkZXpE /8Mg== Received: by 10.112.23.40 with SMTP id j8mr4003420lbf.44.1335471547653; Thu, 26 Apr 2012 13:19:07 -0700 (PDT) Received: from zont-osx.local (ppp95-165-142-116.pppoe.spdop.ru. [95.165.142.116]) by mx.google.com with ESMTPS id oy17sm4129518lab.7.2012.04.26.13.19.06 (version=SSLv3 cipher=OTHER); Thu, 26 Apr 2012 13:19:07 -0700 (PDT) Message-ID: <4F99ADB9.2000209@zonov.org> Date: Fri, 27 Apr 2012 00:19:05 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Mark Felder References: <4F985374.9080807@zonov.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkwDxyFWiNYkFMi6ZRxUOrvJ2QVAplpb70GNfMNS48IhJNJy9BL+aQR9XbE9q1gzQumM3aw Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD 9.0 - BCE_JUMBO_HDRSPLIT kernel option for bce device still needed? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 20:19:09 -0000 On 4/26/12 6:02 PM, Mark Felder wrote: > On Wed, 25 Apr 2012 14:41:40 -0500, Andrey Zonov wrote: > >> >> Hi, >> >> There is no such option in the kernel anymore, instead there is >> hw.bce.hdr_split tunable which is turn on by default. >> > > I've tried the kernel option and playing with this tunable on a pair of > HP DL380s and had to give up. I was building ZFS SAN heads and was going > to have 2x bce and 2x igb ethernets each LACP and Jumbo Frames. The bce > devices simply would not work with jumbo frames. The packets disappeared > into the great ether or something. Our switches never saw any being > sent, and receiving jumbo frames showed absolutely no traffic via tcpdump. > > After dropping in a quad Intel NIC (4x igb) everything worked as expected. > > The bce hardware or driver is sketchy and I'd avoid it. Please try this [1] if you can. [1] http://lists.freebsd.org/pipermail/freebsd-net/2012-April/032157.html -- Andrey Zonov From owner-freebsd-stable@FreeBSD.ORG Thu Apr 26 21:37:13 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91762106564A for ; Thu, 26 Apr 2012 21:37:13 +0000 (UTC) (envelope-from feld@feld.me) Received: from feld.me (unknown [IPv6:2607:f4e0:100:300::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5A6348FC1E for ; Thu, 26 Apr 2012 21:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=feld.me; s=blargle; h=In-Reply-To:Message-Id:From:Mime-Version:Date:References:Subject:To:Content-Type; bh=BVIp0KsMxl231df8IyMbtdo6+XcQGfUqGlKS4dj0zLM=; b=jRWdcXFWritEgIxfz2iHm2AEXS5Gq16tUEnaUMPfBh8KEUUc5Bt4qmnQDl/gnkFGw11XbRvgP4s07VSUiDEU7rbQxRSWYroIx7MHW1kl1pjSgtqAvhyAUss1Mr0biMNK; Received: from localhost ([127.0.0.1] helo=mwi1.coffeenet.org) by feld.me with esmtp (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SNWND-0008Em-Ff for freebsd-stable@freebsd.org; Thu, 26 Apr 2012 16:37:12 -0500 Received: from feld@feld.me by mwi1.coffeenet.org (Archiveopteryx 3.1.4) with esmtpa id 1335476225-30163-30162/5/23; Thu, 26 Apr 2012 21:37:05 +0000 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-stable@freebsd.org References: <4F985374.9080807@zonov.org> <4F99ADB9.2000209@zonov.org> Date: Thu, 26 Apr 2012 16:37:04 -0500 Mime-Version: 1.0 From: Mark Felder Message-Id: In-Reply-To: <4F99ADB9.2000209@zonov.org> User-Agent: Opera Mail/11.62 (FreeBSD) X-SA-Score: -1.5 Subject: Re: FreeBSD 9.0 - BCE_JUMBO_HDRSPLIT kernel option for bce device still needed? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 21:37:13 -0000 Hi Andrey, Those servers are considered production now but I have access to a few more that I may be able to test your patch on. I do not have an ETA but I'm keeping this on my list of "things to do" and will gladly reply back after I produce results. Thanks!!! From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 04:37:21 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72A0E106564A for ; Fri, 27 Apr 2012 04:37:21 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id F3BFC8FC0C for ; Fri, 27 Apr 2012 04:37:19 +0000 (UTC) Received: from alph.allbsd.org (p4242-ipbf1504funabasi.chiba.ocn.ne.jp [118.7.211.242]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id q3R4aRIJ059823; Fri, 27 Apr 2012 13:36:39 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id q3R4aNTN028319; Fri, 27 Apr 2012 13:36:25 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Fri, 27 Apr 2012 13:35:56 +0900 (JST) Message-Id: <20120427.133556.1957776674947898933.hrs@allbsd.org> To: rmacklem@uoguelph.ca From: Hiroki Sato In-Reply-To: <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca> References: <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.4.50 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Fri_Apr_27_13_35_56_2012_748)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.3 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [133.31.130.32]); Fri, 27 Apr 2012 13:36:46 +0900 (JST) X-Spam-Status: No, score=-104.1 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT,RCVD_IN_RP_RNBL,SPF_SOFTFAIL,USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org Cc: freebsd-stable@FreeBSD.org, killing@multiplay.co.uk, ob@e-Gitt.NET Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 04:37:21 -0000 ----Security_Multipart(Fri_Apr_27_13_35_56_2012_748)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rick Macklem wrote in <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca>: rm> Steven Hartland wrote: rm> > ---- Original Message ----- rm> > From: "Rick Macklem" rm> > > At a glance, it looks to me like 8.x is affected. Note that the rm> > > bug only affects the new NFS server (the experimental one for 8.x) rm> > > when exporting ZFS volumes. (UFS exported volumes don't leak) rm> > > rm> > > If you are running a server that might be affected, just: rm> > > # vmstat -z | fgrep -i namei rm> > > on the server and see if the 3rd number shown is increasing. rm> > rm> > Many thanks Rick wasnt aware we had anything experimental enabled rm> > but I think that would be a yes looking at these number:- rm> > rm> > vmstat -z | fgrep -i namei rm> > NAMEI: 1024, 0, 1, 1483, 25285086096, 0 rm> > vmstat -z | fgrep -i namei rm> > NAMEI: 1024, 0, 0, 1484, 25285945725, 0 rm> > rm> ^ rm> I don't think so, since the 3rd number (USED) is 0 here. rm> If that # is increasing over time, you have the leak. You are rm> probably running the old (default in 8.x) NFS server. Just a report, I confirmed it affected 8.x servers running newnfs. Actually I have been suffered from memory starvation symptom on that server (24GB RAM) for a long time and watching vmstat -z periodically. It stopped working once a week. I investigated the vmstat log again and found the amount of NAMEI leak was 11,543,956 (about 11GB!) just before the locked-up. After applying the patch, the leak disappeared. Thank you for fixing it! -- Hiroki ----Security_Multipart(Fri_Apr_27_13_35_56_2012_748)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk+aIiwACgkQTyzT2CeTzy377gCfVED8ax2Dp5yK+aPFngbjTnuy +eYAniQh3lwH6VoTqFE5LeZA7jv/fY7z =OSLV -----END PGP SIGNATURE----- ----Security_Multipart(Fri_Apr_27_13_35_56_2012_748)---- From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 06:20:29 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A15A5106564A; Fri, 27 Apr 2012 06:20:29 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 64B478FC1A; Fri, 27 Apr 2012 06:20:29 +0000 (UTC) Received: by pbcwz17 with SMTP id wz17so613234pbc.13 for ; Thu, 26 Apr 2012 23:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=gQ+S/elfaqRJlpETog2l6uScmyCzi4/4nEdiEsXoxHY=; b=wdeEq+CiM8n73GSk5MfXjuOPVRuQXCxIKk14tVyzfr/qs0x2i1Fp+jmrGm73Z4AU/V JAJRxEFz/EgaFhpypMRtQeUOG11dsubu9lrpOXMdl7ELfaLW/2Li8zmoi7wuw0urNA/O OUThhfdxyhkVw7gyjmR/0uFxOCsoeEhbqCrZzYKllhz0Fn2G1K9/IAiS+MZSbr8qM1Ps ddPyVs29V9vPXo+QGsRoeMb2XpU53dW/qLeZGp25C8oJe4v8wA59lc+Ql4B2jQeEp8xy C+m5s3TmppSZEzRboKL9RLkVIxQ5dlj088F3+UksQ6ofibXPFpg0sHrtjHNjPY9laS2G H2WA== Received: by 10.68.238.165 with SMTP id vl5mr3991734pbc.36.1335507629045; Thu, 26 Apr 2012 23:20:29 -0700 (PDT) Received: from pyunyh@gmail.com ([114.111.62.249]) by mx.google.com with ESMTPS id no7sm4661771pbc.13.2012.04.26.23.20.24 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Apr 2012 23:20:26 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 27 Apr 2012 15:20:17 -0700 From: YongHyeon PYUN Date: Fri, 27 Apr 2012 15:20:17 -0700 To: John Baldwin Message-ID: <20120427222017.GA17009@michelle.cdnetworks.com> References: <20120228210329.GA2741@localhost> <20120424200719.GB6932@michelle.cdnetworks.com> <201204241507.14699.jhb@freebsd.org> <201204250935.28973.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <201204250935.28973.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: Pavel Gorshkov , freebsd-stable@freebsd.org Subject: Re: msk0: interrupt storm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 06:20:29 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 25, 2012 at 09:35:28AM -0400, John Baldwin wrote: > On Tuesday, April 24, 2012 3:07:14 pm John Baldwin wrote: > > On Tuesday, April 24, 2012 4:07:19 pm YongHyeon PYUN wrote: > > > On Mon, Apr 23, 2012 at 10:24:41AM -0400, John Baldwin wrote: > > > > On Wednesday, March 07, 2012 3:40:53 pm YongHyeon PYUN wrote: > > > > > On Tue, Mar 06, 2012 at 10:36:05AM -0500, John Baldwin wrote: > > > > > > On Thursday, March 01, 2012 8:29:55 pm YongHyeon PYUN wrote: > > > > > > > On Wed, Feb 29, 2012 at 01:03:29AM +0400, Pavel Gorshkov wrote: > > > > > > > > My laptop running 9.0-RELEASE/amd64/GENERIC freezes and > > > > > > > > (sometimes) unfreezes intermittently, logging the following: > > > > > > > > > > > > > > > > Feb 28 23:07:36 lifebook kernel: interrupt storm detected on > > "irq259:"; > > > > > > throttling interrupt source > > > > > > > > > > > > > > > > $ vmstat -i > > > > > > > > ... > > > > > > > > irq259: mskc0 11669511 3456 > > > > > > > > > > > > > > > > > > > > > > > > Looks very similar to this: > > > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=164569 > > > > > > > > > > > > > > > > Any suggestions? > > > > > > > > > > > > > > Try disabling MSI and see whether that makes any difference. > > > > > > > > > > > > I also get interrupt storms with msk. They do fix themselves when > > they > > > > > > happen, and I've seen it happen with the machine is idle. This is on > > my > > > > > > little netbook where msk had several problems initially that have > > since been > > > > > > fixed. > > > > > > > > > > > > mskc0: port 0x2000-0x20ff mem > > > > > > 0xe0000000-0xe0003fff irq 19 at device 0.0 on pci32 > > > > > > msk0: on > > mskc0 > > > > > > msk0: Ethernet address: 00:24:81:40:e3:ef > > > > > > miibus0: on msk0 > > > > > > e1000phy0: PHY 0 on miibus0 > > > > > > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > > 1000baseT, > > > > > > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > > > > > > > > > > > > mskc0@pci0:32:0:0: class=0x020000 card=0x3056103c chip=0x436c11ab > > > > > > rev=0x10 hdr=0x00 > > > > > > vendor = 'Marvell Technology Group Ltd.' > > > > > > device = '88E8072 PCI-E Gigabit Ethernet Controller' > > > > > > class = network > > > > > > subclass = ethernet > > > > > > > > > > > > > > > > John, can you let me know the value of B0_Y2_SP_ISRC2 register in > > > > > interrupt handler when you see the interrupt storm? > > > > > > > > I finally tested this. I added some KTR traces to dump ISRC2 on each > > > > call to msk_intr() and hacked the interrupt thread code to turn KTR > > tracing > > > > off when a storm occurred. The traces look like this: > > > > > > > > index cpu timestamp trace > > > > ------ --- ---------------- ----- > > > > 148 0 111662766108828 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 147 0 111662765994576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 146 0 111662765380260 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 145 0 111662765257308 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 144 0 111662765134356 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 143 0 111662765011560 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 142 0 111662764888656 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 141 0 111662764773924 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 140 0 111662764659360 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 139 0 111662764528140 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 138 0 111662764413576 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > 137 0 111662764287852 msk_intr: B0_Y2_SP_ISRC2 = 0x44000000 > > > > ... > > > > > > > > (All traces have the same register value.) The TSC on this netbook runs > > > > at machdep.tsc_freq: 1596035244 > > > > > > > > (The timestamps above are TSC values.) > > > > > > > > Let me know if you'd like me to log more stuff in the driver. Thanks! > > > > > > wonder why the deivce gets TWSI completion interrupt since the > > > driver does not monitor temperature sensor. In addition, the > > > interrupt was already disabled so have no idea how this can happen. > > > Here, I assume your controller implemented optional temperature > > > sensor and it is monitored by H/W. > > > Anyway, try attached patch and let me know whether it makes any > > > difference. > > > > It does fix the interrupt storms. I added a debugging printf to fire each > > time msk_intr() sees this bit to see if it storms, etc. What I see is that > > each time I would previously get a single printf reporting an interrupt storm, > > I now get a single printf reporting that the TWSI_RDY bit was set. > > Sadly, I spoke too soon. With this patch applied I got another storm last night > where this bit was not set during the storm: > > index cpu timestamp trace > ------ --- ---------------- ----- > 71 0 36775451301480 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 70 0 36775450145436 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 69 0 36775449956940 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 68 0 36775449768564 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 67 0 36775448604912 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 66 0 36775448416872 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 65 0 36775448220444 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 64 0 36775446569772 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 63 0 36775445385804 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 62 0 36775445189340 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 61 0 36775444984476 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 60 0 36775443829368 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 59 0 36775443640920 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 58 0 36775443444324 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > 57 0 36775442272836 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 > > Apr 24 14:50:53 pipkin kernel: mskc0: TWSI ready > Apr 24 14:50:54 pipkin kernel: mskc0: TWSI ready > Apr 24 20:19:49 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source > Apr 24 21:40:14 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source > Apr 25 05:19:31 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source > Apr 25 08:04:38 pipkin kernel: interrupt storm detected on "irq257:"; throttling interrupt source > > (This trace was from the storm at 20:19:49.) > Hmm, would you give attach patch try? Yukon Extreme seems to have a new flow control feature but I'm not sure whether this is related with interrupt storm you're seeing. --oyUTqETQ0mS9luUI Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="msk.flowctl.diff" Index: sys/dev/msk/if_msk.c =================================================================== --- sys/dev/msk/if_msk.c (revision 234725) +++ sys/dev/msk/if_msk.c (working copy) @@ -3863,6 +3863,11 @@ gmac = DATA_BLIND_VAL(DATA_BLIND_DEF) | GM_SMOD_VLAN_ENA | IPG_DATA_VAL(IPG_DATA_DEF); + if ((sc->msk_hw_id == CHIP_ID_YUKON_EC_U && + sc->msk_hw_rev == CHIP_REV_YU_EC_U_B1) || + (sc->msk_hw_id == CHIP_ID_YUKON_EX && + sc->msk_hw_rev != CHIP_REV_YU_EX_A0)) + gmac |= GM_NEW_FLOW_CTRL; if (ifp->if_mtu > ETHERMTU) gmac |= GM_SMOD_JUMBO_ENA; GMAC_WRITE_2(sc, sc_if->msk_port, GM_SERIAL_MODE, gmac); Index: sys/dev/msk/if_mskreg.h =================================================================== --- sys/dev/msk/if_mskreg.h (revision 234725) +++ sys/dev/msk/if_mskreg.h (working copy) @@ -918,6 +918,8 @@ #define CHIP_REV_YU_EC_U_A0 1 #define CHIP_REV_YU_EC_U_A1 2 +#define CHIP_REV_YU_EC_U_B0 3 +#define CHIP_REV_YU_EC_U_B1 5 #define CHIP_REV_YU_FE_P_A0 0 /* Chip Rev. for Yukon-2 FE+ A0 */ @@ -1881,6 +1883,7 @@ #define GM_SMOD_LIMIT_4 BIT_10 /* 4 consecutive Tx trials */ #define GM_SMOD_VLAN_ENA BIT_9 /* Enable VLAN (Max. Frame Len) */ #define GM_SMOD_JUMBO_ENA BIT_8 /* Enable Jumbo (Max. Frame Len) */ +#define GM_NEW_FLOW_CTRL BIT_6 /* Enable New Flow-Control */ #define GM_SMOD_IPG_MSK 0x1f /* Bit 4.. 0: Inter-Packet Gap (IPG) */ #define DATA_BLIND_VAL(x) (SHIFT11(x) & GM_SMOD_DATABL_MSK) --oyUTqETQ0mS9luUI-- From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 06:31:05 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8BA4E106564A; Fri, 27 Apr 2012 06:31:05 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 30BC38FC12; Fri, 27 Apr 2012 06:31:05 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1SNehi-0006DQ-RY; Fri, 27 Apr 2012 09:30:55 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: Hiroki Sato In-reply-to: <20120427.133556.1957776674947898933.hrs@allbsd.org> References: <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca> <20120427.133556.1957776674947898933.hrs@allbsd.org> Comments: In-reply-to Hiroki Sato message dated "Fri, 27 Apr 2012 13:35:56 +0900." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 27 Apr 2012 09:30:54 +0300 From: Daniel Braniss Message-ID: Cc: killing@multiplay.co.uk, rmacklem@uoguelph.ca, freebsd-stable@FreeBSD.org, ob@e-Gitt.NET Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 06:31:05 -0000 > ----Security_Multipart(Fri_Apr_27_13_35_56_2012_748)-- > Content-Type: Text/Plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > Rick Macklem wrote > in <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca>: > > rm> Steven Hartland wrote: > rm> > ---- Original Message ----- > rm> > From: "Rick Macklem" > rm> > > At a glance, it looks to me like 8.x is affected. Note that the > rm> > > bug only affects the new NFS server (the experimental one for 8.x) > rm> > > when exporting ZFS volumes. (UFS exported volumes don't leak) > rm> > > > rm> > > If you are running a server that might be affected, just: > rm> > > # vmstat -z | fgrep -i namei > rm> > > on the server and see if the 3rd number shown is increasing. > rm> > > rm> > Many thanks Rick wasnt aware we had anything experimental enabled > rm> > but I think that would be a yes looking at these number:- > rm> > > rm> > vmstat -z | fgrep -i namei > rm> > NAMEI: 1024, 0, 1, 1483, 25285086096, 0 > rm> > vmstat -z | fgrep -i namei > rm> > NAMEI: 1024, 0, 0, 1484, 25285945725, 0 > rm> > > rm> ^ > rm> I don't think so, since the 3rd number (USED) is 0 here. > rm> If that # is increasing over time, you have the leak. You are > rm> probably running the old (default in 8.x) NFS server. > > Just a report, I confirmed it affected 8.x servers running newnfs. > > Actually I have been suffered from memory starvation symptom on that > server (24GB RAM) for a long time and watching vmstat -z > periodically. It stopped working once a week. I investigated the > vmstat log again and found the amount of NAMEI leak was 11,543,956 > (about 11GB!) just before the locked-up. After applying the patch, > the leak disappeared. Thank you for fixing it! > > -- Hiroki this is on 8.2-STABLE/amd64 from around August: same here, this zfs+newnfs has been hanging every few months, and I can see now the leak, it's slowly increasing: NAMEI: 1024, 0, 122975, 529, 15417248, 0 NAMEI: 1024, 0, 122984, 520, 15421772, 0 NAMEI: 1024, 0, 123002, 502, 15424743, 0 NAMEI: 1024, 0, 123008, 496, 15425464, 0 cheers, danny From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 06:40:23 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69B27106564A for ; Fri, 27 Apr 2012 06:40:23 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.server1.bsdforen.de (bsdforen.de [82.193.243.81]) by mx1.freebsd.org (Postfix) with ESMTP id BF2F98FC08 for ; Fri, 27 Apr 2012 06:40:22 +0000 (UTC) Received: from mobileKamikaze.norad (HSI-KBW-091-089-161-008.hsi2.kabel-badenwuerttemberg.de [91.89.161.8]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.server1.bsdforen.de (Postfix) with ESMTPSA id F16127E8AF for ; Fri, 27 Apr 2012 08:40:20 +0200 (CEST) Message-ID: <4F9A3F53.6020102@bsdforen.de> Date: Fri, 27 Apr 2012 08:40:19 +0200 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120425 Thunderbird/12.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: multipart/mixed; boundary="------------000908050402040606070206" Subject: make distribution in RELENG_9 i386 tinderbox jail fails on amd64 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 06:40:23 -0000 This is a multi-part message in MIME format. --------------000908050402040606070206 Content-Type: text/plain; charset=ascii; format=flowed Content-Transfer-Encoding: 7bit This problem also showed up a couple of years ago and was caused by TB calling make distribution in a non-supported way. However, that was a long time ago and nowadays crosscompiling RELENG_7 and RELENG_8 works just fine. But /something/ was introduced with RELENG_9 that broke it. -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? --------------000908050402040606070206 Content-Type: text/plain; charset=UTF-8; name="9-amd64-distribution.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="9-amd64-distribution.txt" cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc; install -o root= -g wheel -m 644 auth.conf crontab devd.conf devfs.conf ddb.conf dhcli= ent.conf disktab fbtab ftpusers gettytab group hosts hosts.allow hosts.= equiv inetd.conf libalias.conf login.access login.conf mac.conf motd ne= tconfig network.subr networks newsyslog.conf nsswitch.conf phones profil= e protocols rc rc.bsdextended rc.firewall rc.initdiskless rc.sendmail r= c.shutdown rc.subr remote rpc services shells sysctl.conf syslog.conf t= ermcap.small etc.i386/ttys amd.map apmd.conf snmpd.config freebsd-update.= conf /usr/local/portstools/tinderbox/jails/9-i386/src/etc/../usr.bin/loca= te/locate/locate.rc hosts.lpd printcap /usr/local/portstools/tinderbox/ja= ils/9-i386/src/etc/../usr.bin/mail/misc/mail.rc ntp.conf nscd.conf portsn= ap.conf pf.os csh.cshrc csh.login csh.logout regdomain.xml /usr/local/por= tstools/tinderbox/jails/9-i386/tmp/etc; cap_mkdb -l /usr/local/portstool= s/tinderbox/jails/9-i386/tmp/etc/login.conf; install -o root -g wheel -m= 755 netstart pccard_ether rc.suspend rc.resume /usr/local/portstools/ti= nderbox/jails/9-i386/tmp/etc; install -o root -g wheel -m 600 master.pa= sswd nsmb.conf opieaccess /usr/local/portstools/tinderbox/jails/9-i386/tm= p/etc; pwd_mkdb -L -i -p -d /usr/local/portstools/tinderbox/jails/9-i386/tmp/etc= /usr/local/portstools/tinderbox/jails/9-i386/tmp/etc/master.passwd cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/bluetooth; make i= nstall install -o root -g wheel -m 600 hcsecd.conf /usr/local/portstools/tind= erbox/jails/9-i386/tmp/etc/bluetooth/hcsecd.conf install -o root -g wheel -m 644 hosts /usr/local/portstools/tinderbox/= jails/9-i386/tmp/etc/bluetooth/hosts install -o root -g wheel -m 444 protocols /usr/local/portstools/tinderbo= x/jails/9-i386/tmp/etc/bluetooth cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/defaults; make in= stall install -o root -g wheel -m 444 bluetooth.device.conf devfs.rules period= ic.conf rc.conf /usr/local/portstools/tinderbox/jails/9-i386/tmp/etc/defa= ults cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/devd; make instal= l install -o root -g wheel -m 644 uath.conf usb.conf asus.conf /usr/local/= portstools/tinderbox/jails/9-i386/tmp/etc/devd cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/gss; make install= install -o root -g wheel -m 444 mech qop /usr/local/portstools/tinderbox= /jails/9-i386/tmp/etc/gss cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/periodic; make in= stall =3D=3D=3D> daily (install) install -o root -g wheel -m 755 100.clean-disks 110.clean-tmps 120.clean= -preserve 200.backup-passwd 220.backup-pkgdb 330.news 400.status-disks 40= 5.status-ata-raid 406.status-gmirror 407.status-graid3 408.status-gstripe= 409.status-gconcat 420.status-network 450.status-security 999.local 310.= accounting 470.status-named 300.calendar 130.clean-msgs 480.status-ntpd 4= 90.status-pkg-changes 140.clean-rwho 430.status-rwho 150.clean-hoststat 2= 10.backup-aliases 440.status-mailq 460.status-mail-rejects 500.queuerun 4= 04.status-zfs 800.scrub-zfs /usr/local/portstools/tinderbox/jails/9-i386/= tmp/etc/periodic/daily =3D=3D=3D> security (install) install -o root -g wheel -m 755 100.chksetuid 110.neggrpperm 200.chkmoun= ts 300.chkuid0 400.passwdless 410.logincheck 700.kernelmsg 800.loginfail = 900.tcpwrap security.functions 510.ipfdenied 610.ipf6denied 500.ipfwdenie= d 550.ipfwlimit 520.pfdenied 460.chkportsum /usr/local/portstools/tinderb= ox/jails/9-i386/tmp/etc/periodic/security =3D=3D=3D> weekly (install) install -o root -g wheel -m 755 340.noid 999.local 310.locate 320.whatis= 330.catman 400.status-pkg /usr/local/portstools/tinderbox/jails/9-i386/t= mp/etc/periodic/weekly =3D=3D=3D> monthly (install) install -o root -g wheel -m 755 999.local 200.accounting /usr/local/port= stools/tinderbox/jails/9-i386/tmp/etc/periodic/monthly cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/rc.d; make instal= l install -o root -g wheel -m 555 DAEMON FILESYSTEMS LOGIN NETWORKING SERV= ERS abi accounting addswap adjkerntz amd apm apmd archdep atm1 atm2 atm3 = auditd bgfsck bluetooth bootparams bridge bsnmpd bthidd ccd cleanvar clea= rtmp cron ddb defaultroute devd devfs dhclient dmesg dumpon encswap faith= fsck ftp-proxy ftpd gbde geli geli2 gptboot gssd hastd hcsecd hostapd ho= stid hostid_save hostname inetd initrandom ip6addrctl ipfilter ipfs ipfw = ipmon ipnat ipsec jail kadmind kerberos keyserv kld kldxref kpasswdd ldco= nfig local localpkg lockd lpd mixer motd mountcritlocal mountcritremote m= ountlate mdconfig mdconfig2 mountd moused mroute6d mrouted msgs named nat= d netif netoptions netwait newsyslog nfsclient nfscbd nfsd nfsuserd nisdo= main nsswitch ntpd ntpdate othermta pf pflog pfsync powerd power_profile = ppp pppoed pwcheck quota random rarpd rctl resolv rfcomm_pppd_server root= route6d routed routing rpcbind rtadvd rtsold rwho savecore sdpd securele= vel sendmail serial sppp statd static_arp static_ndp stf swap1 syscons sy= sctl syslogd timed tmp ugidfw var virecover watchdogd wpa_supplicant ypbi= nd yppasswdd ypserv ypset ypupdated ypxfrd zfs zvol ipxrouted sshd nscd u= bthidhci /usr/local/portstools/tinderbox/jails/9-i386/tmp/etc/rc.d cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/../gnu/usr.bin/se= nd-pr; make etc-gnats-freefall install -o root -g wheel -m 0644 /usr/local/portstools/tinderbox/jails/9= -i386/src/gnu/usr.bin/send-pr/categories /usr/local/portstools/tinderbox= /jails/9-i386/tmp/etc/gnats/freefall cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/../share/termcap;= make etc-termcap ln -fs /usr/share/misc/termcap /usr/local/portstools/tinderbox/jails/9-i3= 86/tmp/etc/termcap cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/../usr.sbin/rmt; = make etc-rmt rm -f /usr/local/portstools/tinderbox/jails/9-i386/tmp/etc/rmt ln -s /usr/sbin/rmt /usr/local/portstools/tinderbox/jails/9-i386/tmp/etc/= rmt cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/pam.d; make insta= ll install -o root -g wheel -m 444 README /usr/local/portstools/tinderbox= /jails/9-i386/tmp/etc/pam.d/README install -o root -g wheel -m 644 atrun cron ftpd imap kde login other pas= swd pop3 rsh sshd su system telnetd xdm /usr/local/portstools/tinderbox/j= ails/9-i386/tmp/etc/pam.d /usr/local/portstools/tinderbox/jails/9-i386/tmp/etc/pam.d/ftp -> /usr/lo= cal/portstools/tinderbox/jails/9-i386/tmp/etc/pam.d/ftpd cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc; install -o root = -g wheel -m 0444 /usr/local/portstools/tinderbox/jails/9-i386/src/etc/..= /contrib/openbsm/etc/audit_class /usr/local/portstools/tinderbox/jails/9= -i386/src/etc/../contrib/openbsm/etc/audit_event /usr/local/portstools/ti= nderbox/jails/9-i386/tmp/etc/security cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc; install -o root = -g wheel -m 0600 /usr/local/portstools/tinderbox/jails/9-i386/src/etc/..= /contrib/openbsm/etc/audit_control /usr/local/portstools/tinderbox/jails= /9-i386/src/etc/../contrib/openbsm/etc/audit_user /usr/local/portstools/t= inderbox/jails/9-i386/tmp/etc/security cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc; install -o root = -g wheel -m 0500 /usr/local/portstools/tinderbox/jails/9-i386/src/etc/..= /contrib/openbsm/etc/audit_warn /usr/local/portstools/tinderbox/jails/9-i= 386/tmp/etc/security + ln -s ../var/named/etc/namedb /usr/local/portstools/tinderbox/jails/9-i= 386/tmp/etc/namedb cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/namedb; make inst= all install -o root -g wheel -m 644 named.conf named.root /usr/local/portsto= ols/tinderbox/jails/9-i386/tmp/etc/namedb =3D=3D=3D> master (install) install -o root -g wheel -m 644 empty.db localhost-forward.db localhost-= reverse.db /usr/local/portstools/tinderbox/jails/9-i386/tmp/etc/namedb/ma= ster cd /usr/local/portstools/tinderbox/jails/9-i386/src/etc/sendmail; make di= stribution install -o root -g wheel -m 644 /usr/local/portstools/tinderbox/jails/9-= i386/src/etc/sendmail/freebsd.mc freebsd.cf /usr/local/portstools/tinderb= ox/jails/9-i386/tmp/etc/mail install: freebsd.cf: No such file or directory *** Error code 71 Stop in /usr/local/portstools/tinderbox/jails/9-i386/src/etc/sendmail. *** Error code 1 Stop in /usr/local/portstools/tinderbox/jails/9-i386/src/etc. --------------000908050402040606070206-- From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 12:08:46 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E37E11065677; Fri, 27 Apr 2012 12:08:46 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 7BCF88FC15; Fri, 27 Apr 2012 12:08:46 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAPeLmk+DaFvO/2dsb2JhbAA8CA4IhVKtCYIJAQEEASNWBQcPDgcDAgINGQJZBgoJiAgFC6oDkx6BL4lVhSeBGASVfYERjy+CL1U X-IronPort-AV: E=Sophos;i="4.75,491,1330923600"; d="scan'208";a="169771605" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 27 Apr 2012 08:08:40 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 41EB6B4014; Fri, 27 Apr 2012 08:08:40 -0400 (EDT) Date: Fri, 27 Apr 2012 08:08:40 -0400 (EDT) From: Rick Macklem To: Daniel Braniss Message-ID: <1693565170.26796.1335528520197.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: killing@multiplay.co.uk, Hiroki Sato , freebsd-stable@FreeBSD.org, ob@e-Gitt.NET Subject: Re: 9-STABLE, ZFS, NFS, ggatec - suspected memory leak X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 12:08:47 -0000 Daniel Braniss wrote: > > ----Security_Multipart(Fri_Apr_27_13_35_56_2012_748)-- > > Content-Type: Text/Plain; charset=us-ascii > > Content-Transfer-Encoding: 7bit > > > > Rick Macklem wrote > > in > > <1527622626.3418715.1335445225510.JavaMail.root@erie.cs.uoguelph.ca>: > > > > rm> Steven Hartland wrote: > > rm> > ---- Original Message ----- > > rm> > From: "Rick Macklem" > > rm> > > At a glance, it looks to me like 8.x is affected. Note that > > the > > rm> > > bug only affects the new NFS server (the experimental one > > for 8.x) > > rm> > > when exporting ZFS volumes. (UFS exported volumes don't > > leak) > > rm> > > > > rm> > > If you are running a server that might be affected, just: > > rm> > > # vmstat -z | fgrep -i namei > > rm> > > on the server and see if the 3rd number shown is increasing. > > rm> > > > rm> > Many thanks Rick wasnt aware we had anything experimental > > enabled > > rm> > but I think that would be a yes looking at these number:- > > rm> > > > rm> > vmstat -z | fgrep -i namei > > rm> > NAMEI: 1024, 0, 1, 1483, 25285086096, 0 > > rm> > vmstat -z | fgrep -i namei > > rm> > NAMEI: 1024, 0, 0, 1484, 25285945725, 0 > > rm> > > > rm> ^ > > rm> I don't think so, since the 3rd number (USED) is 0 here. > > rm> If that # is increasing over time, you have the leak. You are > > rm> probably running the old (default in 8.x) NFS server. > > > > Just a report, I confirmed it affected 8.x servers running newnfs. > > > > Actually I have been suffered from memory starvation symptom on > > that > > server (24GB RAM) for a long time and watching vmstat -z > > periodically. It stopped working once a week. I investigated the > > vmstat log again and found the amount of NAMEI leak was 11,543,956 > > (about 11GB!) just before the locked-up. After applying the patch, > > the leak disappeared. Thank you for fixing it! > > > > -- Hiroki And thanks Hiroki for testing it on 8.x. > this is on 8.2-STABLE/amd64 from around August: > same here, this zfs+newnfs has been hanging every few months, and I > can see > now the leak, it's slowly increasing: > NAMEI: 1024, 0, 122975, 529, 15417248, 0 > NAMEI: 1024, 0, 122984, 520, 15421772, 0 > NAMEI: 1024, 0, 123002, 502, 15424743, 0 > NAMEI: 1024, 0, 123008, 496, 15425464, 0 > > cheers, > danny Maybe you could try the patch, too. It's at: http://people.freebsd.org/~rmacklem/namei-leak.patch I'll commit it to head soon with a 1 month MFC, so that hopefully Oliver will have a chance to try it on his production server before the MFC. Thanks everyone, for your help with this, rick From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 15:14:33 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 120B8106564A for ; Fri, 27 Apr 2012 15:14:33 +0000 (UTC) (envelope-from efraindector@motumweb.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id C73438FC08 for ; Fri, 27 Apr 2012 15:14:32 +0000 (UTC) Received: by dadz14 with SMTP id z14so3773443dad.17 for ; Fri, 27 Apr 2012 08:14:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:subject:date:organization:mime-version :content-type:x-priority:x-msmail-priority:importance:x-mailer :x-mimeole:x-gm-message-state; bh=GkWjQsTFS8TKcrBjo90qM/6W1Kj+5ziNXJKZByj3iY8=; b=PRDsNCoBdlBBXdJxoqUO3F/SeQXgt+Sfr/irrSt5Nntszj+DkmSKZM7nwrytPPsEb9 rfwqqo9RYXJ3+t8Tc6dim/Rs5xnbpMF4tK+f/qZYRd2XbDeJmA5VG725sL42uJc3AqN9 lB2Ph5QABc9buR6dbYgKoUzGbhaiKtAbT12VrazDSmmxZnE2CSKEhpFYd1IqX61A6CcL XFb965olKDFvvczKUa7wI9Q6lOTt16SmMGV4W66SivF6JLU1KYlmhcDHZDK3om5cc9nV oBnYRAEIvWcQ7u2pG9gt+2u5HydKj3NRXLn+q8DxK6+Vn2iKPMrpw1FTy261OccgxzgQ /S0w== Received: by 10.68.130.67 with SMTP id oc3mr936980pbb.164.1335539672195; Fri, 27 Apr 2012 08:14:32 -0700 (PDT) Received: from CMOTUM25PC ([187.171.5.249]) by mx.google.com with ESMTPS id qq3sm2827134pbc.15.2012.04.27.08.14.29 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Apr 2012 08:14:31 -0700 (PDT) Message-ID: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> From: =?UTF-8?Q?Efra=C3=ADn_D=C3=A9ctor?= To: "freebsd-stable@freebsd.org" Date: Fri, 27 Apr 2012 10:14:27 -0500 Organization: =?UTF-8?Q?HESA_T=C3=A9cnica?= MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Gm-Message-State: ALoCoQkuUpE1n3pfpxRMi6JCyP8YQ5NfCtyiDCghqc923gN4UQnxJNx/OAcicKnXENrrLjbM+Rtn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 15:14:33 -0000 Hello. I have a server using FreeBSD 8.2, and recently I=E2=80=99ve = noticed that /var is getting full But du =E2=80=93hs /var shows me this: 14M /var/ How Can I know what is using var to free space? Thank you. OS info: FreeBSD edh.edh 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 = 18:45:57 UTC 2011 = root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 15:16:14 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 582231065677 for ; Fri, 27 Apr 2012 15:16:14 +0000 (UTC) (envelope-from efraindector@motumweb.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 221D28FC22 for ; Fri, 27 Apr 2012 15:16:14 +0000 (UTC) Received: by pbcwz17 with SMTP id wz17so1151125pbc.13 for ; Fri, 27 Apr 2012 08:16:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:references:in-reply-to:subject:date:organization :mime-version:content-type:x-priority:x-msmail-priority:importance :x-mailer:x-mimeole:x-gm-message-state; bh=Xz//gU+eGxqgbFPai4Z6ab4tli5PVWRPVE7evImqz78=; b=dAcvodQlPVqvMcSc/t8vEGKmbs0kJYo09BubfPI7qMqNOKnvu3mYlJNakfrBbX4fo6 jX7kSt8A+b5aZ/lb6DfacGpmmdBjkCTSW46PcWV6xlVcSU/bu9OIqcT4Zof0whOHwjre 3KoDFJ75fJNHy1+E9IY5ZbjRhwNVbFV40p1HibrT/Ink0KQiROmFHkC2Xx2/7WieemfZ VgAmRLDjbLDUFfp/Q9VCLHEApV5vS3603etOh/JawXZW5cz5QuoBZhuDGt0W0wX+eG90 ryE41zTu8yJw+viErL9abWpW0jUoxpx5dfRIVmMzjSpJ+fYJUTsxX9Pd7Y7jkhaxij4z iNLA== Received: by 10.68.216.225 with SMTP id ot1mr24099065pbc.46.1335539768345; Fri, 27 Apr 2012 08:16:08 -0700 (PDT) Received: from CMOTUM25PC ([187.171.5.249]) by mx.google.com with ESMTPS id ob3sm6138105pbb.75.2012.04.27.08.16.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Apr 2012 08:16:07 -0700 (PDT) Message-ID: <795E082973104798BB84124E63C556CB@CMOTUM25PC> From: =?UTF-8?Q?Efra=C3=ADn_D=C3=A9ctor?= To: "freebsd-stable@freebsd.org" References: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> In-Reply-To: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> Date: Fri, 27 Apr 2012 10:16:05 -0500 Organization: =?UTF-8?Q?HESA_T=C3=A9cnica?= MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Gm-Message-State: ALoCoQm8DcdfdZYwjxB7w4XHpVGFhzyrgXHJDidRhZqXObuAv58LUtkyrlp9t4AicsIGPCRMem0i Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 15:16:14 -0000 I forgot this: /dev/da0s1d 11G 9.9G 457M 96% /var From: Efra=C3=ADn D=C3=A9ctor=20 Sent: Friday, April 27, 2012 10:14 AM To: freebsd-stable@freebsd.org=20 Subject: /var getting full Hello. I have a server using FreeBSD 8.2, and recently I=E2=80=99ve = noticed that /var is getting full But du =E2=80=93hs /var shows me this: 14M /var/ How Can I know what is using var to free space? Thank you. OS info: FreeBSD edh.edh 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 = 18:45:57 UTC 2011 = root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 15:19:40 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 463E7106567B for ; Fri, 27 Apr 2012 15:19:40 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id C1FE18FC0A for ; Fri, 27 Apr 2012 15:19:39 +0000 (UTC) Received: by eekd17 with SMTP id d17so251959eek.13 for ; Fri, 27 Apr 2012 08:19:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=uk6QjkfEbFLEMh53nazQlNl+9oZw7PcTlB321pW7w0I=; b=Y+dJKKxSXbZlIkPgnHMfDA+NuEGARBSTooULh1twA/wfc9C188KB5DiXfqXps8CIbc aRX7emy3LtOoxJ21iQptjAOxucAl0gs2boyAUjj+o3dxXMCtIJeB6qZvx6rtk6JFqeSk CZjiqnm7BC0t2o+nzn51vcHY0ubBGwlpqlSkzcFjNUhYiqY4BjePS49yQ7heypo1FMGJ Q0w5QuvozwTCX8c085bLsv8zgErHwbxjcpuu/lJosd+HknmxB4qSROGpCyvRsos4Sp2A c6MIzZgGrMpMbyMVURhLe7K6ICCJ4mMrYQ50x38tcqzx9MNK9kdBgEBL8xtNSmKDs9Gf Qxzg== Received: by 10.213.20.212 with SMTP id g20mr793273ebb.148.1335539978794; Fri, 27 Apr 2012 08:19:38 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id z47sm31936227een.5.2012.04.27.08.19.35 (version=SSLv3 cipher=OTHER); Fri, 27 Apr 2012 08:19:36 -0700 (PDT) Message-ID: <4F9AB906.7000400@my.gd> Date: Fri, 27 Apr 2012 17:19:34 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> <795E082973104798BB84124E63C556CB@CMOTUM25PC> In-Reply-To: <795E082973104798BB84124E63C556CB@CMOTUM25PC> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQlmI/PSs8pUEay+W8M6CcIAcbu7dLshKjqSXHOvM/iBwgOQ1jiVJQ8LwxuxklmAhvLuaqhq Subject: Re: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 15:19:40 -0000 Type: sync Then: df -h Then: cd /var && du -hd 1 Post results. On 4/27/12 5:16 PM, Efraín Déctor wrote: > I forgot this: > > /dev/da0s1d 11G 9.9G 457M 96% /var > > From: Efraín Déctor > Sent: Friday, April 27, 2012 10:14 AM > To: freebsd-stable@freebsd.org > Subject: /var getting full > > Hello. I have a server using FreeBSD 8.2, and recently I’ve noticed that /var is getting full But du –hs /var shows me this: > > 14M /var/ > > How Can I know what is using var to free space? > > Thank you. > > OS info: > FreeBSD edh.edh 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 15:22:52 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6768106566C for ; Fri, 27 Apr 2012 15:22:52 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 54DEF8FC0C for ; Fri, 27 Apr 2012 15:22:52 +0000 (UTC) Received: by vcmm1 with SMTP id m1so803714vcm.13 for ; Fri, 27 Apr 2012 08:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1swpxZk9tYqfYsQwHNzveKnsc4G3rEjAILH0Mb7qUW0=; b=mBoiPPFxosvn+kkLlMCTmf9KTt4Up308aY45haDk7Z980Fv+ytlGnB+43dORhw0yz7 Rdvs9+C+uTPArETKRNYRTj9R5k27liZ9zfqGVtf28VK3SXWVFDWRJIWcclMMGtaWJkLJ crUQeeptULIxHJQhQUj+w0iB13taysy0xuRxlW/fcEelOM5fEPmpWNSOoBn69+YtQhcT DoRDgKrLcEoSZqinOSR1SopmLdZqVtvvCvosdgNM4LJumLMBdNXpaQeZU25XuL6CFfHz r+DNu3mXYK1SobU+9t+MjD9uETpqdRvq6L3d9FwBBSNJcPtDNoSHgDXkMXkLjAKfPJ0q dMEw== MIME-Version: 1.0 Received: by 10.220.147.198 with SMTP id m6mr11823488vcv.14.1335540171623; Fri, 27 Apr 2012 08:22:51 -0700 (PDT) Received: by 10.52.181.129 with HTTP; Fri, 27 Apr 2012 08:22:51 -0700 (PDT) In-Reply-To: <4F9AB906.7000400@my.gd> References: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> <795E082973104798BB84124E63C556CB@CMOTUM25PC> <4F9AB906.7000400@my.gd> Date: Fri, 27 Apr 2012 16:22:51 +0100 Message-ID: From: Tom Evans To: Damien Fleuriot Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org Subject: Re: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 15:22:52 -0000 On Fri, Apr 27, 2012 at 4:19 PM, Damien Fleuriot wrote: > Type: > sync > > > Then: > df -h > > Then: > cd /var && du -hd 1 > > > Post results. > As well as this, any unlinked files that have file handles open by running processes will not be accounted for in du, but will be counted in df. You could try restarting services that write to /var. Cheers Tom From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 15:26:47 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4841B1065673 for ; Fri, 27 Apr 2012 15:26:47 +0000 (UTC) (envelope-from efraindector@motumweb.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 101468FC0C for ; Fri, 27 Apr 2012 15:26:47 +0000 (UTC) Received: by dadz14 with SMTP id z14so3817832dad.17 for ; Fri, 27 Apr 2012 08:26:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:cc:references:in-reply-to:subject:date :organization:mime-version:content-type:content-transfer-encoding :x-priority:x-msmail-priority:importance:x-mailer:x-mimeole :x-gm-message-state; bh=B4k5zdX2pCBPY5NxsTR1GjU7bP8FV59uWf5IgZOa7gw=; b=KBjKAieWceCMMxeVX0Y0Vpnw/4dXmKyu0twpjT1DBVIPNc7br/hGgzQ+9kK9aNe7nl 1eBdi5eFsM1zyK31emG7lwB2w0otUEpjKHNQ9JuK/h5Ro0y8hxboIhjp0h8k33ZB+9/X uKkNzsJYSdL02K5j2aRg7w2Q3BP/nxWGrEFVzduD+uA6V1QezsWUfVzv0AJbzWZVr1Rs 6L2Q2CBLwqNwx/akthEMB7S5Argt/ZHBcJyWV2t/7M04OEeh5exOe/QqGBM1Rt54alhs vPMJrB87KFXryPI+EPpUk3jLBsGUVn21NJSdupp8mNb1vI68sJTGxLAQ+pfwxIvLUiox t2VQ== Received: by 10.68.237.71 with SMTP id va7mr18865516pbc.51.1335540406838; Fri, 27 Apr 2012 08:26:46 -0700 (PDT) Received: from CMOTUM25PC ([187.171.5.249]) by mx.google.com with ESMTPS id gl7sm3802132pbc.10.2012.04.27.08.26.41 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Apr 2012 08:26:45 -0700 (PDT) Message-ID: From: =?UTF-8?Q?Efra=C3=ADn_D=C3=A9ctor?= To: "Tom Evans" , "Damien Fleuriot" References: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC><795E082973104798BB84124E63C556CB@CMOTUM25PC><4F9AB906.7000400@my.gd> In-Reply-To: Date: Fri, 27 Apr 2012 10:26:37 -0500 Organization: =?UTF-8?Q?HESA_T=C3=A9cnica?= MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Gm-Message-State: ALoCoQkl5bNXagocJMXb7Zvlt/Yvu0l7WCusv/MZoSnSHEBZbhjMyPlUaVFAphJxuaAHLh7BW8Ll Cc: freebsd-stable@freebsd.org Subject: Re: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 15:26:47 -0000 Thank you all. I found out that a Java process was using all this space. I restarted it and voilá problem solved. Thanks. -----Mensaje original----- From: Tom Evans Sent: Friday, April 27, 2012 10:22 AM To: Damien Fleuriot Cc: freebsd-stable@freebsd.org Subject: Re: /var getting full On Fri, Apr 27, 2012 at 4:19 PM, Damien Fleuriot wrote: > Type: > sync > > > Then: > df -h > > Then: > cd /var && du -hd 1 > > > Post results. > As well as this, any unlinked files that have file handles open by running processes will not be accounted for in du, but will be counted in df. You could try restarting services that write to /var. Cheers Tom _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 15:26:56 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 401571065740 for ; Fri, 27 Apr 2012 15:26:56 +0000 (UTC) (envelope-from mdounin@mdounin.ru) Received: from mdounin.cust.ramtel.ru (mdounin.cust.ramtel.ru [81.19.69.81]) by mx1.freebsd.org (Postfix) with ESMTP id E97A58FC14 for ; Fri, 27 Apr 2012 15:26:55 +0000 (UTC) Received: from mdounin.ru (mdounin.cust.ramtel.ru [81.19.69.81]) by mdounin.cust.ramtel.ru (Postfix) with ESMTP id C7B9B17036; Fri, 27 Apr 2012 19:26:48 +0400 (MSK) Date: Fri, 27 Apr 2012 19:26:48 +0400 From: Maxim Dounin To: =?utf-8?B?RWZyYcOtbiBEw6ljdG9y?= Message-ID: <20120427152648.GV31671@mdounin.ru> References: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-stable@freebsd.org" Subject: Re: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 15:26:56 -0000 Hello! On Fri, Apr 27, 2012 at 10:14:27AM -0500, Efraín Déctor wrote: > Hello. I have a server using FreeBSD 8.2, and recently I’ve noticed that /var is getting full But du –hs /var shows me this: > > 14M /var/ > > How Can I know what is using var to free space? fstat -f /var Maxim Dounin From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 15:30:14 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86B4D106567C for ; Fri, 27 Apr 2012 15:30:14 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from qmta13.emeryville.ca.mail.comcast.net (qmta13.emeryville.ca.mail.comcast.net [76.96.27.243]) by mx1.freebsd.org (Postfix) with ESMTP id 2DFCF8FC1B for ; Fri, 27 Apr 2012 15:30:14 +0000 (UTC) Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta13.emeryville.ca.mail.comcast.net with comcast id 312u1j0031vN32cAD3V8MZ; Fri, 27 Apr 2012 15:29:08 +0000 Received: from damnhippie.dyndns.org ([24.8.232.202]) by omta22.emeryville.ca.mail.comcast.net with comcast id 33V71j00W4NgCEG8i3V7Fn; Fri, 27 Apr 2012 15:29:08 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q3RFT5Db076807; Fri, 27 Apr 2012 09:29:05 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: =?ISO-8859-1?Q?Efra=EDn_D=E9ctor?= In-Reply-To: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> References: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> Content-Type: text/plain; charset="euc-jp" Date: Fri, 27 Apr 2012 09:29:05 -0600 Message-ID: <1335540545.66865.71.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: "freebsd-stable@freebsd.org" Subject: Re: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 15:30:14 -0000 On Fri, 2012-04-27 at 10:14 -0500, Efra«¿n D«±ctor wrote: > Hello. I have a server using FreeBSD 8.2, and recently I¡Çve noticed that /var is getting full But du hs /var shows me this: > > 14M /var/ > > How Can I know what is using var to free space? > > Thank you. > > OS info: > FreeBSD edh.edh 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 I would speculate that some process has unlinked a file but still has it open so the space is still in use. Try procstat -af | grep /var and look especially for lines that have a huge number in the OFFSET column (although I'm not sure that's definitive -- the file descriptor could be positioned at an offset less than the file size). -- Ian From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 16:06:51 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39346106566B for ; Fri, 27 Apr 2012 16:06:51 +0000 (UTC) (envelope-from efraindector@motumweb.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 028538FC17 for ; Fri, 27 Apr 2012 16:06:50 +0000 (UTC) Received: by dadz14 with SMTP id z14so3960887dad.17 for ; Fri, 27 Apr 2012 09:06:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:references:in-reply-to:subject:date:organization :mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:importance:x-mailer:x-mimeole:x-gm-message-state; bh=UCZjV/Rkj/Xrd6BrEM2BvsnUoMzShWEi5NTZ2zPOulI=; b=D99VIzjrQagN5RNgytLp9wULNpsOd5Ejf1f69J12d5oPjL8RVYfkNEwkcCMbClGEXf s4ywwwB2WKVhhXSPzmA+9xqbHSgMZQ2PekAsiLHdNIJJdgp9pNscftWGPL/ptMqhKnno if9KJ9WATG0Auqq/DqARmaFge9K1Jmg4c3Uc8pbmiszFl5iJWiCd1woBbnYGr3wCqVAX iLDi5vQWvGh2iwFrmTqiwOp4q2CTloflSQwrHBgT4GBArJR4l6pM+73q6xvu/tsqNb0+ kSohIAGEaJyfBi4eAgVRcwP2gHLd0AwtVzjM2M+EOgVhUiP4MQ89imhMFR60ih2dbgUm RnYA== Received: by 10.68.212.227 with SMTP id nn3mr22836480pbc.122.1335542810776; Fri, 27 Apr 2012 09:06:50 -0700 (PDT) Received: from CMOTUM25PC ([187.171.5.249]) by mx.google.com with ESMTPS id pl8sm3689370pbb.72.2012.04.27.09.06.48 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Apr 2012 09:06:49 -0700 (PDT) Message-ID: <5CA9078D6B534BF9A216FFABEF037C15@CMOTUM25PC> From: "Efrain Dector" To: References: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC> <1335540545.66865.71.camel@revolution.hippie.lan> In-Reply-To: <1335540545.66865.71.camel@revolution.hippie.lan> Date: Fri, 27 Apr 2012 11:06:47 -0500 Organization: HESA Tecnica MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Gm-Message-State: ALoCoQnqjtXTTH6tmVpBAn3yCABgSNODiLG9csJa30vfw94205YJezyL0ccoQM77ELNGOiGLFiVQ Subject: Re: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 16:06:51 -0000 Thank you all for your answers. Turns out that a Java process was using all of the space. I restarted it and the problem was solved. Thank you all for helping me to resolv this, also by giving me very useful commands that I will use in the future. -----Mensaje original----- From: Ian Lepore Sent: Friday, April 27, 2012 10:29 AM To: Efrain Dector Cc: freebsd-stable@freebsd.org Subject: Re: /var getting full On Fri, 2012-04-27 at 10:14 -0500, Efra$B=f(B^n D$B=f(BPctor wrote: > Hello. I have a server using FreeBSD 8.2, and recently I$B!G(Bve noticed that > /var is getting full But du hs /var shows me this: > > 14M /var/ > > How Can I know what is using var to free space? > > Thank you. > > OS info: > FreeBSD edh.edh 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 > 18:45:57 UTC 2011 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 I would speculate that some process has unlinked a file but still has it open so the space is still in use. Try procstat -af | grep /var and look especially for lines that have a huge number in the OFFSET column (although I'm not sure that's definitive -- the file descriptor could be positioned at an offset less than the file size). -- Ian From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 20:30:18 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A8B7106566C for ; Fri, 27 Apr 2012 20:30:18 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from smtp-int-m.obspm.fr (smtp-int-m.obspm.fr [145.238.187.15]) by mx1.freebsd.org (Postfix) with ESMTP id EED788FC0C for ; Fri, 27 Apr 2012 20:30:17 +0000 (UTC) Received: from pcjas.obspm.fr (pcjas.obspm.fr [145.238.184.233]) by smtp-int-m.obspm.fr (8.14.3/8.14.3/SIO Observatoire de Paris - 07/2009) with ESMTP id q3RKUDSA023683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 27 Apr 2012 22:30:14 +0200 Date: Fri, 27 Apr 2012 22:30:13 +0200 From: Albert Shih To: freebsd-stable@freebsd.org Message-ID: <20120427203013.GB60961@pcjas.obspm.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) X-Miltered: at smtp-int-m.obspm.fr with ID 4F9B01D5.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F9B01D5.000/145.238.184.233/pcjas.obspm.fr/pcjas.obspm.fr/ Subject: High load event idl. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 20:30:18 -0000 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi all I'm running 9-stable on all my computer. (csup yesterday). On my desktop everything is fine. But I've two laptop, (both are Dell). On both latptop I've problem about the load, event when I do nothing I got a load between 0.5-1. Here the result of a «top» on the laptop : last pid: 2434; load averages: 0.63, 0.67, 0.59 up 0+00:23:59 22:25:29 57 processes: 3 running, 54 sleeping CPU: 2.7% user, 0.0% nice, 3.7% system, 1.4% interrupt, 92.2% idle Mem: 89M Active, 92M Inact, 198M Wired, 13M Cache, 100M Buf, 3529M Free Swap: 4096M Total, 4096M Free Here on the desktop : last pid: 61010; load averages: 0.00, 0.00, 0.00 up 2+11:02:42 22:29:08 126 processes: 1 running, 125 sleeping CPU: % user, % nice, % system, % interrupt, % idle Mem: 803M Active, 2874M Inact, 1901M Wired, 112M Cache, 620M Buf, 202M Free Swap: 6144M Total, 36M Used, 6107M Free On attachment the dmesg. Any idea ? JAS -- Albert SHIH DIO bâtiment 15 Observatoire de Paris 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26/06 86 69 95 71 xmpp: jas@obspm.fr Heure local/Local time: ven 27 avr 2012 22:29:15 CEST --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=tutu Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-STABLE #0: Thu Apr 26 04:42:08 CEST 2012 jas@io.chezmoi.fr:/usr/obj/usr/src/sys/JAS amd64 CPU: Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz (2592.82-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 Features=0xbfebfbff Features2=0x8e3bd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 4081893376 (3892 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 acpi0: reservation of 0, 9f000 (3) failed acpi0: reservation of 100000, dfd83c00 (3) failed cpu0: on acpi0 cpu1: on acpi0 atrtc0: port 0x70-0x71,0x72-0x77 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43,0x50-0x53 irq 2 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xdf00-0xdf7f mem 0xf5000000-0xf5ffffff,0xe0000000-0xefffffff,0xf2000000-0xf3ffffff irq 16 at device 0.0 on pci1 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io uhci0: port 0x6f20-0x6f3f irq 20 at device 26.0 on pci0 uhci0: LegSup = 0x2f00 usbus0 on uhci0 uhci1: port 0x6f00-0x6f1f irq 21 at device 26.1 on pci0 uhci1: LegSup = 0x2f00 usbus1 on uhci1 ehci0: mem 0xfed1c400-0xfed1c7ff irq 22 at device 26.7 on pci0 usbus2: EHCI version 1.0 usbus2 on ehci0 hdac0: mem 0xf6ffc000-0xf6ffffff irq 21 at device 27.0 on pci0 pcib2: at device 28.0 on pci0 pci11: on pcib2 pcib3: at device 28.1 on pci0 pci12: on pcib3 wpi0: mem 0xf1fff000-0xf1ffffff irq 17 at device 0.0 on pci12 pcib4: at device 28.3 on pci0 pci13: on pcib4 pcib5: at device 28.5 on pci0 pci9: on pcib5 bge0: mem 0xf1bf0000-0xf1bfffff irq 17 at device 0.0 on pci9 bge0: CHIP ID 0x0000a200; ASIC REV 0x0a; CHIP REV 0xa2; PCI-E miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge0: Ethernet address: 00:21:70:b7:80:8c uhci2: port 0x6f80-0x6f9f irq 20 at device 29.0 on pci0 uhci2: LegSup = 0x2f00 usbus3 on uhci2 uhci3: port 0x6f60-0x6f7f irq 21 at device 29.1 on pci0 uhci3: LegSup = 0x2f00 usbus4 on uhci3 uhci4: port 0x6f40-0x6f5f irq 22 at device 29.2 on pci0 uhci4: LegSup = 0x2f00 usbus5 on uhci4 ehci1: mem 0xfed1c000-0xfed1c3ff irq 20 at device 29.7 on pci0 usbus6: EHCI version 1.0 usbus6 on ehci1 pcib6: at device 30.0 on pci0 pci3: on pcib6 fwohci0: <1394 Open Host Controller Interface> mem 0xf1aff800-0xf1afffff irq 19 at device 1.0 on pci3 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 48:4f:c0:00:0c:7c:04:90 fwohci0: Phy 1394a available S400, 1 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 4a:4f:c0:7c:04:90 fwe0: Ethernet address: 4a:4f:c0:7c:04:90 fwip0: on firewire0 fwip0: Firewire address: 48:4f:c0:00:0c:7c:04:90 @ 0xfffe00000000, S400, maxrec 2048 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x3a88000 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode pci3: at device 1.1 (no driver attached) pci3: at device 1.2 (no driver attached) pci3: at device 1.3 (no driver attached) pci3: at device 1.4 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x6fa0-0x6faf irq 16 at device 31.1 on pci0 ata0: at channel 0 on atapci0 atapci1: port 0x6eb0-0x6eb7,0x6eb8-0x6ebb,0x6ec0-0x6ec7,0x6ec8-0x6ecb,0x6ee0-0x6eef,0xeff0-0xefff irq 18 at device 31.2 on pci0 ata2: at channel 0 on atapci1 ata3: at channel 1 on atapci1 pci0: at device 31.3 (no driver attached) acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 acpi_tz0: port 0x10c-0x113 on acpi0 atkbdc0: port 0x60,0x64,0x62,0x66 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 orm0: at iomem 0xc0000-0xcd7ff,0xcd800-0xcffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range ctl: CAM Target Layer loaded est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) firewire0: bus manager 0 vboxdrv: fAsync=0 offMin=0x16c offMax=0x41d hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 13,10 and 11 on hdaa0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub2: 4 ports with 4 removable, self powered uhub6: 6 ports with 6 removable, self powered ada0 at ata2 bus 0 scbus1 target 0 lun 0 ada0: ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada0: 190782MB (390721968 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 cd0 at ata0 bus 0 scbus0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device SMP: AP CPU #1 Launched! cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present ugen0.2: at usbus0 uhub7: on usbus0 Trying to mount root from ufs:/dev/ad4s3a [rw]... uhub7: 4 ports with 3 removable, self powered ugen0.3: at usbus0 wlan0: Ethernet address: 00:1f:3c:c8:fa:20 wpi0: need multicast update callback wpi0: need multicast update callback wpi0: need multicast update callback wlan0: link state changed to UP wpi0: need multicast update callback wpi0: need multicast update callback wpi0: need multicast update callback --Dxnq1zWXvFF0Q93v-- From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 21:10:48 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 51692106566B for ; Fri, 27 Apr 2012 21:10:48 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 272E58FC12 for ; Fri, 27 Apr 2012 21:10:48 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 9892CB93B; Fri, 27 Apr 2012 17:10:47 -0400 (EDT) From: John Baldwin To: pyunyh@gmail.com Date: Fri, 27 Apr 2012 17:10:46 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <20120228210329.GA2741@localhost> <201204250935.28973.jhb@freebsd.org> <20120427222017.GA17009@michelle.cdnetworks.com> In-Reply-To: <20120427222017.GA17009@michelle.cdnetworks.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201204271710.46982.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 27 Apr 2012 17:10:47 -0400 (EDT) Cc: Pavel Gorshkov , freebsd-stable@freebsd.org Subject: Re: msk0: interrupt storm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 21:10:48 -0000 On Friday, April 27, 2012 6:20:17 pm YongHyeon PYUN wrote: > On Wed, Apr 25, 2012 at 09:35:28AM -0400, John Baldwin wrote: > Hmm, would you give attach patch try? > Yukon Extreme seems to have a new flow control feature but I'm not > sure whether this is related with interrupt storm you're seeing. No luck. :( I did seem to get many more interrupts with TWSI ready asserted with this patch, but I did get a storm after a few hours, it has the same bit set as before: index cpu timestamp trace ------ --- ---------------- ----- 602 0 26139273204228 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 601 0 26139273105828 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 600 0 26139273007620 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 599 0 26139272909292 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 598 0 26139272311224 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 597 0 26139272212920 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 596 0 26139272114688 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 595 0 26139272016384 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 594 0 26139271917972 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 593 0 26139271819800 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 592 0 26139271705008 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 591 0 26139271593960 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 590 0 26139271492056 msk_intr: B0_Y2_SP_ISRC2 = 0x40000000 -- John Baldwin From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 21:35:02 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 222D6106567A; Fri, 27 Apr 2012 21:35:02 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from smtp-int-m.obspm.fr (smtp-int-m.obspm.fr [145.238.187.15]) by mx1.freebsd.org (Postfix) with ESMTP id ADEEE8FC14; Fri, 27 Apr 2012 21:35:01 +0000 (UTC) Received: from pcjas.obspm.fr (pcjas.obspm.fr [145.238.184.233]) by smtp-int-m.obspm.fr (8.14.3/8.14.3/SIO Observatoire de Paris - 07/2009) with ESMTP id q3RLYxPd011570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 27 Apr 2012 23:35:00 +0200 Date: Fri, 27 Apr 2012 23:34:59 +0200 From: Albert Shih To: Oliver Pinter Message-ID: <20120427213459.GA61125@pcjas.obspm.fr> References: <20120427203013.GB60961@pcjas.obspm.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Miltered: at smtp-int-m.obspm.fr with ID 4F9B1103.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F9B1103.000/145.238.184.233/pcjas.obspm.fr/pcjas.obspm.fr/ Cc: mav@freebsd.org, freebsd-stable@freebsd.org Subject: Re: High load event idl. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 21:35:02 -0000 Le 27/04/2012 ? 22:45:40+0200, Oliver Pinter a écrit > > I'm running 9-stable on all my computer. (csup yesterday). > > > > On my desktop everything is fine. But I've two laptop, (both are Dell). On > > both latptop I've problem about the load, event when I do nothing I got a > > load between 0.5-1. > > > > Here the result of a «top» on the laptop : > > > > last pid: 2434; load averages: 0.63, 0.67, 0.59 up 0+00:23:59 > > 22:25:29 > > 57 processes: 3 running, 54 sleeping > > CPU: 2.7% user, 0.0% nice, 3.7% system, 1.4% interrupt, 92.2% idle > > Mem: 89M Active, 92M Inact, 198M Wired, 13M Cache, 100M Buf, 3529M Free > > Swap: 4096M Total, 4096M Free > > > > Here on the desktop : > > > > last pid: 61010; load averages: 0.00, 0.00, 0.00 up 2+11:02:42 > > 22:29:08 > > 126 processes: 1 running, 125 sleeping > > CPU: % user, % nice, % system, % interrupt, % idle > > Mem: 803M Active, 2874M Inact, 1901M Wired, 112M Cache, 620M Buf, 202M Free > > Swap: 6144M Total, 36M Used, 6107M Free > > > > http://lists.freebsd.org/pipermail/freebsd-bugs/2012-April/048213.html What I understand of your message (I'm definitvly not a dev) is that's only a little problem of accounting. I'm not absolute sure of that because my laptop fan never stop... If you want any more information... Regards. -- Albert SHIH DIO bâtiment 15 Observatoire de Paris 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26/06 86 69 95 71 xmpp: jas@obspm.fr Heure local/Local time: ven 27 avr 2012 23:31:28 CEST From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 22:18:34 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED413106566C for ; Fri, 27 Apr 2012 22:18:34 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 80EA98FC17 for ; Fri, 27 Apr 2012 22:18:34 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so1081882wgb.31 for ; Fri, 27 Apr 2012 15:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=DZu7w2+caSbPpklGy98wjzQXxqjzaq1qDRQ60c7qcPA=; b=fx4OA6OTrBZ/v9Ziwb/bWVwb9z8ffa+scQCFxdWt5c3Nr1egNZ1/HuZ4kY3xnYTFYW CSdPtMVI++qvh496xYCzMcZgvwopwjz+1uhoYazbKnZhFrzZHnxcoDoJ3GMamiREFt0w TlCOg3VbN3dcjEXn3vLXAXVkpIkB3aI4qbU0yqQHy3pIHHrVc/x+4MzbXwA/qPxic6c8 GLgr4/K7zM4E0L2p1cl64CVLOGlSu/RJM2hvJtb7kQHNMU5ux043TpaiF2hqpere49GS OWmdEz1AIY+XJl1oNu7PKbrAkpSP7VhcCdwm1M/eiLW4NxXspDA36o7Nqk67d1HS1zwp LTvQ== MIME-Version: 1.0 Received: by 10.180.100.2 with SMTP id eu2mr9818035wib.1.1335565113580; Fri, 27 Apr 2012 15:18:33 -0700 (PDT) Received: by 10.223.143.22 with HTTP; Fri, 27 Apr 2012 15:18:33 -0700 (PDT) In-Reply-To: <20120427203013.GB60961@pcjas.obspm.fr> References: <20120427203013.GB60961@pcjas.obspm.fr> Date: Fri, 27 Apr 2012 15:18:33 -0700 Message-ID: From: Kevin Oberman To: Albert Shih Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: High load event idl. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 22:18:35 -0000 On Fri, Apr 27, 2012 at 1:30 PM, Albert Shih wrote: > Hi all > > I'm running 9-stable on all my computer. (csup yesterday). > > On my desktop everything is fine. But I've two laptop, (both are Dell). O= n > both latptop I've problem about the load, event when I do nothing I got a= load between 0.5-1. > > Here the result of a =ABtop=BB on the laptop : > > last pid: =A02434; =A0load averages: =A00.63, =A00.67, =A00.59 up 0+00:23= :59 =A022:25:29 > 57 processes: =A03 running, 54 sleeping > CPU: =A02.7% user, =A00.0% nice, =A03.7% system, =A01.4% interrupt, 92.2%= idle > Mem: 89M Active, 92M Inact, 198M Wired, 13M Cache, 100M Buf, 3529M Free > Swap: 4096M Total, 4096M Free > > Here on the desktop : > > last pid: 61010; =A0load averages: =A00.00, =A00.00, =A00.00 up 2+11:02:4= 2 =A022:29:08 > 126 processes: 1 running, 125 sleeping > CPU: =A0 =A0 % user, =A0 =A0 % nice, =A0 =A0 % system, =A0 =A0 % interrup= t, =A0 =A0 % idle > Mem: 803M Active, 2874M Inact, 1901M Wired, 112M Cache, 620M Buf, 202M Fr= ee > Swap: 6144M Total, 36M Used, 6107M Free > > On attachment the dmesg. ENOINFO You did not supply enough information for a meaningful response. You have three user processes running. They are obviously using a bit of CPU, but you need to find out what those processes might be. Using top(1) with 'H' to show threads and see what they might be. The possibilities with what we have now are nearly endless. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 06:55:45 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB77B106566C for ; Sat, 28 Apr 2012 06:55:45 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 77F338FC12 for ; Sat, 28 Apr 2012 06:55:45 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so1013055wib.13 for ; Fri, 27 Apr 2012 23:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=2cfVWUWGJRjbLkOBGnOyOl8dIBKBTYG2FMITpFMaRao=; b=jhKK27cwFFxxrD+HrbL+hbadNZoN+OQZoVkjzO2IYvQ2pQ/LUfRyrht7/yXUfgxWp9 xf0jJ4RYF76Kx2GJuQfA32Hmqe1ppOmgY4Ue5KdxWpbOUCMown40bqW6VxbPQF7xvCtk c+abGV/zviGJQTm9UxeEuKzyoHHttWaNoOkmyb2K69hUnu2r9WyNHdCwBJcuEt2WtxqU S9SC8PwrwUXC7omgqzJX/SZ0k3wE0u/Y5kit3PYIrQOKk+r0C74FBH8jPy2rshMWD1I7 rsoM/tFd6ciqjqqLSPWzRf/hilPcAWiEUcfouk9eoy8QBLBL3NW+o3C97sHjGGvQH1JP Mr8g== Received: by 10.181.12.82 with SMTP id eo18mr12600926wid.2.1335596144366; Fri, 27 Apr 2012 23:55:44 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id du4sm16407111wib.10.2012.04.27.23.55.42 (version=SSLv3 cipher=OTHER); Fri, 27 Apr 2012 23:55:43 -0700 (PDT) Sender: Alexander Motin Message-ID: <4F9B946D.3030607@FreeBSD.org> Date: Sat, 28 Apr 2012 09:55:41 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120328 Thunderbird/10.0.3 MIME-Version: 1.0 To: Albert Shih References: <20120427203013.GB60961@pcjas.obspm.fr> <20120427213459.GA61125@pcjas.obspm.fr> In-Reply-To: <20120427213459.GA61125@pcjas.obspm.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org, Oliver Pinter Subject: Re: High load event idl. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 06:55:46 -0000 On 04/28/12 00:34, Albert Shih wrote: > Le 27/04/2012 ? 22:45:40+0200, Oliver Pinter a écrit >>> I'm running 9-stable on all my computer. (csup yesterday). >>> >>> On my desktop everything is fine. But I've two laptop, (both are Dell). On >>> both latptop I've problem about the load, event when I do nothing I got a >>> load between 0.5-1. >>> >>> Here the result of a «top» on the laptop : >>> >>> last pid: 2434; load averages: 0.63, 0.67, 0.59 up 0+00:23:59 >>> 22:25:29 >>> 57 processes: 3 running, 54 sleeping >>> CPU: 2.7% user, 0.0% nice, 3.7% system, 1.4% interrupt, 92.2% idle >>> Mem: 89M Active, 92M Inact, 198M Wired, 13M Cache, 100M Buf, 3529M Free >>> Swap: 4096M Total, 4096M Free >>> >>> Here on the desktop : >>> >>> last pid: 61010; load averages: 0.00, 0.00, 0.00 up 2+11:02:42 >>> 22:29:08 >>> 126 processes: 1 running, 125 sleeping >>> CPU: % user, % nice, % system, % interrupt, % idle >>> Mem: 803M Active, 2874M Inact, 1901M Wired, 112M Cache, 620M Buf, 202M Free >>> Swap: 6144M Total, 36M Used, 6107M Free >>> >> >> http://lists.freebsd.org/pipermail/freebsd-bugs/2012-April/048213.html > > What I understand of your message (I'm definitvly not a dev) is that's only > a little problem of accounting. > > I'm not absolute sure of that because my laptop fan never stop... > > If you want any more information... Definitely, because here I don't see much. Generally, all CPU loads and load averages now calculated via sampling, so theoretically with spiky load numbers may vary for many reasons. I would start from collecting information about running processes. To find fast switching processes that could hide from accounting try `top -SH -m io -o vcsw`. To get more information about scheduler work, use /usr/src/tools/sched/schedgraph.py (instruction inside it). -- Alexander Motin From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 07:22:48 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A146106566C for ; Sat, 28 Apr 2012 07:22:48 +0000 (UTC) (envelope-from garbytrash@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 614D38FC0C for ; Sat, 28 Apr 2012 07:22:48 +0000 (UTC) Received: by obcni5 with SMTP id ni5so2568101obc.13 for ; Sat, 28 Apr 2012 00:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=OFKBweZkOThhnPWYwpRQrVsu5scY/sw+bOA62Q7RwYg=; b=T/TAkcfSFMlyII0T9o8sEvBOJaWs4gHe/k6CbAdH5FCVnL5Br3lAoghqM+ezUYUR5/ llnyvngAFfHM9gImHmHj0naDCPZ3Bv+0IItItQRuv3pEkHpTfO8/tcUyHZfrD2seAwhI Moxbd3taBcAWV6x9YfVohF3BFSrQTff3WBrQnM29BUHzlNBcWamMP8e1uQUHKmloRAQy 2LE8dVFmp+/Uv12QaWeM10vWmCYoR27GwHvobfe3A6KypUvV+UjTIfqIH3Xrr2T9BezO faE0ZFu4DLCFMxass9FT4FKLCkuvylyxT+uPBwPgX/rGYLZcza94xWYFqtCFEzz8hxL3 nO5w== MIME-Version: 1.0 Received: by 10.60.4.134 with SMTP id k6mr18058610oek.19.1335597767800; Sat, 28 Apr 2012 00:22:47 -0700 (PDT) Received: by 10.60.17.34 with HTTP; Sat, 28 Apr 2012 00:22:47 -0700 (PDT) Date: Sat, 28 Apr 2012 09:22:47 +0200 Message-ID: From: Zenny To: "freebsd-stable@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 07:22:48 -0000 Hi: I could not figure out how to restrict users or other users from certain privileges to execute certain commands in FreeBSD/NanoBSD? What I meant is I want to create a NanoBSD image in which there will be an additional user, say 'admin'. I need to give this new user (admin) some privileges to run some root-can-only-execute commands, but not all (ACL similar to the firmwares in adsl modems from ISPs). I read Dru Lavingne's 'BSD Hacks' and Joseph Kong's 'Designing BSD Rootkits' besides FreeBSD handbook, but I simply could not figure out. Could anyone throw some light on this? Appreciate it! Thanks! /zenny --- Support http://thehumanape.org From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 07:38:23 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 426B2106564A for ; Sat, 28 Apr 2012 07:38:23 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id E7D478FC16 for ; Sat, 28 Apr 2012 07:38:22 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1SO2ER-000K66-8k; Sat, 28 Apr 2012 10:38:15 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: Zenny In-reply-to: References: Comments: In-reply-to Zenny message dated "Sat, 28 Apr 2012 09:22:47 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 28 Apr 2012 10:38:15 +0300 From: Daniel Braniss Message-ID: Cc: "freebsd-stable@freebsd.org" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 07:38:23 -0000 > Hi: > > I could not figure out how to restrict users or other users from certain > privileges to execute certain commands in FreeBSD/NanoBSD? > > What I meant is I want to create a NanoBSD image in which there will be an > additional user, say 'admin'. I need to give this new user (admin) some > privileges to run some root-can-only-execute commands, but not all (ACL > similar to the firmwares in adsl modems from ISPs). > > I read Dru Lavingne's 'BSD Hacks' and Joseph Kong's 'Designing BSD > Rootkits' besides FreeBSD handbook, but I simply could not figure out. > Could anyone throw some light on this? Appreciate it! > > Thanks! > > /zenny try sudo from ports, security/sudo cheers, danny From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 07:50:31 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BC1A1065670 for ; Sat, 28 Apr 2012 07:50:31 +0000 (UTC) (envelope-from garbytrash@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id F2DCF8FC15 for ; Sat, 28 Apr 2012 07:50:30 +0000 (UTC) Received: by obcni5 with SMTP id ni5so2588109obc.13 for ; Sat, 28 Apr 2012 00:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2MD6s1Cthfbtxxsn1ipRHRYfLZWFMAtTD/lmDJVVIeA=; b=fJTjQKG7j6IdCH2oNrCPQxa3UaNXAEZxeQ1kZJhbjjVMu+VUugUNzepy8+MQfFKqIp HyLpXaa8mZHoLe1eEqGtisIAGvCUYloKDAGQ3uv273uYpswmk+BZj/JlW45EUAkDIVms fY5IfcljpbNHt1glKGlVTEanY3nSZhLRcpaFzPSSbyyoqI9zoAyrXlufuwBX/CcEjdXz a6r1iYUdIkji3+XfmeWP3bZcp8cfQpmc+9sPQspVjLLKrm/T1IStUQX3wDnKqQ+DGUn7 v7q9kSo48rk/feQC96ydizQMnoRjq1I+PKBpGybqTbODNavkh55OwsCb04g/fxSk6U6Y OXaw== MIME-Version: 1.0 Received: by 10.60.14.226 with SMTP id s2mr18121084oec.29.1335599430611; Sat, 28 Apr 2012 00:50:30 -0700 (PDT) Received: by 10.60.17.34 with HTTP; Sat, 28 Apr 2012 00:50:30 -0700 (PDT) In-Reply-To: References: Date: Sat, 28 Apr 2012 09:50:30 +0200 Message-ID: From: Zenny To: Daniel Braniss Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-stable@freebsd.org" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 07:50:31 -0000 On Sat, Apr 28, 2012 at 9:38 AM, Daniel Braniss wrote: > > Hi: > > > > I could not figure out how to restrict users or other users from certain > > privileges to execute certain commands in FreeBSD/NanoBSD? > > > > What I meant is I want to create a NanoBSD image in which there will be > an > > additional user, say 'admin'. I need to give this new user (admin) some > > privileges to run some root-can-only-execute commands, but not all (ACL > > similar to the firmwares in adsl modems from ISPs). > > > > I read Dru Lavingne's 'BSD Hacks' and Joseph Kong's 'Designing BSD > > Rootkits' besides FreeBSD handbook, but I simply could not figure out. > > Could anyone throw some light on this? Appreciate it! > > > > Thanks! > > > > /zenny > > try sudo from ports, security/sudo > > cheers, > danny > > Thanks Daniel, but sudo gives all (not selective) root privileges to the user (admin in my case). So this is not what I am trying to achieve in my original post. /z From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 09:14:00 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7AE31065670 for ; Sat, 28 Apr 2012 09:14:00 +0000 (UTC) (envelope-from vhaisman@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id EFEE48FC12 for ; Sat, 28 Apr 2012 09:13:59 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so1073095wib.13 for ; Sat, 28 Apr 2012 02:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=NZSBf1nog7rmzZPJ6CCWCQ9gLfu5zV2Y6Ut+HNSy4rs=; b=WKRkcTb2qhvOABAdZEV1syRoKBSb5S3U5tdNz/uhwymQe7xfwm8XiPBSa28VipnStX 3w+w9e4TpcuqRUcir2lSZ83bxkdhEJbmd+QUW66/iNZmltqw2Fpt61FMafm3vk7Nt+bP NcFxDmBDXRz62hCX1uJc6Tndxzcbf1h3Wo25R++Ygk7SbY5ZoEcfcYjLwLnMhxXJV+dC oipZ4JDfpbr8+XD0sLBiSpwXJuSBJ62Wvr8kI2KkowIt5ohcaxadXwfXs4iRC0DimV5n zzn8Jo5/wRvTsc8wmkN5aqBC4wGhTNgnYM8yIBqYzvEqzcjXBl3IQv7Igs1A2QIRWoQP syKg== Received: by 10.216.145.194 with SMTP id p44mr37019wej.38.1335604438010; Sat, 28 Apr 2012 02:13:58 -0700 (PDT) Received: from [10.0.0.1] (242.91.broadband5.iol.cz. [88.100.91.242]) by mx.google.com with ESMTPS id fn2sm17759877wib.0.2012.04.28.02.13.55 (version=SSLv3 cipher=OTHER); Sat, 28 Apr 2012 02:13:57 -0700 (PDT) Message-ID: <4F9BB47F.9060803@gmail.com> Date: Sat, 28 Apr 2012 11:12:31 +0200 From: =?ISO-8859-1?Q?V=E1clav_Zeman?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigDE7E428A2496BE4552C48D2B" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 09:14:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDE7E428A2496BE4552C48D2B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/28/2012 09:50 AM, Zenny wrote: > On Sat, Apr 28, 2012 at 9:38 AM, Daniel Braniss w= rote: > >>> Hi: >>> >>> I could not figure out how to restrict users or other users from cert= ain >>> privileges to execute certain commands in FreeBSD/NanoBSD? >>> >>> What I meant is I want to create a NanoBSD image in which there will = be >> an >>> additional user, say 'admin'. I need to give this new user (admin) so= me >>> privileges to run some root-can-only-execute commands, but not all (A= CL >>> similar to the firmwares in adsl modems from ISPs). >>> >>> I read Dru Lavingne's 'BSD Hacks' and Joseph Kong's 'Designing BSD >>> Rootkits' besides FreeBSD handbook, but I simply could not figure out= =2E >>> Could anyone throw some light on this? Appreciate it! >>> >>> Thanks! >>> >>> /zenny >> try sudo from ports, security/sudo >> >> cheers, >> danny >> >> > Thanks Daniel, but sudo gives all (not selective) root privileges to th= e > user (admin in my case). So this is not what I am trying to achieve in = my > original post. If sudo does not work then what about using ACLs? $ chmod og-rwx /bin/dangerous $ setfacl -m "user:admin:rx" /bin/dangerous --=20 VZ --------------enigDE7E428A2496BE4552C48D2B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREIAAYFAk+btNIACgkQbJlIwZz1OoeeIQD+MIjTVskYf2evwKYFx3ajdnUD fmAmKgtYIa88geYeav0A/jGFlTddkqipfPNUM1pC5z3s9VDsnT1Hc6i+7l6qo9et =K4GL -----END PGP SIGNATURE----- --------------enigDE7E428A2496BE4552C48D2B-- From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 09:29:53 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BACF106564A for ; Sat, 28 Apr 2012 09:29:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 054598FC16 for ; Sat, 28 Apr 2012 09:29:53 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:9875:2809:2793:7777] (unknown [IPv6:2001:7b8:3a7:0:9875:2809:2793:7777]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 3CD475C59; Sat, 28 Apr 2012 11:29:52 +0200 (CEST) Message-ID: <4F9BB896.8040005@FreeBSD.org> Date: Sat, 28 Apr 2012 11:29:58 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120420 Thunderbird/12.0 MIME-Version: 1.0 To: Zenny References: In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-stable@freebsd.org" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 09:29:53 -0000 On 2012-04-28 09:50, Zenny wrote: > On Sat, Apr 28, 2012 at 9:38 AM, Daniel Braniss wrote: ... >> try sudo from ports, security/sudo > Thanks Daniel, but sudo gives all (not selective) root privileges to the > user (admin in my case). This isn't true. With sudo, you can give specific users, or groups of users, restricted lists of commands they can run, and even specify on which particular machines they can be run. Please take a look at the nicely documented sample sudoers file: http://www.sudo.ws/sudo/sample.sudoers For example, these lines may do more or less what you want: # users in the secretaries netgroup need to help manage the printers # as well as add and remove users +secretaries ALL = PRINTING, /usr/bin/adduser, /usr/bin/rmuser # fred can run commands as oracle or sybase without a password fred ALL = (DB) NOPASSWD: ALL # on the alphas, john may su to anyone but root and flags are not allowed john ALPHA = /usr/bin/su [!-]*, !/usr/bin/su *root* # jen can run anything on all machines except the ones # in the "SERVERS" Host_Alias jen ALL, !SERVERS = ALL # jill can run any commands in the directory /usr/bin/, except for # those in the SU and SHELLS aliases. jill SERVERS = /usr/bin/, !SU, !SHELLS # steve can run any command in the directory /usr/local/op_commands/ # as user operator. steve CSNETS = (operator) /usr/local/op_commands/ # matt needs to be able to kill things on his workstation when # they get hung. matt valkyrie = KILL From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 09:39:33 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 551FA106564A for ; Sat, 28 Apr 2012 09:39:33 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id AEBE58FC08 for ; Sat, 28 Apr 2012 09:39:32 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.5/8.14.5) with ESMTP id q3S9d6AZ077959; Sat, 28 Apr 2012 16:39:06 +0700 (NOVT) (envelope-from egrosbein@rdtc.ru) Message-ID: <4F9BBABA.6040708@rdtc.ru> Date: Sat, 28 Apr 2012 16:39:06 +0700 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: Zenny References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: "freebsd-stable@freebsd.org" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 09:39:33 -0000 28.04.2012 14:50, Zenny ÐÉÛÅÔ: >> try sudo from ports, security/sudo >> >> cheers, >> danny >> >> > Thanks Daniel, but sudo gives all (not selective) root privileges to the > user (admin in my case). So this is not what I am trying to achieve in my > original post. Please do study sudo real power :-) It can give selective privileges per-command, an d it can also allow one to run some command with some arguments only and not with others. Or, without any arguments only - as you tune its sudoers configuration file. Eugene Grosbein From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 09:48:02 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F1A31065674; Sat, 28 Apr 2012 09:48:02 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id CBE498FC0C; Sat, 28 Apr 2012 09:48:01 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q3S9ln5e026593; Sat, 28 Apr 2012 12:47:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q3S9lnjw092034; Sat, 28 Apr 2012 12:47:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q3S9lnHs092033; Sat, 28 Apr 2012 12:47:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 28 Apr 2012 12:47:49 +0300 From: Konstantin Belousov To: Dimitry Andric Message-ID: <20120428094749.GF2358@deviant.kiev.zoral.com.ua> References: <4F9BB896.8040005@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="htO1hhWexm+U+1ye" Content-Disposition: inline In-Reply-To: <4F9BB896.8040005@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Zenny , "freebsd-stable@freebsd.org" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 09:48:02 -0000 --htO1hhWexm+U+1ye Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 28, 2012 at 11:29:58AM +0200, Dimitry Andric wrote: > On 2012-04-28 09:50, Zenny wrote: > > On Sat, Apr 28, 2012 at 9:38 AM, Daniel Braniss w= rote: > ... > >> try sudo from ports, security/sudo > > Thanks Daniel, but sudo gives all (not selective) root privileges to the > > user (admin in my case). >=20 > This isn't true. With sudo, you can give specific users, or groups of > users, restricted lists of commands they can run, and even specify on > which particular machines they can be run. Sure, but if the allowed commands were not specifically designed to be run with elevated privileges, you typically give the user ability to run any command with elevated privileges. Even specially designed commands sometimes give away much more power then intended. --htO1hhWexm+U+1ye Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk+bvMQACgkQC3+MBN1Mb4hWuwCfX4mbiqM8unepiC2FukO+FyUW 7J0AoO+QB5Bw2dokA9pdVXHhRIIkpupy =7IlQ -----END PGP SIGNATURE----- --htO1hhWexm+U+1ye-- From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 09:58:56 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 462011065670 for ; Sat, 28 Apr 2012 09:58:56 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) by mx1.freebsd.org (Postfix) with ESMTP id C30CA8FC16 for ; Sat, 28 Apr 2012 09:58:55 +0000 (UTC) Received: from hugo10.ka.punkt.de ([217.29.45.10]) by gate1.intern.punkt.de with ESMTP id q3S9l7FR057992; Sat, 28 Apr 2012 11:47:07 +0200 (CEST) Received: from [217.29.46.10] ([217.29.46.10]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id q3S9l7rS053345; Sat, 28 Apr 2012 11:47:07 +0200 (CEST) (envelope-from hausen@punkt.de) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=utf-8 From: "Patrick M. Hausen" In-Reply-To: <4F9BBABA.6040708@rdtc.ru> Date: Sat, 28 Apr 2012 11:47:07 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <0F37A1B9-993B-4A4E-9FCC-8B19AADCFB72@punkt.de> References: <4F9BBABA.6040708@rdtc.ru> To: Eugene Grosbein X-Mailer: Apple Mail (2.1257) Cc: Zenny , "freebsd-stable@freebsd.org" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 09:58:56 -0000 Hi, all, Am 28.04.2012 um 11:39 schrieb Eugene Grosbein: > 28.04.2012 14:50, Zenny =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >=20 >>> try sudo from ports, security/sudo >>>=20 >>> cheers, >>> danny >>>=20 >>>=20 >> Thanks Daniel, but sudo gives all (not selective) root privileges to = the >> user (admin in my case). So this is not what I am trying to achieve = in my >> original post. >=20 > Please do study sudo real power :-) > It can give selective privileges per-command, > an d it can also allow one to run some command with some arguments = only > and not with others. Or, without any arguments only - as you tune > its sudoers configuration file. Just make sure none of the permitted commands has got the feature of starting a shell ;-)) Kind regards, Patrick --=20 punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: J=C3=BCrgen Egeling AG Mannheim 108285 From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 10:21:20 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 156D6106566B for ; Sat, 28 Apr 2012 10:21:20 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 8004B8FC0A for ; Sat, 28 Apr 2012 10:21:19 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mail.0x20.net (Postfix) with ESMTP id 27BBD6A6017; Sat, 28 Apr 2012 12:21:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.0x20.net Received: from mail.0x20.net ([217.69.76.211]) by mail.0x20.net (mail.0x20.net [217.69.76.211]) (amavisd-new, port 10024) with ESMTP id IzeSROCreEos; Sat, 28 Apr 2012 12:21:17 +0200 (CEST) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id CDD076A6014; Sat, 28 Apr 2012 12:21:17 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.4/8.14.4) with ESMTP id q3SALH5f003373; Sat, 28 Apr 2012 12:21:17 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.4/8.14.4/Submit) id q3SALHSc002344; Sat, 28 Apr 2012 12:21:17 +0200 (CEST) (envelope-from lars) Date: Sat, 28 Apr 2012 12:21:17 +0200 From: Lars Engels To: "Patrick M. Hausen" Message-ID: <20120428102117.GX37811@e-new.0x20.net> References: <4F9BBABA.6040708@rdtc.ru> <0F37A1B9-993B-4A4E-9FCC-8B19AADCFB72@punkt.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W0/HzBmgDFoB92Bf" Content-Disposition: inline In-Reply-To: <0F37A1B9-993B-4A4E-9FCC-8B19AADCFB72@punkt.de> X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.2-RELEASE-p3 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Zenny , "freebsd-stable@freebsd.org" , Eugene Grosbein Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 10:21:20 -0000 --W0/HzBmgDFoB92Bf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 28, 2012 at 11:47:07AM +0200, Patrick M. Hausen wrote: > Hi, all, >=20 > Am 28.04.2012 um 11:39 schrieb Eugene Grosbein: >=20 > > 28.04.2012 14:50, Zenny ??????????: > >=20 > >>> try sudo from ports, security/sudo > >>>=20 > >>> cheers, > >>> danny > >>>=20 > >>>=20 > >> Thanks Daniel, but sudo gives all (not selective) root privileges to t= he > >> user (admin in my case). So this is not what I am trying to achieve in= my > >> original post. > >=20 > > Please do study sudo real power :-) > > It can give selective privileges per-command, > > an d it can also allow one to run some command with some arguments only > > and not with others. Or, without any arguments only - as you tune > > its sudoers configuration file. >=20 >=20 > Just make sure none of the permitted commands has got the > feature of starting a shell ;-)) Right, think of vi(1), less(1), et al. --W0/HzBmgDFoB92Bf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+bxJ0ACgkQKc512sD3afgVeACgmequsCJhr1A9xPD+S+iLU7sU Ll0AniSKZ+b5QDQ79p0KUlkWPoKV94g5 =e4YX -----END PGP SIGNATURE----- --W0/HzBmgDFoB92Bf-- From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 10:25:43 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 54DEA1065679 for ; Sat, 28 Apr 2012 10:25:43 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from eterpe-smout.broadpark.no (eterpe-smout.broadpark.no [80.202.8.16]) by mx1.freebsd.org (Postfix) with ESMTP id 0F8DD8FC14 for ; Sat, 28 Apr 2012 10:25:43 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from terra-smin.broadpark.no ([80.202.8.13]) by eterpe-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0M3600A6MNILMM50@eterpe-smout.broadpark.no> for freebsd-stable@freebsd.org; Sat, 28 Apr 2012 11:25:33 +0200 (CEST) Received: from kg-v2.kg4.no ([84.215.134.159]) by terra-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTPA id <0M3600DZNNILES70@terra-smin.broadpark.no> for freebsd-stable@freebsd.org; Sat, 28 Apr 2012 11:25:33 +0200 (CEST) Date: Sat, 28 Apr 2012 11:25:33 +0200 From: Torfinn Ingolfsen To: freebsd-stable@freebsd.org Message-id: <20120428112533.c5108e48.torfinn.ingolfsen@broadpark.no> In-reply-to: References: X-Mailer: Sylpheed 3.1.3 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 10:25:43 -0000 On Sat, 28 Apr 2012 09:50:30 +0200 Zenny wrote: > Thanks Daniel, but sudo gives all (not selective) root privileges to the > user (admin in my case). So this is not what I am trying to achieve in my > original post. FWIW, sudo can be configured to allow only some commands. HTH -- Regards, Torfinn Ingolfsen From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 18:04:30 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB9B11065673 for ; Sat, 28 Apr 2012 18:04:30 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) by mx1.freebsd.org (Postfix) with ESMTP id 615288FC17 for ; Sat, 28 Apr 2012 18:04:30 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SOC0V-0007fO-Di for freebsd-stable@freebsd.org; Sat, 28 Apr 2012 20:04:31 +0200 Date: Sat, 28 Apr 2012 20:04:31 +0200 From: Kurt Jaeger To: freebsd-stable@freebsd.org Message-ID: <20120428180431.GP5335@home.opsec.eu> References: <4F9BBABA.6040708@rdtc.ru> <0F37A1B9-993B-4A4E-9FCC-8B19AADCFB72@punkt.de> <20120428102117.GX37811@e-new.0x20.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120428102117.GX37811@e-new.0x20.net> Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 18:04:30 -0000 Hi! > > > Please do study sudo real power :-) > > > It can give selective privileges per-command, [...] > > Just make sure none of the permitted commands has got the > > feature of starting a shell ;-)) > > Right, think of vi(1), less(1), et al. Even this aspect is taken care of with sudo (at least to a certain limit): NOEXEC and EXEC If sudo has been compiled with noexec support and the underlying operating system supports it, the NOEXEC tag can be used to prevent a dynamically-linked executable from running further commands itself. In the following example, user aaron may run /usr/bin/more and /usr/bin/vi but shell escapes will be disabled. aaron shanty = NOEXEC: /usr/bin/more, /usr/bin/vi See the "PREVENTING SHELL ESCAPES" section below for more details on how NOEXEC works and whether or not it will work on your system. -- pi@opsec.eu +49 171 3101372 8 years to go ! From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 18:34:00 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C11CC1065673 for ; Sat, 28 Apr 2012 18:34:00 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 7A24A8FC1C for ; Sat, 28 Apr 2012 18:34:00 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id q3SICP7P087598; Sat, 28 Apr 2012 13:12:25 -0500 (CDT) (envelope-from stephen@missouri.edu) Message-ID: <4F9C3309.60704@missouri.edu> Date: Sat, 28 Apr 2012 13:12:25 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120412 Thunderbird/11.0.1 MIME-Version: 1.0 To: Zenny References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-stable@freebsd.org" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 18:34:00 -0000 On 04/28/2012 02:50 AM, Zenny wrote: > On Sat, Apr 28, 2012 at 9:38 AM, Daniel Braniss wrote: > >>> Hi: >>> >>> I could not figure out how to restrict users or other users from certain >>> privileges to execute certain commands in FreeBSD/NanoBSD? >>> >>> What I meant is I want to create a NanoBSD image in which there will be >> an >>> additional user, say 'admin'. I need to give this new user (admin) some >>> privileges to run some root-can-only-execute commands, but not all (ACL >>> similar to the firmwares in adsl modems from ISPs). >>> >>> I read Dru Lavingne's 'BSD Hacks' and Joseph Kong's 'Designing BSD >>> Rootkits' besides FreeBSD handbook, but I simply could not figure out. >>> Could anyone throw some light on this? Appreciate it! >>> >>> Thanks! >>> >>> /zenny >> >> try sudo from ports, security/sudo >> >> cheers, >> danny >> >> > Thanks Daniel, but sudo gives all (not selective) root privileges to the > user (admin in my case). So this is not what I am trying to achieve in my > original post. Try the security/super port. It is easy to create very fine grained privileges to selected users. (I am not saying that sudo cannot do this, but with super it is very easy.) From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 19:46:54 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24A5310656DC for ; Sat, 28 Apr 2012 19:46:54 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id CDF268FC0C for ; Sat, 28 Apr 2012 19:46:53 +0000 (UTC) Received: by qao25 with SMTP id 25so991430qao.13 for ; Sat, 28 Apr 2012 12:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+8derBEj5nlGsEMXV/8gbY6/UzTujocxw8Pa5hkCuo4=; b=m8qrGbo2ZhuOo7KOPgEvhjXQ+HlIsSOUNiezHldwgjxzFUFKr7qDyV3TNgU4FJKuUv qjs7llvX2/lFxXHdx/JEGxZLWy0qyiVJGncDfOnElQtk+pFWWAXHNeT+v9Uvh0bnI/NS iqIoL+nZ81zc/mZM5/TIf1dffMbxG1gs+t1i/JHlOuGdy2rHQrBgoQQJ1UTB3uNVAqba IhMMU5ckzjmeoT3Sk/39j8yaPkGjwO2zkNsu7p/ckuMj94wpBO28KTLYYXPyCb+zyPUZ y4aNkD5yA3ZghozSy8InIbz9pEYfgXUrqftMlsHe73Eqd5yaZw+Yx106SX12kTuyCD91 fHGw== MIME-Version: 1.0 Received: by 10.224.115.208 with SMTP id j16mr12978832qaq.84.1335642413228; Sat, 28 Apr 2012 12:46:53 -0700 (PDT) Received: by 10.229.91.138 with HTTP; Sat, 28 Apr 2012 12:46:53 -0700 (PDT) Received: by 10.229.91.138 with HTTP; Sat, 28 Apr 2012 12:46:53 -0700 (PDT) In-Reply-To: References: Date: Sat, 28 Apr 2012 12:46:53 -0700 Message-ID: From: Freddie Cash To: Zenny Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-stable@freebsd.org" Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 19:46:54 -0000 On Apr 28, 2012 12:50 AM, "Zenny" wrote: > > On Sat, Apr 28, 2012 at 9:38 AM, Daniel Braniss wrote: > > > > Hi: > > > > > > I could not figure out how to restrict users or other users from certain > > > privileges to execute certain commands in FreeBSD/NanoBSD? > > > > > > What I meant is I want to create a NanoBSD image in which there will be > > an > > > additional user, say 'admin'. I need to give this new user (admin) some > > > privileges to run some root-can-only-execute commands, but not all (ACL > > > similar to the firmwares in adsl modems from ISPs). > > > > > > I read Dru Lavingne's 'BSD Hacks' and Joseph Kong's 'Designing BSD > > > Rootkits' besides FreeBSD handbook, but I simply could not figure out. > > > Could anyone throw some light on this? Appreciate it! > > > > > > Thanks! > > > > > > /zenny > > > > try sudo from ports, security/sudo > > > > cheers, > > danny > > > > > Thanks Daniel, but sudo gives all (not selective) root privileges to the > user (admin in my case). So this is not what I am trying to achieve in my > original post. Sudo let's you do a lot more than all-or-nothing access. You can specify individual commands that can be run, even down to the options that can be used, and whether or not they need a passwd. And you can even specify which user to run the command as (doesn't have to be root). Read through the sudoers(5) man page and the comments in the default sudoers file for all the gory details. Cheers, Freddie Cash fjwcash@gmail.com From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 20:48:12 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BD14106564A; Sat, 28 Apr 2012 20:48:12 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from smtp-int-m.obspm.fr (smtp-int-m.obspm.fr [145.238.187.15]) by mx1.freebsd.org (Postfix) with ESMTP id D818B8FC15; Sat, 28 Apr 2012 20:48:11 +0000 (UTC) Received: from pcjas.obspm.fr (pcjas.obspm.fr [145.238.184.233]) by smtp-int-m.obspm.fr (8.14.3/8.14.3/SIO Observatoire de Paris - 07/2009) with ESMTP id q3SKm4d0012430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 Apr 2012 22:48:05 +0200 Date: Sat, 28 Apr 2012 22:48:04 +0200 From: Albert Shih To: Alexander Motin Message-ID: <20120428204804.GA65903@pcjas.obspm.fr> References: <20120427203013.GB60961@pcjas.obspm.fr> <20120427213459.GA61125@pcjas.obspm.fr> <4F9B946D.3030607@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4F9B946D.3030607@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Miltered: at smtp-int-m.obspm.fr with ID 4F9C5784.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F9C5784.000/145.238.184.233/pcjas.obspm.fr/pcjas.obspm.fr/ Cc: freebsd-stable@freebsd.org, Oliver Pinter Subject: Re: High load event idl. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 20:48:12 -0000 Le 28/04/2012 ? 09:55:41+0300, Alexander Motin a écrit > On 04/28/12 00:34, Albert Shih wrote: > Definitely, because here I don't see much. > Thanks. > Generally, all CPU loads and load averages now calculated via sampling, > so theoretically with spiky load numbers may vary for many reasons. I > would start from collecting information about running processes. To find > fast switching processes that could hide from accounting try `top -SH -m > io -o vcsw`. To get more information about scheduler work, use > /usr/src/tools/sched/schedgraph.py (instruction inside it). I recompile my kernel this night and tell you tommorow. Here the result of top with those strange option ;-) last pid: 25530; load averages: 0.52, 0.58, 0.57 up 0+01:06:40 22:43:54 156 processes: 3 running, 134 sleeping, 19 waiting CPU: 0.0% user, 0.0% nice, 0.6% system, 0.0% interrupt, 99.4% idle Mem: 67M Active, 52M Inact, 217M Wired, 11M Cache, 415M Buf, 3574M Free Swap: 4096M Total, 4096M Free PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND 11 root 277 513 0 0 0 0 0.00% idle{idle: cpu0} 12 root 246 3 0 0 0 0 0.00% intr{irq12: psm0} 25244 root 245 21 0 0 0 0 0.00% Xorg 12 root 220 0 0 0 0 0 0.00% intr{irq20: hpet0 uhc} 12 root 124 15 0 0 0 0 0.00% intr{swi4: clock} 12 root 65 1 0 0 0 0 0.00% intr{irq17: wpi0} 12 root 32 0 0 0 0 0 0.00% intr{swi4: clock} 11 root 21 390 0 0 0 0 0.00% idle{idle: cpu1} 0 root 20 0 0 0 0 0 0.00% kernel{fw0_taskq} 14 root 20 0 0 0 0 0 0.00% yarrow 25274 jas 15 0 0 0 0 0 0.00% ion3 25022 root 11 3 0 0 0 0 0.00% powerd 25372 jas 9 2 0 0 0 0 0.00% xterm 0 root 8 0 0 0 0 0 0.00% kernel{nvidia taskq} 12 root 6 0 0 0 0 0 0.00% intr{irq16: vgapci0} 25166 root 4 0 0 0 0 0 0.00% hald-addon-storage 12 root 4 0 0 0 0 0 0.00% intr{swi6: Giant task} 12 root 4 0 0 0 0 0 0.00% intr{irq1: atkbd0} 12 root 3 0 0 0 0 0 0.00% intr{irq14: ata0} 4 root 2 0 0 0 0 0 0.00% pfpurge 18 root 2 0 0 0 0 0 0.00% bufdaemon 20 root 2 0 0 0 0 0 0.00% syncer 21 root 2 0 0 0 0 0 0.00% softdepflush 25276 jas 2 0 0 0 0 0 0.00% ion-statusd 25526 jas 2 0 0 0 0 0 0.00% top 25345 jas 2 0 0 0 0 0 0.00% xterm 19 root 2 0 0 0 0 0 0.00% vnlru 25133 haldaemon 2 0 0 0 0 0 0.00% hald{hald} 12 root 2 0 0 0 0 0 0.00% intr{swi2: cambio} 25364 root 2 0 0 0 0 0 0.00% top 7 root 1 0 0 0 0 0 0.00% pagedaemon 15 root 1 0 0 0 0 0 0.00% usb{usbus6} 15 root 1 0 0 0 0 0 0.00% usb{usbus2} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25135 root 0 0 0 0 0 0 0.00% console-kit-daemon{console-kit-daem} 25133 haldaemon 0 0 0 0 0 0 0.00% hald{hald} If I use juste top last pid: 25545; load averages: 0.60, 0.60, 0.58 up 0+01:08:49 22:46:03 53 processes: 1 running, 52 sleeping CPU: 0.6% user, 0.0% nice, 0.6% system, 0.0% interrupt, 98.8% idle Mem: 67M Active, 52M Inact, 217M Wired, 11M Cache, 415M Buf, 3575M Free Swap: 4096M Total, 4096M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 25244 root 1 20 0 905M 36740K select 0 0:13 1.56% Xorg 25545 jas 1 20 0 16508K 2180K CPU1 1 0:00 0.59% top 25364 root 1 20 0 16508K 2176K select 0 0:13 0.39% top 25133 haldaemon 2 29 0 56264K 6196K piperd 0 0:12 0.00% hald 25145 root 1 20 0 44652K 3864K kqread 1 0:08 0.00% hald-addon-mouse-sy 25267 jas 1 26 0 28472K 3828K pause 0 0:04 0.00% xearth 25166 root 1 20 0 20812K 1932K select 1 0:03 0.00% hald-addon-storage -- Albert SHIH DIO bâtiment 15 Observatoire de Paris 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26/06 86 69 95 71 xmpp: jas@obspm.fr Heure local/Local time: sam 28 avr 2012 22:16:39 CEST From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 23:02:25 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0824E106566B for ; Sat, 28 Apr 2012 23:02:25 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id AB85B8FC18 for ; Sat, 28 Apr 2012 23:02:24 +0000 (UTC) Received: by iahk25 with SMTP id k25so3564181iah.13 for ; Sat, 28 Apr 2012 16:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=BVhjO6YOw/08av9NmqY+PKTnGKFbPSQUJf3vqx4DMo8=; b=PlCqm5PBZA2kg997ZGKkDBM7HlJ6wEcHXzOYkpbYGtWHJPM4dA91we9zj/re4sOE8S ENfv2n1n+QlLjKCmCH2MK4jmV2YOJKsjNZigNgA34YStE435lEjp1KLCEfXoXb2i+Uxq lABNw66HIhTsTEfG3CJUcTmt4z+WIM8HQL1lc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=BVhjO6YOw/08av9NmqY+PKTnGKFbPSQUJf3vqx4DMo8=; b=INf6lI5TCMl75Budhg/I4TE2ktwzJtdmc0/7XBhVvIo2iK8lYBcqJhErLi82RJyhns hzNncscqavr0T8BzQ2RO0bsLgoWS3LpVvyNL468zcUg9qXOgRoFl+Gt3Tv3Of8+TUPFW kBrrE6jO1gKGEcM8nE42DsLEA28x0xjw1xZyyimTjU16NxvRvtF+X5eh76stg5mL2fZv ZQUmrU6H2O5YXLqHUvzfk8V9g3xm2JlI9HpOdz6mbrOd2a+moaNfyliuQeLNPy/2sywB 8KAY3ihCD6x/FOoYDoNn2pXMBYWl64O5q7Z2yiBYl653nxO2AE0VyLrJlP4OUVr+6/l6 P7hQ== Received: by 10.50.197.132 with SMTP id iu4mr6935298igc.4.1335654138002; Sat, 28 Apr 2012 16:02:18 -0700 (PDT) Received: from DataIX.net (adsl-99-181-146-133.dsl.klmzmi.sbcglobal.net. [99.181.146.133]) by mx.google.com with ESMTPS id n1sm8545133igm.7.2012.04.28.16.02.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 Apr 2012 16:02:17 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q3SN2EqX035322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Apr 2012 19:02:14 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q3SN2ERe035321; Sat, 28 Apr 2012 19:02:14 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sat, 28 Apr 2012 19:02:14 -0400 From: Jason Hellenthal To: Kurt Jaeger Message-ID: <20120428230214.GA34324@DataIX.net> References: <4F9BBABA.6040708@rdtc.ru> <0F37A1B9-993B-4A4E-9FCC-8B19AADCFB72@punkt.de> <20120428102117.GX37811@e-new.0x20.net> <20120428180431.GP5335@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120428180431.GP5335@home.opsec.eu> X-Gm-Message-State: ALoCoQkelZEiUVLXEfqHhfisttZ2rVSwSnPdSg7L65DSbjPWNy6XH/SQ6gk9rokYuAGtYjBEdkDS Cc: freebsd-stable@freebsd.org Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 23:02:25 -0000 On Sat, Apr 28, 2012 at 08:04:31PM +0200, Kurt Jaeger wrote: > Hi! > > > > > Please do study sudo real power :-) > > > > It can give selective privileges per-command, > [...] > > > Just make sure none of the permitted commands has got the > > > feature of starting a shell ;-)) > > > > Right, think of vi(1), less(1), et al. > > Even this aspect is taken care of with sudo (at least to a certain limit): > > NOEXEC and EXEC > > If sudo has been compiled with noexec support and the underlying > operating system supports it, the NOEXEC tag can be used to prevent a > dynamically-linked executable from running further commands itself. > > In the following example, user aaron may run /usr/bin/more and > /usr/bin/vi but shell escapes will be disabled. > > aaron shanty = NOEXEC: /usr/bin/more, /usr/bin/vi > > See the "PREVENTING SHELL ESCAPES" section below for more details on > how NOEXEC works and whether or not it will work on your system. > cp /usr/bin/vi ~/ or upload your own... sudo $HOME/vi You need to be very careful with this NOEXEC thinking as it will not always get you what you originally intended. -- - (2^(N-1)) From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 23:34:35 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 683131065670 for ; Sat, 28 Apr 2012 23:34:35 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 19B5F8FC14 for ; Sat, 28 Apr 2012 23:34:35 +0000 (UTC) Received: by qao25 with SMTP id 25so1036799qao.13 for ; Sat, 28 Apr 2012 16:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mUWbkYuMtMRx+90fOdfZV/zvbODbcLZaK9rToXfXAm4=; b=YNu5ABGUMfpCddybcNqnE4a/QVQxG3/kCJdSyjDwORAUV57k+r1vHHcJPyO6PYePDV 6cNfK7m/bc2hhaObM4oOgC+0Lj1u++oZlRg2rBu/6qjQf/4MFIYjMof3G1vCEn/YtNFM fwOic8zJYl4tXupkNt6W+eGyZBHquA/IxwPY8nKZobGmh+LY3bgYxVclHY6azxCW2oSd iw36gYk/Lw4j9lGEqSuDbD+AaUU7juEHe5Uz6w1iAvz7V9tGoP0gY7L/Dj12lOZY43Oy x2l+SVS4v+Ybce7oroGxLqxDx19KlCJ4bGgTof+xJEPHDHIz4WEvaXrXSHaEDL6F5ScB mAjQ== MIME-Version: 1.0 Received: by 10.229.137.149 with SMTP id w21mr4030654qct.27.1335656074351; Sat, 28 Apr 2012 16:34:34 -0700 (PDT) Received: by 10.229.91.138 with HTTP; Sat, 28 Apr 2012 16:34:34 -0700 (PDT) Received: by 10.229.91.138 with HTTP; Sat, 28 Apr 2012 16:34:34 -0700 (PDT) In-Reply-To: <20120428230214.GA34324@DataIX.net> References: <4F9BBABA.6040708@rdtc.ru> <0F37A1B9-993B-4A4E-9FCC-8B19AADCFB72@punkt.de> <20120428102117.GX37811@e-new.0x20.net> <20120428180431.GP5335@home.opsec.eu> <20120428230214.GA34324@DataIX.net> Date: Sat, 28 Apr 2012 16:34:34 -0700 Message-ID: From: Freddie Cash To: Jason Hellenthal Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Kurt Jaeger , freebsd-stable@freebsd.org Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 23:34:35 -0000 On Apr 28, 2012 4:03 PM, "Jason Hellenthal" wrote: > cp /usr/bin/vi ~/ > > or upload your own... > > sudo $HOME/vi > If your Cmnd_Alias includes the full path to vi, then your last command won't work. From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 23:53:34 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B4F9106566C for ; Sat, 28 Apr 2012 23:53:34 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2967B8FC0A for ; Sat, 28 Apr 2012 23:53:34 +0000 (UTC) Received: by iahk25 with SMTP id k25so3603780iah.13 for ; Sat, 28 Apr 2012 16:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=/psRitIdR9RgWt7hMc142IheGYerBzpk+p0UxLJ07ao=; b=CkE60pTiZRsXSNVZ+YXN/jB0la9Ix0ObC81Mt+fFv39oRzTkr1AROBAHihL362Cu3/ Bj9GSVNZvR13QykZUvGSpwLM5Mg9a4QykcMfAeP1JZvHQIop9btdYOIFthIvPoLJwX3l oLgZo9GAVHXnHwwktAj6VC6+1M60rl180UqsY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=/psRitIdR9RgWt7hMc142IheGYerBzpk+p0UxLJ07ao=; b=Jt4J94QW5JspzSnW8haqK6ptVX0rRrjjJd4Ho8eNkGIvcDIbQ+0FNweTe7/am7r6C9 m/0ZP51KGMQVz62p5ZCeQFEJ+6KikfFjvBReLr4vvhZIM+3ngSPiIa7P1B38YARV0p/n TORkSeM4qBNEpoaEuFR/ZRESSP8MSBOgfi80v2NtXjiX1kt7w1sbRGy17oJgww+CQSPh bYwTH0CaN4gAxdQrEs1iqpNFnSxr75Z4Es+W8B+0WCyqP8iKpkQ2ExsD1P/uminA1tru +j/fHv8OY0L+7Sjzoy1GILrB9teZhZvSuulFIEQjUdYtjknFwTeH9UQdfnZEvnqrVJ8/ P+PA== Received: by 10.50.190.197 with SMTP id gs5mr6805321igc.37.1335657213805; Sat, 28 Apr 2012 16:53:33 -0700 (PDT) Received: from DataIX.net (adsl-99-181-146-133.dsl.klmzmi.sbcglobal.net. [99.181.146.133]) by mx.google.com with ESMTPS id a10sm8678228igj.10.2012.04.28.16.53.32 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 Apr 2012 16:53:33 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q3SNrVFX038658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Apr 2012 19:53:31 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q3SNrVLM038657; Sat, 28 Apr 2012 19:53:31 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sat, 28 Apr 2012 19:53:30 -0400 From: Jason Hellenthal To: Freddie Cash Message-ID: <20120428235330.GA38601@DataIX.net> References: <4F9BBABA.6040708@rdtc.ru> <0F37A1B9-993B-4A4E-9FCC-8B19AADCFB72@punkt.de> <20120428102117.GX37811@e-new.0x20.net> <20120428180431.GP5335@home.opsec.eu> <20120428230214.GA34324@DataIX.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Gm-Message-State: ALoCoQnpsRSf0Gu4wlgJdvwLp00pOIuoJb1+hxw+vVK+Kh3kq2iVxxcxajryKw2CojlxaCXz4DkF Cc: Kurt Jaeger , freebsd-stable@freebsd.org Subject: Re: Restricting users from certain privileges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 23:53:34 -0000 On Sat, Apr 28, 2012 at 04:34:34PM -0700, Freddie Cash wrote: > On Apr 28, 2012 4:03 PM, "Jason Hellenthal" wrote: > > cp /usr/bin/vi ~/ > > > > or upload your own... > > > > sudo $HOME/vi > > > > If your Cmnd_Alias includes the full path to vi, then your last command > won't work. I know. Just an example of why you should be careful. I had an admin on a box I supervise add an entry where it enabled a user to run miscelaneous commands. It did not effect anything since the user is well trusted but if it had been the other way around and had not be caught the sheer consequence of such could have been disasterous. -- - (2^(N-1))