From owner-freebsd-bugs@FreeBSD.ORG Sun Jan 4 04:45:10 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 57C41C20 for ; Sun, 4 Jan 2015 04:45:10 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 403973004 for ; Sun, 4 Jan 2015 04:45:10 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t044jAtB091903 for ; Sun, 4 Jan 2015 04:45:10 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196474] jls causes kernel panic Date: Sun, 04 Jan 2015 04:45:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: op@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2015 04:45:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196474 --- Comment #4 from Oliver Pinter --- please try the following path: --- sys/kern/vfs_mount.c.orig 2015-01-04 05:38:40.000000000 +0100 +++ sys/kern/vfs_mount.c 2015-01-04 05:38:05.000000000 +0100 @@ -1643,7 +1643,7 @@ if (opt->value == NULL) opt->len = len; else { - if (opt->len < len) + if (len < 0 || opt->len < len) return (EINVAL); opt->len = len; bcopy(value, opt->value, len); This fixed the problem for me: root@opn ~# jail -n crashme -c ip4=new persist root@opn ~# jls JID IP Address Hostname Path jls: jail_get: Invalid argument Btw, this is a possible DoS in typical jail based hosting environments. -- You are receiving this mail because: You are the assignee for the bug.