Re: [PATCH] Replace HTTP links with HTTPS ones: RISC-V

From: Palmer Dabbelt
Date: Thu Jul 16 2020 - 19:19:22 EST


On Sun, 05 Jul 2020 15:02:36 PDT (-0700), grandmaster@xxxxxxxxxxxx wrote:
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 <grandmaster@xxxxxxxxxxxx>
---
Continuing my work started at 93431e0607e5.

If there are any URLs to be removed completely or at least not HTTPSified:
Just clearly say so and I'll *undo my change*.
See also https://lkml.org/lkml/2020/6/27/64

If there are any valid, but yet not changed URLs:
See https://lkml.org/lkml/2020/6/26/837

arch/riscv/include/uapi/asm/unistd.h | 2 +-
tools/arch/riscv/include/uapi/asm/unistd.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/include/uapi/asm/unistd.h b/arch/riscv/include/uapi/asm/unistd.h
index 13ce76cc5aff..4b989ae15d59 100644
--- a/arch/riscv/include/uapi/asm/unistd.h
+++ b/arch/riscv/include/uapi/asm/unistd.h
@@ -12,7 +12,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#ifdef __LP64__
diff --git a/tools/arch/riscv/include/uapi/asm/unistd.h b/tools/arch/riscv/include/uapi/asm/unistd.h
index 0e2eeeb1fd27..f506cca520b0 100644
--- a/tools/arch/riscv/include/uapi/asm/unistd.h
+++ b/tools/arch/riscv/include/uapi/asm/unistd.h
@@ -12,7 +12,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#ifdef __LP64__

Thanks. This is on for-next.

Unless anyone has any objections I'll eventually go remove all the license
boilerplates from arch/rsicv, as it looks like I missed a few when I converted
them over:

$ git grep "GNU" | grep riscv
arch/riscv/Makefile:# This file is subject to the terms and conditions of the GNU General Public
arch/riscv/boot/Makefile:# This file is subject to the terms and conditions of the GNU General Public
arch/riscv/boot/install.sh:# This file is subject to the terms and conditions of the GNU General Public
arch/riscv/include/uapi/asm/elf.h: * it under the terms of the GNU General Public License as published by
arch/riscv/kernel/fpu.S: * modify it under the terms of the GNU General Public License
arch/riscv/kernel/fpu.S: * GNU General Public License for more details.