Skip to content

5.10.119-rc1 review

Greg Kroah-Hartman linux-crypto linux-hyperv linux-kbuild lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest162 of 163 patches 14 repliesIn review

162 of 163 patches are in this archive. The cover letter announces 163.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/163lockdown: also lock down previous kgdb useinclude/linux/security.h kernel/debug/debug_core.c kernel/debug/kdb/kdb_main.c +1 more+87 -30 replies
2/163staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan()drivers/staging/rtl8723bs/os_dep/ioctl_linux.c+4 -20 replies
3/163KVM: x86: Properly handle APF vs disabled LAPIC situationarch/x86/kvm/lapic.c arch/x86/kvm/x86.c+7 -10 replies
4/163KVM: x86/mmu: fix NULL pointer dereference on guest INVPCIDarch/x86/kvm/mmu/mmu.c+4 -20 replies
5/163tcp: change source port randomizarion at connect() timenet/ipv4/inet_hashtables.c+17 -30 replies
6/163secure_seq: use the 64 bits of the siphash for port offset calculationinclude/net/inet_hashtables.h include/net/secure_seq.h net/core/secure_seq.c +2 more+13 -110 replies
7/163media: vim2m: Register video device after setting up internalsdrivers/media/test-drivers/vim2m.c+11 -90 replies
8/163media: vim2m: initialize the media device earlierdrivers/media/test-drivers/vim2m.c+8 -60 replies
9/163ACPI: sysfs: Make sparse happy about address space in usedrivers/acpi/sysfs.c+1 -10 replies
10/163ACPI: sysfs: Fix BERT error region memory mappingdrivers/acpi/sysfs.c+18 -70 replies
11/163random: avoid arch_get_random_seed_long() when collecting IRQ randomnessdrivers/char/random.c+1 -140 replies
12/163random: remove dead code left over from blocking pooldrivers/char/random.c include/trace/events/random.h+3 -970 replies
13/163MAINTAINERS: co-maintain random.cMAINTAINERS+1 -00 replies
14/163MAINTAINERS: add git tree for random.cMAINTAINERS+1 -00 replies
15/163crypto: lib/blake2s - Move selftest prototype into header fileinclude/crypto/internal/blake2s.h lib/crypto/blake2s-selftest.c lib/crypto/blake2s.c+3 -30 replies
16/163crypto: blake2s - define shash_alg structs using macroscrypto/blake2s_generic.c+27 -610 replies
17/163crypto: x86/blake2s - define shash_alg structs using macrosarch/x86/crypto/blake2s-glue.c+23 -610 replies
18/163crypto: blake2s - remove unneeded includescrypto/blake2s_generic.c+0 -20 replies
19/163crypto: blake2s - move update and final logic to internal/blake2s.hinclude/crypto/internal/blake2s.h lib/crypto/blake2s.c+49 -400 replies
20/163crypto: blake2s - share the "shash" API boilerplate codearch/x86/crypto/blake2s-glue.c crypto/blake2s_generic.c include/crypto/internal/blake2s.h+76 -1390 replies
21/163crypto: blake2s - optimize blake2s initializationinclude/crypto/blake2s.h include/crypto/internal/blake2s.h+28 -300 replies
22/163crypto: blake2s - add comment for blake2s_state fieldsinclude/crypto/blake2s.h+1 -00 replies
23/163crypto: blake2s - adjust include guard naminginclude/crypto/blake2s.h include/crypto/internal/blake2s.h+6 -60 replies
24/163crypto: blake2s - include <linux/bug.h> instead of <asm/bug.h>include/crypto/blake2s.h+1 -20 replies
25/163lib/crypto: blake2s: include as built-inarch/x86/crypto/Makefile arch/x86/crypto/blake2s-glue.c arch/x86/crypto/blake2s-shash.c +7 more+106 -970 replies
26/163lib/crypto: blake2s: move hmac construction into wireguarddrivers/net/wireguard/noise.c include/crypto/blake2s.h lib/crypto/blake2s-selftest.c +1 more+39 -770 replies
27/163lib/crypto: sha1: re-roll loops to reduce code sizelib/sha1.c+14 -810 replies
28/163lib/crypto: blake2s: avoid indirect calls to compression function for Clang CFIarch/x86/crypto/blake2s-shash.c crypto/blake2s_generic.c include/crypto/internal/blake2s.h +1 more+31 -210 replies
29/163random: document add_hwgenerator_randomness() with other input functionsdrivers/char/random.c+11 -00 replies
30/163random: remove unused irq_flags argument from add_interrupt_randomness()arch/x86/kernel/cpu/mshyperv.c drivers/char/random.c drivers/hv/vmbus_drv.c +2 more+6 -60 replies
31/163random: use BLAKE2s instead of SHA1 in extractiondrivers/char/random.c+30 -410 replies
32/163random: do not sign extend bytes for rotation when mixingdrivers/char/random.c+1 -10 replies
33/163random: do not re-init if crng_reseed completes before primary initdrivers/char/random.c+1 -10 replies
34/163random: mix bootloader randomness into pooldrivers/char/random.c+1 -00 replies
35/163random: harmonize "crng init done" messagesdrivers/char/random.c+1 -10 replies
36/163random: use IS_ENABLED(CONFIG_NUMA) instead of ifdefsdrivers/char/random.c+12 -200 replies
37/163random: early initialization of ChaCha constantsdrivers/char/random.c include/crypto/chacha.h+15 -50 replies
38/163random: avoid superfluous call to RDRAND in CRNG extractiondrivers/char/random.c+1 -30 replies
39/163random: dont reset crng_init_cnt on urandom_read()drivers/char/random.c+0 -40 replies
40/163random: fix typo in commentsdrivers/char/random.c+1 -10 replies
41/163random: cleanup poolinfo abstractiondrivers/char/random.c+30 -370 replies
42/163random: cleanup integer typesdrivers/char/random.c+52 -530 replies
43/163random: remove incomplete last_data logicdrivers/char/random.c+4 -350 replies
44/163random: remove unused extract_entropy() reserved argumentdrivers/char/random.c+7 -100 replies
45/163random: rather than entropy_store abstraction, use globaldrivers/char/random.c include/trace/events/random.h+117 -1580 replies
46/163random: remove unused OUTPUT_POOL constantsdrivers/char/random.c+1 -30 replies
47/163random: de-duplicate INPUT_POOL constantsdrivers/char/random.c+6 -110 replies
49/163random: cleanup fractional entropy shift constantsdrivers/char/random.c+13 -150 replies
50/163random: access input_pool_data directly rather than through pointerdrivers/char/random.c+8 -130 replies
51/163random: selectively clang-format where it makes sensedrivers/char/random.c+99 -1100 replies
52/163random: simplify arithmetic function flow in account()drivers/char/random.c+6 -110 replies
53/163random: continually use hwgenerator randomnessdrivers/char/random.c+6 -40 replies
54/163random: access primary_pool directly rather than through pointerdrivers/char/random.c+7 -70 replies
55/163random: only call crng_finalize_init() for primary_crngdrivers/char/random.c+5 -50 replies
56/163random: use computational hash for entropy extractiondrivers/char/random.c+55 -2490 replies
57/163random: simplify entropy debitingdrivers/char/random.c include/trace/events/random.h+27 -940 replies
58/163random: use linear min-entropy accumulation creditingdrivers/char/random.c+20 -940 replies
59/163random: always wake up entropy writers after extractionDocumentation/admin-guide/sysctl/kernel.rst drivers/char/random.c+16 -240 replies
60/163random: make credit_entropy_bits() always safedrivers/char/random.c+9 -200 replies
61/163random: remove use_input_pool parameter from crng_reseed()drivers/char/random.c+6 -60 replies
62/163random: remove batched entropy lockingdrivers/char/random.c+28 -270 replies
63/163random: fix locking in crng_fast_load()drivers/char/random.c+3 -20 replies
64/163random: use RDSEED instead of RDRAND in entropy extractiondrivers/char/random.c+9 -130 replies
65/163random: get rid of secondary crngsdrivers/char/random.c+54 -1730 replies
66/163random: inline leaves of rand_initialize()drivers/char/random.c+33 -570 replies
67/163random: ensure early RDSEED goes through mixer on initdrivers/char/random.c+5 -110 replies
68/163random: do not xor RDRAND when writing into /dev/randomdrivers/char/random.c+2 -120 replies
69/163random: absorb fast pool into input pool after fast loaddrivers/char/random.c+4 -00 replies
70/163random: use simpler fast key erasure flow on per-cpu keysdrivers/char/random.c+233 -1700 replies
71/163random: use hash function for crng_slow_load()drivers/char/random.c+14 -260 replies
72/163random: make more consistent use of integer typesdrivers/char/random.c include/linux/hw_random.h include/linux/random.h +1 more+100 -1160 replies
73/163random: remove outdated INT_MAX >> 6 check in urandom_read()drivers/char/random.c+1 -20 replies
74/163random: zero buffer after reading entropy from userspacedrivers/char/random.c+8 -30 replies
75/163random: fix locking for crng_init in crng_reseed()drivers/char/random.c+6 -30 replies
76/163random: tie batched entropy generation to base_crng generationdrivers/char/random.c+8 -210 replies
77/163random: remove ifdefd out interrupt benchDocumentation/admin-guide/sysctl/kernel.rst drivers/char/random.c+0 -490 replies
78/163random: remove unused tracepointsdrivers/char/random.c include/trace/events/random.h lib/random32.c+4 -2410 replies
79/163random: add proper SPDX headerdrivers/char/random.c+1 -360 replies
80/163random: deobfuscate irq u32/u64 contributionsdrivers/char/random.c+28 -210 replies
81/163random: introduce drain_entropy() helper to declutter crng_reseed()drivers/char/random.c+23 -130 replies
82/163random: remove useless header commentinclude/linux/random.h+1 -50 replies
83/163random: remove whitespace and reorder includesdrivers/char/random.c+1 -20 replies
84/163random: group initialization wait functionsdrivers/char/random.c+172 -1610 replies
85/163random: group crng functionsdrivers/char/random.c+410 -3820 replies
86/163random: group entropy extraction functionsdrivers/char/random.c+109 -1070 replies
87/163random: group entropy collection functionsdrivers/char/random.c+206 -1640 replies
88/163random: group userspace read/write functionsdrivers/char/random.c+77 -480 replies
89/163random: group sysctl functionsdrivers/char/random.c+30 -50 replies
90/163random: rewrite header introductory commentdrivers/char/random.c+19 -1600 replies
91/163random: defer fast pool mixing to workerdrivers/char/random.c+49 -140 replies
92/163random: do not take pool spinlock at bootdrivers/char/random.c+3 -30 replies
93/163random: unify early init crng load accountingdrivers/char/random.c+59 -550 replies
94/163random: check for crng_init == 0 in add_device_randomness()drivers/char/random.c+1 -10 replies
95/163random: pull add_hwgenerator_randomness() declaration into random.hdrivers/char/hw_random/core.c include/linux/hw_random.h include/linux/random.h+3 -20 replies
96/163random: clear fast pool, crng, and batches in cpuhp bring updrivers/char/random.c include/linux/cpuhotplug.h include/linux/random.h +1 more+65 -150 replies
97/163random: round-robin registers as ulong, not u32drivers/char/random.c+3 -30 replies
98/163random: only wake up writers after zap if threshold was passeddrivers/char/random.c+1 -10 replies
99/163random: cleanup UUID handlingdrivers/char/random.c+13 -160 replies
100/163random: unify cycles_t and jiffies usage and typesdrivers/char/random.c+27 -290 replies
101/163random: do crng pre-init loading in worker rather than irqdrivers/char/random.c+19 -460 replies
102/163random: give sysctl_random_min_urandom_seed a more sensible valuedrivers/char/random.c+2 -20 replies
103/163random: dont let 644 read-only sysctls be written todrivers/char/random.c+9 -20 replies
104/163random: replace custom notifier chain with standard onecrypto/drbg.c drivers/char/random.c include/crypto/drbg.h +3 more+47 -740 replies
105/163random: use SipHash as interrupt entropy accumulatordrivers/char/random.c+55 -390 replies
106/163random: make consistent usage of crng_ready()drivers/char/random.c+7 -120 replies
107/163random: reseed more often immediately after bootingdrivers/char/random.c+25 -30 replies
108/163random: check for signal and try earlier when generating entropydrivers/char/random.c+3 -20 replies
109/163random: skip fast_init if hwrng provides large chunk of entropydrivers/char/random.c+1 -10 replies
110/163random: treat bootloader trust toggle the same way as cpu trust toggleDocumentation/admin-guide/kernel-parameters.txt drivers/char/Kconfig drivers/char/random.c+15 -20 replies
111/163random: re-add removed comment about get_random_{u32,u64} reseedingdrivers/char/random.c+4 -30 replies
112/163random: mix build-time latent entropy into pool at initdrivers/char/random.c+5 -00 replies
113/163random: do not split fast init input in add_hwgenerator_randomness()drivers/char/random.c+6 -170 replies
114/163random: do not allow user to keep crng key around on stackdrivers/char/random.c+23 -120 replies
115/163random: check for signal_pending() outside of need_resched() checkdrivers/char/random.c+2 -20 replies
116/163random: check for signals every PAGE_SIZE chunk of /dev/[u]randomdrivers/char/random.c+7 -100 replies
117/163random: allow partial reads if later user copies faildrivers/char/random.c+12 -100 replies
118/163random: make random_get_entropy() return an unsigned longdrivers/char/random.c include/linux/timex.h+8 -140 replies
119/163random: document crng_fast_key_erasure() destination possibilitydrivers/char/random.c+7 -00 replies
120/163random: fix sysctl documentation nitsDocumentation/admin-guide/sysctl/kernel.rst+4 -40 replies
121/163init: call time_init() before rand_initialize()init/main.c+2 -10 replies
122/163ia64: define get_cycles macro for arch-overridearch/ia64/include/asm/timex.h+1 -00 replies
123/163s390: define get_cycles macro for arch-overridearch/s390/include/asm/timex.h+1 -00 replies
124/163parisc: define get_cycles macro for arch-overridearch/parisc/include/asm/timex.h+2 -10 replies
125/163alpha: define get_cycles macro for arch-overridearch/alpha/include/asm/timex.h+1 -00 replies
126/163powerpc: define get_cycles macro for arch-overridearch/powerpc/include/asm/timex.h+1 -00 replies
127/163timekeeping: Add raw clock fallback for random_get_entropy()include/linux/timex.h kernel/time/timekeeping.c+23 -00 replies
128/163m68k: use fallback for random_get_entropy() instead of zeroarch/m68k/include/asm/timex.h+1 -10 replies
129/163riscv: use fallback for random_get_entropy() instead of zeroarch/riscv/include/asm/timex.h+1 -10 replies
130/163mips: use fallback for random_get_entropy() instead of just c0 randomarch/mips/include/asm/timex.h+8 -90 replies
131/163arm: use fallback for random_get_entropy() instead of zeroarch/arm/include/asm/timex.h+1 -00 replies
132/163nios2: use fallback for random_get_entropy() instead of zeroarch/nios2/include/asm/timex.h+3 -00 replies
133/163x86/tsc: Use fallback for random_get_entropy() instead of zeroarch/x86/include/asm/timex.h arch/x86/include/asm/tsc.h+12 -40 replies
134/163um: use fallback for random_get_entropy() instead of zeroarch/um/include/asm/timex.h+2 -70 replies
135/163sparc: use fallback for random_get_entropy() instead of zeroarch/sparc/include/asm/timex_32.h+1 -30 replies
136/163xtensa: use fallback for random_get_entropy() instead of zeroarch/xtensa/include/asm/timex.h+2 -40 replies
137/163random: insist on random_get_entropy() existing in order to simplifydrivers/char/random.c+26 -600 replies
138/163random: do not use batches when !crng_ready()drivers/char/random.c+11 -30 replies
139/163random: use first 128 bits of input as fast initdrivers/char/random.c+49 -970 replies
140/163random: do not pretend to handle premature next security modeldrivers/char/random.c+62 -1120 replies
141/163random: order timer entropy functions below interrupt functionsdrivers/char/random.c+119 -1190 replies
142/163random: do not use input pool from hard IRQsdrivers/char/random.c+36 -150 replies
143/163random: help compiler out with fast_mix() by using simpler argumentsdrivers/char/random.c+23 -210 replies
144/163siphash: use one source of truth for siphash permutationsdrivers/char/random.c include/linux/prandom.h include/linux/siphash.h +1 more+52 -610 replies
145/163random: use symbolic constants for crng_init statesdrivers/char/random.c+19 -190 replies
146/163random: avoid initializing twice in credit racedrivers/char/random.c+5 -50 replies
147/163random: move initialization out of reseeding hot pathdrivers/char/random.c+19 -230 replies
148/163random: remove ratelimiting for in-kernel unseeded randomnessdrivers/char/random.c lib/Kconfig.debug+19 -450 replies
149/163random: use proper jiffies comparison macrodrivers/char/random.c+1 -10 replies
150/163random: handle latent entropy and command line from random_init()drivers/char/random.c include/linux/random.h init/main.c+18 -210 replies
151/163random: credit architectural init the exact amountdrivers/char/random.c+6 -60 replies
152/163random: use static branch for crng_ready()drivers/char/random.c+12 -40 replies
153/163random: remove extern from functions in headerinclude/linux/random.h+28 -430 replies
154/163random: use proper return types on get_random_{int,long}_wait()include/linux/random.h+7 -70 replies
155/163random: make consistent use of buf and lendrivers/char/random.c include/linux/random.h+99 -1040 replies
156/163random: move initialization functions out of hot pagesdrivers/char/random.c+18 -220 replies
157/163random: move randomize_page() into mm where it belongsdrivers/char/random.c include/linux/mm.h include/linux/random.h +1 more+33 -340 replies
158/163random: unify batched entropy implementationsdrivers/char/random.c+54 -910 replies
159/163random: convert to using fops->read_iter()drivers/char/random.c+30 -360 replies
160/163random: convert to using fops->write_iter()drivers/char/random.c+35 -320 replies
161/163random: wire up fops->splice_{read,write}_iter()drivers/char/random.c+4 -00 replies
162/163random: check for signals after page of pool writesdrivers/char/random.c+10 -40 replies
163/163ALSA: ctxfi: Add SB046x PCI IDsound/pci/ctxfi/ctatc.c sound/pci/ctxfi/cthardware.h+4 -10 replies

