[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141226010056.GB20702@gondor.apana.org.au>
Date: Fri, 26 Dec 2014 12:00:56 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Rusty Russell <rusty@...tcorp.com.au>
Cc: Fengguang Wu <fengguang.wu@...el.com>, LKP <lkp@...org>,
linux-kernel@...r.kernel.org,
Linux Crypto Mailing List <linux-crypto@...r.kernel.org>,
Amos Kong <akong@...hat.com>, m@...s.ch, mpm@...enic.com,
amit.shah@...hat.com
Subject: Re: [PATCH 3/5] hwrng: core - Do not register device
opportunistically
On Wed, Dec 24, 2014 at 09:59:41AM +1030, Rusty Russell wrote:
>
> Does this break userspace by creating a device which will just return
> -ENODEV on read? Sure, callers *should* handle it...
If somebody complains we could easily fix this by making open
fail. In fact, if such applications exist then they're likely
to want to hold onto a reference to the RNG after then open...
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists