]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9abe13668825e3c688a746ed0afcfe8c5eb9969d
tree8370d6a23d4e005fde1c2f84dcbe0747f9966d4d
parent382b0963b6c1162c9dedbde4c7edc90235458218
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