Reviews trailers per patch

114 of 162 patches have a Reviewed-by or Acked-by.

PatchDouglas AndersonVeronika KabatovaAristeu RozanskiArd BiesheuvelAndre PrzywaraEric BiggersMarc ZyngierJason A. DonenfeldEric DumazetAndy LutomirskiHerbert XuGreg Kroah-HartmanGeert UytterhoevenWei LiuTheodore Ts'oJean-Philippe AumassonDominik BrodowskiMiles ChenNathan ChancellorJohn StultzNick DesaulniersSebastian Andrzej SiewiorJonathan NeuschäferJann HornHeiko CarstensMaciej W. RozyckiThomas BogendoerferPalmer DabbeltThomas GleixnerStafford HorneRussell King (Oracle)Dinh NguyenSultan AlsawafHelge DellerMichael EllermanMatt TurnerMax FilippovJohannes BergGuenter RoeckLinux Kernel Functional TestingSudip MukherjeeFox ChenHulk Robot
SeriesT-b T-b T-b T-b T-b
1/163R-b
2/163
3/163
4/163
5/163
6/163R-b
7/163
8/163
9/163
10/163T-b T-b A-b
11/163R-b T-b R-b A-b R-b
12/163A-b R-b
13/163
14/163
15/163
16/163A-b
17/163A-b
18/163A-b
19/163A-b
20/163A-b
21/163A-b
22/163A-b
23/163A-b
24/163A-b
25/163A-b A-b A-b
26/163A-b T-b
27/163T-b
28/163R-b T-b T-b T-b A-b
29/163
30/163A-b
31/163R-b R-b R-b R-b
32/163
33/163R-b
34/163
35/163
36/163R-b
37/163
38/163A-b R-b
39/163
40/163
41/163R-b
42/163R-b
43/163R-b
44/163R-b
45/163R-b
46/163R-b
47/163R-b
49/163R-b
50/163R-b
51/163R-b
52/163R-b
53/163
54/163
55/163
56/163R-b R-b R-b
57/163R-b R-b
58/163R-b R-b
59/163R-b R-b
60/163R-b R-b
61/163
62/163R-b R-b R-b T-b
63/163R-b
64/163R-b R-b
65/163R-b R-b
66/163R-b R-b
67/163R-b R-b
68/163R-b R-b
69/163R-b R-b
70/163R-b R-b
71/163R-b R-b
72/163R-b R-b R-b
73/163R-b R-b R-b
74/163R-b R-b R-b
75/163R-b
76/163R-b R-b
77/163R-b R-b
78/163R-b R-b
79/163R-b
80/163R-b
81/163R-b R-b
82/163R-b R-b
83/163R-b R-b
84/163R-b R-b
85/163R-b R-b
86/163R-b R-b
87/163R-b R-b
88/163R-b R-b
89/163R-b
90/163R-b R-b
91/163R-b A-b R-b
92/163R-b R-b
93/163R-b R-b
94/163R-b R-b
95/163R-b A-b R-b
96/163A-b
97/163R-b
98/163R-b
99/163R-b
100/163R-b
101/163R-b A-b
102/163R-b
103/163R-b
104/163R-b
105/163R-b
106/163R-b
107/163R-b
108/163R-b
109/163
110/163R-b R-b
111/163R-b
112/163R-b R-b
113/163
114/163R-b
115/163
116/163
117/163
118/163A-b
119/163R-b
120/163
121/163R-b
122/163
123/163A-b
124/163A-b
125/163A-b
126/163A-b
127/163R-b
128/163A-b
129/163A-b R-b
130/163T-b A-b
131/163R-b
132/163A-b
133/163R-b
134/163A-b
135/163
136/163A-b
137/163
138/163R-b
139/163
140/163R-b
141/163
142/163
143/163
144/163
145/163R-b
146/163R-b
147/163R-b
148/163
149/163
150/163R-b
151/163R-b
152/163R-b
153/163
154/163
155/163
156/163R-b
157/163
158/163
159/163
160/163
161/163
162/163
163/163

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 43 reviewers.

