Skip to content

Commit 8eda94b

Browse files
Al2Klimovpmladek
authored andcommitted
Replace HTTP links with HTTPS ones: vsprintf
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 both the HTTP and HTTPS versions return 200 OK and serve the same content: Replace HTTP with HTTPS. Signed-off-by: Alexander A. Klimov <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5c2fb57 commit 8eda94b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/core-api/printk-formats.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ colon-separators. Leading zeros are always used.
317317

318318
The additional ``c`` specifier can be used with the ``I`` specifier to
319319
print a compressed IPv6 address as described by
320-
http://tools.ietf.org/html/rfc5952
320+
https://tools.ietf.org/html/rfc5952
321321

322322
Passed by reference.
323323

@@ -341,7 +341,7 @@ The additional ``p``, ``f``, and ``s`` specifiers are used to specify port
341341
flowinfo a ``/`` and scope a ``%``, each followed by the actual value.
342342

343343
In case of an IPv6 address the compressed IPv6 address as described by
344-
http://tools.ietf.org/html/rfc5952 is being used if the additional
344+
https://tools.ietf.org/html/rfc5952 is being used if the additional
345345
specifier ``c`` is given. The IPv6 address is surrounded by ``[``, ``]`` in
346346
case of additional specifiers ``p``, ``f`` or ``s`` as suggested by
347347
https://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-07

lib/vsprintf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ char *fwnode_string(char *buf, char *end, struct fwnode_handle *fwnode,
21342134
* [4] or [6] and is able to print port [p], flowinfo [f], scope [s]
21352135
* - '[Ii][4S][hnbl]' IPv4 addresses in host, network, big or little endian order
21362136
* - 'I[6S]c' for IPv6 addresses printed as specified by
2137-
* http://tools.ietf.org/html/rfc5952
2137+
* https://tools.ietf.org/html/rfc5952
21382138
* - 'E[achnops]' For an escaped buffer, where rules are defined by combination
21392139
* of the following flags (see string_escape_mem() for the
21402140
* details):

0 commit comments

Comments
 (0)