Re: drivers/char/random.c line 728 BUG

From: Aaron Straus
Date: Wed Sep 03 2008 - 14:28:59 EST


Hi Matt,

On Sep 03 01:18 PM, Matt Mackall wrote:
> This fix is bogus - it assumes that r->entropy_count has atomic
> assignment which is not universally true (witness the existence of
> atomic_t). So we can still observe partial updates to entropy_count on
> some architectures. Now it's probably the case that we'll never see a
> partial update that actually triggers the BUG_ON, but it's still
> conceptually wrong to do things this way.

I think Andrew was just being safe by reverting to the old behavior.

Could we still apply his patch for the upcoming stable tree and fix it
the "right" way at some point in the future?

Thanks,
=a=

--
===================
Aaron Straus
aaron@xxxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature