diff options
author | David Keisar Schmidt <david.keisarschm@mail.huji.ac.il> | 2023-04-16 20:22:55 +0300 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2023-05-22 16:22:08 +0300 |
commit | ffe4dfe0baddaf61318bd275cacd64d4dbbbe724 (patch) | |
tree | 6120b7880c4daaee429e38bb2a125cdde5b4fabf /Documentation/admin-guide/auxdisplay/cfag12864b.rst | |
parent | f7e466e951a15bc7cec496f22f6276b854d3c310 (diff) | |
download | linux-ffe4dfe0baddaf61318bd275cacd64d4dbbbe724.tar.xz |
mm/slab_common: Replace invocation of weak PRNG
The Slab allocator randomization inside slab_common.c
uses the prandom_u32 PRNG. That was added to prevent attackers to obtain
information on the heap state.
However, this PRNG turned out to be weak, as noted in commit c51f8f88d705
To fix it, we have changed the invocation of prandom_u32_state to get_random_u32
to ensure the PRNG is strong.
Since a modulo operation is applied right after that,
in the Fisher-Yates shuffle, we used get_random_u32_below, to achieve uniformity.
Signed-off-by: David Keisar Schmidt <david.keisarschm@mail.huji.ac.il>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'Documentation/admin-guide/auxdisplay/cfag12864b.rst')
0 files changed, 0 insertions, 0 deletions