Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libceph: replace HTTP links with HTTPS ones

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>

authored by

Alexander A. Klimov and committed by
Ilya Dryomov
94f17c00 c00e4522

+6 -6
+1 -1
fs/ceph/Kconfig
··· 13 13 scalable file system designed to provide high performance, 14 14 reliable access to petabytes of storage. 15 15 16 - More information at http://ceph.newdream.net/. 16 + More information at https://ceph.io/. 17 17 18 18 If unsure, say N. 19 19
+1 -1
include/linux/crush/crush.h
··· 17 17 * The algorithm was originally described in detail in this paper 18 18 * (although the algorithm has evolved somewhat since then): 19 19 * 20 - * http://www.ssrc.ucsc.edu/Papers/weil-sc06.pdf 20 + * https://www.ssrc.ucsc.edu/Papers/weil-sc06.pdf 21 21 * 22 22 * LGPL2 23 23 */
+1 -1
net/ceph/Kconfig
··· 13 13 common functionality to both the Ceph filesystem and 14 14 to the rados block device (rbd). 15 15 16 - More information at http://ceph.newdream.net/. 16 + More information at https://ceph.io/. 17 17 18 18 If unsure, say N. 19 19
+1 -1
net/ceph/ceph_hash.c
··· 4 4 5 5 /* 6 6 * Robert Jenkin's hash function. 7 - * http://burtleburtle.net/bob/hash/evahash.html 7 + * https://burtleburtle.net/bob/hash/evahash.html 8 8 * This is in the public domain. 9 9 */ 10 10 #define mix(a, b, c) \
+1 -1
net/ceph/crush/hash.c
··· 7 7 8 8 /* 9 9 * Robert Jenkins' function for mixing 32-bit values 10 - * http://burtleburtle.net/bob/hash/evahash.html 10 + * https://burtleburtle.net/bob/hash/evahash.html 11 11 * a, b = random bits, c = input and output 12 12 */ 13 13 #define crush_hashmix(a, b, c) do { \
+1 -1
net/ceph/crush/mapper.c
··· 298 298 * 299 299 * for reference, see: 300 300 * 301 - * http://en.wikipedia.org/wiki/Exponential_distribution#Distribution_of_the_minimum_of_exponential_random_variables 301 + * https://en.wikipedia.org/wiki/Exponential_distribution#Distribution_of_the_minimum_of_exponential_random_variables 302 302 * 303 303 */ 304 304