]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
libceph: replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Wed, 8 Jul 2020 06:53:28 +0000 (08:53 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Aug 2020 09:05:26 +0000 (11:05 +0200)
Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.

Deterministic algorithm:
For each file:
  If not .svg:
    For each line:
      If doesn't contain `\bxmlns\b`:
        For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
            If both the HTTP and HTTPS versions
            return 200 OK and serve the same content:
              Replace HTTP with HTTPS.

[ idryomov: Do the same for the CRUSH paper and replace
  ceph.newdream.net with ceph.io. ]

Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/Kconfig
include/linux/crush/crush.h
net/ceph/Kconfig
net/ceph/ceph_hash.c
net/ceph/crush/hash.c
net/ceph/crush/mapper.c

index cf235f6eacf99691f762fe2d39ff4f5c2ef06b9f..471e40156065d7a6eae969cc47ba9e2180980f8c 100644 (file)
@@ -13,7 +13,7 @@ config CEPH_FS
          scalable file system designed to provide high performance,
          reliable access to petabytes of storage.
 
-         More information at http://ceph.newdream.net/.
+         More information at https://ceph.io/.
 
          If unsure, say N.
 
index 33c16f2de7f6159daa0bc74ece056f0973bd1bdb..2f811baf78d2453ada57f257e41305125040d317 100644 (file)
@@ -17,7 +17,7 @@
  * The algorithm was originally described in detail in this paper
  * (although the algorithm has evolved somewhat since then):
  *
- *     http://www.ssrc.ucsc.edu/Papers/weil-sc06.pdf
+ *     https://www.ssrc.ucsc.edu/Papers/weil-sc06.pdf
  *
  * LGPL2
  */
index d7bec7adc2679143d0db7cf2486c182d9407d8f9..f36f9a3a4e2048fa665fcb7526361d723272c4b9 100644 (file)
@@ -13,7 +13,7 @@ config CEPH_LIB
          common functionality to both the Ceph filesystem and
          to the rados block device (rbd).
 
-         More information at http://ceph.newdream.net/.
+         More information at https://ceph.io/.
 
          If unsure, say N.
 
index 9a5850f264ed2fa1396fbb35db002e9e50309dbd..81e1e006c5404ddb3d18c78d4bb89850cde198e1 100644 (file)
@@ -4,7 +4,7 @@
 
 /*
  * Robert Jenkin's hash function.
- * http://burtleburtle.net/bob/hash/evahash.html
+ * https://burtleburtle.net/bob/hash/evahash.html
  * This is in the public domain.
  */
 #define mix(a, b, c)                                           \
index e5cc603cdb1757061345d050080961d0d975c05b..fe79f6d2d0dba7f9612c785a69013a7065b28667 100644 (file)
@@ -7,7 +7,7 @@
 
 /*
  * Robert Jenkins' function for mixing 32-bit values
- * http://burtleburtle.net/bob/hash/evahash.html
+ * https://burtleburtle.net/bob/hash/evahash.html
  * a, b = random bits, c = input and output
  */
 #define crush_hashmix(a, b, c) do {                    \
index 3f323ed9df52fe2acf37919827c5cc79f9382a05..07e5614eb3f161457ac5120c668330734d47031f 100644 (file)
@@ -298,7 +298,7 @@ static __u64 crush_ln(unsigned int xin)
  *
  * for reference, see:
  *
- * http://en.wikipedia.org/wiki/Exponential_distribution#Distribution_of_the_minimum_of_exponential_random_variables
+ * https://en.wikipedia.org/wiki/Exponential_distribution#Distribution_of_the_minimum_of_exponential_random_variables
  *
  */