Replace invocations of prandom_u32 with get_random_u32
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Renaming weak prng invocations - prandom_bytes_state, prandom_u32_statearch/ drivers/ drivers/ +25 more | +79 | 8 replies | |
| 2/5 | Replace invocation of weak PRNG in kernel/bpf/core.cinclude/ kernel/ kernel/ +1 more | +1 | 3 replies | |
| 3/5 | Replace invocation of weak PRNG in mm/slab.cmm/ | +8 | 0 replies | |
| 4/5 | Replace invocation of weak PRNG inside mm/slab_common.cmm/ | +3 | 0 replies | |
| 5/5 | Replace invocation of weak PRNG in arch/x86/mm/kaslr.carch/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Replace invocations of prandom_u32 with get_random_u32
From: David <[email protected]>
The security improvements for prandom_u32 done specifically in commits c51f8f88d705e06bd696d7510aff22b33eb8e638 from October 2020
and d4150779e60fb6c49be25572596b2cdfc5d46a09 from May 2022) didn't handle the cases when prandom_bytes_state() and prandom_u32_state()
are used. We have now added the necessary changes to handle
these cases as well.
David (5):
Renaming weak prng invocations - prandom_bytes_state,
prandom_u32_state
Replace invocation of weak PRNG in kernel/bpf/core.c Replace invocation of weak PRNG in mm/slab.c Replace invocation of weak PRNG inside mm/slab_common.c Replace invocation of weak PRNG in arch/x86/mm/kaslr.c
arch/x86/mm/kaslr.c | 5 +-- .../gpu/drm/i915/gem/selftests/huge_pages.c | 2 +- .../i915/gem/selftests/i915_gem_client_blt.c | 2 +- .../i915/gem/selftests/i915_gem_coherency.c | 2 +- .../drm/i915/gem/selftests/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gt/selftest_lrc.c | 2 +- drivers/gpu/drm/i915/gt/selftest_migrate.c | 2 +- drivers/gpu/drm/i915/gt/selftest_timeline.c | 4 +- drivers/gpu/drm/i915/selftests/i915_random.c | 4 +- drivers/gpu/drm/i915/selftests/i915_random.h | 4 +- drivers/gpu/drm/i915/selftests/i915_syncmap.c | 4 +- .../drm/i915/selftests/intel_memory_region.c | 10 ++--- drivers/gpu/drm/i915/selftests/scatterlist.c | 4 +- drivers/gpu/drm/lib/drm_random.c | 2 +- drivers/mtd/tests/oobtest.c | 10 ++--- drivers/mtd/tests/pagetest.c | 12 +++--- drivers/mtd/tests/subpagetest.c | 12 +++--- drivers/scsi/fcoe/fcoe_ctlr.c | 2 +- include/linux/bpf.h | 1 - include/linux/prandom.h | 6 +-- kernel/bpf/core.c | 13 +----- kernel/bpf/verifier.c | 2 - lib/interval_tree_test.c | 6 +-- lib/random32.c | 42 +++++++++---------- lib/rbtree_test.c | 4 +- lib/test_bpf.c | 2 +- lib/test_parman.c | 2 +- lib/test_scanf.c | 8 ++-- mm/slab.c | 20 ++++----- mm/slab_common.c | 10 ++--- net/core/filter.c | 1 - 31 files changed, 88 insertions(+), 114 deletions(-)
Signature · 1 line
2.38.0