mmc: core: Add CIDs for cards to the entropy pool
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Apr 2022 20:54:42 +0000 (22:54 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 26 Apr 2022 13:39:37 +0000 (15:39 +0200)
commitac9d25557dcc9fe90ed12bfbb6db401e892ca004
tree8370d6a23d4e005fde1c2f84dcbe0747f9966d4d
parent23e09be254f95a5b75cd87f91a4014f3b46dda3f
mmc: core: Add CIDs for cards to the entropy pool

To make the entropy pool a bit better we can toss in the
CID for eMMC and SD cards into it, usually the serial
number portion is at least unique.

This does not count as improvement of the entropy but
in practice it makes it a bit more random to mix in these
numbers.

Cc: Theodore Ts'o <tytso@mit.edu>
Acked-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220425205442.1347837-1-linus.walleij@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c