From owner-svn-src-head@FreeBSD.ORG Sun Nov 2 19:49:28 2014 Return-Path: Delivered-To: svn-src-head@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 538529F8; Sun, 2 Nov 2014 19:49:28 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 B5C16BD6; Sun, 2 Nov 2014 19:49:27 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id sA2JnNTJ020766 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 2 Nov 2014 21:49:23 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua sA2JnNTJ020766 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id sA2JnNRC020765; Sun, 2 Nov 2014 21:49:23 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 2 Nov 2014 21:49:23 +0200 From: Konstantin Belousov To: Ian Lepore Subject: Re: svn commit: r273958 - head/sys/dev/random Message-ID: <20141102194922.GD53947@kib.kiev.ua> References: <201411020201.sA221unt091493@svn.freebsd.org> <720EB74E-094A-43F3-8B1C-47BC7F6FECC3@grondar.org> <1414934579.17308.248.camel@revolution.hippie.lan> <6FB65828-6A79-4BDE-A9F7-BC472BA538CE@grondar.org> <1414955700.1200.6.camel@revolution.hippie.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1414955700.1200.6.camel@revolution.hippie.lan> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: "svn-src-head@freebsd.org" , Adrian Chadd , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , Mark R V Murray X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2014 19:49:28 -0000 On Sun, Nov 02, 2014 at 12:15:00PM -0700, Ian Lepore wrote: > On Sun, 2014-11-02 at 11:05 -0800, Adrian Chadd wrote: > > [snip all the conversation] > > > > Ok. There's still a problem that I can trigger by trying to Ctrl-C a > > process that's blocked reading for randomness. I'll try to chase up > > more details about and file a PR about it. > > > > The unfortunate part is that the kernel side stack trace of the > > offending / hung process isn't currently helpful. :( > > > > > > > > > > -adrian > > Possibly related... when I had the boot time save-entropy stuff stuck in > a read yesterday I tried ^T and it first reported the hung process in a > "block" wait. Any subsequent ^T showed the process as runnable and the > cpu usage as 100%. This is on a single-core arm. > Yes, this is because error from tsleep() in random_adaptor_read() does not abort the loop. But next loop iteration calls tsleep() which returns immediately since there is still pending signal. The process continues indefinitely.