Re: BUG_ON drivers/char/random.c:986

From: Theodore Ts'o
Date: Wed Jul 16 2014 - 04:41:52 EST


On Tue, Jul 15, 2014 at 10:29:10PM +0200, Hannes Frederic Sowa wrote:
>
> Looks like an overflow introduced by e33ba5fa7afce1a ("random: fix nasty
> entropy accounting bug"). Ted, what do you think about the following
> fix?

Ah, right. We're only capping ibytes to be no more entropy in the
pool only in the r->limit case.

LGTM. Can you send a patch with a description with a description and
a Signed-off-by?

- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/