Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp848495ybh; Mon, 13 Jul 2020 02:56:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2D+ICR4EtZG3Pz7YBtzdWjTTTaJehFggiZTejR4DImHiFYF6+Da120EBeAAmqc8CjUlcM X-Received: by 2002:a50:9dc8:: with SMTP id l8mr90181490edk.248.1594634191610; Mon, 13 Jul 2020 02:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594634191; cv=none; d=google.com; s=arc-20160816; b=1EtcZOjFVJq7feqXwXlpazbIgTg2kvvqe+B2BLdEWN9MwYUbuDJLBWG2Hbnqxk46zc hJSnCE5mX3sCMkmgjUmIo+6dZM8hrojBvHWfQHwpm2/ruqaG89xVj3NPA+naG3E0yyjR qxvsynSbhlxPGlani8/SU0rmZsNhoAoB0AxuI+RVWkzN4IIBNUqjqgMiCv/c3emXjhPX tXZvq6/SUfJrsBeklXqgav2+hL/X3v9xoi3li9g5cX02KGH5Vxw9c+TdQRW2qMIWNrCZ WGiG3FhwIWR6PH1/hNpnFh/1jQshm+0inVBaB+5N7V7zfaMxe8xia9grgIYqGsZuM6fL 6wNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=323jNWpBM5Cv6AwYcYCJPYmsUl11+s/BeYiSxyuy7fU=; b=VNpeBb7NGl4+i9l2f+AttiZVWI0Mkv9MTXVSVx+bqydLzmAHCpWDjTa5NuUnEnX5eB HiFJZk5rTUNvqlm1FIoZaKIc0EJctw3KrNPZQLri2OjhstjzOwNTjy8a6Eghbt7Iaeqp ljWMLxBBN1hF3EiEkmIXNQyBVMG1XRs9yhZl+8LOKSU7T1ZWU5G1e3stm7Hd6m8JKtwg N7ol1QaLtrM5VqyE4AAhZHuq2C3q4m3t5r2mhDvWShOozQC7xo90yzBWhUgt0av9Rzjp kpvjuGwH2JGJ6SE40cm07QdcNB3y/hnsdV1OFD5I0FeCKNlEnSsGVtdUUdsEAz/9WbKQ JmCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm9si10728863ejc.624.2020.07.13.02.56.08; Mon, 13 Jul 2020 02:56:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbgGMJyA (ORCPT + 99 others); Mon, 13 Jul 2020 05:54:00 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:34420 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbgGMJyA (ORCPT ); Mon, 13 Jul 2020 05:54:00 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 31AF7BC07E; Mon, 13 Jul 2020 09:53:58 +0000 (UTC) From: "Alexander A. Klimov" To: davem@davemloft.net, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] arch/sparc: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 11:53:51 +0200 Message-Id: <20200713095351.32997-1-grandmaster@al2klimov.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: +++++ X-Spam-Level: ***** Authentication-Results: smtp.al2klimov.de; auth=pass smtp.auth=aklimov@al2klimov.de smtp.mailfrom=grandmaster@al2klimov.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Alexander A. Klimov --- Continuing my work started at 93431e0607e5. See also: git log --oneline '--author=Alexander A. Klimov ' v5.7..master (Actually letting a shell for loop submit all this stuff for me.) If there are any URLs to be removed completely or at least not just 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 If you apply the patch, please let me know. Sorry again to all maintainers who complained about subject lines. Now I realized that you want an actually perfect prefixes, not just subsystem ones. I tried my best... And yes, *I could* (at least half-)automate it. Impossible is nothing! :) arch/sparc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 5bf2dc163540..5f724e53ce9b 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -175,7 +175,7 @@ config SMP Management" code will be disabled if you say Y here. See also and the SMP-HOWTO - available at . + available at . If you don't know what to do here, say N. -- 2.27.0