From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 1 07:40:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A98BC52A for ; Tue, 1 Apr 2014 07:40:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D093B82 for ; Tue, 1 Apr 2014 07:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s317e1IG069770 for ; Tue, 1 Apr 2014 07:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s317e1Un069769; Tue, 1 Apr 2014 07:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 1 Apr 2014 07:40:01 GMT Resent-Message-Id: <201404010740.s317e1Un069769@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, Petko Bordjukov Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 914862EB for ; Tue, 1 Apr 2014 07:37:57 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7EB0DB5B for ; Tue, 1 Apr 2014 07:37:57 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s317bvl0090210 for ; Tue, 1 Apr 2014 07:37:57 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s317bv18090203; Tue, 1 Apr 2014 07:37:57 GMT (envelope-from nobody) Message-Id: <201404010737.s317bv18090203@cgiserv.freebsd.org> Date: Tue, 1 Apr 2014 07:37:57 GMT From: Petko Bordjukov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/188159: Capsicum does not work on bing endian platforms X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2014 07:40:01 -0000 >Number: 188159 >Category: bin >Synopsis: Capsicum does not work on bing endian platforms >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 Apr 01 07:40:01 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Petko Bordjukov >Release: 11.0-CURRENT r263769M >Organization: >Environment: FreeBSD chernobyl.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r263769M: Wed Mar 26 18:19:38 EET 2014 root@barnswallow.local:/usr/obj/mips.mips/usr/src/sys/ROUTERSTATION mips >Description: Trying to use a command that has been ported to use capsicum causes it to exit with a Broken Pipe message. root@chernobyl:~ # ping -n 8.8.8.8 Broken pipe casperd[1711]: [ERROR] (casperd) Unable to receive message from client: Invalid argument. >How-To-Repeat: Attempt to ping anything from a big endian system >Fix: The patch to nvlist.c proposed by Jilles Tjoelker here fixes the issue for me: http://lists.freebsd.org/pipermail/freebsd-current/2014-March/048913.html Patch attached with submission follows: Index: lib/libnv/nvlist.c =================================================================== --- lib/libnv/nvlist.c (revision 263983) +++ lib/libnv/nvlist.c (working copy) @@ -582,7 +582,7 @@ errno = EINVAL; return (false); } - if ((nvlhdrp->nvlh_flags &= ~NV_FLAG_ALL_MASK) != 0) { + if ((nvlhdrp->nvlh_flags & ~NV_FLAG_ALL_MASK) != 0) { errno = EINVAL; return (false); } >Release-Note: >Audit-Trail: >Unformatted: