From nobody@FreeBSD.org  Fri Nov 10 10:10:12 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3FACE16A40F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Nov 2006 10:10:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ED0E743D46
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Nov 2006 10:10:11 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kAAAABXl019576
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Nov 2006 10:10:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kAAAABWY019575;
	Fri, 10 Nov 2006 10:10:11 GMT
	(envelope-from nobody)
Message-Id: <200611101010.kAAAABWY019575@www.freebsd.org>
Date: Fri, 10 Nov 2006 10:10:11 GMT
From: Jost Menke<cyberlab@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: geli passphrase prompt malfunctioning when mounting encrypted fs at boot time
X-Send-Pr-Version: www-3.0

>Number:         105368
>Category:       kern
>Synopsis:       [geli] geli passphrase prompt malfunctioning when mounting encrypted fs at boot time
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 10 10:10:21 GMT 2006
>Closed-Date:    
>Last-Modified:  Mon Oct  5 02:30:02 UTC 2009
>Originator:     Jost Menke
>Release:        6.2-BETA3, also tested 6.1-RELEASE
>Organization:
>Environment:
FreeBSD  6.2-BETA3 FreeBSD 6.2-BETA3 #0: Mon Oct 30 22:04:37 UTC 2006     root@o
pus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
When running FreeBSD 6.2-BETA3 or 6.1-RELEASE in a VMware session with encrypted root filesystem, the geli password prompt does not work when the root fs is mounted at boot time. I put kern.geom.eli.visible_passphrase=1 into /boot/loader.conf to see what's wrong, result: the keyboard doesn't work at all. When kbdmux is deactivated by putting hint.kbdmux.0.disabled="1" into /boot/device.hints, the behaviour changes: Keyboard partly works, but about 90% of all keystrokes are lost. The problem only seems to occur when mounting encrypted volumes at boot time. Other people on the mailing list report similar problems running FreeBSD on real hardware.

>How-To-Repeat:
- Install 6.2-BETA3 or 6.1-RELEASE with encrypted root fs in VMware player 
- Put kern.geom.eli.visible_passphrase=1 into /boot/loader.conf
- Also try to put hint.kbdmux.0.disabled="1" into /boot/device.hints
>Fix:

>Release-Note:
>Audit-Trail:

From: Aline de Freitas <aline@bsd.com.br>
To: bug-followup@freebsd.org,
 cyberlab@gmx.de
Cc:  
Subject: Re: kern/105368: [geli] geli passphrase prompt malfunctioning when mounting encrypted fs at boot time
Date: Tue, 10 Jun 2008 20:05:00 -0300

 I'm running RELEASE-7.0, and with the same issues as this bug report.=20
 
 =46rom my kernel config file:
 
 # atkbdc0 controls both the keyboard and the PS/2 mouse
 device          atkbdc          # AT keyboard controller
 device          atkbd           # AT keyboard
 options         ATKBD_DFLT_KEYMAP
 makeoptions     ATKBD_DFLT_KEYMAP=3Dbr275.iso.acc
 device          psm             # PS/2 mouse
 
 #device         kbdmux          # keyboard multiplexer
 
 In my loader.conf I've put kern.geom.eli.visible_passphrase=3D1, so I can s=
 ee=20
 what I type in prompt. Some keys from keyboard only work after pressing 2 o=
 r=20
 3 times.
 
 =46reeBSD anderson-herzer.suite 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Mon Jun=
   9=20
 21:21:00 UTC 2008    =20
 aline@anderson-herzer.suite:/usr/obj/usr/src/sys/ANDERSON  i386
 
 Thanks,
 =2D-=20
 Aline de Freitas - Chave p=FAblica: ID DE632016 / keys.indymedia.org
 gpg --keyserver keys.indymedia.org --recv-keys DE632016

From: Arne Steinkamm <arne@Steinkamm.COM>
To: bug-followup@freebsd.org
Cc: cyberlab@gmx.de, aline@bsd.com.br
Subject: Re: kern/105368: [geli] geli passphrase prompt malfunctioning when mounting encrypted fs at boot time
Date: Mon, 5 Oct 2009 04:22:47 +0200

 I'm running RELEASE-7.2 and found the same problem of lost keystrokes.
 
 It seems to be motherboard issue. After replacing a motherboard with the current
 type this problem occurred.
 
 It's a VIA C3-2 system with a VIA EPIA MII motherboard and a PS2 keyboard
 connected with a console switch using the GENERIC kernel with loaded
 geom_eli and geom_mirror modules.
 Loading padlock makes no difference.
 
 The crypted root filesystem is inside a geom mirror. The system boots from
 a CF connected to an IDE port.
 
 Adding kern.geom.eli.visible_passphrase is not a solution because this
 makes the passphrase visible in the logs.
 
 After falling through the passphrase questions you reach the failsafe
 mountpoint dialog still inside the kernel. Here the keyboard works without any
 problems.
 
 Outside the kernel in userspace after boot there are also no problems with
 the keyboard.
 
 loader.conf:
 padlock_load="YES"
 geom_mirror_load="YES"
 geom_eli_load="YES"
 rootdev="mirror/stms1a.eli"
 vfs.root.mountfrom="ufs:mirror/stms1a.eli"
 kern.geom.eli.visible_passphrase=1
 
 mirror/stms1a.eli was created with geli init -b.
 
 Thanks.
 
 .//. Arne
 -- 
 Arne Steinkamm         | Home:     Mail: arne<at>steinkamm<dot>com  IRC: Arne
 Tel.: +49.89.299756    |    URL: http://WWW.Steinkamm.COM/  NIC-Handle: AS306
 Laendstrasse 4         | 
 80538 Muenchen GERMANY |
>Unformatted:
