Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2014 21:49:23 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Ian Lepore <ian@FreeBSD.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, Adrian Chadd <adrian@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, Mark R V Murray <mark@grondar.org>
Subject:   Re: svn commit: r273958 - head/sys/dev/random
Message-ID:  <20141102194922.GD53947@kib.kiev.ua>
In-Reply-To: <1414955700.1200.6.camel@revolution.hippie.lan>
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> <CAJ-VmomeOwE3LOpehhJ__G=FCoBDRXrrn%2BSfjwPFODts6YYHNQ@mail.gmail.com> <1414955700.1200.6.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141102194922.GD53947>