From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 1 00:00:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E504C7D for ; Tue, 1 Jan 2013 00:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 07FE58FC0C for ; Tue, 1 Jan 2013 00:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r01000wP017494 for ; Tue, 1 Jan 2013 00:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r01000Mk017484; Tue, 1 Jan 2013 00:00:00 GMT (envelope-from gnats) Resent-Date: Tue, 1 Jan 2013 00:00:00 GMT Resent-Message-Id: <201301010000.r01000Mk017484@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, UlNbdkIw Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17E48C42 for ; Mon, 31 Dec 2012 23:51:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D91998FC08 for ; Mon, 31 Dec 2012 23:51:57 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBVNpuTC019187 for ; Mon, 31 Dec 2012 23:51:56 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qBVNpuDr019172; Mon, 31 Dec 2012 23:51:56 GMT (envelope-from nobody) Message-Id: <201212312351.qBVNpuDr019172@red.freebsd.org> Date: Mon, 31 Dec 2012 23:51:56 GMT From: UlNbdkIw To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174871: PSDiBSlJHKTDfEkcqi X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 00:00:01 -0000 >Number: 174871 >Category: misc >Synopsis: PSDiBSlJHKTDfEkcqi >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 01 00:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: UlNbdkIw >Release: jMoFBwZmKVaxjPQdXEv >Organization: IxRXYtPEkwcS >Environment: Furrealz? That's mavrloeusly good to know. >Description: Furrealz? That's mavrloeusly good to know. >How-To-Repeat: Furrealz? That's mavrloeusly good to know. >Fix: Furrealz? That's mavrloeusly good to know. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 1 00:03:05 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A74F6E21; Tue, 1 Jan 2013 00:03:05 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 729438FC0A; Tue, 1 Jan 2013 00:03:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r01035Iu018261; Tue, 1 Jan 2013 00:03:05 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r01035RY018257; Tue, 1 Jan 2013 00:03:05 GMT (envelope-from linimon) Date: Tue, 1 Jan 2013 00:03:05 GMT Message-Id: <201301010003.r01035RY018257@freefall.freebsd.org> To: wakacje@joga.waw.pl, linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: junk/174871: PSDiBSlJHKTDfEkcqi X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 00:03:05 -0000 Synopsis: PSDiBSlJHKTDfEkcqi State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Tue Jan 1 00:02:55 UTC 2013 State-Changed-Why: spam http://www.freebsd.org/cgi/query-pr.cgi?pr=174871 From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 1 04:00:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06215AC6 for ; Tue, 1 Jan 2013 04:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B46C38FC12 for ; Tue, 1 Jan 2013 04:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r01400kG035694 for ; Tue, 1 Jan 2013 04:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r01400Y6035693; Tue, 1 Jan 2013 04:00:00 GMT (envelope-from gnats) Resent-Date: Tue, 1 Jan 2013 04:00:00 GMT Resent-Message-Id: <201301010400.r01400Y6035693@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joseph Mingrone Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0478A8A for ; Tue, 1 Jan 2013 03:53:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A1A108FC0A for ; Tue, 1 Jan 2013 03:53:27 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r013rRMo034111 for ; Tue, 1 Jan 2013 03:53:27 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r013rRoO034110; Tue, 1 Jan 2013 03:53:27 GMT (envelope-from nobody) Message-Id: <201301010353.r013rRoO034110@red.freebsd.org> Date: Tue, 1 Jan 2013 03:53:27 GMT From: Joseph Mingrone To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174876: AAfter uprading to 9-STABLE from 9.0-RELEASE plugging headphones or external speakers into the mic/audio jack doesn't cause audio to switch (Lenovo X220) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 04:00:01 -0000 >Number: 174876 >Category: misc >Synopsis: AAfter uprading to 9-STABLE from 9.0-RELEASE plugging headphones or external speakers into the mic/audio jack doesn't cause audio to switch (Lenovo X220) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 01 04:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Joseph Mingrone >Release: 9-STABLE >Organization: >Environment: FreeBSD phe.ath.cx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #3 r244906: Mon Dec 31 16:28:46 AST 2012 root@phe.ath.cx:/usr/obj/usr/src /sys/PHE amd64 (still says 9.1-PRELEASE, but I grabbed base/stable/9) >Description: With 9.0-RELEASE and hw.snd.default_auto=1 in /etc/sysctl.conf audio switched like this: - play sound through internal speakers - plug in headphones or external speakers and sound now plays only through the headphones or external speakers After upgrading to 9-STABLE: - play sound through internal speakers (works) - plug in headphones or speakers and no sound from internal speakers or headphone or external speakers I can force the switch by togling hw.snd.default_unit to 0 for internal speakers and 1 for headphones or external speakers. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 1 07:30:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D7B448F for ; Tue, 1 Jan 2013 07:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 194188FC14 for ; Tue, 1 Jan 2013 07:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r017U0uP049236 for ; Tue, 1 Jan 2013 07:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r017U05w049232; Tue, 1 Jan 2013 07:30:00 GMT (envelope-from gnats) Resent-Date: Tue, 1 Jan 2013 07:30:00 GMT Resent-Message-Id: <201301010730.r017U05w049232@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tak Pui Lou Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 315BE339 for ; Tue, 1 Jan 2013 07:25:01 +0000 (UTC) (envelope-from lou@neutron.lbl.gov) Received: from neutron.lbl.gov (neutron.lbl.gov [131.243.188.13]) by mx1.freebsd.org (Postfix) with ESMTP id 163EE8FC12 for ; Tue, 1 Jan 2013 07:25:00 +0000 (UTC) Received: from neutron.lbl.gov (neutron [127.0.0.1]) by neutron.lbl.gov (8.14.5/8.14.5) with ESMTP id r016xAQX003986 for ; Mon, 31 Dec 2012 22:59:15 -0800 (PST) (envelope-from lou@neutron.lbl.gov) Received: (from lou@localhost) by neutron.lbl.gov (8.14.5/8.14.5/Submit) id r016x5EY003985; Mon, 31 Dec 2012 22:59:05 -0800 (PST) (envelope-from lou) Message-Id: <201301010659.r016x5EY003985@neutron.lbl.gov> Date: Mon, 31 Dec 2012 22:59:05 -0800 (PST) From: Tak Pui Lou To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.114 Subject: kern/174877: mountd fails to work inside init_chroot X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Tak Pui Lou List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 07:30:01 -0000 >Number: 174877 >Category: kern >Synopsis: mountd fails to work inside init_chroot >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 01 07:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tak Pui Lou >Release: FreeBSD 9.1-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD neutron.lbl.gov 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r244804M: Fri Dec 28 19:05:54 PST 2012 lou@neutron.lbl.gov:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Since some revision after r231239, mountd fails to work inside a chroot started by an mfsroot preloaded image's init. >How-To-Repeat: Load a mfsroot preloaded image from loader.conf and set init_chroot=/system. /system is a zfs boot filesystem and has other zfs filesystems (e.g. /etc, /bin, /lib, /libexec, ... ) mounted under its subdirectories. Boot this and export filesystem under /system. I think there is some changes to make mountd to work with jail and these changes make mountd lookup the exports path outside init_chroot instead of inside init_chroot. Therefore, it gives the following error messages: Dec 31 21:33:45 ------- mountd[1990]: can't export /export Dec 31 21:33:45 ------- mountd[1990]: bad exports list line /export >Fix: The export files and sharenfs parameters works when mountd is not inside init_chroot system. But, it is sometimes useful to have an init_chroot system. So, it would be nice if this can get a proper fix from the source. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 1 12:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9DFC9BB for ; Tue, 1 Jan 2013 12:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9BE8FC0C for ; Tue, 1 Jan 2013 12:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r01C000N066495 for ; Tue, 1 Jan 2013 12:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r01C00sD066494; Tue, 1 Jan 2013 12:00:00 GMT (envelope-from gnats) Resent-Date: Tue, 1 Jan 2013 12:00:00 GMT Resent-Message-Id: <201301011200.r01C00sD066494@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, jb Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E68B29B7 for ; Tue, 1 Jan 2013 11:59:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C22518FC13 for ; Tue, 1 Jan 2013 11:59:51 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r01BxpeB018386 for ; Tue, 1 Jan 2013 11:59:51 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r01BxpwK018376; Tue, 1 Jan 2013 11:59:51 GMT (envelope-from nobody) Message-Id: <201301011159.r01BxpwK018376@red.freebsd.org> Date: Tue, 1 Jan 2013 11:59:51 GMT From: jb To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174879: cam(4) - installation - cam/scsi cd errors X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 12:00:00 -0000 >Number: 174879 >Category: kern >Synopsis: cam(4) - installation - cam/scsi cd errors >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 01 12:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: jb >Release: 9.1-RELEASE #0 r243826 >Organization: >Environment: FreeBSD localhost.localdomain 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: During installation boot, there are errors: # dmesg .. ada0: cd0 at ata0 bus 0 scbus0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: cd present [292819 x 2048 byte records] ATA-7 SATA 1.x device ada0: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 152627MB (312581808 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 SMP: AP CPU #1 Launched! ugen0.2: at usbus0 ugen3.2: at usbus3 ums0: on usbus3 ums0: 3 buttons and [XYZ] coordinates ID=0 (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d2 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d2 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d2 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d2 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d1 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d1 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d1 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d1 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d2 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d2 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d2 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d2 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d2 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d2 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d2 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d2 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d1 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d1 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d1 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d1 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 4 77 d2 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track) (cd0:ata0:0:0:0): Info: 0x477d2 (cd0:ata0:0:0:0): Error 6, Unretryable error (cd0:ata0:0:0:0): cddone: got error 0x6 back Trying to mount root from cd9660:/dev/iso9660/FREEBSD_INSTALL [ro]... .. >How-To-Repeat: Install FB from a CD. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 1 12:40:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C210AFF1 for ; Tue, 1 Jan 2013 12:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 79D158FC17 for ; Tue, 1 Jan 2013 12:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r01Ce0OW068440 for ; Tue, 1 Jan 2013 12:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r01Ce0to068439; Tue, 1 Jan 2013 12:40:00 GMT (envelope-from gnats) Resent-Date: Tue, 1 Jan 2013 12:40:00 GMT Resent-Message-Id: <201301011240.r01Ce0to068439@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, NIKA Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B352F48 for ; Tue, 1 Jan 2013 12:36:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 20BFC8FC0A for ; Tue, 1 Jan 2013 12:36:59 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r01CawqU084674 for ; Tue, 1 Jan 2013 12:36:58 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r01CawqY084673; Tue, 1 Jan 2013 12:36:58 GMT (envelope-from nobody) Message-Id: <201301011236.r01CawqY084673@red.freebsd.org> Date: Tue, 1 Jan 2013 12:36:58 GMT From: NIKA To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174880: ATI SB600 AHCI problem on BSD 8 and above X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 12:40:00 -0000 >Number: 174880 >Category: kern >Synopsis: ATI SB600 AHCI problem on BSD 8 and above >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 01 12:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: NIKA >Release: 8.3 / 9.1 >Organization: >Environment: not possible >Description: I have a bug when installing BSD 8.3 and 9.1 on my ASUS A7U notebook (ATI RS690 chipset, SB600 south bridge). I get a message: ahcich1: Timeout on slot 0 port 0 is 00000002 cs 00000000 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 00042017. So, install program can not see my hard drive, and can not resume install. My BIOS does not have option to switch to PATA mode, so AHCI is required. In same time, BSD 7.4 can see it. With BSD 7.4 is no problem. Clearly, some bug in AHCI or ATA-ATI driver appeared in 8R. I am interested to use PCBSD, but can not do it. Please, help. >How-To-Repeat: Try to run install program on ASUS A7U :) >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 02:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2BBDB68 for ; Wed, 2 Jan 2013 02:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8AEAE8FC12 for ; Wed, 2 Jan 2013 02:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r022K0Rn014045 for ; Wed, 2 Jan 2013 02:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r022K0wU014044; Wed, 2 Jan 2013 02:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 02:20:00 GMT Resent-Message-Id: <201301020220.r022K0wU014044@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Deniel Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A62AA66 for ; Wed, 2 Jan 2013 02:11:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id ECA768FC08 for ; Wed, 2 Jan 2013 02:11:44 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r022BiXf022201 for ; Wed, 2 Jan 2013 02:11:44 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r022BiQl022186; Wed, 2 Jan 2013 02:11:44 GMT (envelope-from nobody) Message-Id: <201301020211.r022BiQl022186@red.freebsd.org> Date: Wed, 2 Jan 2013 02:11:44 GMT From: Deniel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174889: dtrace makeoptions WITH_CTF=1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 02:20:00 -0000 >Number: 174889 >Category: misc >Synopsis: dtrace makeoptions WITH_CTF=1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 02:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Deniel >Release: 10.0-CURRENT >Organization: None >Environment: # uname -rpo FreeBSD 10.0-CURRENT amd64 >Description: # makeoptions WITH_CTF=1 makeoptions: Command not found. # grep -i "WITH_CTF" /etc/src.conf WITH_CTF=true >How-To-Repeat: # dtrace -h dtrace: failed to establish error handler: "/usr/lib/dtrace/psinfo.d", line 2: type redeclared: struct dev info >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 02:40:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5315FCDB for ; Wed, 2 Jan 2013 02:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3349A8FC0C for ; Wed, 2 Jan 2013 02:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r022e1PT014491 for ; Wed, 2 Jan 2013 02:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r022e1G3014490; Wed, 2 Jan 2013 02:40:01 GMT (envelope-from gnats) Date: Wed, 2 Jan 2013 02:40:01 GMT Message-Id: <201301020240.r022e1G3014490@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Taner Subject: Re: kern/173435: Atapi cdrom boot delay X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Taner List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 02:40:01 -0000 The following reply was made to PR kern/173435; it has been noted by GNATS. From: Taner To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/173435: Atapi cdrom boot delay Date: Wed, 2 Jan 2013 04:32:27 +0200 --f46d04448073ab6efd04d2450eac Content-Type: text/plain; charset=ISO-8859-1 I have recently tested 9.1-RELEASE kernel and problem still exists. It doesn't matter booting from cdrom or disk, there is a problem during probing ATAPI cd/dvd drivers as I described in #173435. --f46d04448073ab6efd04d2450eac Content-Type: text/html; charset=ISO-8859-1
I have recently tested 9.1-RELEASE kernel and problem still exists. It doesn't matter booting from cdrom or disk, there is a problem during probing ATAPI cd/dvd drivers as I described in #173435.
--f46d04448073ab6efd04d2450eac-- From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 03:10:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 779FB34B for ; Wed, 2 Jan 2013 03:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 58FA58FC14 for ; Wed, 2 Jan 2013 03:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r023A1ms015809 for ; Wed, 2 Jan 2013 03:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r023A1JF015808; Wed, 2 Jan 2013 03:10:01 GMT (envelope-from gnats) Date: Wed, 2 Jan 2013 03:10:01 GMT Message-Id: <201301020310.r023A1JF015808@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mark Johnston Subject: Re: misc/174889: dtrace makeoptions WITH_CTF=1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Mark Johnston List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 03:10:01 -0000 The following reply was made to PR misc/174889; it has been noted by GNATS. From: Mark Johnston To: bug-followup@FreeBSD.org, devzone.my@gmail.com Cc: Subject: Re: misc/174889: dtrace makeoptions WITH_CTF=1 Date: Tue, 1 Jan 2013 21:52:46 -0500 Hello, Can you try one of the workarounds in bin/171678 and see if that solves your problem? http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/171678 That is, either remove the "depends_on" directive from /usr/lib/dtrace/io.d, or apply the patch from that PR and rebuild libdtrace. I can reproduce your problem using libdtrace from head, but the patch fixes it for me. The steps to apply the patch and rebuild the library are (roughly) # cd /usr/src # patch -p1 < # cd cddl/lib/libdtrace # make && make install Thanks! -Mark From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 04:10:03 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14F1EC7 for ; Wed, 2 Jan 2013 04:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C00948FC0A for ; Wed, 2 Jan 2013 04:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r024A2PY018195 for ; Wed, 2 Jan 2013 04:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r024A2MI018194; Wed, 2 Jan 2013 04:10:02 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 04:10:02 GMT Resent-Message-Id: <201301020410.r024A2MI018194@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, PseudoCylon Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B19A2FFC for ; Wed, 2 Jan 2013 04:04:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 934338FC0A for ; Wed, 2 Jan 2013 04:04:25 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0244OXG005082 for ; Wed, 2 Jan 2013 04:04:24 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0244Oll005081; Wed, 2 Jan 2013 04:04:24 GMT (envelope-from nobody) Message-Id: <201301020404.r0244Oll005081@red.freebsd.org> Date: Wed, 2 Jan 2013 04:04:24 GMT From: PseudoCylon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174891: struct ieee80211_node is freed during active BA session X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 04:10:03 -0000 >Number: 174891 >Category: kern >Synopsis: struct ieee80211_node is freed during active BA session >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 04:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: PseudoCylon >Release: 9.1-PRERELEASE >Organization: >Environment: 9.1-PRERELEASE #1 r244163M: Wed Dec 12 20:37:07 EST 2012 >Description: When ieee80211_find_rxnode() is called with a segregated ampdu frame, sometime the function returns NULL. Currently, exact mechanism is unknown. Maybe, tearing down of BA session was failed or miscounting of ni_refcnt. More detail will be submitted as soon as discovered. Related thread: http://lists.freebsd.org/pipermail/freebsd-wireless/2013-January/002718.html >How-To-Repeat: setup a WiFi connection and patiently wait. >Fix: not yet known >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 09:30:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2C4CF36 for ; Wed, 2 Jan 2013 09:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AE2EE8FC15 for ; Wed, 2 Jan 2013 09:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r029U1Q7040498 for ; Wed, 2 Jan 2013 09:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r029U1jl040497; Wed, 2 Jan 2013 09:30:01 GMT (envelope-from gnats) Date: Wed, 2 Jan 2013 09:30:01 GMT Message-Id: <201301020930.r029U1jl040497@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Garrett Cooper Subject: Re: bin/174214: [ofed] [patch] OFED userspace fails to build with clang X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Garrett Cooper List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 09:30:01 -0000 The following reply was made to PR bin/174214; it has been noted by GNATS. From: Garrett Cooper To: bug-followup@FreeBSD.org, yanegomi@gmail.com Cc: Subject: Re: bin/174214: [ofed] [patch] OFED userspace fails to build with clang Date: Wed, 2 Jan 2013 01:26:24 -0800 OFED upstream fixed this in slightly different ways, but we'll be pulling in the fixes with the OFED stack upgrade. Thanks! -Garrett From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 13:40:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C72F2CC8 for ; Wed, 2 Jan 2013 13:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9C53E8FC17 for ; Wed, 2 Jan 2013 13:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02De1IN051505 for ; Wed, 2 Jan 2013 13:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02De1Vd051504; Wed, 2 Jan 2013 13:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 13:40:01 GMT Resent-Message-Id: <201301021340.r02De1Vd051504@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Wemm Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11D1CA2D for ; Wed, 2 Jan 2013 13:31:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D24438FC0C for ; Wed, 2 Jan 2013 13:31:05 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r02DV5xe056310 for ; Wed, 2 Jan 2013 13:31:05 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r02DV56H056309; Wed, 2 Jan 2013 13:31:05 GMT (envelope-from nobody) Message-Id: <201301021331.r02DV56H056309@red.freebsd.org> Date: Wed, 2 Jan 2013 13:31:05 GMT From: Peter Wemm To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174897: Interface routes are broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 13:40:01 -0000 >Number: 174897 >Category: kern >Synopsis: Interface routes are broken >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 13:40:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Peter Wemm >Release: 10-current >Organization: FreeBSD >Environment: FreeBSD mailspool.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r244957: Wed Jan 2 11:18:56 UTC 2013 >Description: Interface creation now fails to correctly install more-specific routes, or gets terribly confused. This happens in two cases that are critical for freebsd.org cluster infrastructure machines. 1) Discard interface as a supernet is broken.. 2) jail loopback substitution aliases are broken. >How-To-Repeat: The most urgent problem: peter@mailspool:# % netstat -rn | grep 127 127.0.0.1 link#3 UH 0 0 lo0 root@mailspool:/home/peter # ifconfig -a | fgrep 127.0 inet 127.0.0.1 netmask 0xff000000 root@mailspool:/home/peter # ifconfig lo1 create root@mailspool:/home/peter # ifconfig -a | fgrep 127.0 inet 127.0.0.1 netmask 0xff000000 root@mailspool:/home/peter # netstat -rn | grep 127 127.0.0.1 link#3 UH 0 0 lo0 root@mailspool:/home/peter # ifconfig lo1 inet 127.0.3.1/32 alias ifconfig: ioctl (SIOCAIFADDR): File exists root@mailspool:/home/peter # netstat -rn | grep 127 127.0.0.1 link#3 UH 0 0 lo0 127.0.3.1 link#4 UHS 0 0 lo0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Note how it created something on the wrong interface. root@mailspool:/home/peter # ifconfig lo1 | grep 127 root@mailspool:/home/peter # ifconfig lo0 | grep 127 inet 127.0.0.1 netmask 0xff000000 root@mailspool:/home/peter # ifconfig lo1 inet 127.0.3.1/32 -alias ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address root@mailspool:/home/peter # netstat -rn | grep 127 127.0.0.1 link#3 UH 0 0 lo0 127.0.3.1 link#4 UHS 0 0 lo0 . and deleting the interface address doesn't work either. root@mailspool:/home/peter # ifconfig lo1 destroy root@mailspool:/home/peter # netstat -rn | grep 127 127.0.0.1 link#3 UH 0 0 lo0 127.0.3.1 link#4 UHS 0 0 lo0 root@mailspool:/home/peter # route delete 127.0.3.1 delete host 127.0.3.1 root@mailspool:/home/peter # netstat -rn | grep 127 127.0.0.1 link#3 UH 0 0 lo0 Trying it with a network instead of a host doesn't work either. root@mailspool:/home/peter # ifconfig lo1 create root@mailspool:/home/peter # ifconfig lo1 127.0.1.1/24 ifconfig: ioctl (SIOCAIFADDR): File exists root@mailspool:/home/peter # netstat -rn | grep 127 127.0.0.1 link#3 UH 0 0 lo0 127.0.1.1 link#4 UHS 0 0 lo0 >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 14:40:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5301BF1C for ; Wed, 2 Jan 2013 14:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0E3F08FC15 for ; Wed, 2 Jan 2013 14:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02Ee1Tp054258 for ; Wed, 2 Jan 2013 14:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02Ee1o8054257; Wed, 2 Jan 2013 14:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 14:40:01 GMT Resent-Message-Id: <201301021440.r02Ee1o8054257@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mitja Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F4BCEE5 for ; Wed, 2 Jan 2013 14:37:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1668FC14 for ; Wed, 2 Jan 2013 14:37:57 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r02EbvXW072219 for ; Wed, 2 Jan 2013 14:37:57 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r02EbvkI072218; Wed, 2 Jan 2013 14:37:57 GMT (envelope-from nobody) Message-Id: <201301021437.r02EbvkI072218@red.freebsd.org> Date: Wed, 2 Jan 2013 14:37:57 GMT From: Mitja To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174900: GVFS: process gvfs* take 100% of CPU X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 14:40:02 -0000 >Number: 174900 >Category: misc >Synopsis: GVFS: process gvfs* take 100% of CPU >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 14:40:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Mitja >Release: FreeBSD 9.1-Release >Organization: >Environment: FreeBSD 9.1-RELEASE >Description: Process gvfs-afc-volume-monitor. This process take 100% of CPU. >How-To-Repeat: It hapenned all the time when I use GIMP - Open file >Fix: Maybe: http://freebsd.1045724.n5.nabble.com/gvfs-afc-volume-monitor-td5757008.html >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 16:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A52C680E for ; Wed, 2 Jan 2013 16:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 86FAC15F4 for ; Wed, 2 Jan 2013 16:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02GK0op058787 for ; Wed, 2 Jan 2013 16:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02GK050058786; Wed, 2 Jan 2013 16:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 16:20:00 GMT Resent-Message-Id: <201301021620.r02GK050058786@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Yerenkow Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 676FC7EB for ; Wed, 2 Jan 2013 16:15:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4FD7515D7 for ; Wed, 2 Jan 2013 16:15:10 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r02GFANe038824 for ; Wed, 2 Jan 2013 16:15:10 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r02GFAPi038823; Wed, 2 Jan 2013 16:15:10 GMT (envelope-from nobody) Message-Id: <201301021615.r02GFAPi038823@red.freebsd.org> Date: Wed, 2 Jan 2013 16:15:10 GMT From: Alexander Yerenkow To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174902: jail should provide validator for jail names X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 16:20:00 -0000 >Number: 174902 >Category: misc >Synopsis: jail should provide validator for jail names >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 16:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Alexander Yerenkow >Release: FreeBSD 9.1 >Organization: >Environment: >Description: Currently, such tools as poudriere, ezjail, etc are using jails. But, jail names aren't validated there (at least in poudriere). For example, you can create podudriere-jail "9.1R", but you can't run build - since jail failing start jail with such name. To not reimplement name validation in many places, jail subsyste, should provide unified way to validate jail names. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 16:25:14 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9C05BACB; Wed, 2 Jan 2013 16:25:14 +0000 (UTC) (envelope-from crees@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 75723162A; Wed, 2 Jan 2013 16:25:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02FwnFL057180; Wed, 2 Jan 2013 15:58:49 GMT (envelope-from crees@freefall.freebsd.org) Received: (from crees@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02Fwnll057176; Wed, 2 Jan 2013 15:58:49 GMT (envelope-from crees) Date: Wed, 2 Jan 2013 15:58:49 GMT Message-Id: <201301021558.r02Fwnll057176@freefall.freebsd.org> To: crees@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: crees@FreeBSD.org Subject: Re: conf/172787: FreeBSD 9.x broken alias syntax on vlan interfaces X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 16:25:14 -0000 Synopsis: FreeBSD 9.x broken alias syntax on vlan interfaces Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: crees Responsible-Changed-When: Wed Jan 2 15:58:14 UTC 2013 Responsible-Changed-Why: Fix category and assign http://www.freebsd.org/cgi/query-pr.cgi?pr=172787 From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 18:10:05 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E775FB9B for ; Wed, 2 Jan 2013 18:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C77AD1A4E for ; Wed, 2 Jan 2013 18:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02IA5mk063043 for ; Wed, 2 Jan 2013 18:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02IA51o063042; Wed, 2 Jan 2013 18:10:05 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 18:10:05 GMT Resent-Message-Id: <201301021810.r02IA51o063042@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olli Hauer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E4597317 for ; Wed, 2 Jan 2013 18:03:01 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D4D7019D2 for ; Wed, 2 Jan 2013 18:03:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02I31YO062608 for ; Wed, 2 Jan 2013 18:03:01 GMT (envelope-from ohauer@freefall.freebsd.org) Received: (from ohauer@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02I31Kt062607; Wed, 2 Jan 2013 18:03:01 GMT (envelope-from ohauer) Message-Id: <201301021803.r02I31Kt062607@freefall.freebsd.org> Date: Wed, 2 Jan 2013 18:03:01 GMT From: Olli Hauer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/174905: [patch] cron honor rfc821, rfc5321, rfc2076, rfc3834 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 18:10:06 -0000 >Number: 174905 >Category: bin >Synopsis: [patch] cron honor rfc821, rfc5321, rfc2076, rfc3834 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 18:10:05 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Olli Hauer >Release: >Organization: >Environment: >Description: o per rfc821, rfc5321 and others there should be an CRLF after each mail-headers line, so change '\n' to '\r\n' o enclose mail addresses between '<>' (rfc821) o swap From: line to DisplayName (rfc5312) Add various mail headers to suppress auto-replies (out of office ...) o add rfc2076 header (Precedence: bulk) o add rfc3834 header (Auto-Submitted: auto-generated) (this header is already honored by dovecot2) o add special header for MS Exchange (X-Auto-Response-Suppress: OOF, DR, RN, NRN, AutoReply) patch can be grabbed additional from here: http://people.freebsd.org/~ohauer/diffs/cron_2013-01-02.diff >How-To-Repeat: - replace sendmail with another mailer and do a strict rfc821 enforce. - implement a vacation mail on your main mailbox (dovecot2/MS-Exchange/...) and let a couple of machines send cron mails to your mailbox >Fix: --- cron_2013-01-02.diff begins here --- Index: head/usr.sbin/cron/cron/do_command.c =================================================================== --- head/usr.sbin/cron/cron/do_command.c (revision 244958) +++ head/usr.sbin/cron/cron/do_command.c (working copy) @@ -488,19 +488,25 @@ warn("%s", MAILCMD); (void) _exit(ERROR_EXIT); } - fprintf(mail, "From: %s (Cron Daemon)\n", usernm); - fprintf(mail, "To: %s\n", mailto); - fprintf(mail, "Subject: Cron <%s@%s> %s\n", + fprintf(mail, "From: (Cron Daemon) <%s>\r\n", usernm); + fprintf(mail, "To: <%s>\r\n", mailto); + fprintf(mail, "Subject: Cron <%s@%s> %s\r\n", usernm, first_word(hostname, "."), e->cmd); + /* RFC3834 */ + fprintf(mail, "Auto-Submitted: auto-generated\r\n"); + /* RFC2076 */ + fprintf(mail, "Precedence: bulk\r\n"); + /* http://msdn.microsoft.com/en-us/library/ee219609%28v=EXCHG.80%29.aspx */ + fprintf(mail, "X-Auto-Response-Suppress: OOF, DR, RN, NRN, AutoReply\r\n"); # if defined(MAIL_DATE) - fprintf(mail, "Date: %s\n", + fprintf(mail, "Date: %s\r\n", arpadate(&TargetTime)); # endif /* MAIL_DATE */ for (env = e->envp; *env; env++) - fprintf(mail, "X-Cron-Env: <%s>\n", + fprintf(mail, "X-Cron-Env: <%s>\r\n", *env); - fprintf(mail, "\n"); + fprintf(mail, "\r\n"); /* this was the first char from the pipe */ Index: stable/7/usr.sbin/cron/cron/do_command.c =================================================================== --- stable/7/usr.sbin/cron/cron/do_command.c (revision 244958) +++ stable/7/usr.sbin/cron/cron/do_command.c (working copy) @@ -488,19 +488,25 @@ warn("%s", MAILCMD); (void) _exit(ERROR_EXIT); } - fprintf(mail, "From: %s (Cron Daemon)\n", usernm); - fprintf(mail, "To: %s\n", mailto); - fprintf(mail, "Subject: Cron <%s@%s> %s\n", + fprintf(mail, "From: (Cron Daemon) <%s>\r\n", usernm); + fprintf(mail, "To: <%s>\r\n", mailto); + fprintf(mail, "Subject: Cron <%s@%s> %s\r\n", usernm, first_word(hostname, "."), e->cmd); + /* RFC3834 */ + fprintf(mail, "Auto-Submitted: auto-generated\r\n"); + /* RFC2076 */ + fprintf(mail, "Precedence: bulk\r\n"); + /* http://msdn.microsoft.com/en-us/library/ee219609%28v=EXCHG.80%29.aspx */ + fprintf(mail, "X-Auto-Response-Suppress: OOF, DR, RN, NRN, AutoReply\r\n"); # if defined(MAIL_DATE) - fprintf(mail, "Date: %s\n", + fprintf(mail, "Date: %s\r\n", arpadate(&TargetTime)); # endif /* MAIL_DATE */ for (env = e->envp; *env; env++) - fprintf(mail, "X-Cron-Env: <%s>\n", + fprintf(mail, "X-Cron-Env: <%s>\r\n", *env); - fprintf(mail, "\n"); + fprintf(mail, "\r\n"); /* this was the first char from the pipe */ Index: stable/8/usr.sbin/cron/cron/do_command.c =================================================================== --- stable/8/usr.sbin/cron/cron/do_command.c (revision 244958) +++ stable/8/usr.sbin/cron/cron/do_command.c (working copy) @@ -147,7 +147,7 @@ #ifdef USE_SIGCHLD /* our parent is watching for our death by catching SIGCHLD. we * do not care to watch for our children's deaths this way -- we - * use wait() explictly. so we have to disable the signal (which + * use wait() explicitly. so we have to disable the signal (which * was inherited from the parent). */ (void) signal(SIGCHLD, SIG_DFL); @@ -488,19 +488,25 @@ warn("%s", MAILCMD); (void) _exit(ERROR_EXIT); } - fprintf(mail, "From: %s (Cron Daemon)\n", usernm); - fprintf(mail, "To: %s\n", mailto); - fprintf(mail, "Subject: Cron <%s@%s> %s\n", + fprintf(mail, "From: (Cron Daemon) <%s>\r\n", usernm); + fprintf(mail, "To: <%s>\r\n", mailto); + fprintf(mail, "Subject: Cron <%s@%s> %s\r\n", usernm, first_word(hostname, "."), e->cmd); + /* RFC3834 */ + fprintf(mail, "Auto-Submitted: auto-generated\r\n"); + /* RFC2076 */ + fprintf(mail, "Precedence: bulk\r\n"); + /* http://msdn.microsoft.com/en-us/library/ee219609%28v=EXCHG.80%29.aspx */ + fprintf(mail, "X-Auto-Response-Suppress: OOF, DR, RN, NRN, AutoReply\r\n"); # if defined(MAIL_DATE) - fprintf(mail, "Date: %s\n", + fprintf(mail, "Date: %s\r\n", arpadate(&TargetTime)); # endif /* MAIL_DATE */ for (env = e->envp; *env; env++) - fprintf(mail, "X-Cron-Env: <%s>\n", + fprintf(mail, "X-Cron-Env: <%s>\r\n", *env); - fprintf(mail, "\n"); + fprintf(mail, "\r\n"); /* this was the first char from the pipe */ Index: stable/9/usr.sbin/cron/cron/do_command.c =================================================================== --- stable/9/usr.sbin/cron/cron/do_command.c (revision 244958) +++ stable/9/usr.sbin/cron/cron/do_command.c (working copy) @@ -147,7 +147,7 @@ #ifdef USE_SIGCHLD /* our parent is watching for our death by catching SIGCHLD. we * do not care to watch for our children's deaths this way -- we - * use wait() explictly. so we have to disable the signal (which + * use wait() explicitly. so we have to disable the signal (which * was inherited from the parent). */ (void) signal(SIGCHLD, SIG_DFL); @@ -488,19 +488,25 @@ warn("%s", MAILCMD); (void) _exit(ERROR_EXIT); } - fprintf(mail, "From: %s (Cron Daemon)\n", usernm); - fprintf(mail, "To: %s\n", mailto); - fprintf(mail, "Subject: Cron <%s@%s> %s\n", + fprintf(mail, "From: (Cron Daemon) <%s>\r\n", usernm); + fprintf(mail, "To: <%s>\r\n", mailto); + fprintf(mail, "Subject: Cron <%s@%s> %s\r\n", usernm, first_word(hostname, "."), e->cmd); + /* RFC3834 */ + fprintf(mail, "Auto-Submitted: auto-generated\r\n"); + /* RFC2076 */ + fprintf(mail, "Precedence: bulk\r\n"); + /* http://msdn.microsoft.com/en-us/library/ee219609%28v=EXCHG.80%29.aspx */ + fprintf(mail, "X-Auto-Response-Suppress: OOF, DR, RN, NRN, AutoReply\r\n"); # if defined(MAIL_DATE) - fprintf(mail, "Date: %s\n", + fprintf(mail, "Date: %s\r\n", arpadate(&TargetTime)); # endif /* MAIL_DATE */ for (env = e->envp; *env; env++) - fprintf(mail, "X-Cron-Env: <%s>\n", + fprintf(mail, "X-Cron-Env: <%s>\r\n", *env); - fprintf(mail, "\n"); + fprintf(mail, "\r\n"); /* this was the first char from the pipe */ --- cron_2013-01-02.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 19:10:23 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 76727145 for ; Wed, 2 Jan 2013 19:10:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C2F7A1E2B for ; Wed, 2 Jan 2013 19:10:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02JA8wN065897 for ; Wed, 2 Jan 2013 19:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02JA8gm065896; Wed, 2 Jan 2013 19:10:08 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 19:10:08 GMT Resent-Message-Id: <201301021910.r02JA8gm065896@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, YMFTbZRmWCjgSc Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7DDF9C6 for ; Wed, 2 Jan 2013 19:03:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4074E1DDE for ; Wed, 2 Jan 2013 19:03:32 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r02J3Tqf019904 for ; Wed, 2 Jan 2013 19:03:29 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r02J3TDN019903; Wed, 2 Jan 2013 19:03:29 GMT (envelope-from nobody) Message-Id: <201301021903.r02J3TDN019903@red.freebsd.org> Date: Wed, 2 Jan 2013 19:03:29 GMT From: YMFTbZRmWCjgSc To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174907: wWTRSvMG X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 19:10:23 -0000 >Number: 174907 >Category: misc >Synopsis: wWTRSvMG >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 19:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: YMFTbZRmWCjgSc >Release: DSbrUAjDaf >Organization: EPYKUSchXljdLLDzsjP >Environment: Four score and seven minutes ago, I read a sweet article. Lol thnkas >Description: Four score and seven minutes ago, I read a sweet article. Lol thnkas >How-To-Repeat: Four score and seven minutes ago, I read a sweet article. Lol thnkas >Fix: Four score and seven minutes ago, I read a sweet article. Lol thnkas >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 19:20:17 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E7E81486 for ; Wed, 2 Jan 2013 19:20:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id CD36E1EB1 for ; Wed, 2 Jan 2013 19:20:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02JKHp6066995 for ; Wed, 2 Jan 2013 19:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02JKHx4066994; Wed, 2 Jan 2013 19:20:17 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 19:20:17 GMT Resent-Message-Id: <201301021920.r02JKHx4066994@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Helmut Schneider Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8448C37E for ; Wed, 2 Jan 2013 19:13:23 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 59FFE1E63 for ; Wed, 2 Jan 2013 19:13:23 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r02JDMNc036153 for ; Wed, 2 Jan 2013 19:13:22 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r02JDMok036152; Wed, 2 Jan 2013 19:13:22 GMT (envelope-from nobody) Message-Id: <201301021913.r02JDMok036152@red.freebsd.org> Date: Wed, 2 Jan 2013 19:13:22 GMT From: Helmut Schneider To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174908: "unsupportable block size 0" after upgrading from 9.0-RELEASE-p5 to 9.1-RELEASE X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 19:20:18 -0000 >Number: 174908 >Category: kern >Synopsis: "unsupportable block size 0" after upgrading from 9.0-RELEASE-p5 to 9.1-RELEASE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 19:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Helmut Schneider >Release: 9.0-RELEASE-p5 >Organization: >Environment: FreeBSD BSDHelmut.charlieroot.de 9.0-RELEASE-p5 FreeBSD 9.0-RELEASE-p5 #20 r244958M: Wed Jan 2 17:29:17 CET 2013 root@BSDHelmut.charlieroot.de:/usr/obj/usr/src/sys/GENERIC-QUOTA-PF-ALTQ amd64 >Description: During the upgrade process from 9.0 to 9.1 (I fetched new sources via svn) after booting the new kernel the system stops booting with error above. Booting kernel.old (9.0) is still fine. The machine is virtual on ESXi 5.1. I found a post[0] related to NAS4Free that might describe a similiar error but before trying that I'd like to ask what information or further steps are required. Thanks, Helmut N.B.: freebsd-update failed with "cannot open files/.gz: No such file or directory" so I compiled the kernel myself which I did many times before in the past. [0] http://forums.nas4free.org/viewtopic.php?f=16&t=1020 [helmut@BSDHelmut ~]$ dmesg -a 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-p5 #20 r244958M: Wed Jan 2 17:29:17 CET 2013 root@BSDHelmut.charlieroot.de:/usr/obj/usr/src/sys/GENERIC-QUOTA-PF-ALTQ amd64 CPU: Intel(R) Xeon(R) CPU E5420 @ 2.50GHz (2500.09-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 Features=0xfa3fbff Features2=0x80082201 AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 2046697472 (1951 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 4 package(s) x 1 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "HPET" frequency 14318180 Hz quality 950 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x10c0-0x10cf at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 7.3 (no driver attached) pci0: at device 7.7 (no driver attached) vgapci0: port 0x10d0-0x10df mem 0xd8000000-0xdbffffff,0xd0800000-0xd0ffffff irq 16 at device 15.0 on pci0 pcib2: at device 17.0 on pci0 pci2: on pcib2 em0: port 0x2000-0x203f mem 0xd1020000-0xd103ffff,0xd1000000-0xd100ffff irq 18 at device 0.0 on pci2 em0: Memory Access and/or Bus Master bits were not set! em0: Ethernet address: 00:0c:29:94:76:2c uhci0: port 0x2040-0x205f irq 16 at device 2.0 on pci2 usbus0: on uhci0 ehci0: mem 0xd1010000-0xd1010fff irq 17 at device 3.0 on pci2 usbus1: EHCI version 1.0 usbus1: on ehci0 pcib3: at device 21.0 on pci0 pci3: on pcib3 mpt0: port 0x4000-0x40ff mem 0xd2410000-0xd2413fff,0xd2400000-0xd240ffff irq 18 at device 0.0 on pci3 mpt0: MPI Version=1.5.0.0 pcib4: at device 21.1 on pci0 pci4: on pcib4 pcib5: at device 21.2 on pci0 pci5: on pcib5 pcib6: at device 21.3 on pci0 pci6: on pcib6 pcib7: at device 21.4 on pci0 pci7: on pcib7 pcib8: at device 21.5 on pci0 pci8: on pcib8 pcib9: at device 21.6 on pci0 pci9: on pcib9 pcib10: at device 21.7 on pci0 pci10: on pcib10 pcib11: at device 22.0 on pci0 pci11: on pcib11 pcib12: at device 22.1 on pci0 pci12: on pcib12 pcib13: at device 22.2 on pci0 pci13: on pcib13 pcib14: at device 22.3 on pci0 pci14: on pcib14 pcib15: at device 22.4 on pci0 pci15: on pcib15 pcib16: at device 22.5 on pci0 pci16: on pcib16 pcib17: at device 22.6 on pci0 pci17: on pcib17 pcib18: at device 22.7 on pci0 pci18: on pcib18 pcib19: at device 23.0 on pci0 pci19: on pcib19 pcib20: at device 23.1 on pci0 pci20: on pcib20 pcib21: at device 23.2 on pci0 pci21: on pcib21 pcib22: at device 23.3 on pci0 pci22: on pcib22 pcib23: at device 23.4 on pci0 pci23: on pcib23 pcib24: at device 23.5 on pci0 pci24: on pcib24 pcib25: at device 23.6 on pci0 pci25: on pcib25 pcib26: at device 23.7 on pci0 pci26: on pcib26 pcib27: at device 24.0 on pci0 pci27: on pcib27 pcib28: at device 24.1 on pci0 pci28: on pcib28 pcib29: at device 24.2 on pci0 pcib29: failed to allocate initial I/O port window: 0xf000-0xffff pci29: on pcib29 pcib30: at device 24.3 on pci0 pci30: on pcib30 pcib31: at device 24.4 on pci0 pci31: on pcib31 pcib32: at device 24.5 on pci0 pci32: on pcib32 pcib33: at device 24.6 on pci0 pci33: on pcib33 pcib34: at device 24.7 on pci0 pci34: on pcib34 acpi_acad0: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 atkbdc0: port 0x60,0x64 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 IntelliMouse, device ID 3 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 acpi_throttle0: on cpu0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 acpi_throttle2: on cpu2 acpi_throttle2: failed to attach P_CNT device_attach: acpi_throttle2 attach returned 6 acpi_throttle3: on cpu3 acpi_throttle3: failed to attach P_CNT device_attach: acpi_throttle3 attach returned 6 Timecounters tick every 10.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ugen0.1: <0x15ad> at usbus0 uhub0: <0x15ad UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <0x15ad> at usbus1 uhub1: <0x15ad EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 uhub0: 2 ports with 2 removable, self powered ugen0.2: at usbus0 uhid0: on usbus0 ums0: on usbus0 ums0: 16 buttons and [XYZT] coordinates ID=0 uhub1: 6 ports with 6 removable, self powered ugen0.3: at usbus0 uhub2: on usbus0 uhub2: 7 ports with 7 removable, self powered da0 at mpt0 bus 0 scbus2 target 0 lun 0 da0: Fixed Direct Access SCSI-5 device da0: 300.000MB/s transfers da0: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) da1 at mpt0 bus 0 scbus2 target 1 lun 0 da1: Fixed Direct Access SCSI-5 device da1: 300.000MB/s transfers da1: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) ################################# ######## This is where 9.1 halts. ################################# cd0 at ata1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #3 Launched! GEOM_MIRROR: Device mirror/gm0 launched (2/2). Trying to mount root from ufs:/dev/mirror/gm0p2 [rw]... Setting hostuuid: 564d9fa5-3d8a-0076-a894-6b8b0f4c8654. Setting hostid: 0x70173553. Entropy harvesting: interrupts ethernet point_to_point kickstart. Starting file system checks: /dev/mirror/gm0p2: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p2: clean, 276610 free (1106 frags, 34438 blocks, 0.1% fragmentation) /dev/mirror/gm0p15: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p15: clean, 1706896 free (2376 frags, 213065 blocks, 0.1% fragmentation) /dev/mirror/gm0p14: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p14: clean, 1013005 free (61 frags, 126618 blocks, 0.0% fragmentation) /dev/mirror/gm0p4: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p4: clean, 1170274 free (86162 frags, 135514 blocks, 1.7% fragmentation) /dev/mirror/gm0p5: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p5: clean, 339791 free (6087 frags, 41713 blocks, 0.6% fragmentation) /dev/mirror/gm0p7: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p7: clean, 100829 free (61 frags, 12596 blocks, 0.0% fragmentation) /dev/mirror/gm0p12: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p12: clean, 778599 free (1383 frags, 97152 blocks, 0.1% fragmentation) /dev/mirror/gm0p6: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p6: clean, 834727 free (199 frags, 104316 blocks, 0.0% fragmentation) /dev/mirror/gm0p9: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p9: clean, 993315 free (123 frags, 124149 blocks, 0.0% fragmentation) /dev/mirror/gm0p8: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p8: clean, 1012401 free (81 frags, 126540 blocks, 0.0% fragmentation) /dev/mirror/gm0p10: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p10: clean, 1506359 free (45575 frags, 182598 blocks, 2.2% fragmentation) /dev/mirror/gm0p13: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p13: clean, 5896961 free (281 frags, 737085 blocks, 0.0% fragmentation) /dev/mirror/gm0p11: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0p11: clean, 2396541 free (1813 frags, 299341 blocks, 0.0% fragmentation) Mounting local file systems: WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 2 20:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D9C9FE88 for ; Wed, 2 Jan 2013 20:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id BD4C5E7 for ; Wed, 2 Jan 2013 20:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02K00ff067910 for ; Wed, 2 Jan 2013 20:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02K000o067906; Wed, 2 Jan 2013 20:00:00 GMT (envelope-from gnats) Resent-Date: Wed, 2 Jan 2013 20:00:00 GMT Resent-Message-Id: <201301022000.r02K000o067906@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Fabian Keil Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8F74AE33 for ; Wed, 2 Jan 2013 19:51:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 6210BBF for ; Wed, 2 Jan 2013 19:51:49 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r02JpmTx099076 for ; Wed, 2 Jan 2013 19:51:48 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r02Jpm2s099069; Wed, 2 Jan 2013 19:51:48 GMT (envelope-from nobody) Message-Id: <201301021951.r02Jpm2s099069@red.freebsd.org> Date: Wed, 2 Jan 2013 19:51:48 GMT From: Fabian Keil To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174910: [patch][regression] sysctl error message includes memory address instead of string X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 20:00:00 -0000 >Number: 174910 >Category: misc >Synopsis: [patch][regression] sysctl error message includes memory address instead of string >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 20:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Fabian Keil >Release: HEAD >Organization: >Environment: FreeBSD r500.local 10.0-CURRENT FreeBSD 10.0-CURRENT #537 r+6795152: Tue Jan 1 01:38:41 CET 2013 fk@r500.local:/usr/obj/usr/src/sys/ZOEY amd64 >Description: Since r244198 the sysctl error message shown when trying to modify read only tunables ends with a memory address instead of the string potentially containing the line number. >How-To-Repeat: fk@r500 ~ $sysctl vfs.zfs.zio.exclude_metadata=0 sysctl: oid 'vfs.zfs.zio.exclude_metadata' is a read only tunable0x7fffffffc800 >Fix: Apply attached patch. Patch attached with submission follows: >From d0996d442d063089705dec2fe7e48848b07dd531 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 2 Jan 2013 20:18:37 +0100 Subject: [PATCH] Fix sysctl complaint when trying to modify a tunable that is read only Since r244198 the address of the line string (empty, or a line number in case of -f) was shown instead of the string itself: fk@r500 ~ $sysctl vfs.zfs.zio.exclude_metadata=0 sysctl: oid 'vfs.zfs.zio.exclude_metadata' is a read only tunable0x7fffffffc820 sysctl: Tunable values are set in /boot/loader.conf --- sbin/sysctl/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 3df4f01..d62e52a 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -266,7 +266,7 @@ parse(const char *string, int lineno) if (!(kind & CTLFLAG_WR)) { if (kind & CTLFLAG_TUN) { - warnx("oid '%s' is a read only tunable%p", bufp, line); + warnx("oid '%s' is a read only tunable%s", bufp, line); warnx("Tunable values are set in /boot/loader.conf"); } else warnx("oid '%s' is read only%s", bufp, line); -- 1.8.0.3 >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 01:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A5E1B8FA for ; Thu, 3 Jan 2013 01:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 75590D2E for ; Thu, 3 Jan 2013 01:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r031005u088626 for ; Thu, 3 Jan 2013 01:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03100Sn088625; Thu, 3 Jan 2013 01:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 01:00:00 GMT Resent-Message-Id: <201301030100.r03100Sn088625@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E72A68DE for ; Thu, 3 Jan 2013 00:57:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C3210D1E for ; Thu, 3 Jan 2013 00:57:17 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r030vH45016661 for ; Thu, 3 Jan 2013 00:57:17 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r030vHMM016660; Thu, 3 Jan 2013 00:57:17 GMT (envelope-from nobody) Message-Id: <201301030057.r030vHMM016660@red.freebsd.org> Date: Thu, 3 Jan 2013 00:57:17 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174918: Unknown mount filesystem error messages are confusing X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 01:00:00 -0000 >Number: 174918 >Category: kern >Synopsis: Unknown mount filesystem error messages are confusing >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 01:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 9.1-PRERELEASE >Organization: EMC Isilon >Environment: FreeBSD forza.west.isilon.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r+336aa21: Wed Dec 19 18:05:45 PST 2012 gcooper@forza.west.isilon.com:/usr/obj/usr/src/sys/FORZA amd64 >Description: Error messages printed out by mount(2) are unfortunately not helpful when trying to determine whether or not an unsupported (or non-existent) filesystem is invoked. Example: $ sudo mount -t foobarfs foo $PWD mount: foo: Operation not supported by device The issue is with the following call in vfs_mount.c: 1079 if (vfsp == NULL) 1080 return (ENODEV); 1081 if (jailed(td->td_ucred) && !(vfsp->vfc_flags & VFCF_JAIL)) 1082 return (EPERM); and this call in vfs_init.c: 131 /* Try to load the respective module. */ 132 *error = kern_kldload(td, fstype, &fileid); 133 if (*error) 134 return (NULL); It seems like the error should be either EINVAL or ENOENT, but doing the latter in mount(2) would be bad form. >How-To-Repeat: mount -t foobarfs foo / >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 01:03:14 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1E5D8967; Thu, 3 Jan 2013 01:03:14 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 94539D4C; Thu, 3 Jan 2013 01:03:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03136db089260; Thu, 3 Jan 2013 01:03:06 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r0312wLm089256; Thu, 3 Jan 2013 01:02:58 GMT (envelope-from linimon) Date: Thu, 3 Jan 2013 01:02:58 GMT Message-Id: <201301030102.r0312wLm089256@freefall.freebsd.org> To: e.scastan@gmail.com.au, linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: junk/174907: wWTRSvMG X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 01:03:14 -0000 Synopsis: wWTRSvMG State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Thu Jan 3 01:02:46 UTC 2013 State-Changed-Why: spam http://www.freebsd.org/cgi/query-pr.cgi?pr=174907 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 07:40:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4E1FBA0B for ; Thu, 3 Jan 2013 07:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 369EB27B for ; Thu, 3 Jan 2013 07:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r037e174012615 for ; Thu, 3 Jan 2013 07:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r037e1QK012614; Thu, 3 Jan 2013 07:40:01 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 07:40:01 GMT Resent-Message-Id: <201301030740.r037e1QK012614@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, LnxbofDpGO Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0880C98B for ; Thu, 3 Jan 2013 07:32:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id EC62422F for ; Thu, 3 Jan 2013 07:32:12 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r037WCdM099353 for ; Thu, 3 Jan 2013 07:32:12 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r037WC8P099352; Thu, 3 Jan 2013 07:32:12 GMT (envelope-from nobody) Message-Id: <201301030732.r037WC8P099352@red.freebsd.org> Date: Thu, 3 Jan 2013 07:32:12 GMT From: LnxbofDpGO To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174928: TIYnVnRXXbQTrF X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 07:40:01 -0000 >Number: 174928 >Category: misc >Synopsis: TIYnVnRXXbQTrF >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 07:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: LnxbofDpGO >Release: pijhFhjlx >Organization: IzfisXxGwLMOi >Environment: This was so hlefupl and easy! Do you have any articles on rehab? >Description: This was so hlefupl and easy! Do you have any articles on rehab? >How-To-Repeat: This was so hlefupl and easy! Do you have any articles on rehab? >Fix: This was so hlefupl and easy! Do you have any articles on rehab? >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 11:00:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4E4256AB for ; Thu, 3 Jan 2013 11:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 2DFD7F47 for ; Thu, 3 Jan 2013 11:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03B016G025563 for ; Thu, 3 Jan 2013 11:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03B01TD025557; Thu, 3 Jan 2013 11:00:01 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 11:00:01 GMT Resent-Message-Id: <201301031100.r03B01TD025557@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Laabs Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0A68E62A for ; Thu, 3 Jan 2013 10:53:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D96ADF07 for ; Thu, 3 Jan 2013 10:53:48 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r03ArlAi024689 for ; Thu, 3 Jan 2013 10:53:47 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r03Arlbd024688; Thu, 3 Jan 2013 10:53:47 GMT (envelope-from nobody) Message-Id: <201301031053.r03Arlbd024688@red.freebsd.org> Date: Thu, 3 Jan 2013 10:53:47 GMT From: Martin Laabs To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174933: if_nameindex fail in linuxulator enviroment X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 11:00:01 -0000 >Number: 174933 >Category: kern >Synopsis: if_nameindex fail in linuxulator enviroment >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 11:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Martin Laabs >Release: 9.0-RELEASE-p3 >Organization: >Environment: reeBSD pc.martinlaabs.de 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The function call if_nameindex out of the libc failes (return NULL) if it is called out of a linux application. The cause of the failure is an inappropriate call of socket likely called in the __opensock function in the libc. This can be seen out of a ktrace dump: [...] 3319 a.out CALL linux_socketcall(0x1,0xffffc6d4) 3319 a.out RET linux_socketcall -1 errno 97 Address family not supported by protocol family [...] The cause of the wrong arguments for this socket call is not known to me up to now. For all the test I use the f10 linux environment. Tests with different linux-base versions are pending. Maybe someone who installed them can do it. On request I can send the linux binary compiled on debian with a 2.6.18 kernel and libc-2.3.6. >How-To-Repeat: Compile the following program on FreeBSD and Linux: Check the return code - maybe the program will segfault if run as linux binary. #include #include #include #include #include #include int main(int argc, char *argv[]) { struct if_nameindex *ifn; /*Can be omitted - just to test if this makes a difference since the __opensock function remember the last socket options*/ socket(AF_INET, SOCK_DGRAM, 0); ifn=if_nameindex(); if(ifn==0) err("if_nameindex failed\n"); return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 12:24:29 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A73C59F0; Thu, 3 Jan 2013 12:24:29 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 802A635A; Thu, 3 Jan 2013 12:24:29 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03COTsD045399; Thu, 3 Jan 2013 12:24:29 GMT (envelope-from gjb@freefall.freebsd.org) Received: (from gjb@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03COR7p045395; Thu, 3 Jan 2013 12:24:27 GMT (envelope-from gjb) Date: Thu, 3 Jan 2013 12:24:27 GMT Message-Id: <201301031224.r03COR7p045395@freefall.freebsd.org> To: liminlove@sohu.com, gjb@FreeBSD.org, freebsd-bugs@FreeBSD.org, gnats-adm@FreeBSD.org From: gjb@FreeBSD.org Subject: Re: junk/174928: TIYnVnRXXbQTrF X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 12:24:29 -0000 Synopsis: TIYnVnRXXbQTrF State-Changed-From-To: open->closed State-Changed-By: gjb State-Changed-When: Thu Jan 3 12:24:07 UTC 2013 State-Changed-Why: Spam. Responsible-Changed-From-To: freebsd-bugs->gnats-adm Responsible-Changed-By: gjb Responsible-Changed-When: Thu Jan 3 12:24:07 UTC 2013 Responsible-Changed-Why: Spam. http://www.freebsd.org/cgi/query-pr.cgi?pr=174928 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 12:40:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 25DC7EA7 for ; Thu, 3 Jan 2013 12:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id EC76962F for ; Thu, 3 Jan 2013 12:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Ce0ub045684 for ; Thu, 3 Jan 2013 12:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03Ce0At045679; Thu, 3 Jan 2013 12:40:00 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 12:40:00 GMT Resent-Message-Id: <201301031240.r03Ce0At045679@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, IWAMOTO Kouichi Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 553F5E20 for ; Thu, 3 Jan 2013 12:37:24 +0000 (UTC) (envelope-from sue@iwmt.org) Received: from mail2.iwmt.org (unknown [IPv6:2001:3e0:2d0::1]) by mx1.freebsd.org (Postfix) with ESMTP id 27867617 for ; Thu, 3 Jan 2013 12:37:23 +0000 (UTC) Received: by mail2.iwmt.org (Postfix, from userid 1001) id 765C91044C4F; Thu, 3 Jan 2013 21:37:22 +0900 (JST) Message-Id: <20130103123722.765C91044C4F@mail2.iwmt.org> Date: Thu, 3 Jan 2013 21:37:22 +0900 (JST) From: IWAMOTO Kouichi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: misc/174937: vt520's termcap entry lacks sc capability X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: IWAMOTO Kouichi List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 12:40:01 -0000 >Number: 174937 >Category: misc >Synopsis: vt520's termcap entry lacks sc capability >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 12:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: IWAMOTO Kouichi >Release: FreeBSD 9.1-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD tomoko.iwmt.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Wed Sep 5 11:21:28 JST 2012 sue@tomoko.iwmt.org:/usr/obj/usr/src/sys/TOMOKO amd64 >Description: In termcap, vt520 entry has rc (restore cursor) capability, but doesn't have sc (save cursor) capability. Some termcap based application (e.g. less) reports following warning message. "TERMCAP", line 0, terminal 'vt520': restore_cursor but no save_cursor >How-To-Repeat: % TERM=vt520 less -Ff /dev/null >Fix: --- share/termcap/termcap.src.orig 2013-01-03 21:13:34.000000000 +0900 +++ share/termcap/termcap.src 2013-01-03 21:17:41.000000000 +0900 @@ -2729,7 +2729,7 @@ :kb=\b:kd=\E[B:ke=\E>:kl=\E[D:\ :kr=\E[C:ks=\E=:ku=\E[A:nd=\E[C:\ :rc=\E8:rf=/usr/lib/tabset/vt100:\ - :se=\E[m:so=\E[7m:\ + :sc=\E7::se=\E[m:so=\E[7m:\ :sr=\EM:ue=\E[m:up=\E[A:us=\E[4m:nl=\E[B:ko=do,nd,up: # vt520nam|vt520-nam|v520n|DEC VT520 with no automargins:\ >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 14:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B0524C6B for ; Thu, 3 Jan 2013 14:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 976FCA2C for ; Thu, 3 Jan 2013 14:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03EK0Xm051334 for ; Thu, 3 Jan 2013 14:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03EK0hQ051333; Thu, 3 Jan 2013 14:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 14:20:00 GMT Resent-Message-Id: <201301031420.r03EK0hQ051333@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sébastien Santoro Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 03411B9C for ; Thu, 3 Jan 2013 14:15:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D105DA02 for ; Thu, 3 Jan 2013 14:15:25 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r03EFPpY074609 for ; Thu, 3 Jan 2013 14:15:25 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r03EFPBW074608; Thu, 3 Jan 2013 14:15:25 GMT (envelope-from nobody) Message-Id: <201301031415.r03EFPBW074608@red.freebsd.org> Date: Thu, 3 Jan 2013 14:15:25 GMT From: Sébastien Santoro To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174940: New port: misc/valspeak X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 14:20:00 -0000 >Number: 174940 >Category: misc >Synopsis: New port: misc/valspeak >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 14:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sébastien Santoro >Release: 8.1-RELEASE >Organization: >Environment: FreeBSD grip.espace-win.org 8.1-RELEASE-p11 FreeBSD 8.1-RELEASE-p11 #0: Mon Jun 11 21:02:13 UTC 2012 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: Valspeak is a filter that converts English text to valspeak. Valspeak reads from standard input and writes to standard output. We have a misc/jive port since 1997, but it were released on net.sources in 1986 with another program, valspeak. I packaged it to repair this omission. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # valspeak # valspeak/Makefile # valspeak/distinfo # valspeak/pkg-descr # valspeak/files # valspeak/files/patch-Makefile # echo c - valspeak mkdir -p valspeak > /dev/null 2>&1 echo x - valspeak/Makefile sed 's/^X//' >valspeak/Makefile << '2004aca3c26c228d0c0e0e1efbca6998' X# $FreeBSD$ X XPORTNAME= valspeak XPORTVERSION= 1.0 XCATEGORIES= misc XMASTER_SITES= http://dereckson.devio.us/software/${PORTNAME}/ X XMAINTAINER= dereckson@gmail.com XCOMMENT= Filter that converts English text to valspeak X XCONFLICTS= filters-* talkfilters-* X XRESTRICTED= 1986 software shared on the net.sources newsgroup \ X with the intent to redistribute it, but without any \ X license or author information clearly available. X XPLIST_FILES= bin/valspeak X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/valspeak ${PREFIX}/bin X X.include 2004aca3c26c228d0c0e0e1efbca6998 echo x - valspeak/distinfo sed 's/^X//' >valspeak/distinfo << '95e1adcbb5b38b86e55357401f5813f6' XSHA256 (valspeak-1.0.tar.gz) = 08148c51154e4f071f55abf714b18af00244898538902bee4a8c9d82cacd8295 XSIZE (valspeak-1.0.tar.gz) = 1278 95e1adcbb5b38b86e55357401f5813f6 echo x - valspeak/pkg-descr sed 's/^X//' >valspeak/pkg-descr << '7b151b5817b5af52a03faf4708fb089f' XValspeak is a filter that converts English text to valspeak. XValspeak reads from standard input and writes to standard output. 7b151b5817b5af52a03faf4708fb089f echo c - valspeak/files mkdir -p valspeak/files > /dev/null 2>&1 echo x - valspeak/files/patch-Makefile sed 's/^X//' >valspeak/files/patch-Makefile << '5007fca68815b38fffb2e09aa5468064' Xdiff --git Makefile Makefile Xindex b46cf0e..07367ff 100644 X--- Makefile X+++ Makefile X@@ -1,6 +1,7 @@ X- X CFLAGS= -O X X+all: valspeak X+ X valspeak: valspeak.l X lex valspeak.l X cc $(CFLAGS) lex.yy.c -ll -o valspeak 5007fca68815b38fffb2e09aa5468064 exit >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 15:40:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6ADE7FE7 for ; Thu, 3 Jan 2013 15:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 527DDF56 for ; Thu, 3 Jan 2013 15:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Fe1Oh055859 for ; Thu, 3 Jan 2013 15:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03Fe1vx055858; Thu, 3 Jan 2013 15:40:01 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 15:40:01 GMT Resent-Message-Id: <201301031540.r03Fe1vx055858@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sandra Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A26F4EEE for ; Thu, 3 Jan 2013 15:38:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 93790F47 for ; Thu, 3 Jan 2013 15:38:38 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r03FccIO007034 for ; Thu, 3 Jan 2013 15:38:38 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r03FccYc007033; Thu, 3 Jan 2013 15:38:38 GMT (envelope-from nobody) Message-Id: <201301031538.r03FccYc007033@red.freebsd.org> Date: Thu, 3 Jan 2013 15:38:38 GMT From: Sandra To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174948: owner@ always have ZFS ACL full permissions. Should not be the case. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 15:40:01 -0000 >Number: 174948 >Category: misc >Synopsis: owner@ always have ZFS ACL full permissions. Should not be the case. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 15:40:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sandra >Release: 9 >Organization: >Environment: >Description: The Oracle ZFS specs says http://docs.oracle.com/cd/E19253-01/819-5461/ftyxi/index.html "The owner of a file is granted the write_acl permission unconditionally, even if the permission is explicitly denied." But it is not possible to restrict the owner in any way. The following is the output from the script in "How to repeat the problem", which shows that removing all ACL's on owner@ have no effect. p="/tank/project1" f="$p/test2" u="user1" rm -f $f setfacl -b $p setfacl -m group@::fd:allow $p || exit 1 setfacl -m everyone@::fd:allow $p || exit 1 setfacl -m owner@::fd:allow $p || exit 1 setfacl -m u:$u:rwx:fd:allow $p || exit 1 setfacl -m u:$u:aA:fd:deny $p || exit 1 getfacl $p # file: /tank/project1 # owner: root # group: wheel user:user1:------aA------:fd----:deny user:user1:rwx-----------:fd----:allow owner@:--------------:fd----:allow group@:--------------:fd----:allow everyone@:--------------:fd----:allow su -m $u -c "echo test > $f" setfacl -m u:$u::allow $f || exit 1 getfacl $f # file: /tank/project1/test2 # owner: user1 # group: wheel user:user1:------aA------:------:deny user:user1:--------------:------:allow owner@:--------------:------:allow group@:--------------:------:allow everyone@:--------------:------:allow su -m $u -c "touch -amct 191212121212 $f" ls -l $f ----------+ 1 user1 wheel 5 Dec 12 1912 /tank/project1/test2 su -m $u -c "cat $f" cat: /tank/project1/test2: Permission denied su -m $u -c "chmod 777 $f" ls -l $f -rwxrwxrwx+ 1 user1 wheel 5 Dec 12 1912 /tank/project1/test2 su -m $u -c "cat $f" test su -m $u -c "setfacl -m u:$u:full_set:allow $f" su -m $u -c "setfacl -x u:$u::deny $f" getfacl $f # file: /tank/project1/test2 # owner: user1 # group: wheel user:user1:rwxpDdaARWcCos:------:allow owner@:rwxp--aARWcCos:------:allow group@:rwxp--a-R-c--s:------:allow everyone@:rwxp--a-R-c--s:------:allow >How-To-Repeat: p="/tank/project1" f="$p/test2" u="user1" rm -f $f setfacl -b $p setfacl -m group@::fd:allow $p || exit 1 setfacl -m everyone@::fd:allow $p || exit 1 setfacl -m owner@::fd:allow $p || exit 1 setfacl -m u:$u:rwx:fd:allow $p || exit 1 setfacl -m u:$u:aA:fd:deny $p || exit 1 getfacl $p su -m $u -c "echo test > $f" setfacl -m u:$u::allow $f || exit 1 getfacl $f su -m $u -c "touch -amct 191212121212 $f" ls -l $f su -m $u -c "cat $f" su -m $u -c "chmod 777 $f" ls -l $f su -m $u -c "cat $f" su -m $u -c "setfacl -m u:$u:full_set:allow $f" su -m $u -c "setfacl -x u:$u::deny $f" getfacl $f >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 15:50:03 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5A9CFBEE for ; Thu, 3 Jan 2013 15:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 425E5FFF for ; Thu, 3 Jan 2013 15:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Fo330056270 for ; Thu, 3 Jan 2013 15:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03Fo3tV056269; Thu, 3 Jan 2013 15:50:03 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 15:50:03 GMT Resent-Message-Id: <201301031550.r03Fo3tV056269@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sandra Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3AD4C3B1 for ; Thu, 3 Jan 2013 15:42:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 13BC0F88 for ; Thu, 3 Jan 2013 15:42:19 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r03FgIhw023199 for ; Thu, 3 Jan 2013 15:42:18 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r03FgIf8023198; Thu, 3 Jan 2013 15:42:18 GMT (envelope-from nobody) Message-Id: <201301031542.r03FgIf8023198@red.freebsd.org> Date: Thu, 3 Jan 2013 15:42:18 GMT From: Sandra To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174949: ZFS ACL: rwxp required to mkdir. p should not be required. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 15:50:03 -0000 >Number: 174949 >Category: misc >Synopsis: ZFS ACL: rwxp required to mkdir. p should not be required. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 15:50:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sandra >Release: >Organization: >Environment: >Description: ZFS ACL. p is suppose to be permission to append to files, and also not being implemented. For some reason p is required to mkdir. This is the output from the script in "How to repeat the problem" which shows this bug. p="/tank/project1" d="$p/test3" u="user1" rm -rf $f $d $e $g setfacl -b $p setfacl -m group@::fd:allow $p || exit 1 setfacl -m everyone@::fd:allow $p || exit 1 setfacl -m owner@:rwx:fd:allow $p || exit 1 setfacl -m u:$u:rwx:fd:allow $p || exit 1 getfacl $p # file: /tank/project1 # owner: root # group: wheel user:user1:rwx-----------:fd----:allow owner@:rwx-----------:fd----:allow group@:--------------:fd----:allow everyone@:--------------:fd----:allow su -m $u -c "mkdir $d" mkdir: /tank/project1/test3: Permission denied setfacl -m u:$u:rwxp:fd:allow $p || exit 1 su -m $u -c "mkdir $d" getfacl $d # file: /tank/project1/test3 # owner: user1 # group: wheel user:user1:rwxp----------:fd----:allow owner@:rwx-----------:fd----:allow group@:--------------:fd----:allow everyone@:--------------:fd----:allow # all expect p rm -rf $d setfacl -m u:$u:rwxDdaARWcCos:fd:allow $p || exit 1 su -m $u -c "mkdir $d" mkdir: /tank/project1/test3: Permission denied getfacl $d getfacl: /tank/project1/test3: stat() failed: No such file or directory >How-To-Repeat: p="/tank/project1" d="$p/test3" u="user1" rm -rf $d setfacl -b $p setfacl -m group@::fd:allow $p || exit 1 setfacl -m everyone@::fd:allow $p || exit 1 setfacl -m owner@:rwx:fd:allow $p || exit 1 setfacl -m u:$u:rwx:fd:allow $p || exit 1 getfacl $p su -m $u -c "mkdir $d" setfacl -m u:$u:rwxp:fd:allow $p || exit 1 su -m $u -c "mkdir $d" getfacl $d # all expect p rm -rf $d setfacl -m u:$u:rwxDdaARWcCos:fd:allow $p || exit 1 su -m $u -c "mkdir $d" getfacl $d >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 15:50:03 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A1A4BBF0 for ; Thu, 3 Jan 2013 15:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8A2A2C for ; Thu, 3 Jan 2013 15:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Fo3qE056281 for ; Thu, 3 Jan 2013 15:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03Fo3Pd056280; Thu, 3 Jan 2013 15:50:03 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 15:50:03 GMT Resent-Message-Id: <201301031550.r03Fo3Pd056280@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sandra Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CD7217D9 for ; Thu, 3 Jan 2013 15:47:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A77B7FC5 for ; Thu, 3 Jan 2013 15:47:00 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Fl0GG023762 for ; Thu, 3 Jan 2013 15:47:00 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r03Fl0dA023761; Thu, 3 Jan 2013 15:47:00 GMT (envelope-from nobody) Message-Id: <201301031547.r03Fl0dA023761@red.freebsd.org> Date: Thu, 3 Jan 2013 15:47:00 GMT From: Sandra To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174950: delete ZFS ACL have no effect X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 15:50:03 -0000 >Number: 174950 >Category: misc >Synopsis: delete ZFS ACL have no effect >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 15:50:03 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sandra >Release: 9 >Organization: >Environment: >Description: The d ZFS ACL is suppose to give or deny permission to delete a file. It have no effect. The below is the output from the script in "How to repeat the problem", and please notice: * Eventhough www doesn't have delete permission and there is an explicit deny, rm was possible. p="/tank/project1" f="$p/test2" u="user1" rm -f $f setfacl -b $p setfacl -m group@::fd:allow $p || exit 1 setfacl -m everyone@::fd:allow $p || exit 1 setfacl -m owner@:rwx:fd:allow $p || exit 1 setfacl -m u:$u:full_set:fd:allow $p || exit 1 setfacl -m u:www:rwxa:fd:allow $p || exit 1 setfacl -m u:www:d:fd:deny $p || exit 1 getfacl $p # file: /tank/project1 # owner: root # group: wheel user:www:-----d--------:fd----:deny user:www:rwx---a-------:fd----:allow user:user1:rwxpDdaARWcCos:fd----:allow owner@:rwx-----------:fd----:allow group@:--------------:fd----:allow everyone@:--------------:fd----:allow su -m $u -c "touch $f" getfacl $f # file: /tank/project1/test2 # owner: user1 # group: wheel user:www:-----d--------:------:deny user:www:rw----a-------:------:allow user:user1:rw-pDdaARWcCos:------:allow owner@:rw------------:------:allow group@:--------------:------:allow everyone@:--------------:------:allow su -m www -c "ls -l $f" ls: /tank/project1/test2: Permission denied -rw------- 1 user1 wheel 0 Dec 19 14:23 /tank/project1/test2 su -m www -c "rm $f" ls -l $f ls: /tank/project1/test2: No such file or directory >How-To-Repeat: p="/tank/project1" f="$p/test2" u="user1" rm -f $f setfacl -b $p setfacl -m group@::fd:allow $p || exit 1 setfacl -m everyone@::fd:allow $p || exit 1 setfacl -m owner@:rwx:fd:allow $p || exit 1 setfacl -m u:$u:full_set:fd:allow $p || exit 1 setfacl -m u:www:rwxa:fd:allow $p || exit 1 setfacl -m u:www:d:fd:deny $p || exit 1 getfacl $p su -m $u -c "touch $f" getfacl $f su -m www -c "ls -l $f" su -m www -c "rm $f" ls -l $f >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 16:45:10 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7BBB463D; Thu, 3 Jan 2013 16:45:10 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 56F812FF; Thu, 3 Jan 2013 16:45:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03GjA7s059403; Thu, 3 Jan 2013 16:45:10 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03GjAjl059399; Thu, 3 Jan 2013 16:45:10 GMT (envelope-from linimon) Date: Thu, 3 Jan 2013 16:45:10 GMT Message-Id: <201301031645.r03GjAjl059399@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: ports/174940: [new port]: misc/valspeak, a filter that converts English text to valspeak. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 16:45:10 -0000 Old Synopsis: New port: misc/valspeak New Synopsis: [new port]: misc/valspeak, a filter that converts English text to valspeak. Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs Responsible-Changed-By: linimon Responsible-Changed-When: Thu Jan 3 16:43:56 UTC 2013 Responsible-Changed-Why: The 'misc' GNATS category is only for PRs that do not fit in one of the standard GNATS categories. Refile this as a ports PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=174940 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 18:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B5841EB7 for ; Thu, 3 Jan 2013 18:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 852DD87A for ; Thu, 3 Jan 2013 18:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03I00vs062354 for ; Thu, 3 Jan 2013 18:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03I00jE062353; Thu, 3 Jan 2013 18:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 18:00:00 GMT Resent-Message-Id: <201301031800.r03I00jE062353@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Johnston Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6B213D22 for ; Thu, 3 Jan 2013 17:55:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 5D13083E for ; Thu, 3 Jan 2013 17:55:56 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Htu4u038188 for ; Thu, 3 Jan 2013 17:55:56 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r03Htunn038187; Thu, 3 Jan 2013 17:55:56 GMT (envelope-from nobody) Message-Id: <201301031755.r03Htunn038187@red.freebsd.org> Date: Thu, 3 Jan 2013 17:55:56 GMT From: Mark Johnston To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174952: [patch] textproc/docproj fails to build X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 18:00:00 -0000 >Number: 174952 >Category: misc >Synopsis: [patch] textproc/docproj fails to build >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 18:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Mark Johnston >Release: CURRENT >Organization: >Environment: >Description: The build failed for me with ===> docproj-1.17_6 user must set WITH_JADETEX variable to 'yes' or 'no'. *** [install] Error code 1 Stop in /usr/ports/textproc/docproj. >How-To-Repeat: Build /usr/ports/textproc/docproj. I see there are textproc/docproj-{,no}jadetex ports as well, which set WITH_JADETEX appropriately. >Fix: Use the attached patch. Patch attached with submission follows: diff --git a/textproc/docproj/Makefile b/textproc/docproj/Makefile index 9701bac..60654e3 100644 --- a/textproc/docproj/Makefile +++ b/textproc/docproj/Makefile @@ -53,7 +53,7 @@ RUN_DEPENDS+= jade:${PORTSDIR}/textproc/jade .if defined(JADETEX) WITH_JADETEX= ${JADETEX} .endif -WITH_JADETEX?= +WITH_JADETEX?= no .if defined(PACKAGE_BUILDING) WITH_JADETEX= yes >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 21:31:31 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1F4324F5; Thu, 3 Jan 2013 21:31:31 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id EE3327FC; Thu, 3 Jan 2013 21:31:30 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03LVU7g072275; Thu, 3 Jan 2013 21:31:30 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03LVUxw072271; Thu, 3 Jan 2013 21:31:30 GMT (envelope-from linimon) Date: Thu, 3 Jan 2013 21:31:30 GMT Message-Id: <201301032131.r03LVUxw072271@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: ports/174952: [patch] textproc/docproj fails to build X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 21:31:31 -0000 Synopsis: [patch] textproc/docproj fails to build Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs Responsible-Changed-By: linimon Responsible-Changed-When: Thu Jan 3 21:31:21 UTC 2013 Responsible-Changed-Why: reassign. http://www.freebsd.org/cgi/query-pr.cgi?pr=174952 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DE702318 for ; Thu, 3 Jan 2013 22:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id BC299953 for ; Thu, 3 Jan 2013 22:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03M00K3073166 for ; Thu, 3 Jan 2013 22:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03M00dB073161; Thu, 3 Jan 2013 22:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 22:00:00 GMT Resent-Message-Id: <201301032200.r03M00dB073161@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas Scheffler Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4E8DF6A for ; Thu, 3 Jan 2013 21:57:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 3487C93A for ; Thu, 3 Jan 2013 21:57:02 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Lv17e075735 for ; Thu, 3 Jan 2013 21:57:01 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r03Lv17G075734; Thu, 3 Jan 2013 21:57:01 GMT (envelope-from nobody) Message-Id: <201301032157.r03Lv17G075734@red.freebsd.org> Date: Thu, 3 Jan 2013 21:57:01 GMT From: Thomas Scheffler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174957: IPv6 Node Information Queries use old address format X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:00:00 -0000 >Number: 174957 >Category: misc >Synopsis: IPv6 Node Information Queries use old address format >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 22:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Thomas Scheffler >Release: FreeBSD 9.1 >Organization: Beuth Hochschule Berlin >Environment: FreeBSD nell.ipv6lab.beuth-hochschule.de 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: FreeBSD joins the wrong IPv6 Node Information (NI) Group Address. The ping6 tool also generates the wrong IPv6 NI Group Address, when using the NI option. RFC4620 defines the prefix FF02:0:0:0:0:2:FF00::/104 for use of the NI Group Address (http://tools.ietf.org/html/rfc4620). Earlier versions of the draft specified the prefix FF02:0:0:0:0:2::/96. FreeBSD is using IPv6 network code derived from the KAME project that has not be updated to conform with RFC4620. A patch for ping6.c and in6_ifattach.c is included that should fix this particular problem. >How-To-Repeat: > ping6 -I msk0 -N nell PING6(56=40+8+8 bytes) fe80::21f:d0ff:fe3c:d32%msk0 --> ff02::2:6de0:771f 16 bytes from fe80::21f:d0ff:fe3c:d32%msk0, icmp_seq=0 hlim=64 time=0.224 ms Expected Results: ifmcstat should show: msk0: group ff02::2:ff6d:e077:%msk0 mode exclude mcast-macaddr 33:33:6d:e0:77:1f Actual Results: msk0: group ff02::2:6de0:771f%msk0 mode exclude mcast-macaddr 33:33:6d:e0:77:1f >Fix: A patch against the current revisions (SVN) of ping6.c and in6_ifattach.c is included that should fix this particular problem. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # in6_ifattach_rev231852.patch # ping6_rev241852.patch # echo x - in6_ifattach_rev231852.patch sed 's/^X//' >in6_ifattach_rev231852.patch << 'END-of-in6_ifattach_rev231852.patch' X--- in6_ifattach_rev231852.c 2013-01-03 21:41:25.000000000 +0100 X+++ in6_ifattach_rev231852_fix.c 2013-01-03 22:25:11.000000000 +0100 X@@ -616,7 +616,7 @@ X X /* X * compute NI group address, based on the current hostname setting. X- * see draft-ietf-ipngwg-icmp-name-lookup-* (04 and later). X+ * see RFC4620. X * X * when ifp == NULL, the caller is responsible for filling scopeid. X */ X@@ -667,7 +667,7 @@ X *q = *q - 'A' + 'a'; X } X X- /* generate 8 bytes of pseudo-random value. */ X+ /* generate 16 bytes of pseudo-random value. */ X bzero(&ctxt, sizeof(ctxt)); X MD5Init(&ctxt); X MD5Update(&ctxt, &l, sizeof(l)); X@@ -677,7 +677,9 @@ X bzero(in6, sizeof(*in6)); X in6->s6_addr16[0] = IPV6_ADDR_INT16_MLL; X in6->s6_addr8[11] = 2; X- bcopy(digest, &in6->s6_addr32[3], sizeof(in6->s6_addr32[3])); X+ in6->s6_addr8[12] = 0xff; X+ /* copy first 3 bytes of hash value into address */ X+ bcopy(digest, &in6->s6_addr8[13], 3); X if (in6_setscope(in6, ifp, NULL)) X return (-1); /* XXX: should not fail */ X END-of-in6_ifattach_rev231852.patch echo x - ping6_rev241852.patch sed 's/^X//' >ping6_rev241852.patch << 'END-of-ping6_rev241852.patch' X--- ping6_rev241852.c 2013-01-03 22:15:26.000000000 +0100 X+++ ping6_rev241852_fix.c 2013-01-03 22:19:50.000000000 +0100 X@@ -2748,7 +2748,7 @@ X *q = tolower(*(unsigned char *)q); X } X X- /* generate 8 bytes of pseudo-random value. */ X+ /* generate 16 bytes of pseudo-random value. */ X memset(&ctxt, 0, sizeof(ctxt)); X MD5Init(&ctxt); X c = l & 0xff; X@@ -2756,9 +2756,9 @@ X MD5Update(&ctxt, (unsigned char *)name, l); X MD5Final(digest, &ctxt); X X- if (inet_pton(AF_INET6, "ff02::2:0000:0000", &in6) != 1) X+ if (inet_pton(AF_INET6, "ff02::2:ff00:0000", &in6) != 1) X return NULL; /*XXX*/ X- bcopy(digest, &in6.s6_addr[12], 4); X+ bcopy(digest, &in6.s6_addr[13], 3); X X if (inet_ntop(AF_INET6, &in6, hbuf, sizeof(hbuf)) == NULL) X return NULL; END-of-ping6_rev241852.patch exit >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:18:16 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6F38E886; Thu, 3 Jan 2013 22:18:16 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 4800F9EE; Thu, 3 Jan 2013 22:18:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03MIGsc074747; Thu, 3 Jan 2013 22:18:16 GMT (envelope-from hrs@freefall.freebsd.org) Received: (from hrs@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03MIGIU074743; Thu, 3 Jan 2013 22:18:16 GMT (envelope-from hrs) Date: Thu, 3 Jan 2013 22:18:16 GMT Message-Id: <201301032218.r03MIGIU074743@freefall.freebsd.org> To: hrs@FreeBSD.org, freebsd-bugs@FreeBSD.org, hrs@FreeBSD.org From: hrs@FreeBSD.org Subject: Re: misc/174957: IPv6 Node Information Queries use old address format X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:18:16 -0000 Synopsis: IPv6 Node Information Queries use old address format Responsible-Changed-From-To: freebsd-bugs->hrs Responsible-Changed-By: hrs Responsible-Changed-When: Thu Jan 3 22:18:00 UTC 2013 Responsible-Changed-Why: I will take this. http://www.freebsd.org/cgi/query-pr.cgi?pr=174957 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:20:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 54C1890C for ; Thu, 3 Jan 2013 22:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 38BBCA0A for ; Thu, 3 Jan 2013 22:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03MK1gv074837 for ; Thu, 3 Jan 2013 22:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03MK1aE074836; Thu, 3 Jan 2013 22:20:01 GMT (envelope-from gnats) Date: Thu, 3 Jan 2013 22:20:01 GMT Message-Id: <201301032220.r03MK1aE074836@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Johan Broman Subject: Re: kern/173541: load average 0.60 at 100% idle X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Johan Broman List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:20:01 -0000 The following reply was made to PR kern/173541; it has been noted by GNATS. From: Johan Broman To: bug-followup@FreeBSD.org Cc: viktor.stujber@gmail.com Subject: Re: kern/173541: load average 0.60 at 100% idle Date: Thu, 3 Jan 2013 23:19:00 +0100 --089e01177699f745b904d269bf93 Content-Type: text/plain; charset=ISO-8859-1 Hi! I'm getting the exact same issue. Upgraded from FreeBSD 9.0 to FreeBSD 9.1 and my load avg jumped from 0.01 to 0.60, while the server is doing pretty much nothing at all. I'm also seeing the timer differences in dmesg as described earlier in the bug report. # sysctl -a | egrep "kern.event|clock" kern.clockrate: { hz = 1000, tick = 1000, profhz = 8126, stathz = 127 } kern.eventtimer.choice: HPET(450) HPET1(440) HPET2(440) LAPIC(400) i8254(100) RTC(0) kern.eventtimer.et.LAPIC.flags: 15 kern.eventtimer.et.LAPIC.frequency: 0 kern.eventtimer.et.LAPIC.quality: 400 kern.eventtimer.et.i8254.flags: 1 kern.eventtimer.et.i8254.frequency: 1193182 kern.eventtimer.et.i8254.quality: 100 kern.eventtimer.et.RTC.flags: 17 kern.eventtimer.et.RTC.frequency: 32768 kern.eventtimer.et.RTC.quality: 0 kern.eventtimer.et.HPET.flags: 3 kern.eventtimer.et.HPET.frequency: 14318180 kern.eventtimer.et.HPET.quality: 450 kern.eventtimer.et.HPET1.flags: 3 kern.eventtimer.et.HPET1.frequency: 14318180 kern.eventtimer.et.HPET1.quality: 440 kern.eventtimer.et.HPET2.flags: 3 kern.eventtimer.et.HPET2.frequency: 14318180 kern.eventtimer.et.HPET2.quality: 440 kern.eventtimer.periodic: 0 kern.eventtimer.timer: HPET kern.eventtimer.activetick: 1 kern.eventtimer.idletick: 0 kern.eventtimer.singlemul: 2 debug.acpi.reset_clock: 1 debug.clocktime: 0 hw.clockrate: 2133 machdep.wall_cmos_clock: 0 dev.atrtc.0.%desc: AT realtime clock # dmesg | more 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.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (2133.45-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6f2 Family = 6 Model = f Stepping = 2 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 4296015872 (4097 MB) avail memory = 4101558272 (3911 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 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, dff00000 (3) failed cpu0: on acpi0 cpu1: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 hpet1: iomem 0xfed00000-0xfed003ff on acpi0 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 device_attach: hpet0 attach returned 12 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf808-0xf80b on acpi0 Regards Johan --089e01177699f745b904d269bf93 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi!