Read the v1 thread

Cover letter [PATCH 5.10 000/163] 5.10.119-rc1 review

This is the start of the stable review cycle for the 5.10.119 release. There are 163 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sun, 29 May 2022 08:46:26 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

	https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.119-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <[email protected]>

    Linux 5.10.119-rc1

Edward Matijevic <[email protected]>
ALSA: ctxfi: Add SB046x PCI ID

Jason A. Donenfeld <[email protected]>
random: check for signals after page of pool writes

Jens Axboe <[email protected]>

    random: wire up fops->splice_{read,write}_iter()

Jens Axboe <[email protected]>

    random: convert to using fops->write_iter()

Jens Axboe <[email protected]>

    random: convert to using fops->read_iter()

Jason A. Donenfeld <[email protected]>
random: unify batched entropy implementations

Jason A. Donenfeld <[email protected]>
random: move randomize_page() into mm where it belongs

Jason A. Donenfeld <[email protected]>
random: move initialization functions out of hot pages

Jason A. Donenfeld <[email protected]>
random: make consistent use of buf and len

Jason A. Donenfeld <[email protected]>
random: use proper return types on get_random_{int,long}_wait()

Jason A. Donenfeld <[email protected]>
random: remove extern from functions in header

Jason A. Donenfeld <[email protected]>
random: use static branch for crng_ready()

