From owner-freebsd-usb@FreeBSD.ORG Sat Feb 8 16:01:50 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B8D0CB7 for ; Sat, 8 Feb 2014 16:01:50 +0000 (UTC) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6F0631767 for ; Sat, 8 Feb 2014 16:01:50 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id cm18so7193954qab.12 for ; Sat, 08 Feb 2014 08:01:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=31UuxraUQWobfCnAGpDSX/OSVMrNBp5Jvbs6oLLUzdM=; b=hWGeSU4sMFeFm7ii+VG4xsk3gZmMqW7FNWSHt2mDVA2iZQCZkmKz0DXdIPGlbbf8W7 sonLJVQkc52wyA1CEzaR6ihsvDyGpiJye6bdxnUaow/k3a/fIBuVeAYCSnU6MwSd3kuI f20CTUyCfmcsC+JQAikgtaahxzWyLaVDFZrSY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=31UuxraUQWobfCnAGpDSX/OSVMrNBp5Jvbs6oLLUzdM=; b=NyDGCgP9QNhGWQwazcrbB3xASXBN8aD352OL/v4OgcEuR/DD1IxJzrtByhocOlHzx0 EVjMzT+cRkMp9JVfvBmTg1OysrDdQefwj2hUAc0dwKO4ukX38nuwQ0nb6DUKY2Bnflbu Yqu0dAeNkIBcLO2JXp/kw/JOYDUdB8F5xNphZxEhkwG+bVKdY+IxH/8xQexOHrhjXYEK kqgn9nZxm1yQxLbVfCzCsPW+++w4WQTdBcXzQEwIlBQYCRdx0+seb2n9i8g4b9ba7KHT pkypY+XlS15XaDjTV8IgR0LjfWI748meQ2tMalmo0A4RqFI8sgL9HSNYDdrxLwdvRiU0 s/VQ== X-Gm-Message-State: ALoCoQkZH7i7TtaDo5zYuYyERFfvofy9KKomUH/zVMDou69zU5E9orR2/b0Mog47rodJzBqMA8Ew X-Received: by 10.224.44.8 with SMTP id y8mr32558175qae.44.1391875309562; Sat, 08 Feb 2014 08:01:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.96.175.169 with HTTP; Sat, 8 Feb 2014 08:01:19 -0800 (PST) In-Reply-To: References: From: Eitan Adler Date: Sat, 8 Feb 2014 11:01:19 -0500 Message-ID: Subject: Re: RE: Entering password at GELI prompt using USB keyboard To: perox@freenet.de, Andriy Gapon Content-Type: text/plain; charset=UTF-8 Cc: freebsd-usb@freebsd.org, Hans Petter Selasky X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Feb 2014 16:01:50 -0000 [ Andriy, see quoted paragraph below ] On Sat, Feb 8, 2014 at 9:12 AM, 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