I'm getting the exact same issue. Upgraded from FreeBSD 9.0 = to FreeBSD 9.1 and my load avg jumped from 0.01 to 0.60, while the server i= s doing pretty much nothing at all.

I'm also seeing the timer di= fferences in dmesg as described earlier in the bug report.

# sysctl -a | egrep "kern.event|clock"
kern.clockrate: { = hz =3D 1000, tick =3D 1000, profhz =3D 8126, stathz =3D 127 }
kern.event= timer.choice: HPET(450) HPET1(440) HPET2(440) LAPIC(400) i8254(100) RTC(0)<= br>kern.eventtimer.et.LAPIC.flags: 15
kern.eventtimer.et.LAPIC.frequency: 0
kern.eventtimer.et.LAPIC.quality: = 400
kern.eventtimer.et.i8254.flags: 1
kern.eventtimer.et.i8254.freque= ncy: 1193182
kern.eventtimer.et.i8254.quality: 100
kern.eventtimer.et= .RTC.flags: 17
kern.eventtimer.et.RTC.frequency: 32768
kern.eventtimer.et.RTC.quality: = 0
kern.eventtimer.et.HPET.flags: 3
kern.eventtimer.et.HPET.frequency:= 14318180
kern.eventtimer.et.HPET.quality: 450
kern.eventtimer.et.HPE= T1.flags: 3
kern.eventtimer.et.HPET1.frequency: 14318180
kern.eventtimer.et.HPET1.qu= ality: 440
kern.eventtimer.et.HPET2.flags: 3
kern.eventtimer.et.HPET2= .frequency: 14318180
kern.eventtimer.et.HPET2.quality: 440
kern.event= timer.periodic: 0
kern.eventtimer.timer: HPET
kern.eventtimer.activetick: 1
kern.eventt= imer.idletick: 0
kern.eventtimer.singlemul: 2
debug.acpi.reset_clock:= 1
debug.clocktime: 0
hw.clockrate: 2133
machdep.wall_cmos_clock: = 0
dev.atrtc.0.%desc: AT realtime clock