Jason A. Donenfeld <[email protected]>
random: credit architectural init the exact amount

Jason A. Donenfeld <[email protected]>
random: handle latent entropy and command line from random_init()

Jason A. Donenfeld <[email protected]>
random: use proper jiffies comparison macro

Jason A. Donenfeld <[email protected]>
random: remove ratelimiting for in-kernel unseeded randomness

Jason A. Donenfeld <[email protected]>
random: move initialization out of reseeding hot path

Jason A. Donenfeld <[email protected]>
random: avoid initializing twice in credit race

Jason A. Donenfeld <[email protected]>
random: use symbolic constants for crng_init states

Jason A. Donenfeld <[email protected]>
siphash: use one source of truth for siphash permutations

Jason A. Donenfeld <[email protected]>
random: help compiler out with fast_mix() by using simpler arguments

Jason A. Donenfeld <[email protected]>
random: do not use input pool from hard IRQs

Jason A. Donenfeld <[email protected]>
random: order timer entropy functions below interrupt functions

Jason A. Donenfeld <[email protected]>
random: do not pretend to handle premature next security model

Jason A. Donenfeld <[email protected]>
random: use first 128 bits of input as fast init

Jason A. Donenfeld <[email protected]>
random: do not use batches when !crng_ready()

Jason A. Donenfeld <[email protected]>
random: insist on random_get_entropy() existing in order to simplify

