]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
add back 4.16 random patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 17:36:12 +0000 (19:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 17:36:12 +0000 (19:36 +0200)
queue-4.16/random-add-new-ioctl-rndreseedcrng.patch [moved from pending/queue-4.16/random-add-new-ioctl-rndreseedcrng.patch with 89% similarity]
queue-4.16/series

similarity index 89%
rename from pending/queue-4.16/random-add-new-ioctl-rndreseedcrng.patch
rename to queue-4.16/random-add-new-ioctl-rndreseedcrng.patch
index ba06457261692410df50086f49d0112b943f45f8..09c6542bb0e05f15d0e8fc3efb7113c96f6a72f5 100644 (file)
@@ -28,7 +28,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  #define CRNG_INIT_CNT_THRESH (2*CHACHA20_KEY_SIZE)
  static void _extract_crng(struct crng_state *crng,
                          __u32 out[CHACHA20_BLOCK_WORDS]);
-@@ -932,7 +933,8 @@ static void _extract_crng(struct crng_st
+@@ -905,7 +906,8 @@ static void _extract_crng(struct crng_st
        unsigned long v, flags;
  
        if (crng_ready() &&
@@ -38,15 +38,15 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                crng_reseed(crng, crng == &primary_crng ? &input_pool : NULL);
        spin_lock_irqsave(&crng->lock, flags);
        if (arch_get_random_long(&v))
-@@ -1759,6 +1761,7 @@ static int rand_initialize(void)
+@@ -1738,6 +1740,7 @@ static int rand_initialize(void)
        init_std_data(&input_pool);
        init_std_data(&blocking_pool);
        crng_initialize(&primary_crng);
 +      crng_global_init_time = jiffies;
-       return 0;
- }
early_initcall(rand_initialize);
-@@ -1932,6 +1935,14 @@ static long random_ioctl(struct file *f,
+ #ifdef CONFIG_NUMA
      pool = kcalloc(nr_node_ids, sizeof(*pool), GFP_KERNEL|__GFP_NOFAIL);
+@@ -1924,6 +1927,14 @@ static long random_ioctl(struct file *f,
                input_pool.entropy_count = 0;
                blocking_pool.entropy_count = 0;
                return 0;
index f67bdcfc55f90a24fcf51f44049acbcb5feb78b8..74217362cbe920aefb2ff22731de997061f056f3 100644 (file)
@@ -163,6 +163,7 @@ alsa-hda-realtek-adjust-the-location-of-one-mic.patch
 random-fix-crng_ready-test.patch
 random-use-a-different-mixing-algorithm-for-add_device_randomness.patch
 random-crng_reseed-should-lock-the-crng-instance-that-it-is-modifying.patch
+random-add-new-ioctl-rndreseedcrng.patch
 hid-i2c-hid-fix-resume-issue-on-raydium-touchscreen-device.patch
 hid-input-fix-battery-level-reporting-on-bt-mice.patch
 hid-hidraw-fix-crash-on-hidiocgfeature-with-a-destroyed-device.patch