Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2014 11:01:19 -0500
From:      Eitan Adler <lists@eitanadler.com>
To:        perox@freenet.de, Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-usb@freebsd.org, Hans Petter Selasky <hans.petter.selasky@bitfrost.no>
Subject:   Re: RE: Entering password at GELI prompt using USB keyboard
Message-ID:  <CAF6rxgkqzi6w9RfNEkM9raTjUOD1_qbvw8BPRJs%2B=dVxGjME6w@mail.gmail.com>
In-Reply-To: <b2a4f8346e40a079264eaa7ec3c45138@email.freenet.de>
References:  <b2a4f8346e40a079264eaa7ec3c45138@email.freenet.de>

next in thread | previous in thread | raw e-mail | index | archive | help

[ Andriy, see quoted paragraph below ]

On Sat, Feb 8, 2014 at 9:12 AM,  <perox@freenet.de> wrote:
> Hello again,
>
> finally I was able to "solve" my problem. The culprit was - as suspected - that
> GELI uses cngets() instead of gets() since 9.1. I used the old gets() as well as
> the related cngetc() and cncheckc() implementations from 9.0 and changed the
> call in GELI from cngets() to gets_old(). As a result of this, I can now enter
> the password at the GELI prompt again. Now, I am not sure what really causes my
> problem as cngets() is not that different from gets() except for the new
> cngrab() and cnungrab() calls as well as the the cpu_spinwait() in cngetc() that
> wasn't present before. Perhaps cpu_spinwait() is buggy on my system? Or the
> grab/ungrab things don't work correctly?
>
> If I see it correctly, Andriy Gapon is responsible for these last changes so I
> suppose it would be best to contact him directly and work out a solution?

Just add him on CC (done) and work out the solution on a public list:
this way it helps more than just you and people could learn from how
the debugging is done too. :-)


-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgkqzi6w9RfNEkM9raTjUOD1_qbvw8BPRJs%2B=dVxGjME6w>