Jason A. Donenfeld <[email protected]>
xtensa: use fallback for random_get_entropy() instead of zero

Jason A. Donenfeld <[email protected]>
sparc: use fallback for random_get_entropy() instead of zero

Jason A. Donenfeld <[email protected]>
um: use fallback for random_get_entropy() instead of zero

Jason A. Donenfeld <[email protected]>
x86/tsc: Use fallback for random_get_entropy() instead of zero

Jason A. Donenfeld <[email protected]>
nios2: use fallback for random_get_entropy() instead of zero

Jason A. Donenfeld <[email protected]>
arm: use fallback for random_get_entropy() instead of zero

Jason A. Donenfeld <[email protected]>
mips: use fallback for random_get_entropy() instead of just c0 random

Jason A. Donenfeld <[email protected]>
riscv: use fallback for random_get_entropy() instead of zero

Jason A. Donenfeld <[email protected]>
m68k: use fallback for random_get_entropy() instead of zero

Jason A. Donenfeld <[email protected]>
timekeeping: Add raw clock fallback for random_get_entropy()

Jason A. Donenfeld <[email protected]>
powerpc: define get_cycles macro for arch-override

Jason A. Donenfeld <[email protected]>
alpha: define get_cycles macro for arch-override

Jason A. Donenfeld <[email protected]>
parisc: define get_cycles macro for arch-override