# dmesg | more
Copyright= (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986= , 1988, 1989, 1991, 1992, 1993, 1994
=A0=A0=A0=A0=A0=A0=A0 The Regents o= f the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.1= -RELEASE #0 r243825: Tue Dec=A0 4 09:23:10 UTC 2012
=A0=A0=A0 root@farre= ll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
CPU: Intel(R) Core= (TM)2 CPU=A0=A0=A0=A0=A0=A0=A0=A0=A0 6400=A0 @ 2.13GHz (2133.45-MHz K8-clas= s CPU)
=A0 Origin =3D "GenuineIntel"=A0 Id =3D 0x6f2=A0 Family =3D 6=A0 = Model =3D f=A0 Stepping =3D 2
=A0 Features=3D0xbfebfbff<FPU,VME,DE,PS= E,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI= ,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
=A0 Features2=3D0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTP= R,PDCM>
=A0 AMD Features=3D0x20100800<SYSCALL,NX,LM>
=A0 AMD= Features2=3D0x1<LAHF>
=A0 TSC: P-state invariant, performance sta= tistics
real memory=A0 =3D 4296015872 (4097 MB)
avail memory =3D 4101558272 (391= 1 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <= COMPAQ GLENWOOD>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs<= br> FreeBSD/SMP: 1 package(s) x 2 core(s)
=A0cpu0 (BSP): APIC ID:=A0 0
= =A0cpu1 (AP): APIC ID:=A0 1
ioapic0: Changing APIC ID to 1
ioapic0 &l= t;Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <= ;HPQOEM SLIC-WKS> on motherboard
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failedacpi0: reservation of 100000, dff00000 (3) failed
cpu0: <ACPI CPU>= ; on acpi0
cpu1: <ACPI CPU> on acpi0
attimer0: <AT timer>= port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer= "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realt= ime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" = frequency 32768 Hz quality 0
hpet1: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on ac= pi0
Event timer "HPET" frequency 14318180 Hz quality 450
Ev= ent timer "HPET1" frequency 14318180 Hz quality 440
Event time= r "HPET2" frequency 14318180 Hz quality 440
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on ac= pi0
device_attach: hpet0 attach returned 12
Timecounter "ACPI-fa= st" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer = at 3.579545MHz> port 0xf808-0xf80b on acpi0

Regards
Johan

--089e01177699f745b904d269bf93-- From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:43:03 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7B707155; Thu, 3 Jan 2013 22:43:03 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 53F3AB06; Thu, 3 Jan 2013 22:43:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Mh3d9075354; Thu, 3 Jan 2013 22:43:03 GMT (envelope-from hrs@freefall.freebsd.org) Received: (from hrs@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03Mh3na075350; Thu, 3 Jan 2013 22:43:03 GMT (envelope-from hrs) Date: Thu, 3 Jan 2013 22:43:03 GMT Message-Id: <201301032243.r03Mh3na075350@freefall.freebsd.org> To: hrs@FreeBSD.org, freebsd-bugs@FreeBSD.org, re@FreeBSD.org From: hrs@FreeBSD.org Subject: Re: conf/174070: [build] [patch] Allow RELEASE_TARGETS to be user defined and cd before running make X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:43:03 -0000 Synopsis: [build] [patch] Allow RELEASE_TARGETS to be user defined and cd before running make Responsible-Changed-From-To: freebsd-bugs->re Responsible-Changed-By: hrs Responsible-Changed-When: Thu Jan 3 22:42:18 UTC 2013 Responsible-Changed-Why: Over to maintainer. http://www.freebsd.org/cgi/query-pr.cgi?pr=174070 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:45:40 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 66BAE1B0; Thu, 3 Jan 2013 22:45:40 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 42862B13; Thu, 3 Jan 2013 22:45:40 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03MjeUn075441; Thu, 3 Jan 2013 22:45:40 GMT (envelope-from hrs@freefall.freebsd.org) Received: (from hrs@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03MjeDt075437; Thu, 3 Jan 2013 22:45:40 GMT (envelope-from hrs) Date: Thu, 3 Jan 2013 22:45:40 GMT Message-Id: <201301032245.r03MjeDt075437@freefall.freebsd.org> To: hrs@FreeBSD.org, freebsd-bugs@FreeBSD.org, hrs@FreeBSD.org From: hrs@FreeBSD.org Subject: Re: kern/174033: [patch] prune unused net.inet6 sysctls X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:45:40 -0000 Synopsis: [patch] prune unused net.inet6 sysctls Responsible-Changed-From-To: freebsd-bugs->hrs Responsible-Changed-By: hrs Responsible-Changed-When: Thu Jan 3 22:45:26 UTC 2013 Responsible-Changed-Why: I will take this. http://www.freebsd.org/cgi/query-pr.cgi?pr=174033 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:46:13 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 472A4206; Thu, 3 Jan 2013 22:46:13 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 23010B1C; Thu, 3 Jan 2013 22:46:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03MkDDk075489; Thu, 3 Jan 2013 22:46:13 GMT (envelope-from hrs@freefall.freebsd.org) Received: (from hrs@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03MkD5r075485; Thu, 3 Jan 2013 22:46:13 GMT (envelope-from hrs) Date: Thu, 3 Jan 2013 22:46:13 GMT Message-Id: <201301032246.r03MkD5r075485@freefall.freebsd.org> To: hrs@FreeBSD.org, freebsd-bugs@FreeBSD.org, hrs@FreeBSD.org From: hrs@FreeBSD.org Subject: Re: kern/174032: [patch] better document netinet6 sysctls and formatting cleanup X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:46:13 -0000 Synopsis: [patch] better document netinet6 sysctls and formatting cleanup Responsible-Changed-From-To: freebsd-bugs->hrs Responsible-Changed-By: hrs Responsible-Changed-When: Thu Jan 3 22:45:57 UTC 2013 Responsible-Changed-Why: I will take this. http://www.freebsd.org/cgi/query-pr.cgi?pr=174032 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:47:29 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C29C526C; Thu, 3 Jan 2013 22:47:29 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9CB13B2E; Thu, 3 Jan 2013 22:47:29 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03MlTYn075537; Thu, 3 Jan 2013 22:47:29 GMT (envelope-from hrs@freefall.freebsd.org) Received: (from hrs@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03MlTWA075533; Thu, 3 Jan 2013 22:47:29 GMT (envelope-from hrs) Date: Thu, 3 Jan 2013 22:47:29 GMT Message-Id: <201301032247.r03MlTWA075533@freefall.freebsd.org> To: hrs@FreeBSD.org, freebsd-bugs@FreeBSD.org, hrs@FreeBSD.org From: hrs@FreeBSD.org Subject: Re: bin/173744: [PATCH] rtsold usage message contains non-sensical -a option in interface required mode usage X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:47:29 -0000 Synopsis: [PATCH] rtsold usage message contains non-sensical -a option in interface required mode usage Responsible-Changed-From-To: freebsd-bugs->hrs Responsible-Changed-By: hrs Responsible-Changed-When: Thu Jan 3 22:47:11 UTC 2013 Responsible-Changed-Why: I will take this. http://www.freebsd.org/cgi/query-pr.cgi?pr=173744 From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:50:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7AA142E5 for ; Thu, 3 Jan 2013 22:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6A299B42 for ; Thu, 3 Jan 2013 22:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03Mo1IY075606 for ; Thu, 3 Jan 2013 22:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03Mo1Eg075602; Thu, 3 Jan 2013 22:50:01 GMT (envelope-from gnats) Date: Thu, 3 Jan 2013 22:50:01 GMT Message-Id: <201301032250.r03Mo1Eg075602@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: =?UTF-8?B?VmlrdG9yIMWgdHVqYmVy?= Subject: Re: kern/173541: load average 0.60 at 100% idle X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: =?UTF-8?B?VmlrdG9yIMWgdHVqYmVy?= List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:50:01 -0000 The following reply was made to PR kern/173541; it has been noted by GNATS. From: =?UTF-8?B?VmlrdG9yIMWgdHVqYmVy?= To: Johan Broman Cc: bug-followup@FreeBSD.org Subject: Re: kern/173541: load average 0.60 at 100% idle Date: Thu, 03 Jan 2013 23:44:46 +0100 For my system's kernel I just undid that one revision I mentioned earlier. No ill-effects observed. Since the change is so low-level and there is no rationale provided in the commit message, I do not know what improvement it was supposed to achieve. I tried e-mailing the author of that commit, but got no response. Also, due to the low-power nature of my system, I can't test if the 0.60 load is real, or just a by-product of broken time accounting. Either way it might be affecting the process scheduler. From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 22:53:52 2013 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1CDDB379 for ; Thu, 3 Jan 2013 22:53:52 +0000 (UTC) (envelope-from oliver.pntr@gmail.com) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by mx1.freebsd.org (Postfix) with ESMTP id D15CAB65 for ; Thu, 3 Jan 2013 22:53:51 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id xn12so14379792obc.18 for ; Thu, 03 Jan 2013 14:53:51 -0800 (PST) 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=D062g2BudLcZ95Rse882MWO5nthm9fDQc4ZoaQ0B1cI=; b=I5sHQlGnB0jinoHHvheMV0PNCF9qjAhxMK7OnswjcZGFypO5aHgWyblX6ugYEVl4iC D0SYHVli04uH4+pusGZl/1PGdd0rUapEtjIXqypibgWpqixG//HbwLzodHa6b6iWtQtK 9O5THqAoNfsViYWaZjOb0A5GlTqQkcccMq6EBthzGkd6iXO+6OonAbLBiKkHt+VFg7/0 gbTC4rIUSGE1BpnGHfegCR7PWdpTV0aXD8FyYfqZhkok74tbplyKtTIj2ZF7RjnEbgrJ 9jgXrxk9mKgkiULvIyWOOCLLaOiKmahiCUlkiCyMq8jOF4vpRiT9UHdsZ2l32SNT5yTo 40zg== MIME-Version: 1.0 Received: by 10.60.30.42 with SMTP id p10mr28628391oeh.59.1357253631128; Thu, 03 Jan 2013 14:53:51 -0800 (PST) Received: by 10.182.89.9 with HTTP; Thu, 3 Jan 2013 14:53:51 -0800 (PST) In-Reply-To: <201301032250.r03Mo1Eg075602@freefall.freebsd.org> References: <201301032250.r03Mo1Eg075602@freefall.freebsd.org> Date: Thu, 3 Jan 2013 23:53:51 +0100 Message-ID: Subject: Re: kern/173541: load average 0.60 at 100% idle From: Oliver Pinter To: =?UTF-8?Q?Viktor_=C5=A0tujber?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-bugs@freebsd.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:53:52 -0000 add this or similar this to /boot/loader.conf hint.hpet.0.allowed_irqs=3D"0x00400000" On 1/3/13, Viktor =C5=A0tujber wrote: > The following reply was made to PR kern/173541; it has been noted by GNAT= S. > > From: =3D?UTF-8?B?VmlrdG9yIMWgdHVqYmVy?=3D > To: Johan Broman > Cc: bug-followup@FreeBSD.org > Subject: Re: kern/173541: load average 0.60 at 100% idle > Date: Thu, 03 Jan 2013 23:44:46 +0100 > > For my system's kernel I just undid that one revision I mentioned > earlier. No ill-effects observed. Since the change is so low-level and > there is no rationale provided in the commit message, I do not know what > improvement it was supposed to achieve. I tried e-mailing the author of > that commit, but got no response. > Also, due to the low-power nature of my system, I can't test if the 0.60 > load is real, or just a by-product of broken time accounting. Either way > it might be affecting the process scheduler. > _______________________________________________ > freebsd-bugs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org" > From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 3 23:10:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 36E4776B for ; Thu, 3 Jan 2013 23:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 114ECCC1 for ; Thu, 3 Jan 2013 23:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03NA1xf076359 for ; Thu, 3 Jan 2013 23:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03NA1Tm076358; Thu, 3 Jan 2013 23:10:01 GMT (envelope-from gnats) Date: Thu, 3 Jan 2013 23:10:01 GMT Message-Id: <201301032310.r03NA1Tm076358@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Johan Broman Subject: Re: kern/173541: load average 0.60 at 100% idle X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Johan Broman List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 23:10:02 -0000 The following reply was made to PR kern/173541; it has been noted by GNATS. From: Johan Broman To: bug-followup@freebsd.org Cc: Subject: Re: kern/173541: load average 0.60 at 100% idle Date: Fri, 4 Jan 2013 00:06:16 +0100 --047d7b5d95370023f704d26a691e Content-Type: text/plain; charset=ISO-8859-1 Hi! I see. I got around the problem in FreeBSD 9.1 by changing the clock source. Like this: # sysctl -w kern.eventtimer.timer=LAPIC The load avg dropped to 0.00 again. You can try the different clock sources available to you and see what works best. Some sources might increase the number of interrupts (like the RTC) and some might cause more context switching or CPU load. For me the LAPIC works best. You can list your clock sources using: # sysctl kern.eventtimer.choice From what I understand, measuring time can be tricky because new systems can regulate core frequency on the fly (in HW) and virtualization also increases the difficulty... It seems the order and/or weight of the clock sources has changed. When I have a chance I will reboot into the old kernel and see what has been changed. I'm totally new to FreeBSD so I don't know the normal handling of these bugs but I'll put the author of the patch on cc as well :) Good luck! Johan --047d7b5d95370023f704d26a691e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi!

I see. I got around the problem in FreeBSD 9.1 by changing the c= lock source. Like this:

# sysctl -w kern.eventtimer.timer=3DLAPIC
The load avg dropped to 0.00 again. You can try the different clock so= urces available to you and see what works best. Some sources might increase= the number of interrupts (like the RTC) and some might cause more context = switching or CPU load. For me the LAPIC works best. You can list your clock= sources using:

# sysctl kern.eventtimer.choice

From what I understand, measurin= g time can be tricky because new systems can regulate core frequency on the= fly (in HW) and virtualization also increases the difficulty...

It seems the order and/or weight of the clock sources has changed. When I h= ave a chance I will reboot into the old kernel and see what has been change= d. I'm totally new to FreeBSD so I don't know the normal handling o= f these bugs but I'll put the author of the patch on cc as well :)

Good luck!
Johan

--047d7b5d95370023f704d26a691e-- From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 02:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E053DE19 for ; Fri, 4 Jan 2013 02:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C55AA2B3 for ; Fri, 4 Jan 2013 02:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r04200R2091086 for ; Fri, 4 Jan 2013 02:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r04200H7091085; Fri, 4 Jan 2013 02:00:00 GMT (envelope-from gnats) Resent-Date: Fri, 4 Jan 2013 02:00:00 GMT Resent-Message-Id: <201301040200.r04200H7091085@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Keith Sklower Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 57F0FE09 for ; Fri, 4 Jan 2013 01:58:31 +0000 (UTC) (envelope-from sklower@isi.deterlab.net) Received: from users.isi.deterlab.net (users.isi.deterlab.net [206.117.25.49]) by mx1.freebsd.org (Postfix) with ESMTP id 2AF7A2AA for ; Fri, 4 Jan 2013 01:58:30 +0000 (UTC) Received: from users.isi.deterlab.net (localhost.isi.deterlab.net [127.0.0.1]) by users.isi.deterlab.net (8.14.5/8.14.4) with ESMTP id r041wUn3005680; Thu, 3 Jan 2013 17:58:30 -0800 (PST) (envelope-from sklower@users.isi.deterlab.net) Received: (from sklower@localhost) by users.isi.deterlab.net (8.14.5/8.13.8/Submit) id r041wUYX005679; Thu, 3 Jan 2013 17:58:30 -0800 (PST) (envelope-from sklower) Message-Id: <201301040158.r041wUYX005679@users.isi.deterlab.net> Date: Thu, 3 Jan 2013 17:58:30 -0800 (PST) From: Keith Sklower To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/174958: [patch] rnh_walktree_from makes unreasonable assumptions Cc: deter-ops@isi.edu X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Keith Sklower List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 02:00:00 -0000 >Number: 174958 >Category: kern >Synopsis: [patch] rnh_walktree_from makes unreasonable assumptions >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 04 02:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Keith Sklower >Release: FreeBSD 9.1-RC2 i386 >Organization: University of California, Berkeley >Environment: System: FreeBSD users.isi.deterlab.net 9.1-RC2 FreeBSD 9.1-RC2 #7: Tue Oct 9 19:14:50 PDT 2012 root@users.isi.deterlab.net:/usr/obj/usr/src/sys/USERS9 i386 any machine, any version of FreeBSD after 2.3 >Description: The radix tree method rnh_walktree_from (as implemented by rn_walktree_from in /sys/net/radix.c) assumes that that at least some nodes in the intended subtree are present in the tree. And it will always attempt to visit the entire subtree even if you want to start in the middle. If you ask it to walk the tree looking for a subnet which is not present, it may invoke the supplied function on leaves which do not meet the criteria. If you naively supply a value of "0" for the mask (in attempt to start from the middle) the kernel will crash. It is low priority because nothing in the source distribution uses this function anymore. We have a local need for it. >How-To-Repeat: Construct a routing tree with the following 4 routes: 128.32.8.0/24 128.32.9.0/24 128.32.8.1 (host) 128.32.8.2 (host) invoke rn_walktree_from(tree, 128.32.25.0, 255.255.255.0, f, 0) where f prints the IP address in each leaf visited. It should not visit *any* nodes; it will at least erroneously visit the node 128.32.9.0 if the simpler patch I just submitted is adopted, [I can supply 94 line C program that demonstrates this at user level] It should only visit 128.32.9.0/24; instead it visits the entire tree. >Fix: --- radix.c 2012-11-28 10:23:37.000000000 -0800 +++ radix.c.rewrite 2013-01-03 17:21:45.000000000 -0800 @@ -466,6 +466,10 @@ if (rn_debug) log(LOG_DEBUG, "rn_insert: Going In:\n"), traverse(p); #endif + if (nodes == 0 ) { + *dupentry = b; + return x; + } t = rn_newpair(v_arg, b, nodes); tt = t->rn_left; if ((cp[p->rn_offset] & p->rn_bmask) == 0) @@ -967,6 +971,37 @@ return (tt); } +struct subtree_info { + walktree_f_t * si_f; + void * si_w; + int si_error; + char * si_maskedkey; + char * si_netmask; + char * si_cplim; +}; + +static int +rn_walksubtree_helper(rn, w) + struct radix_node *rn; + void *w; +{ + struct subtree_info *si = w; + char *cp, *cp2 = (char *)(rn->rn_key), *cp3 = si->si_netmask; + + /* check that we are still in the subtree */ + for (cp = si->si_maskedkey; cp < si->si_cplim; cp++) { + if (*cp != (*cp2++) & (*cp3++)) + return 1; + } + if ((si->si_error = (*(si->si_f))(rn, si->si_w))) + return 2; + return 0; +} + +/* forward declaration needed below */ +static int rn_walktree_with(struct radix_node_head *h, void *a, + walktree_f_t *f, void *w); + /* * This is the same as rn_walktree() except for the parameters and the * exit. @@ -978,115 +1013,43 @@ walktree_f_t *f; void *w; { - int error; - struct radix_node *base, *next; - u_char *xa = (u_char *)a; - u_char *xm = (u_char *)m; - register struct radix_node *rn, *last = 0 /* shut up gcc */; - int stopping = 0; - int lastb; - - /* - * rn_search_m is sort-of-open-coded here. We cannot use the - * function because we need to keep track of the last node seen. - */ - /* printf("about to search\n"); */ - for (rn = h->rnh_treetop; rn->rn_bit >= 0; ) { - last = rn; - /* printf("rn_bit %d, rn_bmask %x, xm[rn_offset] %x\n", - rn->rn_bit, rn->rn_bmask, xm[rn->rn_offset]); */ - if (!(rn->rn_bmask & xm[rn->rn_offset])) { - break; - } - if (rn->rn_bmask & xa[rn->rn_offset]) { - rn = rn->rn_right; - } else { - rn = rn->rn_left; - } - } - /* printf("done searching\n"); */ - - /* - * Two cases: either we stepped off the end of our mask, - * in which case last == rn, or we reached a leaf, in which - * case we want to start from the last node we looked at. - * Either way, last is the node we want to start from. - */ - rn = last; - lastb = rn->rn_bit; - - /* printf("rn %p, lastb %d\n", rn, lastb);*/ - - /* - * This gets complicated because we may delete the node - * while applying the function f to it, so we need to calculate - * the successor node in advance. - */ - while (rn->rn_bit >= 0) - rn = rn->rn_left; - - while (!stopping) { - /* printf("node %p (%d)\n", rn, rn->rn_bit); */ - base = rn; - /* If at right child go back up, otherwise, go right */ - while (rn->rn_parent->rn_right == rn - && !(rn->rn_flags & RNF_ROOT)) { - rn = rn->rn_parent; - - /* if went up beyond last, stop */ - if (rn->rn_bit <= lastb) { - stopping = 1; - /* printf("up too far\n"); */ - /* - * XXX we should jump to the 'Process leaves' - * part, because the values of 'rn' and 'next' - * we compute will not be used. Not a big deal - * because this loop will terminate, but it is - * inefficient and hard to understand! - */ - } - } - - /* - * At the top of the tree, no need to traverse the right - * half, prevent the traversal of the entire tree in the - * case of default route. - */ - if (rn->rn_parent->rn_flags & RNF_ROOT) - stopping = 1; - - /* Find the next *leaf* since next node might vanish, too */ - for (rn = rn->rn_parent->rn_right; rn->rn_bit >= 0;) - rn = rn->rn_left; - next = rn; - /* Process leaves */ - while ((rn = base) != 0) { - base = rn->rn_dupedkey; - /* printf("leaf %p\n", rn); */ - if (!(rn->rn_flags & RNF_ROOT) - && (error = (*f)(rn, w))) - return (error); - } - rn = next; - - if (rn->rn_flags & RNF_ROOT) { - /* printf("root, stopping"); */ - stopping = 1; - } - + char temp[64], *cp, *cp2 = a, *cp3 = m; + size_t length = min(LEN(v_arg), LEN(n_arg)); + struct subtree_info si; + + if (!m) + return rn_waltree_with(h, a, f, w); + if (length > sizeof(temp)) { + R_Malloc(si.si_maskedkey, char *, length); + } else { + si.si_maskedkey = temp; } + si.si_f = f; + si.si_w = w; + si.si_netmask = cp3; + si.si_cplim = si.si_maskedkey + length; + + for (cp = si.si_maskedkey; cp < si.si_cplim; cp++) + { *cp = *cp2++ & *cp3++; } + + int return_code = rn_walktree_with + (h, si.si_maskedkey, rn_walksubtree_helper, &si); + if (length > sizeof(temp)) + Free(si.si_maskedkey); + if (return_code == 2) + return si.si_error; return 0; } static int -rn_walktree(h, f, w) - struct radix_node_head *h; +rn_walktree1(rn, skipfirst, f, w) + struct radix_node *rn; + int skipfirst; walktree_f_t *f; void *w; { int error; struct radix_node *base, *next; - register struct radix_node *rn = h->rnh_treetop; /* * This gets complicated because we may delete the node * while applying the function f to it, so we need to calculate @@ -1105,6 +1068,10 @@ /* Find the next *leaf* since next node might vanish, too */ for (rn = rn->rn_parent->rn_right; rn->rn_bit >= 0;) rn = rn->rn_left; + if (skipfirst) { + skipfirst = 0; + continue; + } next = rn; /* Process leaves */ while ((rn = base)) { @@ -1120,6 +1087,42 @@ /* NOTREACHED */ } +static int +rn_walktree(h, f, w) + struct radix_node_head *h; + walktree_f_t *f; + void *w; +{ + return rn_walktree1(h->rnh_treetop, 0, f, w); +} + +/* + * Walk the tree starting with or after v, (without masking). + */ +static int +rn_walktree_with(h, v_arg, f, w) + struct radix_node_head *h; + void *v_arg; + walktree_f_t *f; + void *w; +{ + int b, skipfirst = 0; + caddr_t v = v_arg; + struct radix_node *x = rn_insert(v_arg, h, &b, (struct radix_node *)0); + if (b != 1) { + /* our value matches every child of x up to, but !including b */ + if (v[b >> 3] & (0x80 >> ( b & 7 )) ) { + /* value will be > so start *after* rightmost child */ + skipfirst = 1; + while (x->rn_bit > 0) { x = x->rn_right; } + } else { + /* value < any child so start with leftmost child */ + while (x->rn_bit > 0) { x = x->rn_left; } + } + } /* b == 1 means exact match so we start with it */ + return rn_walktree1(x, skipfirst, f, w); +} + /* * Allocate and initialize an empty tree. This has 3 nodes, which are * part of the radix_node_head (in the order ) and are >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 02:10:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8B8EBFB9 for ; Fri, 4 Jan 2013 02:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6DEE92DA for ; Fri, 4 Jan 2013 02:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r042A0Im091542 for ; Fri, 4 Jan 2013 02:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r042A0g8091541; Fri, 4 Jan 2013 02:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 4 Jan 2013 02:10:00 GMT Resent-Message-Id: <201301040210.r042A0g8091541@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Keith Sklower Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E85A0E7D for ; Fri, 4 Jan 2013 02:03:14 +0000 (UTC) (envelope-from sklower@isi.deterlab.net) Received: from users.isi.deterlab.net (users.isi.deterlab.net [206.117.25.49]) by mx1.freebsd.org (Postfix) with ESMTP id C43BA2C3 for ; Fri, 4 Jan 2013 02:03:14 +0000 (UTC) Received: from users.isi.deterlab.net (localhost.isi.deterlab.net [127.0.0.1]) by users.isi.deterlab.net (8.14.5/8.14.4) with ESMTP id r041jBGf003569; Thu, 3 Jan 2013 17:45:11 -0800 (PST) (envelope-from sklower@users.isi.deterlab.net) Received: (from sklower@localhost) by users.isi.deterlab.net (8.14.5/8.13.8/Submit) id r041jBwb003568; Thu, 3 Jan 2013 17:45:11 -0800 (PST) (envelope-from sklower) Message-Id: <201301040145.r041jBwb003568@users.isi.deterlab.net> Date: Thu, 3 Jan 2013 17:45:11 -0800 (PST) From: Keith Sklower To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/174959: [patch] rnh_walktree_from visits spurious nodes Cc: deter-ops@isi.edu X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Keith Sklower List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 02:10:00 -0000 >Number: 174959 >Category: kern >Synopsis: [patch] rnh_walktree_from visits spurious nodes >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 04 02:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Keith Sklower >Release: FreeBSD 9.1-RC2 i386 >Organization: University of California, Berkeley >Environment: System: FreeBSD users.isi.deterlab.net 9.1-RC2 FreeBSD 9.1-RC2 #7: Tue Oct 9 19:14:50 PDT 2012 root@users.isi.deterlab.net:/usr/obj/usr/src/sys/USERS9 i386 any machine, any version of FreeBSD after 2.3 >Description: The radix tree method rnh_walktree_from (as implemented by rn_walktree_from in /sys/net/radix.c) invokes the helper function f on nodes that it should not, even when supplied with inputs adhering to its unreasonably strict assumptions. It is low priority because nothing in the source distribution uses this function anymore. We have a local need for it. >How-To-Repeat: Construct a routing tree with the following 4 routes: 128.32.8.0/24 128.32.9.0/24 128.32.8.1 (host) 128.32.8.2 (host) invoke rn_walktree_from(tree, 128.32.9.0, 255.255.255.0, f, 0) where f prints the IP address in each leaf visited. [I can supply 94 line C program that demonstrates this at user level] It should only visit 128.32.9.0/24; instead it visits the entire tree. >Fix: --- radix.c 2012-11-28 10:23:37.000000000 -0800 +++ radix.c.pfix 2013-01-03 16:12:33.000000000 -0800 @@ -1009,11 +1009,11 @@ /* * Two cases: either we stepped off the end of our mask, * in which case last == rn, or we reached a leaf, in which - * case we want to start from the last node we looked at. - * Either way, last is the node we want to start from. + * case we want to start from the leaf. */ - rn = last; - lastb = rn->rn_bit; + if (rn-> rn_bit >= 0) + rn = last; + lastb = last->rn_bit; /* printf("rn %p, lastb %d\n", rn, lastb);*/ >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 02:40:55 2013 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8751A4EE; Fri, 4 Jan 2013 02:40:55 +0000 (UTC) (envelope-from sklower@vangogh.CS.Berkeley.EDU) Received: from vangogh.CS.Berkeley.EDU (vangogh.CS.Berkeley.EDU [128.32.112.208]) by mx1.freebsd.org (Postfix) with ESMTP id 66DC437E; Fri, 4 Jan 2013 02:40:55 +0000 (UTC) Received: from vangogh.CS.Berkeley.EDU (localhost [127.0.0.1]) by vangogh.CS.Berkeley.EDU (8.14.4/8.13.8) with ESMTP id r042YONZ012233; Thu, 3 Jan 2013 18:34:24 -0800 (PST) (envelope-from sklower@vangogh.CS.Berkeley.EDU) Received: (from sklower@localhost) by vangogh.CS.Berkeley.EDU (8.14.4/8.13.8/Submit) id r042YOn2012232; Thu, 3 Jan 2013 18:34:24 -0800 (PST) (envelope-from sklower) Date: Thu, 3 Jan 2013 18:34:24 -0800 (PST) From: Keith Sklower Message-Id: <201301040234.r042YOn2012232@vangogh.CS.Berkeley.EDU> To: freebsd-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/174958: [patch] rnh_walktree_from makes unreasonable assumptions In-Reply-To: <201301040200.r04200Ar091068@freefall.freebsd.org> X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 02:40:55 -0000 Hi, With a fair amount of egg on my face I have to ask to resubmit the patch ... I tried tidying it up a bit to minimize diffs and forgot to recompile and test one last time here is the new patch, and I'll include my test harness after that: --- radix.c 2012-12-21 17:21:51.000000000 -0800 +++ radix.c.rewrite 2013-01-03 18:26:01.000000000 -0800 @@ -466,6 +466,10 @@ if (rn_debug) log(LOG_DEBUG, "rn_insert: Going In:\n"), traverse(p); #endif + if (nodes == 0 ) { + *dupentry = b; + return x; + } t = rn_newpair(v_arg, b, nodes); tt = t->rn_left; if ((cp[p->rn_offset] & p->rn_bmask) == 0) @@ -967,6 +971,37 @@ return (tt); } +struct subtree_info { + walktree_f_t * si_f; + void * si_w; + int si_error; + char * si_maskedkey; + char * si_netmask; + char * si_cplim; +}; + +static int +rn_walksubtree_helper(rn, w) + struct radix_node *rn; + void *w; +{ + struct subtree_info *si = w; + char *cp, *cp2 = (char *)(rn->rn_key), *cp3 = si->si_netmask; + + /* check that we are still in the subtree */ + for (cp = si->si_maskedkey; cp < si->si_cplim; cp++) { + if (*cp != (*cp2++) & (*cp3++)) + return 1; + } + if ((si->si_error = (*(si->si_f))(rn, si->si_w))) + return 2; + return 0; +} + +/* forward declaration needed below */ +static int rn_walktree_with(struct radix_node_head *h, void *a, + walktree_f_t *f, void *w); + /* * This is the same as rn_walktree() except for the parameters and the * exit. @@ -978,115 +1013,44 @@ walktree_f_t *f; void *w; { - int error; - struct radix_node *base, *next; - u_char *xa = (u_char *)a; - u_char *xm = (u_char *)m; - register struct radix_node *rn, *last = 0 /* shut up gcc */; - int stopping = 0; - int lastb; - - /* - * rn_search_m is sort-of-open-coded here. We cannot use the - * function because we need to keep track of the last node seen. - */ - /* printf("about to search\n"); */ - for (rn = h->rnh_treetop; rn->rn_bit >= 0; ) { - last = rn; - /* printf("rn_bit %d, rn_bmask %x, xm[rn_offset] %x\n", - rn->rn_bit, rn->rn_bmask, xm[rn->rn_offset]); */ - if (!(rn->rn_bmask & xm[rn->rn_offset])) { - break; - } - if (rn->rn_bmask & xa[rn->rn_offset]) { - rn = rn->rn_right; - } else { - rn = rn->rn_left; - } - } - /* printf("done searching\n"); */ - - /* - * Two cases: either we stepped off the end of our mask, - * in which case last == rn, or we reached a leaf, in which - * case we want to start from the last node we looked at. - * Either way, last is the node we want to start from. - */ - rn = last; - lastb = rn->rn_bit; - - /* printf("rn %p, lastb %d\n", rn, lastb);*/ - - /* - * This gets complicated because we may delete the node - * while applying the function f to it, so we need to calculate - * the successor node in advance. - */ - while (rn->rn_bit >= 0) - rn = rn->rn_left; - - while (!stopping) { - /* printf("node %p (%d)\n", rn, rn->rn_bit); */ - base = rn; - /* If at right child go back up, otherwise, go right */ - while (rn->rn_parent->rn_right == rn - && !(rn->rn_flags & RNF_ROOT)) { - rn = rn->rn_parent; - - /* if went up beyond last, stop */ - if (rn->rn_bit <= lastb) { - stopping = 1; - /* printf("up too far\n"); */ - /* - * XXX we should jump to the 'Process leaves' - * part, because the values of 'rn' and 'next' - * we compute will not be used. Not a big deal - * because this loop will terminate, but it is - * inefficient and hard to understand! - */ - } - } - - /* - * At the top of the tree, no need to traverse the right - * half, prevent the traversal of the entire tree in the - * case of default route. - */ - if (rn->rn_parent->rn_flags & RNF_ROOT) - stopping = 1; - - /* Find the next *leaf* since next node might vanish, too */ - for (rn = rn->rn_parent->rn_right; rn->rn_bit >= 0;) - rn = rn->rn_left; - next = rn; - /* Process leaves */ - while ((rn = base) != 0) { - base = rn->rn_dupedkey; - /* printf("leaf %p\n", rn); */ - if (!(rn->rn_flags & RNF_ROOT) - && (error = (*f)(rn, w))) - return (error); - } - rn = next; + if (!m) + return rn_walktree_with(h, a, f, w); - if (rn->rn_flags & RNF_ROOT) { - /* printf("root, stopping"); */ - stopping = 1; - } + char temp[64], *cp, *cp2 = a, *cp3 = m; + size_t length = min(LEN(a), LEN(m)); + struct subtree_info si; + if (length > sizeof(temp)) { + R_Malloc(si.si_maskedkey, char *, length); + } else { + si.si_maskedkey = temp; } + si.si_f = f; + si.si_w = w; + si.si_netmask = cp3; + si.si_cplim = si.si_maskedkey + length; + + for (cp = si.si_maskedkey; cp < si.si_cplim; cp++) + { *cp = *cp2++ & *cp3++; } + + int return_code = rn_walktree_with + (h, si.si_maskedkey, rn_walksubtree_helper, &si); + if (length > sizeof(temp)) + Free(si.si_maskedkey); + if (return_code == 2) + return si.si_error; return 0; } static int -rn_walktree(h, f, w) - struct radix_node_head *h; +rn_walktree1(rn, skipfirst, f, w) + struct radix_node *rn; + int skipfirst; walktree_f_t *f; void *w; { int error; struct radix_node *base, *next; - register struct radix_node *rn = h->rnh_treetop; /* * This gets complicated because we may delete the node * while applying the function f to it, so we need to calculate @@ -1105,6 +1069,10 @@ /* Find the next *leaf* since next node might vanish, too */ for (rn = rn->rn_parent->rn_right; rn->rn_bit >= 0;) rn = rn->rn_left; + if (skipfirst) { + skipfirst = 0; + continue; + } next = rn; /* Process leaves */ while ((rn = base)) { @@ -1120,6 +1088,42 @@ /* NOTREACHED */ } +static int +rn_walktree(h, f, w) + struct radix_node_head *h; + walktree_f_t *f; + void *w; +{ + return rn_walktree1(h->rnh_treetop, 0, f, w); +} + +/* + * Walk the tree starting with or after v, (without masking). + */ +static int +rn_walktree_with(h, v_arg, f, w) + struct radix_node_head *h; + void *v_arg; + walktree_f_t *f; + void *w; +{ + int b, skipfirst = 0; + caddr_t v = v_arg; + struct radix_node *x = rn_insert(v_arg, h, &b, (struct radix_node *)0); + if (b != 1) { + /* our value matches every child of x up to, but !including b */ + if (v[b >> 3] & (0x80 >> ( b & 7 )) ) { + /* value will be > so start *after* rightmost child */ + skipfirst = 1; + while (x->rn_bit > 0) { x = x->rn_right; } + } else { + /* value < any child so start with leftmost child */ + while (x->rn_bit > 0) { x = x->rn_left; } + } + } /* b == 1 means exact match so we start with it */ + return rn_walktree1(x, skipfirst, f, w); +} + /* * Allocate and initialize an empty tree. This has 3 nodes, which are * part of the radix_node_head (in the order ) and are #include #include #include #include #include #include #define KASSERT(cond, list) { if (cond) printf list ; } #include "radix.c" #include #include struct radix_node_head *rnh; struct testdata { char *addr; char *mask; u_short vd_vlan; } samples[] = { { "128.32.9.0", "255.255.255.0" }, { "128.32.8.0", "255.255.255.0" }, { "128.32.8.1", 0 }, { "128.32.8.3", 0 }, { 0, 0 } }; struct treedata { struct radix_node tree_glue[2]; struct sockaddr_in tree_addr; struct sockaddr_in tree_mask; }; void debauch(char *addr, struct sockaddr_in *sin) /* lead into sin */ { /* bzero(sin, sizeof(*sin)); pedantically, already zeroed */ sin->sin_len = sizeof (*sin); sin->sin_family = AF_INET; (void) inet_aton(addr, &sin->sin_addr); } void install(struct testdata *td) { struct sockaddr_in *mask_p = 0; struct treedata *tr; R_Zalloc(tr, struct treedata *, sizeof(*tr)); debauch(td->addr, &tr->tree_addr); if (td->mask) { debauch(td->mask, &tr->tree_mask); mask_p = &tr->tree_mask; } (void) rnh->rnh_addaddr(&(tr->tree_addr), mask_p, rnh, tr->tree_glue); } int p_helper(struct radix_node *rn, void *v) { struct treedata *tr = (struct treedata *)rn; printf("addr %s\n", inet_ntoa(tr->tree_addr.sin_addr)); return (0); } struct sockaddr_in sample_mask, inthetree, notintree, middle; #ifndef offsetof #define offsetof(type, member) ((size_t)(&((type *)0)->member)) #endif main() { rn_init(sizeof sample_mask); rn_inithead((void **)&rnh, 8 * offsetof(struct sockaddr_in, sin_addr)); debauch("255.255.255.0", &sample_mask); debauch("128.32.9.0", &inthetree); debauch("128.32.25.0", ¬intree); debauch("128.32.8.2", &middle); struct testdata *td; for (td = samples; td->addr; td++) install(td); printf("inthetree case\n"); rnh->rnh_walktree_from(rnh, &inthetree, &sample_mask, p_helper, 0); printf("notintree case\n"); rnh->rnh_walktree_from(rnh, ¬intree, &sample_mask, p_helper, 0); printf("new middle case\n"); rnh->rnh_walktree_from(rnh, &middle, 0, p_helper, 0); /* printf("walksubtree does\n"); rn_walksubtree(rnh, &inthetree, &sample_mask, p_helper, 0); printf("walksubtree does\n"); rn_walksubtree(rnh, ¬intree, &sample_mask, p_helper, 0); */ exit(0); } From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 02:50:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2DB84699 for ; Fri, 4 Jan 2013 02:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 1DAFB3A7 for ; Fri, 4 Jan 2013 02:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r042o0Kk093308 for ; Fri, 4 Jan 2013 02:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r042o0DM093307; Fri, 4 Jan 2013 02:50:00 GMT (envelope-from gnats) Date: Fri, 4 Jan 2013 02:50:00 GMT Message-Id: <201301040250.r042o0DM093307@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Keith Sklower Subject: Re: kern/174958: [patch] rnh_walktree_from makes unreasonable assumptions X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Keith Sklower List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 02:50:01 -0000 The following reply was made to PR kern/174958; it has been noted by GNATS. From: Keith Sklower To: freebsd-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/174958: [patch] rnh_walktree_from makes unreasonable assumptions Date: Thu, 3 Jan 2013 18:34:24 -0800 (PST) Hi, With a fair amount of egg on my face I have to ask to resubmit the patch ... I tried tidying it up a bit to minimize diffs and forgot to recompile and test one last time here is the new patch, and I'll include my test harness after that: --- radix.c 2012-12-21 17:21:51.000000000 -0800 +++ radix.c.rewrite 2013-01-03 18:26:01.000000000 -0800 @@ -466,6 +466,10 @@ if (rn_debug) log(LOG_DEBUG, "rn_insert: Going In:\n"), traverse(p); #endif + if (nodes == 0 ) { + *dupentry = b; + return x; + } t = rn_newpair(v_arg, b, nodes); tt = t->rn_left; if ((cp[p->rn_offset] & p->rn_bmask) == 0) @@ -967,6 +971,37 @@ return (tt); } +struct subtree_info { + walktree_f_t * si_f; + void * si_w; + int si_error; + char * si_maskedkey; + char * si_netmask; + char * si_cplim; +}; + +static int +rn_walksubtree_helper(rn, w) + struct radix_node *rn; + void *w; +{ + struct subtree_info *si = w; + char *cp, *cp2 = (char *)(rn->rn_key), *cp3 = si->si_netmask; + + /* check that we are still in the subtree */ + for (cp = si->si_maskedkey; cp < si->si_cplim; cp++) { + if (*cp != (*cp2++) & (*cp3++)) + return 1; + } + if ((si->si_error = (*(si->si_f))(rn, si->si_w))) + return 2; + return 0; +} + +/* forward declaration needed below */ +static int rn_walktree_with(struct radix_node_head *h, void *a, + walktree_f_t *f, void *w); + /* * This is the same as rn_walktree() except for the parameters and the * exit. @@ -978,115 +1013,44 @@ walktree_f_t *f; void *w; { - int error; - struct radix_node *base, *next; - u_char *xa = (u_char *)a; - u_char *xm = (u_char *)m; - register struct radix_node *rn, *last = 0 /* shut up gcc */; - int stopping = 0; - int lastb; - - /* - * rn_search_m is sort-of-open-coded here. We cannot use the - * function because we need to keep track of the last node seen. - */ - /* printf("about to search\n"); */ - for (rn = h->rnh_treetop; rn->rn_bit >= 0; ) { - last = rn; - /* printf("rn_bit %d, rn_bmask %x, xm[rn_offset] %x\n", - rn->rn_bit, rn->rn_bmask, xm[rn->rn_offset]); */ - if (!(rn->rn_bmask & xm[rn->rn_offset])) { - break; - } - if (rn->rn_bmask & xa[rn->rn_offset]) { - rn = rn->rn_right; - } else { - rn = rn->rn_left; - } - } - /* printf("done searching\n"); */ - - /* - * Two cases: either we stepped off the end of our mask, - * in which case last == rn, or we reached a leaf, in which - * case we want to start from the last node we looked at. - * Either way, last is the node we want to start from. - */ - rn = last; - lastb = rn->rn_bit; - - /* printf("rn %p, lastb %d\n", rn, lastb);*/ - - /* - * This gets complicated because we may delete the node - * while applying the function f to it, so we need to calculate - * the successor node in advance. - */ - while (rn->rn_bit >= 0) - rn = rn->rn_left; - - while (!stopping) { - /* printf("node %p (%d)\n", rn, rn->rn_bit); */ - base = rn; - /* If at right child go back up, otherwise, go right */ - while (rn->rn_parent->rn_right == rn - && !(rn->rn_flags & RNF_ROOT)) { - rn = rn->rn_parent; - - /* if went up beyond last, stop */ - if (rn->rn_bit <= lastb) { - stopping = 1; - /* printf("up too far\n"); */ - /* - * XXX we should jump to the 'Process leaves' - * part, because the values of 'rn' and 'next' - * we compute will not be used. Not a big deal - * because this loop will terminate, but it is - * inefficient and hard to understand! - */ - } - } - - /* - * At the top of the tree, no need to traverse the right - * half, prevent the traversal of the entire tree in the - * case of default route. - */ - if (rn->rn_parent->rn_flags & RNF_ROOT) - stopping = 1; - - /* Find the next *leaf* since next node might vanish, too */ - for (rn = rn->rn_parent->rn_right; rn->rn_bit >= 0;) - rn = rn->rn_left; - next = rn; - /* Process leaves */ - while ((rn = base) != 0) { - base = rn->rn_dupedkey; - /* printf("leaf %p\n", rn); */ - if (!(rn->rn_flags & RNF_ROOT) - && (error = (*f)(rn, w))) - return (error); - } - rn = next; + if (!m) + return rn_walktree_with(h, a, f, w); - if (rn->rn_flags & RNF_ROOT) { - /* printf("root, stopping"); */ - stopping = 1; - } + char temp[64], *cp, *cp2 = a, *cp3 = m; + size_t length = min(LEN(a), LEN(m)); + struct subtree_info si; + if (length > sizeof(temp)) { + R_Malloc(si.si_maskedkey, char *, length); + } else { + si.si_maskedkey = temp; } + si.si_f = f; + si.si_w = w; + si.si_netmask = cp3; + si.si_cplim = si.si_maskedkey + length; + + for (cp = si.si_maskedkey; cp < si.si_cplim; cp++) + { *cp = *cp2++ & *cp3++; } + + int return_code = rn_walktree_with + (h, si.si_maskedkey, rn_walksubtree_helper, &si); + if (length > sizeof(temp)) + Free(si.si_maskedkey); + if (return_code == 2) + return si.si_error; return 0; } static int -rn_walktree(h, f, w) - struct radix_node_head *h; +rn_walktree1(rn, skipfirst, f, w) + struct radix_node *rn; + int skipfirst; walktree_f_t *f; void *w; { int error; struct radix_node *base, *next; - register struct radix_node *rn = h->rnh_treetop; /* * This gets complicated because we may delete the node * while applying the function f to it, so we need to calculate @@ -1105,6 +1069,10 @@ /* Find the next *leaf* since next node might vanish, too */ for (rn = rn->rn_parent->rn_right; rn->rn_bit >= 0;) rn = rn->rn_left; + if (skipfirst) { + skipfirst = 0; + continue; + } next = rn; /* Process leaves */ while ((rn = base)) { @@ -1120,6 +1088,42 @@ /* NOTREACHED */ } +static int +rn_walktree(h, f, w) + struct radix_node_head *h; + walktree_f_t *f; + void *w; +{ + return rn_walktree1(h->rnh_treetop, 0, f, w); +} + +/* + * Walk the tree starting with or after v, (without masking). + */ +static int +rn_walktree_with(h, v_arg, f, w) + struct radix_node_head *h; + void *v_arg; + walktree_f_t *f; + void *w; +{ + int b, skipfirst = 0; + caddr_t v = v_arg; + struct radix_node *x = rn_insert(v_arg, h, &b, (struct radix_node *)0); + if (b != 1) { + /* our value matches every child of x up to, but !including b */ + if (v[b >> 3] & (0x80 >> ( b & 7 )) ) { + /* value will be > so start *after* rightmost child */ + skipfirst = 1; + while (x->rn_bit > 0) { x = x->rn_right; } + } else { + /* value < any child so start with leftmost child */ + while (x->rn_bit > 0) { x = x->rn_left; } + } + } /* b == 1 means exact match so we start with it */ + return rn_walktree1(x, skipfirst, f, w); +} + /* * Allocate and initialize an empty tree. This has 3 nodes, which are * part of the radix_node_head (in the order ) and are #include #include #include #include #include #include #define KASSERT(cond, list) { if (cond) printf list ; } #include "radix.c" #include #include struct radix_node_head *rnh; struct testdata { char *addr; char *mask; u_short vd_vlan; } samples[] = { { "128.32.9.0", "255.255.255.0" }, { "128.32.8.0", "255.255.255.0" }, { "128.32.8.1", 0 }, { "128.32.8.3", 0 }, { 0, 0 } }; struct treedata { struct radix_node tree_glue[2]; struct sockaddr_in tree_addr; struct sockaddr_in tree_mask; }; void debauch(char *addr, struct sockaddr_in *sin) /* lead into sin */ { /* bzero(sin, sizeof(*sin)); pedantically, already zeroed */ sin->sin_len = sizeof (*sin); sin->sin_family = AF_INET; (void) inet_aton(addr, &sin->sin_addr); } void install(struct testdata *td) { struct sockaddr_in *mask_p = 0; struct treedata *tr; R_Zalloc(tr, struct treedata *, sizeof(*tr)); debauch(td->addr, &tr->tree_addr); if (td->mask) { debauch(td->mask, &tr->tree_mask); mask_p = &tr->tree_mask; } (void) rnh->rnh_addaddr(&(tr->tree_addr), mask_p, rnh, tr->tree_glue); } int p_helper(struct radix_node *rn, void *v) { struct treedata *tr = (struct treedata *)rn; printf("addr %s\n", inet_ntoa(tr->tree_addr.sin_addr)); return (0); } struct sockaddr_in sample_mask, inthetree, notintree, middle; #ifndef offsetof #define offsetof(type, member) ((size_t)(&((type *)0)->member)) #endif main() { rn_init(sizeof sample_mask); rn_inithead((void **)&rnh, 8 * offsetof(struct sockaddr_in, sin_addr)); debauch("255.255.255.0", &sample_mask); debauch("128.32.9.0", &inthetree); debauch("128.32.25.0", ¬intree); debauch("128.32.8.2", &middle); struct testdata *td; for (td = samples; td->addr; td++) install(td); printf("inthetree case\n"); rnh->rnh_walktree_from(rnh, &inthetree, &sample_mask, p_helper, 0); printf("notintree case\n"); rnh->rnh_walktree_from(rnh, ¬intree, &sample_mask, p_helper, 0); printf("new middle case\n"); rnh->rnh_walktree_from(rnh, &middle, 0, p_helper, 0); /* printf("walksubtree does\n"); rn_walksubtree(rnh, &inthetree, &sample_mask, p_helper, 0); printf("walksubtree does\n"); rn_walksubtree(rnh, ¬intree, &sample_mask, p_helper, 0); */ exit(0); } From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 10:30:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8A69680A for ; Fri, 4 Jan 2013 10:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 593FDA99 for ; Fri, 4 Jan 2013 10:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r04AU2SL021882 for ; Fri, 4 Jan 2013 10:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r04AU2Jo021881; Fri, 4 Jan 2013 10:30:02 GMT (envelope-from gnats) Resent-Date: Fri, 4 Jan 2013 10:30:02 GMT Resent-Message-Id: <201301041030.r04AU2Jo021881@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christian Ullrich Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3B0DA613 for ; Fri, 4 Jan 2013 10:20:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 2D46FA47 for ; Fri, 4 Jan 2013 10:20:25 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r04AKOJa019691 for ; Fri, 4 Jan 2013 10:20:24 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r04AKODJ019690; Fri, 4 Jan 2013 10:20:24 GMT (envelope-from nobody) Message-Id: <201301041020.r04AKODJ019690@red.freebsd.org> Date: Fri, 4 Jan 2013 10:20:24 GMT From: Christian Ullrich To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174966: Bug in chflags(2) man page X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 10:30:02 -0000 >Number: 174966 >Category: misc >Synopsis: Bug in chflags(2) man page >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 04 10:30:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Christian Ullrich >Release: 9.1 >Organization: >Environment: >Description: securelevel > 0 prevents the superuser from changing the flags. The current wording says the inverse. >How-To-Repeat: >Fix: Index: lib/libc/sys/chflags.2 =================================================================== --- lib/libc/sys/chflags.2 (revision 245035) +++ lib/libc/sys/chflags.2 (working copy) @@ -98,7 +98,7 @@ or .Dv SF_NOUNLINK is set a non-super-user cannot change any flags and even the super-user -can change flags only if securelevel is greater than 0. +can change flags only if securelevel is not greater than 0. (See .Xr init 8 for details.) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 14:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CFB90A37 for ; Fri, 4 Jan 2013 14:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A07A9342 for ; Fri, 4 Jan 2013 14:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r04E006v030137 for ; Fri, 4 Jan 2013 14:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r04E00fS030136; Fri, 4 Jan 2013 14:00:00 GMT (envelope-from gnats) Resent-Date: Fri, 4 Jan 2013 14:00:00 GMT Resent-Message-Id: <201301041400.r04E00fS030136@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Volodymyr Kostyrko Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D519CA33 for ; Fri, 4 Jan 2013 13:59:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C631D33E for ; Fri, 4 Jan 2013 13:59:39 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r04DxdmP017869 for ; Fri, 4 Jan 2013 13:59:39 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r04DxdCo017868; Fri, 4 Jan 2013 13:59:39 GMT (envelope-from nobody) Message-Id: <201301041359.r04DxdCo017868@red.freebsd.org> Date: Fri, 4 Jan 2013 13:59:39 GMT From: Volodymyr Kostyrko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174969: unionfs and tmpfs can produce panic when mixed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 14:00:00 -0000 >Number: 174969 >Category: kern >Synopsis: unionfs and tmpfs can produce panic when mixed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 04 14:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Volodymyr Kostyrko >Release: RELENG_9_1 >Organization: None >Environment: FreeBSD urquan.xim.bz 9.1-RELEASE FreeBSD 9.1-RELEASE #3 r244839M: Sun Dec 30 00:34:33 EET 2012 arcade@urquan.xim.bz:/usr/obj/usr/src/sys/MINIMAL amd64 >Description: I'm doing this: >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: >>> /etc/fstab /tmp /some/other/dir unionfs ro,late,below 0 0 cd /some/other/dir ls The system shows directory contents and I see shell prompt. Immediately after this panic occurs. https://docs.google.com/open?id=0Bxzr6h0p2pN8aU4xZ3E4ZkttSTA From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 16:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AAF884B7 for ; Fri, 4 Jan 2013 16:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9275DBFA for ; Fri, 4 Jan 2013 16:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r04GK0IQ036748 for ; Fri, 4 Jan 2013 16:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r04GK0GM036747; Fri, 4 Jan 2013 16:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 4 Jan 2013 16:20:00 GMT Resent-Message-Id: <201301041620.r04GK0GM036747@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Paul Guyot Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 23A30416 for ; Fri, 4 Jan 2013 16:12:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 161FEB4B for ; Fri, 4 Jan 2013 16:12:09 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r04GC8ou047460 for ; Fri, 4 Jan 2013 16:12:08 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r04GC8Qd047459; Fri, 4 Jan 2013 16:12:08 GMT (envelope-from nobody) Message-Id: <201301041612.r04GC8Qd047459@red.freebsd.org> Date: Fri, 4 Jan 2013 16:12:08 GMT From: Paul Guyot To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/174974: bsnmpd SNMPv3 engine discovery is broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 16:20:00 -0000 >Number: 174974 >Category: bin >Synopsis: bsnmpd SNMPv3 engine discovery is broken >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 04 16:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Paul Guyot >Release: 9.1 >Organization: Semiocast >Environment: FreeBSD serenae.semiocast.net 9.1-RELEASE FreeBSD 9.1-RELEASE #1 r244484M: Thu Dec 20 12:17:24 UTC 2012 root@serenae.semiocast.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: bsnmpd apparently does not properly reply to discovery packets. According to RFC3414 § 4, response to discovery packets should be of REPORT type. Instead, bsnmpd replies with packets of RESPONSE type. As a result, bsnmpd does not work with clients that require a Report PDU (or, more precisely, that validate that Response PDUs match the EngineID of the Request). bsnmp* clients accept both types of responses and is therefore unaffected. >How-To-Repeat: Install net-snmp from ports. Configure bsnmpd with SNMPv3 authentication. Try to connect with net-snmp to the bsnmpd server. >Fix: Attached patch fixes the problem by using the SNMP_MSG_AUTODISCOVER internal flag of bsnmp. Patch is designed as the minimum change to fix the issue. However, bsnmp implementation obviously does not match the layout of the RFC. Also, compiling bsnmp with clang reveals several bad issues which should be fixed... Patch attached with submission follows: Index: contrib/bsnmp/lib/snmpagent.c =================================================================== --- contrib/bsnmp/lib/snmpagent.c (revision 245044) +++ contrib/bsnmp/lib/snmpagent.c (working copy) @@ -171,7 +171,11 @@ memset(resp, 0, sizeof(*resp)); strcpy(resp->community, pdu->community); resp->version = pdu->version; - resp->type = SNMP_PDU_RESPONSE; + if (pdu->flags & SNMP_MSG_AUTODISCOVER) { + resp->type = SNMP_PDU_REPORT; /* RFC 3414.4 */ + } else { + resp->type = SNMP_PDU_RESPONSE; + } resp->request_id = pdu->request_id; resp->version = pdu->version; Index: contrib/bsnmp/snmpd/main.c =================================================================== --- contrib/bsnmp/snmpd/main.c (revision 245044) +++ contrib/bsnmp/snmpd/main.c (working copy) @@ -627,6 +627,7 @@ } else community = comm->value; } else if (pdu->nbindings == 0) { + pdu->flags |= SNMP_MSG_AUTODISCOVER; /* RFC 3414 - snmpEngineID Discovery */ if (strlen(pdu->user.sec_name) == 0) { asn_append_oid(&(pdu->bindings[pdu->nbindings++].var), >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 18:10:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B45519AF for ; Fri, 4 Jan 2013 18:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8EB449A for ; Fri, 4 Jan 2013 18:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r04IA1S9040650 for ; Fri, 4 Jan 2013 18:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r04IA1SH040649; Fri, 4 Jan 2013 18:10:01 GMT (envelope-from gnats) Date: Fri, 4 Jan 2013 18:10:01 GMT Message-Id: <201301041810.r04IA1SH040649@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Eitan Adler Subject: Re: kern/174933 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Eitan Adler List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 18:10:01 -0000 The following reply was made to PR kern/174933; it has been noted by GNATS. From: Eitan Adler To: bug-followup Cc: Subject: Re: kern/174933 Date: Fri, 4 Jan 2013 13:04:31 -0500 ---------- Forwarded message ---------- From: Martin Laabs Date: 4 January 2013 12:40 Subject: Bug analyzed - how to fix it? To: freebsd-emulation@freebsd.org Hi, I'm (hopefully) done with the bug analyses of "http://www.freebsd.org/cgi/query-pr.cgi?pr=174933". The bug in one sentences: if_nameindex (resided in the libc) fails if called out of a linux binary. The cause is that the if_nameindex calls a function named __opensock that return a socket. This socket is used to call an ioctl(SIOCGIFCONF ...). This ioctl call is actually implemented in the linuxulator. Unfortunately the __opensock function tries to create the following socket: socket(PF_NETLINK, SOCK_RAW, 0) in decimal: socket(16,3,0) This type of socket type however is not supported by the linuxulator and IMHO in freebsd at all. However - maybe it just has another name in FreeBSD. So - for me there seem to be two solutions: 1. Write a dirty patch that returns a PF_INET instead of the PF_NETLINK socket if called with the arguments above. This should be OK since I assume that SIOCGIFCONF ioctl works also fine with PF_INET sockets. (I'll test this to verify whether this is true) This however would be somewhat dirty since PF_NETLINK sockets are not really supported and if another application tries to open a real PF_NETLINK socket it will get a false positive result. 2. Patch the glibc to not create a PF_NETLINK socket in __opensock but create a PF_INET socket instead. The problem is that I do not know about the side effects since the __opensock function is used elsewhere in the libc also. The second drawback is that this would lead to a customized libc for the linuxulator. As far as I know the current libc(s) are just bare copies out of linux systems. So this solution would also increase maintenance effort. Do you have an other idea how to fix the problem? Thank you, Martin _______________________________________________ freebsd-emulation@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" -- Eitan Adler From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 21:10:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B2DA5CF9 for ; Fri, 4 Jan 2013 21:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 973D893F for ; Fri, 4 Jan 2013 21:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r04LA0Rg064764 for ; Fri, 4 Jan 2013 21:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r04LA0cj064763; Fri, 4 Jan 2013 21:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 4 Jan 2013 21:10:00 GMT Resent-Message-Id: <201301042110.r04LA0cj064763@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Monthadar Al Jaberi Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8DA87B3E for ; Fri, 4 Jan 2013 21:02:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 7CD9090A for ; Fri, 4 Jan 2013 21:02:56 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r04L2utC023180 for ; Fri, 4 Jan 2013 21:02:56 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r04L2uj7023179; Fri, 4 Jan 2013 21:02:56 GMT (envelope-from nobody) Message-Id: <201301042102.r04L2uj7023179@red.freebsd.org> Date: Fri, 4 Jan 2013 21:02:56 GMT From: Monthadar Al Jaberi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174978: Routerboard RB433AH has slot 18 and not 17 as base slot. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 21:10:00 -0000 >Number: 174978 >Category: kern >Synopsis: Routerboard RB433AH has slot 18 and not 17 as base slot. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 04 21:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Monthadar Al Jaberi >Release: Head r245006 >Organization: >Environment: FreeBSD rb433ah 10.0-CURRENT FreeBSD 10.0-CURRENT #179: Fri Jan 4 23:21:47 CET 2013 root@mechy:/usr/obj/mips.mips/usr/src/sys/RB433AH_MFS mips >Description: The Mikrotik Routerboard RB433AH have the PCI bus connections routed diffrently. This results in that the base slot for RB433AH is 18 and not the default value of 17. FreeBSD will fail to assign the corret IRQ number. And no interrupts will be received from the connected miniPCI peripheral. >How-To-Repeat: Connect a wifi device on slot marked 'J401' on the RB433AH PCB. Compile a simple kernel following Luiz instructions (http://loos.no-ip.org/routerboard/). Boot the board. Create a wlan0 device. The wlan0 device is unusable. Error messages like the following will print out when ever running (e.g.): # ifconfig wlan0 scan root@rb433ah:~ # ath0: device timeout ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >Fix: Change the base slot value to 18 for the RB433AH board. This can be done by supplying a hint. If no hint is supplied the default value of 17 is used. An example patch is added. Patch attached with submission follows: diff --git a/sys/mips/atheros/ar71xx_pci.c b/sys/mips/atheros/ar71xx_pci.c index 126537c..9b88f60 100644 --- a/sys/mips/atheros/ar71xx_pci.c +++ b/sys/mips/atheros/ar71xx_pci.c @@ -81,6 +81,7 @@ struct ar71xx_pci_softc { device_t sc_dev; int sc_busno; + int sc_baseslot; struct rman sc_mem_rman; struct rman sc_irq_rman; @@ -395,6 +396,16 @@ ar71xx_pci_attach(device_t dev) AR71XX_PCI_IRQ_END) != 0) panic("ar71xx_pci_attach: failed to set up IRQ rman"); + /* + * Check if there is a base slot hint. Otherwise use default value. + */ + if (resource_int_value(device_get_name(dev), + device_get_unit(dev), "baseslot", &sc->sc_baseslot) != 0) { + device_printf(dev, + "%s: missing hint '%s', default to AR71XX_PCI_BASE_SLOT\n", + __func__, "baseslot"); + sc->sc_baseslot = AR71XX_PCI_BASE_SLOT; + } ATH_WRITE_REG(AR71XX_PCI_INTR_STATUS, 0); ATH_WRITE_REG(AR71XX_PCI_INTR_MASK, 0); @@ -648,11 +659,13 @@ ar71xx_pci_maxslots(device_t dev) static int ar71xx_pci_route_interrupt(device_t pcib, device_t device, int pin) { - if (pci_get_slot(device) < AR71XX_PCI_BASE_SLOT) + struct ar71xx_pci_softc *sc = device_get_softc(pcib); + + if (pci_get_slot(device) < sc->sc_baseslot) panic("%s: PCI slot %d is less then AR71XX_PCI_BASE_SLOT", __func__, pci_get_slot(device)); - return (pci_get_slot(device) - AR71XX_PCI_BASE_SLOT); + return (pci_get_slot(device) - sc->sc_baseslot); } static device_method_t ar71xx_pci_methods[] = { diff --git a/sys/mips/conf/RB433AH.hints b/sys/mips/conf/RB433AH.hints index c2c0c53..08961f9 100644 --- a/sys/mips/conf/RB433AH.hints +++ b/sys/mips/conf/RB433AH.hints @@ -24,6 +24,7 @@ hint.ehci.0.irq=1 # pci hint.pcib.0.at="nexus0" hint.pcib.0.irq=0 +hint.pcib.0.baseslot=18 hint.arge.0.at="nexus0" hint.arge.0.maddr=0x19000000 >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 4 22:30:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AC17DB98 for ; Fri, 4 Jan 2013 22:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 87620CC1 for ; Fri, 4 Jan 2013 22:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r04MU1Lw078837 for ; Fri, 4 Jan 2013 22:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r04MU18l078834; Fri, 4 Jan 2013 22:30:01 GMT (envelope-from gnats) Date: Fri, 4 Jan 2013 22:30:01 GMT Message-Id: <201301042230.r04MU18l078834@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "J.R. Oldroyd" Subject: Re: bin/166364: [patch] make ps(1) display 8-bit characters as such X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "J.R. Oldroyd" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 22:30:01 -0000 The following reply was made to PR bin/166364; it has been noted by GNATS. From: "J.R. Oldroyd" To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/166364: [patch] make ps(1) display 8-bit characters as such Date: Fri, 4 Jan 2013 17:08:11 -0500 --MP_/SrLCoOr8Z25xe/DdN6rIFAm Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline A minor update is needed for this patch for it to apply cleanly to the ps(1) source that's on FreeBSD-9.1. --MP_/SrLCoOr8Z25xe/DdN6rIFAm Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=ps-9.1.diff --- fmt.c.orig 2013-01-02 19:27:13.000000000 -0500 +++ fmt.c 2013-01-04 17:02:11.000000000 -0500 @@ -47,7 +47,6 @@ #include #include #include -#include #include "ps.h" @@ -82,8 +81,7 @@ if (*src == '\0') continue; len = (buf_size - 1 - (dst - buf)) / 4; - strvisx(dst, src, strlen(src) < len ? strlen(src) : len, - VIS_NL | VIS_CSTYLE); + strcpy(dst, src); while (*dst != '\0') dst++; if ((buf_size - 1 - (dst - buf)) / 4 > 0) --- print.c.orig 2013-01-02 19:27:13.000000000 -0500 +++ print.c 2013-01-04 17:03:01.000000000 -0500 @@ -60,7 +60,6 @@ #include #include #include -#include #include "ps.h" @@ -105,7 +104,7 @@ v = ve->var; if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) errx(1, "malloc failed"); - strvis(vis_args, k->ki_args, VIS_TAB | VIS_NL | VIS_NOSLASH); + strcpy(vis_args, k->ki_args); if (STAILQ_NEXT(ve, next_ve) != NULL && strlen(vis_args) > ARGUMENTS_WIDTH) vis_args[ARGUMENTS_WIDTH] = '\0'; @@ -135,7 +134,7 @@ } if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) errx(1, "malloc failed"); - strvis(vis_args, k->ki_args, VIS_TAB | VIS_NL | VIS_NOSLASH); + strcpy(vis_args, k->ki_args); if (STAILQ_NEXT(ve, next_ve) == NULL) { /* last field */ @@ -144,8 +143,7 @@ if ((vis_env = malloc(strlen(k->ki_env) * 4 + 1)) == NULL) errx(1, "malloc failed"); - strvis(vis_env, k->ki_env, - VIS_TAB | VIS_NL | VIS_NOSLASH); + strcpy(vis_env, k->ki_env); } else vis_env = NULL; --MP_/SrLCoOr8Z25xe/DdN6rIFAm-- From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 00:40:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A9A1A4E1 for ; Sat, 5 Jan 2013 00:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 77BE6E5 for ; Sat, 5 Jan 2013 00:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r050e0nM006483 for ; Sat, 5 Jan 2013 00:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r050e0cc006482; Sat, 5 Jan 2013 00:40:00 GMT (envelope-from gnats) Resent-Date: Sat, 5 Jan 2013 00:40:00 GMT Resent-Message-Id: <201301050040.r050e0cc006482@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "NIKA Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B339C4CE for ; Sat, 5 Jan 2013 00:38:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 8CA75DC for ; Sat, 5 Jan 2013 00:38:53 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r050crAI068666 for ; Sat, 5 Jan 2013 00:38:53 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r050crQI068665; Sat, 5 Jan 2013 00:38:53 GMT (envelope-from nobody) Message-Id: <201301050038.r050crQI068665@red.freebsd.org> Date: Sat, 5 Jan 2013 00:38:53 GMT From: "NIKA To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174985: AHCI or ATA-ATI bug on BSD 8 and above (ATI SB600; ahci timeout; on BSD 7 - no bug) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 00:40:00 -0000 >Number: 174985 >Category: kern >Synopsis: AHCI or ATA-ATI bug on BSD 8 and above (ATI SB600; ahci timeout; on BSD 7 - no bug) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 00:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: NIKA >Release: 9.1 >Organization: >Environment: >Description: I get a bug when I run install program FreeBSD 9.1 on my ASUS A7U notebook (ATI RS690 chipset; ATI SB600 south bridge; Seagate SATAI harddrive; BIOS a7uas.206, if it's important). This bug I have posted already (it has ID "kern/174880"), but later I guessed to turn on Verbose option and wrote detailed dmesg. So, previous PR is about the same bug and can be closed. The bug is the following. FreeBSD 9.1 (FreeBSD 8.3 too) can not see my harddrive. The message is: "ahcich1: Timeout on slot 0 port 0". So, install program can not resume - no hard drive in the system. My BIOS does not have option to switch drive to PATA mode, so AHCI is required. At the same time, FreeBSD 7.4 can see it. With FreeBSD 7.4 is no problem. Clearly, some bug in AHCI or ATA-ATI driver appeared in 8R. I am interested to use PCBSD, but can not do it. Please, help. Below - messages from dmesg, which can relate to this bug (FreeBSD 9.1): ********************************************************** >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 08:30:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AC0C4D97 for ; Sat, 5 Jan 2013 08:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 93B36F76 for ; Sat, 5 Jan 2013 08:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r058U0cK099627 for ; Sat, 5 Jan 2013 08:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r058U0vB099626; Sat, 5 Jan 2013 08:30:00 GMT (envelope-from gnats) Resent-Date: Sat, 5 Jan 2013 08:30:00 GMT Resent-Message-Id: <201301050830.r058U0vB099626@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Yerenkow Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1B9F9D89 for ; Sat, 5 Jan 2013 08:28:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E4034F6D for ; Sat, 5 Jan 2013 08:28:51 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r058SpvH069462 for ; Sat, 5 Jan 2013 08:28:51 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r058SpO0069461; Sat, 5 Jan 2013 08:28:51 GMT (envelope-from nobody) Message-Id: <201301050828.r058SpO0069461@red.freebsd.org> Date: Sat, 5 Jan 2013 08:28:51 GMT From: Alexander Yerenkow To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/174996: patch for xbmc headless mode X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 08:30:00 -0000 >Number: 174996 >Category: misc >Synopsis: patch for xbmc headless mode >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 08:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Alexander Yerenkow >Release: >Organization: >Environment: >Description: multimedia/xbmc should have included this patch, for headless mode. This could be done as optional. http://pastebin.com/nfXdefBk since xbmc have upnp server ability, it's useful mode. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 11:10:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C9CF215B for ; Sat, 5 Jan 2013 11:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B06AC96B for ; Sat, 5 Jan 2013 11:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05BA2IA027314 for ; Sat, 5 Jan 2013 11:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05BA2qU027313; Sat, 5 Jan 2013 11:10:02 GMT (envelope-from gnats) Resent-Date: Sat, 5 Jan 2013 11:10:02 GMT Resent-Message-Id: <201301051110.r05BA2qU027313@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jukka Ukkonen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 65056151 for ; Sat, 5 Jan 2013 11:08:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 56BDA963 for ; Sat, 5 Jan 2013 11:08:57 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r05B8uH6029335 for ; Sat, 5 Jan 2013 11:08:56 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r05B8uMk029334; Sat, 5 Jan 2013 11:08:56 GMT (envelope-from nobody) Message-Id: <201301051108.r05B8uMk029334@red.freebsd.org> Date: Sat, 5 Jan 2013 11:08:56 GMT From: Jukka Ukkonen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/175001: The current strnstr() function should be named strlstr() X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 11:10:02 -0000 >Number: 175001 >Category: kern >Synopsis: The current strnstr() function should be named strlstr() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 11:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jukka Ukkonen >Release: 9.1-STABLE >Organization: ----- >Environment: FreeBSD sleipnir 9.1-STABLE FreeBSD 9.1-STABLE #0: Sat Jan 5 09:07:29 EET 2013 root@sleipnir:/usr/obj/usr/src/sys/Sleipnir amd64 >Description: The current function named strnstr() should be called strlstr(). In the current function the length limit is on the first string parameter. There are other functions predating the current strnstr() which also place the limit on the first string of the two string parameters, e.g. strlcpy() and strlcat(). OTOH the old functions called strncpy() and strncat() place the limit on the second string parameter. To maintain the old tradition as well as a sort of least surprise behaviour there really should be two similar functions: (1) strlstr (s1, s2, n) and (2) strnstr (s1, s2, n). The first one should look for a substring s2 in a limited prefix of s1. The second one should look for a limited size prefix of s2 in the whole s1. The current implementation behaves as (1) but has the name of (2). Currently the only users of the misnamed strnstr() are mount, whois, wpa_supplicant, and portsnap/phttpget. So, if done sooner than later the change would not have a big impact. Neither strlstr() nor strnstr() are controlled by any standards. Nor are they frequently available in other OS environments. In e.g. SuSE there is a function named strnstr(), but apparently not in Red Hat. >How-To-Repeat: See the whole philosophy in "full description" above. >Fix: Rename the current strnstr() to strlstr() and add a new function called strnstr() which behaves as the model below... char * (strnstr) (s, t, n) register const char *s, *t; register const size_t n; { if (! s || ! t) { errno = EFAULT; return (NULL); } if (! *t || ! n) return ((char *) s); for ( ; (s = strchr (s, *t)); s++) { if (! strncmp (s, t, n)) return ((char *) s); } return (NULL); } >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 11:40:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CD23C76B for ; Sat, 5 Jan 2013 11:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AF902A2C for ; Sat, 5 Jan 2013 11:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05Be0fU032815 for ; Sat, 5 Jan 2013 11:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05Be0sB032811; Sat, 5 Jan 2013 11:40:00 GMT (envelope-from gnats) Resent-Date: Sat, 5 Jan 2013 11:40:00 GMT Resent-Message-Id: <201301051140.r05Be0sB032811@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "NIKA Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E6A02651 for ; Sat, 5 Jan 2013 11:30:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D73EAA12 for ; Sat, 5 Jan 2013 11:30:59 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r05BUxMb062281 for ; Sat, 5 Jan 2013 11:30:59 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r05BUxjK062280; Sat, 5 Jan 2013 11:30:59 GMT (envelope-from nobody) Message-Id: <201301051130.r05BUxjK062280@red.freebsd.org> Date: Sat, 5 Jan 2013 11:30:59 GMT From: "NIKA To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/175002: AHCI or ATA-ATI bug on BSD 8 and above (ATI SB600; ahci timeout; on BSD 7 - no bug) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 11:40:00 -0000 >Number: 175002 >Category: kern >Synopsis: AHCI or ATA-ATI bug on BSD 8 and above (ATI SB600; ahci timeout; on BSD 7 - no bug) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 11:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: NIKA >Release: 9.1 >Organization: >Environment: >Description: I get a bug when I run install program FreeBSD 9.1 on my ASUS A7U notebook (ATI RS690 chipset; ATI SB600 south bridge; Seagate SATAI harddrive; BIOS a7uas.206, if it's important). This bug have been posted already two times (first - after which I guessed to turn on Verbose option and wrote detailed dmesg, and second - because of formatting problem, no dmesg was posted). So, previous two PRs (kern/174880 and kern/174985) are about the same bug and can be closed. The bug is the following. FreeBSD 9.1 (FreeBSD 8.3 too) can not see my harddrive. The message is: "ahcich1: Timeout on slot 0 port 0". So, install program can not resume - no hard drive in the system. My BIOS does not have option to switch drive to PATA mode, so AHCI is required. At the same time, FreeBSD 7.4 can see it. With FreeBSD 7.4 is no problem. Clearly, some bug in AHCI or ATA-ATI driver appeared in 8R. I am interested to use PCBSD, but can not do it. Please, help. Below - messages from verbosed dmesg, which can relate to this bug (FreeBSD 9.1): ************************************************* * * * ahcich1: AHCI reset... ahcich1: SATA connect time=1800us status=00000113 ahcich1: AHCI reset: device found * * * ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ahcich1: AHCI reset: device ready after 100ms (aprobe0:ahcich1:0:15:0): NOP. ACB: 00 00 00 00 00 00 00 00 00 00 00 00 (aprobe0:ahcich1:0:15:0): CAM status: Command timeout (aprobe0:ahcich1:0:15:0): Error 5, Retries exhausted ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 ata0: reset tp2 stat0=00 stat1=00 devices=0x10000 * * * ahcich1: Timeout on slot 0 port 0 ahcich1: is 00000002 cs 00000000 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 00042017 ahcich1: AHCI reset... ahcich1: SATA connect time=1800us status=00000113 ahcich1: AHCI reset: device found (aprobe0:ahcich1:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00 (aprobe0:ahcich1:0:0:0): CAM status: Command timeout (aprobe0:ahcich1:0:0:0): Error 5, Retry was blocked * * * ahcich1: AHCI reset: device ready after 100ms * * * ************************************************* >How-To-Repeat: Try to run FreeBSD 9.1 on ASUS A7U. I can test solves on my notebook. >Fix: Patch attached with submission follows: I get a bug when I run install program FreeBSD 9.1 on my ASUS A7U notebook (ATI RS690 chipset; ATI SB600 south bridge; Seagate SATAI harddrive; BIOS a7uas.206, if it's important). This bug have been posted already two times (first - after which I guessed to turn on Verbose option and wrote detailed dmesg, and second - because of formatting problem, no dmesg was posted). So, previous two PRs (kern/174880 and kern/174985) are about the same bug and can be closed. The bug is the following. FreeBSD 9.1 (FreeBSD 8.3 too) can not see my harddrive. The message is: "ahcich1: Timeout on slot 0 port 0". So, install program can not resume - no hard drive in the system. My BIOS does not have option to switch drive to PATA mode, so AHCI is required. At the same time, FreeBSD 7.4 can see it. With FreeBSD 7.4 is no problem. Clearly, some bug in AHCI or ATA-ATI driver appeared in 8R. I am interested to use PCBSD, but can not do it. Please, help. Below - messages from verbosed dmesg, which can relate to this bug (FreeBSD 9.1): ************************************************* * * * ahcich1: AHCI reset... ahcich1: SATA connect time=1800us status=00000113 ahcich1: AHCI reset: device found * * * ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ahcich1: AHCI reset: device ready after 100ms (aprobe0:ahcich1:0:15:0): NOP. ACB: 00 00 00 00 00 00 00 00 00 00 00 00 (aprobe0:ahcich1:0:15:0): CAM status: Command timeout (aprobe0:ahcich1:0:15:0): Error 5, Retries exhausted ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 ata0: reset tp2 stat0=00 stat1=00 devices=0x10000 * * * ahcich1: Timeout on slot 0 port 0 ahcich1: is 00000002 cs 00000000 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 00042017 ahcich1: AHCI reset... ahcich1: SATA connect time=1800us status=00000113 ahcich1: AHCI reset: device found (aprobe0:ahcich1:0:0:0): ATA_IDENTIFY. ACB: ec 00 00 00 00 40 00 00 00 00 00 00 (aprobe0:ahcich1:0:0:0): CAM status: Command timeout (aprobe0:ahcich1:0:0:0): Error 5, Retry was blocked * * * ahcich1: AHCI reset: device ready after 100ms * * * ************************************************* >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 13:20:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0E94AD82 for ; Sat, 5 Jan 2013 13:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E7229DC8 for ; Sat, 5 Jan 2013 13:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05DK0Or051229 for ; Sat, 5 Jan 2013 13:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05DK0bh051225; Sat, 5 Jan 2013 13:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 5 Jan 2013 13:20:00 GMT Resent-Message-Id: <201301051320.r05DK0bh051225@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tatsuki Makino Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 51818BAE for ; Sat, 5 Jan 2013 13:16:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 2ED1CDB5 for ; Sat, 5 Jan 2013 13:16:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r05DGiMB040590 for ; Sat, 5 Jan 2013 13:16:44 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r05DGi30040589; Sat, 5 Jan 2013 13:16:44 GMT (envelope-from nobody) Message-Id: <201301051316.r05DGi30040589@red.freebsd.org> Date: Sat, 5 Jan 2013 13:16:44 GMT From: Tatsuki Makino To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: conf/175006: /etc/rc.d/ip6addrctl exits not 0 when ip6addrctl_verbose="NO" X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 13:20:01 -0000 >Number: 175006 >Category: conf >Synopsis: /etc/rc.d/ip6addrctl exits not 0 when ip6addrctl_verbose="NO" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 13:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tatsuki Makino >Release: FreeBSD 9.1-PRERELEASE i386 >Organization: >Environment: FreeBSD T0.test 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r244396M: Tue Dec 18 23:49:46 UTC 2012 root@T0.test:/usr/obj/usr/src/sys/GENERIC i386 >Description: The exit status of /etc/rc.d/ip6addrctl is not 0. "checkyesno ip6addrctl_verbose" is affected it. >How-To-Repeat: % # on 9-stable and 8-stable % su # tcsh # set printexitvalue # echo 'ip6addrctl_verbose="NO"' >> /etc/rc.conf # /etc/rc.d/ip6addrctl start Exit 1 >Fix: patch Patch attached with submission follows: Index: base/head/etc/rc.d/ip6addrctl =================================================================== --- base/head/etc/rc.d/ip6addrctl (revision 245056) +++ base/head/etc/rc.d/ip6addrctl (working copy) @@ -35,6 +35,7 @@ ip6addrctl add ::/96 20 3 ip6addrctl add ::ffff:0:0/96 10 4 checkyesno ip6addrctl_verbose && ip6addrctl + return 0 } ip6addrctl_prefer_ipv4() @@ -48,6 +49,7 @@ ip6addrctl add 2002::/16 20 3 ip6addrctl add ::/96 10 4 checkyesno ip6addrctl_verbose && ip6addrctl + return 0 } ip6addrctl_start() @@ -60,7 +62,7 @@ if [ -r "${config_file}" -a -s "${config_file}" ]; then ip6addrctl flush >/dev/null 2>&1 ip6addrctl install "${config_file}" - checkyesno ip6addrctl_verbose && ip6addrctl + checkyesno ip6addrctl_verbose && ip6addrctl || true else if checkyesno ipv6_activate_all_interfaces; then ip6addrctl_prefer_ipv6 >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 15:44:59 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 41C64657; Sat, 5 Jan 2013 15:44:59 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 195CC1F5; Sat, 5 Jan 2013 15:44:59 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05FiwOM076727; Sat, 5 Jan 2013 15:44:58 GMT (envelope-from mjg@freefall.freebsd.org) Received: (from mjg@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05FiwiH076723; Sat, 5 Jan 2013 15:44:58 GMT (envelope-from mjg) Date: Sat, 5 Jan 2013 15:44:58 GMT Message-Id: <201301051544.r05FiwiH076723@freefall.freebsd.org> To: mjg@FreeBSD.org, freebsd-bugs@FreeBSD.org, mjg@FreeBSD.org From: mjg@FreeBSD.org Subject: Re: kern/174969: unionfs and tmpfs can produce panic when mixed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 15:44:59 -0000 Synopsis: unionfs and tmpfs can produce panic when mixed Responsible-Changed-From-To: freebsd-bugs->mjg Responsible-Changed-By: mjg Responsible-Changed-When: Sat Jan 5 15:44:58 UTC 2013 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=174969 From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 15:58:56 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1A67FAC6; Sat, 5 Jan 2013 15:58:56 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DB41D250; Sat, 5 Jan 2013 15:58:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05Fwt9H078429; Sat, 5 Jan 2013 15:58:55 GMT (envelope-from hrs@freefall.freebsd.org) Received: (from hrs@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05FwtIM078425; Sat, 5 Jan 2013 15:58:55 GMT (envelope-from hrs) Date: Sat, 5 Jan 2013 15:58:55 GMT Message-Id: <201301051558.r05FwtIM078425@freefall.freebsd.org> To: hrs@FreeBSD.org, freebsd-bugs@FreeBSD.org, hrs@FreeBSD.org From: hrs@FreeBSD.org Subject: Re: conf/175006: /etc/rc.d/ip6addrctl exits not 0 when ip6addrctl_verbose="NO" X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 15:58:56 -0000 Synopsis: /etc/rc.d/ip6addrctl exits not 0 when ip6addrctl_verbose="NO" Responsible-Changed-From-To: freebsd-bugs->hrs Responsible-Changed-By: hrs Responsible-Changed-When: Sat Jan 5 15:58:44 UTC 2013 Responsible-Changed-Why: I'll take this. http://www.freebsd.org/cgi/query-pr.cgi?pr=175006 From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 16:09:10 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B412EC74; Sat, 5 Jan 2013 16:09:10 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 853B129A; Sat, 5 Jan 2013 16:09:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05G9Ad6080303; Sat, 5 Jan 2013 16:09:10 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05G9AXL080299; Sat, 5 Jan 2013 16:09:10 GMT (envelope-from linimon) Date: Sat, 5 Jan 2013 16:09:10 GMT Message-Id: <201301051609.r05G9AXL080299@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: ports/174996: patch for multimedia/xbmc headless mode X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 16:09:10 -0000 Old Synopsis: patch for xbmc headless mode New Synopsis: patch for multimedia/xbmc headless mode Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jan 5 16:08:42 UTC 2013 Responsible-Changed-Why: Fix synopsis. http://www.freebsd.org/cgi/query-pr.cgi?pr=174996 From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 17:47:27 2013 Return-Path: Delivered-To: bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EFF916D1; Sat, 5 Jan 2013 17:47:27 +0000 (UTC) (envelope-from awarecons@gmail.com) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx1.freebsd.org (Postfix) with ESMTP id 6F186915; Sat, 5 Jan 2013 17:47:27 +0000 (UTC) Received: by mail-vc0-f177.google.com with SMTP id m8so17745739vcd.36 for ; Sat, 05 Jan 2013 09:47:20 -0800 (PST) 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=6b8CAIC5y53si6biDA+xtSU93G7sc9adhcr0kDPZqtQ=; b=yWF4KwrdDoyPgaLN9eVF1WbItEeiJQBLkurHVYFTjaDPd42ghI5cM5yerrgR/wmitM 6pMfX82xX8xc5f0uvBE54FwiXlSa3YRe2NTgMAEKjkuI2sUSzLNJB599UgAU9d5BVC5z sp58IpGzA6hnKxbmGkbHmwseJpQ7zK7+f0SuhFaKaO7ypf4TDzA1WDbak/9G53xio6If SfPz+f0rOOYdljhRvQG0pZ2Roy+/VeuosoyGzThJpbBP/8y4lVjgqf309CwvHocI3vjE 5OXswfhUmuNve81qjR1uImj3Of1RZXUaamC/8sxzvov1BLTAa6L9cL4htTO1yXrDWaRi KKEQ== MIME-Version: 1.0 Received: by 10.58.34.4 with SMTP id v4mr68026440vei.57.1357408040792; Sat, 05 Jan 2013 09:47:20 -0800 (PST) Received: by 10.220.230.138 with HTTP; Sat, 5 Jan 2013 09:47:20 -0800 (PST) Date: Sat, 5 Jan 2013 21:47:20 +0400 Message-ID: Subject: devel/dconf ISSUE -avoid-version From: awarecons To: ports@freebsd.org, bugbusters@FreeBSD.org, bugs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 17:47:28 -0000 # $FreeBSD: ports/devel/dconf/Makefile,v 1.7 2012/11/17 05:55:40 svnexp Exp $ # $MCom: ports/devel/dconf/Makefile,v 1.9 2010/11/04 16:41:01 kwm Exp $ # PORTNAME= dconf PORTVERSION= 0.5.1 PORTREVISION= 4 devel/dconf/gsettings/Makefile:197 libdconfsettings_so_LDFLAGS = -module -avoid-version -shared error: unrecognized option -avoid-version Both gcc 4.2/4.6 Remedy: remove '-avoid-version' option. From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 18:31:32 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 65C046D0; Sat, 5 Jan 2013 18:31:32 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3836EBDF; Sat, 5 Jan 2013 18:31:32 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05IVWm2007187; Sat, 5 Jan 2013 18:31:32 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05IVWXK007183; Sat, 5 Jan 2013 18:31:32 GMT (envelope-from linimon) Date: Sat, 5 Jan 2013 18:31:32 GMT Message-Id: <201301051831.r05IVWXK007183@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-doc@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: docs/174966: [patch] Bug in chflags(2) man page X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 18:31:32 -0000 Old Synopsis: Bug in chflags(2) man page New Synopsis: [patch] Bug in chflags(2) man page Responsible-Changed-From-To: freebsd-bugs->freebsd-doc Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jan 5 18:31:10 UTC 2013 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=174966 From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 18:34:43 2013 Return-Path: Delivered-To: bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8B9987AC; Sat, 5 Jan 2013 18:34:43 +0000 (UTC) (envelope-from awarecons@gmail.com) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx1.freebsd.org (Postfix) with ESMTP id 1AC1CC20; Sat, 5 Jan 2013 18:34:42 +0000 (UTC) Received: by mail-vc0-f171.google.com with SMTP id n11so17585277vch.16 for ; Sat, 05 Jan 2013 10:34:42 -0800 (PST) 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=+qiNK/Es0OiLXkk9snBq+4BEx7gHuuNe7EhRXrgBzm4=; b=rEi2sHxY7HPr9b6gUcz3Z4iENHAwpVzuAE1oqc5Wl7ck/Uv6Aq/1nwTjjA/hQsgXIM jEMceKaafsk0nSGpv3kxDIOcqEMlMNw8GozzLa6NjXvcA8A78kspeZWEtKQmdCiKvcAf obvj+z03WpOGLf+asTnJyRq4mIevMRcpfp7scHE+ptXLLhAEAwWF6O0kgtzOBhzpzeug EXf5CpGijTqnqVBPR+wqYGFo2AD/z/JCd+d8kKZGlWM1p6TwmsrX7YhT725keu6k8maP jvA9fANXyAZx/LZ1aBk7anZC6vJwrLr5rPKtrPeXI3jS42PUFDAoe8qPbab/Kz6nJxV9 Ofmg== MIME-Version: 1.0 Received: by 10.220.247.204 with SMTP id md12mr79750889vcb.27.1357410882199; Sat, 05 Jan 2013 10:34:42 -0800 (PST) Received: by 10.220.230.138 with HTTP; Sat, 5 Jan 2013 10:34:42 -0800 (PST) Date: Sat, 5 Jan 2013 22:34:42 +0400 Message-ID: Subject: audio/libsidplay v 1.36.59 ISSUE 'bin' is not a member of 'std::ios From: awarecons To: ports@freebsd.org, bugbusters@FreeBSD.org, bugs@freebsd.org, ports-bugs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 18:34:43 -0000 freebsd-9.0-RELEASE-p5-i386 gcc 4.6.3: ... libtool: compile: g++46 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsidplay\" -DVERSION=\"1.36.59\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_CHAR=1 -DSIZEOF_SHORT_INT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG_INT=4 -DSTDC_HEADERS=1 -DHAVE_LONG_FILE_NAMES=1 -DHAVE_DLFCN_H=1 -I. -I. -I.. -O2 -pipe -march=pentium4 -mtune=pentium4 -Wno-error -w -O2 -pipe -march=pentium4 -mtune=pentium4 -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -O2 -pipe -march=pentium4 -mtune=pentium4 -Wno-error -w -Wl,-rpath=/usr/local/lib/gcc46 -MT sidtune.lo -MD -MP -MF .deps/sidtune.Tpo -c sidtune.cpp -fPIC -DPIC -o .libs/sidtune.o sidtune.cpp: In member function 'udword sidTune::loadFile(const char*, ubyte**)': sidtune.cpp:310:35: error: 'bin' is not a member of 'std::ios {aka std::basic_ios}' sidtune.cpp: In member function 'bool sidTune::saveC64dataFile(const char*, bool)': sidtune.cpp:976:45: error: 'bin' is not a member of 'std::ios {aka std::basic_ios}' sidtune.cpp: In member function 'bool sidTune::savePSIDfile(const char*, bool)': sidtune.cpp:1065:45: error: 'bin' is not a member of 'std::ios {aka std::basic_ios}' *** Error code 1 Stop in /usr/ports/audio/libsidplay/work/libsidplay-1.36.59/src. *** Error code 1 Stop in /usr/ports/audio/libsidplay/work/libsidplay-1.36.59. *** Error code 1 Stop in /usr/ports/audio/libsidplay. gcc 4.2 works fine. It might be good idea to set USE_GCC=4.2+ directly in its Makefile?.. Or make it 4.6+ - compatible? Whichever the easiest... ;7 From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 20:50:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C86D468C for ; Sat, 5 Jan 2013 20:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AC977253 for ; Sat, 5 Jan 2013 20:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05Ko0Pd031032 for ; Sat, 5 Jan 2013 20:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05Ko0MC031031; Sat, 5 Jan 2013 20:50:00 GMT (envelope-from gnats) Resent-Date: Sat, 5 Jan 2013 20:50:00 GMT Resent-Message-Id: <201301052050.r05Ko0MC031031@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Paranoid Ted Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5F2994A8 for ; Sat, 5 Jan 2013 20:44:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB3C1D0 for ; Sat, 5 Jan 2013 20:44:29 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r05KiSVS015476 for ; Sat, 5 Jan 2013 20:44:28 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r05KiS39015475; Sat, 5 Jan 2013 20:44:28 GMT (envelope-from nobody) Message-Id: <201301052044.r05KiS39015475@red.freebsd.org> Date: Sat, 5 Jan 2013 20:44:28 GMT From: Paranoid Ted To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/175052: base sendmail fails to build with security/cyrus-sasl2 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 20:50:00 -0000 >Number: 175052 >Category: misc >Synopsis: base sendmail fails to build with security/cyrus-sasl2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 20:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Paranoid Ted >Release: 9.1-RELEASE >Organization: none >Environment: FreeBSD testbox.paranoidted.info 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: When trying to rebuild sendmail with SASLv2 according to http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html the build process stops with the following error: cc1: warnings being treated as errors /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c: In function 'sm_sasl_init': /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 1 of 'sasl_set_alloc' from incompatible pointer type /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 2 of 'sasl_set_alloc' from incompatible pointer type /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 3 of 'sasl_set_alloc' from incompatible pointer type *** [sasl.o] Error code 1 in the following step: #cd /usr/src/usr.sbin/sendmail # make cleandir && make obj && make && make install >How-To-Repeat: Follow steps 1-5 from http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html The error happens on step 5. >Fix: There is a proposed fix here: http://forums.freebsd.org/showthread.php?p=203528 "changed line 141 in /usr/src/contrib/sendmail/src/sasl.c to: sasl_set_alloc((sasl_malloc_t *)sm_sasl_malloc, (sasl_calloc_t *)sm_sasl_calloc, (sasl_realloc_t *)sm_sasl_realloc, (sasl_free_t *)sm_sasl_free);" N.B. The error manifests itself on i386 but it may not happen on amd64. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 5 23:10:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C77BE8ED for ; Sat, 5 Jan 2013 23:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A986E9E2 for ; Sat, 5 Jan 2013 23:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r05NA1UM055882 for ; Sat, 5 Jan 2013 23:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r05NA178055881; Sat, 5 Jan 2013 23:10:01 GMT (envelope-from gnats) Resent-Date: Sat, 5 Jan 2013 23:10:01 GMT Resent-Message-Id: <201301052310.r05NA178055881@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frank Mayhar Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AEE1C4BF for ; Sat, 5 Jan 2013 23:00:47 +0000 (UTC) (envelope-from frank@auton.exit.com) Received: from auton.exit.com (unknown [IPv6:2001:470:f0fd:30:d6be:d9ff:fe85:8fbd]) by mx1.freebsd.org (Postfix) with ESMTP id 7CE21995 for ; Sat, 5 Jan 2013 23:00:46 +0000 (UTC) Received: from auton.exit.com (localhost [127.0.0.1]) by auton.exit.com (8.14.5/8.14.5) with ESMTP id r05N0sus082150 for ; Sat, 5 Jan 2013 15:00:54 -0800 (PST) (envelope-from frank@auton.exit.com) Received: (from frank@localhost) by auton.exit.com (8.14.5/8.14.5/Submit) id r05N0sAI082149; Sat, 5 Jan 2013 15:00:54 -0800 (PST) (envelope-from frank) Message-Id: <201301052300.r05N0sAI082149@auton.exit.com> Date: Sat, 5 Jan 2013 15:00:54 -0800 (PST) From: Frank Mayhar To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.114 Subject: kern/175053: iwn firmware error on 9-stable with Ultimate-N 6300 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Frank Mayhar List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 23:10:01 -0000 >Number: 175053 >Category: kern >Synopsis: iwn firmware error on 9-stable with Ultimate-N 6300 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 23:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Frank Mayhar >Release: FreeBSD 9.1-STABLE i386 >Organization: >Environment: System: FreeBSD auton 9.1-STABLE FreeBSD 9.1-STABLE #8 r244998M: Thu Jan 3 20:25:30 PST 2013 root@auton:/usr/obj/home/src/sys/AUTON i386 >Description: I'm trying to set up a new laptop, which has an Intel Centrino Ultimate-N 6300 wireless card. I was under the impression that the 9-stable iwn driver fully supported this card but I've run into a firmware crash: iwn0: iwn_intr: fatal firmware error firmware error log: error type = "SYSASSERT" (0x00000005) program counter = 0x00003C2C source line = 0x00000580 error data = 0x0000000100000000 branch link = 0x00003C2800003C28 interrupt link = 0x0000153200000000 time = 4029106370 driver status: tx ring 0: qid=0 cur=0 queued=0 tx ring 1: qid=1 cur=0 queued=0 tx ring 2: qid=2 cur=0 queued=0 tx ring 3: qid=3 cur=3 queued=0 tx ring 4: qid=4 cur=107 queued=0 tx ring 5: qid=5 cur=0 queued=0 tx ring 6: qid=6 cur=0 queued=0 tx ring 7: qid=7 cur=0 queued=0 tx ring 8: qid=8 cur=0 queued=0 tx ring 9: qid=9 cur=0 queued=0 tx ring 10: qid=10 cur=0 queued=0 tx ring 11: qid=11 cur=0 queued=0 tx ring 12: qid=12 cur=0 queued=0 tx ring 13: qid=13 cur=0 queued=0 tx ring 14: qid=14 cur=0 queued=0 tx ring 15: qid=15 cur=0 queued=0 tx ring 16: qid=16 cur=0 queued=0 tx ring 17: qid=17 cur=0 queued=0 tx ring 18: qid=18 cur=0 queued=0 tx ring 19: qid=19 cur=0 queued=0 rx ring: cur=7 This crash happens when configured to use both 11a and 11g (or 11na and 11ng). It has blocked me from using this card with 9-stable. Relevant bits from a verbose dmesg are: iwn0: mem 0xf7600000-0xf7601fff irq 17 at device 0.0 on pci3 iwn0: attempting to allocate 1 MSI vectors (1 supported) iwn0: using IRQ 266 for MSI iwn0: MIMO 3T3R, MoW, address 24:77:03:dc:b3:4c iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 3T3R iwn0: 11na MCS 20MHz iwn0: MCS 0-7: 6.5Mbps - 65Mbps iwn0: MCS 8-15: 13Mbps - 130Mbps iwn0: MCS 16-23: 19.5Mbps - 195Mbps iwn0: 11na MCS 20MHz SGI iwn0: MCS 0-7: 7Mbps - 72Mbps iwn0: MCS 8-15: 14.5Mbps - 144.5Mbps iwn0: MCS 16-23: 21.5Mbps - 216.5Mbps iwn0: 11na MCS 40MHz: iwn0: MCS 0-7: 13.5Mbps - 135Mbps iwn0: MCS 8-15: 27Mbps - 270Mbps iwn0: MCS 16-23: 40.5Mbps - 405Mbps iwn0: 11na MCS 40MHz SGI: iwn0: MCS 0-7: 15Mbps - 150Mbps iwn0: MCS 8-15: 30Mbps - 300Mbps iwn0: MCS 16-23: 45Mbps - 450Mbps iwn0: 11ng MCS 20MHz iwn0: MCS 0-7: 6.5Mbps - 65Mbps iwn0: MCS 8-15: 13Mbps - 130Mbps iwn0: MCS 16-23: 19.5Mbps - 195Mbps iwn0: 11ng MCS 20MHz SGI iwn0: MCS 0-7: 7Mbps - 72Mbps iwn0: MCS 8-15: 14.5Mbps - 144.5Mbps iwn0: MCS 16-23: 21.5Mbps - 216.5Mbps iwn0: 11ng MCS 40MHz: iwn0: MCS 0-7: 13.5Mbps - 135Mbps iwn0: MCS 8-15: 27Mbps - 270Mbps iwn0: MCS 16-23: 40.5Mbps - 405Mbps iwn0: 11ng MCS 40MHz SGI: iwn0: MCS 0-7: 15Mbps - 150Mbps iwn0: MCS 8-15: 30Mbps - 300Mbps iwn0: MCS 16-23: 45Mbps - 450Mbps >How-To-Repeat: Reboot and try to start iwn0. >Fix: None. >Release-Note: >Audit-Trail: >Unformatted: