Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2196574ybh; Fri, 17 Jul 2020 11:36:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBZirVFZI5gkXbDU5wxb09S1fCSigQhP9B7yWinl8Ln+Zq1gc0NX9vHXQUgZZlf31iIFWo X-Received: by 2002:a17:906:3c56:: with SMTP id i22mr10240346ejg.12.1595010971985; Fri, 17 Jul 2020 11:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595010971; cv=none; d=google.com; s=arc-20160816; b=aa1C+dI5dJ8jjdWxtMhUKKRjzuC7PuvBOYk61PPWmjGAf3S3X3o/VjQb0RCDB92GOA H0yVNKYY3hJopbbj8OfZwZ8k6YRLCTggPWPkB80fBR8fc1Lgd08zfpEObJ2gGSYFmlBS 1PLYKOlXgxrDjNYV2fkXqNf1fK7WiS43KNKAsUxNhMh7DQl0CS1bMWPHCRy/DG+yw6Ef jAd80yz5lCXlaZH09Z1PXwguDDrjWwEZDvc6yFWYjvhVHPsss9N4e1+dlqUCUU+R0dLh ouLguLErtgBlV4e3pnElOuq8ny0yvvhb3ClByJnPqJonZU4zin5ueAj8bhGlhXlGGOTk SOTw== 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:to:from; bh=Uik16ruKyi6ovwSpO69yrOSEXi6kb3KOSL8vLS2lhUo=; b=NXcBzxRiRwBo1i7HG2X/pNgFnfsB7YjTntpU+AaYKSSSkVEr6v7getCEcwMAcpwxK8 TPYwXzjgMIQ+KEopo45F6uofkJeJtFSA/A+3KlzjeBa0MTIbcU72dNC88QJJxaRLfwNi SzUMQ9LLqAFmfLvfwJa5hU6CkqJta4yJ5tJ+fcyOtTOQL0FifNgelOGqI8zk9qof/0bZ HdmLVvykV15PPi43HeL40NW+TsboZG4/FYNzpKpwPIadYyVEDPgxX7z9FRt5LWHURkFh OdPcon+1ky7I7XlJHqyz6fr2QwLC/oAYZNGwV6UNgeV/3ko6SnGHPqLvBZrazGl5nfA0 2iPg== 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 p5si6381123edt.466.2020.07.17.11.35.49; Fri, 17 Jul 2020 11:36:11 -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 S1727863AbgGQSfb (ORCPT + 99 others); Fri, 17 Jul 2020 14:35:31 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:59862 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbgGQSfa (ORCPT ); Fri, 17 Jul 2020 14:35:30 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 6EBB9BC053; Fri, 17 Jul 2020 18:35:28 +0000 (UTC) From: "Alexander A. Klimov" To: benh@kernel.crashing.org, grandmaster@al2klimov.de, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] macintosh/adb: Replace HTTP links with HTTPS ones Date: Fri, 17 Jul 2020 20:35:22 +0200 Message-Id: <20200717183522.77605-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 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. drivers/macintosh/adb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index e49d1f287a17..73b396189039 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c @@ -163,7 +163,7 @@ static int adb_scan_bus(void) * See if anybody actually moved. This is suggested * by HW TechNote 01: * - * http://developer.apple.com/technotes/hw/hw_01.html + * https://developer.apple.com/technotes/hw/hw_01.html */ adb_request(&req, NULL, ADBREQ_SYNC | ADBREQ_REPLY, 1, (highFree << 4) | 0xf); -- 2.27.0