Jason A. Donenfeld <[email protected]>
s390: define get_cycles macro for arch-override

Jason A. Donenfeld <[email protected]>
ia64: define get_cycles macro for arch-override

Jason A. Donenfeld <[email protected]>
init: call time_init() before rand_initialize()

Jason A. Donenfeld <[email protected]>
random: fix sysctl documentation nits

Jason A. Donenfeld <[email protected]>
random: document crng_fast_key_erasure() destination possibility

Jason A. Donenfeld <[email protected]>
random: make random_get_entropy() return an unsigned long

Jason A. Donenfeld <[email protected]>
random: allow partial reads if later user copies fail

Jason A. Donenfeld <[email protected]>
random: check for signals every PAGE_SIZE chunk of /dev/[u]random

Jann Horn <[email protected]>
random: check for signal_pending() outside of need_resched() check

Jason A. Donenfeld <[email protected]>
random: do not allow user to keep crng key around on stack

Jan Varho <[email protected]>
random: do not split fast init input in add_hwgenerator_randomness()

Jason A. Donenfeld <[email protected]>
random: mix build-time latent entropy into pool at init

Jason A. Donenfeld <[email protected]>
random: re-add removed comment about get_random_{u32,u64} reseeding

Jason A. Donenfeld <[email protected]>
random: treat bootloader trust toggle the same way as cpu trust toggle

Jason A. Donenfeld <[email protected]>
random: skip fast_init if hwrng provides large chunk of entropy

Jason A. Donenfeld <[email protected]>
random: check for signal and try earlier when generating entropy

Jason A. Donenfeld <[email protected]>
random: reseed more often immediately after booting

Jason A. Donenfeld <[email protected]>
random: make consistent usage of crng_ready()

Jason A. Donenfeld <[email protected]>
random: use SipHash as interrupt entropy accumulator

Jason A. Donenfeld <[email protected]>
random: replace custom notifier chain with standard one

Jason A. Donenfeld <[email protected]>
random: don't let 644 read-only sysctls be written to

Jason A. Donenfeld <[email protected]>
random: give sysctl_random_min_urandom_seed a more sensible value

Jason A. Donenfeld <[email protected]>
random: do crng pre-init loading in worker rather than irq

Jason A. Donenfeld <[email protected]>
random: unify cycles_t and jiffies usage and types

Jason A. Donenfeld <[email protected]>
random: cleanup UUID handling

Jason A. Donenfeld <[email protected]>
random: only wake up writers after zap if threshold was passed

Jason A. Donenfeld <[email protected]>
random: round-robin registers as ulong, not u32

Jason A. Donenfeld <[email protected]>
random: clear fast pool, crng, and batches in cpuhp bring up

Jason A. Donenfeld <[email protected]>
random: pull add_hwgenerator_randomness() declaration into random.h

Jason A. Donenfeld <[email protected]>

    random: check for crng_init == 0 in add_device_randomness()

Jason A. Donenfeld <[email protected]>
random: unify early init crng load accounting

Jason A. Donenfeld <[email protected]>
random: do not take pool spinlock at boot

Jason A. Donenfeld <[email protected]>
random: defer fast pool mixing to worker

Jason A. Donenfeld <[email protected]>
random: rewrite header introductory comment

Jason A. Donenfeld <[email protected]>
random: group sysctl functions

Jason A. Donenfeld <[email protected]>
random: group userspace read/write functions

Jason A. Donenfeld <[email protected]>
random: group entropy collection functions

Jason A. Donenfeld <[email protected]>
random: group entropy extraction functions

Jason A. Donenfeld <[email protected]>
random: group crng functions

Jason A. Donenfeld <[email protected]>
random: group initialization wait functions

Jason A. Donenfeld <[email protected]>
random: remove whitespace and reorder includes

Jason A. Donenfeld <[email protected]>
random: remove useless header comment

Jason A. Donenfeld <[email protected]>
random: introduce drain_entropy() helper to declutter crng_reseed()

Jason A. Donenfeld <[email protected]>
random: deobfuscate irq u32/u64 contributions

Jason A. Donenfeld <[email protected]>
random: add proper SPDX header

Jason A. Donenfeld <[email protected]>
random: remove unused tracepoints

Jason A. Donenfeld <[email protected]>
random: remove ifdef'd out interrupt bench

Jason A. Donenfeld <[email protected]>
random: tie batched entropy generation to base_crng generation

Dominik Brodowski <[email protected]>
random: fix locking for crng_init in crng_reseed()

Jason A. Donenfeld <[email protected]>
random: zero buffer after reading entropy from userspace

Jason A. Donenfeld <[email protected]>
random: remove outdated INT_MAX >> 6 check in urandom_read()

Jason A. Donenfeld <[email protected]>
random: make more consistent use of integer types

Jason A. Donenfeld <[email protected]>
random: use hash function for crng_slow_load()

Jason A. Donenfeld <[email protected]>
random: use simpler fast key erasure flow on per-cpu keys

Jason A. Donenfeld <[email protected]>
random: absorb fast pool into input pool after fast load

Jason A. Donenfeld <[email protected]>
random: do not xor RDRAND when writing into /dev/random

