random: fix the RNDRESEEDCRNG ioctl
Subsystems (3)
PATCH RESEND 1/1 random: fix the RNDRESEEDCRNG ioctl
From: Eric Biggers <[email protected]>
The RNDRESEEDCRNG ioctl reseeds the primary_crng from itself, which doesn't make sense. Reseed it from the input_pool instead.
---
Andrew, please consider taking this patch since the maintainer has been ignoring it for 4 months
(https://lkml.kernel.org/lkml/[email protected]/T/#u).
drivers/char/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/random.c +1 -1
@@ -1972,7 +1972,7 @@ static long random_ioctl(struct file *f, unsigned int cmd, unsigned long arg)return -EPERM ;if (crng_init <2 )return -ENODATA ; -crng_reseed (&primary_crng,NULL ); +crng_reseed (&primary_crng, &input_pool); crng_global_init_time = jiffies -1 ;return 0 ;default :
Signature · 1 line
2.30.0
Quoted 6 lines · Eric Biggers
From: Eric Biggers <[email protected]>
The RNDRESEEDCRNG ioctl reseeds the
primary_crngfrom itself, which doesn't make sense. Reseed it from theinput_poolinstead.
Quoted 8 lines
Fixes d848e5f8e1eb ("random: add new ioctl RNDRESEEDCRNG")Cc Andy Lutomirski <[email protected]>Cc Jann Horn <[email protected]>Cc Theodore Ts'o <[email protected]>Reviewed-by Jann Horn <[email protected]>Signed-off-by Eric Biggers <[email protected]>
Quoted 26 lines
---
Andrew, please consider taking this patch since the maintainer has been ignoring it for 4 months
(https://lkml.kernel.org/lkml/[email protected]/T/#u).drivers/char/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/char/random.c +1
-2@@ -1972,7 +1972,7 @@ static long random_ioctl(struct file *f, unsigned int cmd, unsigned long arg)return -EPERM ;if (crng_init <2 )return -ENODATA ; -crng_reseed (&primary_crng,NULL ); +crng_reseed (&primary_crng, &input_pool); crng_global_init_time = jiffies -1 ;return 0 ;default : --2.30.0
Quoted 13 lines · Eric Biggers
From: Eric Biggers <[email protected]>
The RNDRESEEDCRNG ioctl reseeds the
primary_crngfrom itself, which doesn't make sense. Reseed it from theinput_poolinstead.Fixes d848e5f8e1eb ("random: add new ioctl RNDRESEEDCRNG")Cc Andy Lutomirski <[email protected]>Cc Jann Horn <[email protected]>Cc Theodore Ts'o <[email protected]>Reviewed-by Jann Horn <[email protected]>Signed-off-by Eric Biggers <[email protected]>
Quoted 5 lines
---
Andrew, please consider taking this patch since the maintainer has been ignoring it for 4 months
(https://lkml.kernel.org/lkml/[email protected]/T/#u).
Ping.
Greg KH
maintainerQuoted 16 lines · Eric Biggers
Quoted 15 lines · Eric Biggers
From: Eric Biggers <[email protected]>
The RNDRESEEDCRNG ioctl reseeds the
primary_crngfrom itself, which doesn't make sense. Reseed it from theinput_poolinstead.Fixes d848e5f8e1eb ("random: add new ioctl RNDRESEEDCRNG")Cc Andy Lutomirski <[email protected]>Cc Jann Horn <[email protected]>Cc Theodore Ts'o <[email protected]>Reviewed-by Jann Horn <[email protected]>Signed-off-by Eric Biggers <[email protected]>---
Quoted 5 lines
Quoted 3 lines
Andrew, please consider taking this patch since the maintainer has been ignoring it for 4 months
(https://lkml.kernel.org/lkml/[email protected]/T/#u).Ping.
Given the lack of response, I'll take this now...
thanks,
greg k-h