Jason A. Donenfeld <[email protected]>
random: ensure early RDSEED goes through mixer on init

Jason A. Donenfeld <[email protected]>
random: inline leaves of rand_initialize()

Jason A. Donenfeld <[email protected]>
random: get rid of secondary crngs

Jason A. Donenfeld <[email protected]>
random: use RDSEED instead of RDRAND in entropy extraction

Dominik Brodowski <[email protected]>
random: fix locking in crng_fast_load()

Jason A. Donenfeld <[email protected]>
random: remove batched entropy locking

Eric Biggers <[email protected]>
random: remove use_input_pool parameter from crng_reseed()

Jason A. Donenfeld <[email protected]>
random: make credit_entropy_bits() always safe

Jason A. Donenfeld <[email protected]>
random: always wake up entropy writers after extraction

Jason A. Donenfeld <[email protected]>
random: use linear min-entropy accumulation crediting

Jason A. Donenfeld <[email protected]>
random: simplify entropy debiting

Jason A. Donenfeld <[email protected]>
random: use computational hash for entropy extraction

Dominik Brodowski <[email protected]>
random: only call crng_finalize_init() for primary_crng

Dominik Brodowski <[email protected]>
random: access primary_pool directly rather than through pointer

Dominik Brodowski <[email protected]>
random: continually use hwgenerator randomness

Jason A. Donenfeld <[email protected]>
random: simplify arithmetic function flow in account()

Jason A. Donenfeld <[email protected]>
random: selectively clang-format where it makes sense

Jason A. Donenfeld <[email protected]>
random: access input_pool_data directly rather than through pointer

Jason A. Donenfeld <[email protected]>
random: cleanup fractional entropy shift constants

Jason A. Donenfeld <[email protected]>
random: prepend remaining pool constants with POOL_

Jason A. Donenfeld <[email protected]>
random: de-duplicate INPUT_POOL constants

Jason A. Donenfeld <[email protected]>
random: remove unused OUTPUT_POOL constants

Jason A. Donenfeld <[email protected]>
random: rather than entropy_store abstraction, use global

Jason A. Donenfeld <[email protected]>
random: remove unused extract_entropy() reserved argument

Jason A. Donenfeld <[email protected]>
random: remove incomplete last_data logic

Jason A. Donenfeld <[email protected]>
random: cleanup integer types

Jason A. Donenfeld <[email protected]>
random: cleanup poolinfo abstraction

Schspa Shi <[email protected]>
random: fix typo in comments

Jann Horn <[email protected]>
random: don't reset crng_init_cnt on urandom_read()

Jason A. Donenfeld <[email protected]>
random: avoid superfluous call to RDRAND in CRNG extraction

Dominik Brodowski <[email protected]>
random: early initialization of ChaCha constants

Jason A. Donenfeld <[email protected]>
random: use IS_ENABLED(CONFIG_NUMA) instead of ifdefs

Dominik Brodowski <[email protected]>
random: harmonize "crng init done" messages

Jason A. Donenfeld <[email protected]>
random: mix bootloader randomness into pool

Jason A. Donenfeld <[email protected]>
random: do not re-init if crng_reseed completes before primary init

Jason A. Donenfeld <[email protected]>
random: do not sign extend bytes for rotation when mixing

Jason A. Donenfeld <[email protected]>
random: use BLAKE2s instead of SHA1 in extraction

Sebastian Andrzej Siewior <[email protected]>
random: remove unused irq_flags argument from add_interrupt_randomness()

Mark Brown <[email protected]>
random: document add_hwgenerator_randomness() with other input functions

Jason A. Donenfeld <[email protected]>
lib/crypto: blake2s: avoid indirect calls to compression function for Clang CFI

Jason A. Donenfeld <[email protected]>
lib/crypto: sha1: re-roll loops to reduce code size

Jason A. Donenfeld <[email protected]>
lib/crypto: blake2s: move hmac construction into wireguard

Jason A. Donenfeld <[email protected]>
lib/crypto: blake2s: include as built-in

Eric Biggers <[email protected]>
crypto: blake2s - include <linux/bug.h> instead of <asm/bug.h>

Eric Biggers <[email protected]>
crypto: blake2s - adjust include guard naming

Eric Biggers <[email protected]>
crypto: blake2s - add comment for blake2s_state fields

Eric Biggers <[email protected]>
crypto: blake2s - optimize blake2s initialization

Eric Biggers <[email protected]>
crypto: blake2s - share the "shash" API boilerplate code

Eric Biggers <[email protected]>
crypto: blake2s - move update and final logic to internal/blake2s.h

Eric Biggers <[email protected]>
crypto: blake2s - remove unneeded includes

Eric Biggers <[email protected]>
crypto: x86/blake2s - define shash_alg structs using macros

Eric Biggers <[email protected]>
crypto: blake2s - define shash_alg structs using macros

Herbert Xu <[email protected]>
crypto: lib/blake2s - Move selftest prototype into header file

Jason A. Donenfeld <[email protected]>
MAINTAINERS: add git tree for random.c

Jason A. Donenfeld <[email protected]>
MAINTAINERS: co-maintain random.c

Eric Biggers <[email protected]>
random: remove dead code left over from blocking pool

Ard Biesheuvel <[email protected]>
random: avoid arch_get_random_seed_long() when collecting IRQ randomness

Lorenzo Pieralisi <[email protected]>
ACPI: sysfs: Fix BERT error region memory mapping

Andy Shevchenko <[email protected]>
ACPI: sysfs: Make sparse happy about address space in use

Hans Verkuil <[email protected]>
media: vim2m: initialize the media device earlier

Sakari Ailus <[email protected]>
media: vim2m: Register video device after setting up internals

Willy Tarreau <[email protected]>
secure_seq: use the 64 bits of the siphash for port offset calculation

Eric Dumazet <[email protected]>
tcp: change source port randomizarion at connect() time

Paolo Bonzini <[email protected]>
KVM: x86/mmu: fix NULL pointer dereference on guest INVPCID

Vitaly Kuznetsov <[email protected]>
KVM: x86: Properly handle APF vs disabled LAPIC situation

Denis Efremov (Oracle) <[email protected]>

    staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan()

Daniel Thompson <[email protected]>
lockdown: also lock down previous kgdb use

-------------

Diffstat:

 Documentation/admin-guide/kernel-parameters.txt |    6 +
 Documentation/admin-guide/sysctl/kernel.rst     |   22 +-
 MAINTAINERS                                     |    2 +
 Makefile                                        |    4 +-
 arch/alpha/include/asm/timex.h                  |    1 +
 arch/arm/include/asm/timex.h                    |    1 +
 arch/ia64/include/asm/timex.h                   |    1 +
 arch/m68k/include/asm/timex.h                   |    2 +-
 arch/mips/include/asm/timex.h                   |   17 +-
 arch/nios2/include/asm/timex.h                  |    3 +
 arch/parisc/include/asm/timex.h                 |    3 +-
 arch/powerpc/include/asm/timex.h                |    1 +
 arch/riscv/include/asm/timex.h                  |    2 +-
 arch/s390/include/asm/timex.h                   |    1 +
 arch/sparc/include/asm/timex_32.h               |    4 +-
 arch/um/include/asm/timex.h                     |    9 +-
 arch/x86/crypto/Makefile                        |    4 +-
 arch/x86/crypto/blake2s-glue.c                  |  166 +-
 arch/x86/crypto/blake2s-shash.c                 |   77 +
 arch/x86/include/asm/timex.h                    |    9 +
 arch/x86/include/asm/tsc.h                      |    7 +-
 arch/x86/kernel/cpu/mshyperv.c                  |    2 +-
 arch/x86/kvm/lapic.c                            |    6 +
 arch/x86/kvm/mmu/mmu.c                          |    6 +-
 arch/x86/kvm/x86.c                              |    2 +-
 arch/xtensa/include/asm/timex.h                 |    6 +-
 crypto/Kconfig                                  |    3 +-
 crypto/blake2s_generic.c                        |  158 +-
 crypto/drbg.c                                   |   17 +-
 drivers/acpi/sysfs.c                            |   23 +-
 drivers/char/Kconfig                            |    3 +-
 drivers/char/hw_random/core.c                   |    1 +
 drivers/char/random.c                           | 3035 +++++++++--------------
 drivers/hv/vmbus_drv.c                          |    2 +-
 drivers/media/test-drivers/vim2m.c              |   22 +-
 drivers/net/Kconfig                             |    1 -
 drivers/net/wireguard/noise.c                   |   45 +-
 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c  |    6 +-
 include/crypto/blake2s.h                        |   66 +-
 include/crypto/chacha.h                         |   15 +-
 include/crypto/drbg.h                           |    2 +-
 include/crypto/internal/blake2s.h               |  123 +-
 include/linux/cpuhotplug.h                      |    2 +
 include/linux/hw_random.h                       |    2 -
 include/linux/mm.h                              |    1 +
 include/linux/prandom.h                         |   23 +-
 include/linux/random.h                          |  100 +-
 include/linux/security.h                        |    2 +
 include/linux/siphash.h                         |   28 +
 include/linux/timex.h                           |   10 +-
 include/net/inet_hashtables.h                   |    2 +-
 include/net/secure_seq.h                        |    4 +-
 include/trace/events/random.h                   |  330 ---
 init/main.c                                     |   13 +-
 kernel/cpu.c                                    |   11 +
 kernel/debug/debug_core.c                       |   24 +
 kernel/debug/kdb/kdb_main.c                     |   62 +-
 kernel/irq/handle.c                             |    2 +-
 kernel/time/timekeeping.c                       |   15 +
 lib/Kconfig.debug                               |    3 +-
 lib/crypto/Kconfig                              |   23 +-
 lib/crypto/Makefile                             |    9 +-
 lib/crypto/blake2s-generic.c                    |    6 +-
 lib/crypto/blake2s-selftest.c                   |   33 +-
 lib/crypto/blake2s.c                            |   81 +-
 lib/random32.c                                  |   16 +-
 lib/sha1.c                                      |   95 +-
 lib/siphash.c                                   |   32 +-
 lib/vsprintf.c                                  |   10 +-
 mm/util.c                                       |   32 +
 net/core/secure_seq.c                           |    4 +-
 net/ipv4/inet_hashtables.c                      |   28 +-
 net/ipv6/inet6_hashtables.c                     |    4 +-
 security/security.c                             |    2 +
 sound/pci/ctxfi/ctatc.c                         |    2 +
 sound/pci/ctxfi/cthardware.h                    |    3 +-
 76 files changed, 1865 insertions(+), 3035 deletions(-)