Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp247685ybh; Sat, 18 Jul 2020 02:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3QX5LMGAT1owc3lbuYE11WOmylFzYsGHO6+EB2v/yuigRWhrIhEKdKPPrK7WCgTIu9+eY X-Received: by 2002:aa7:c24d:: with SMTP id y13mr13544228edo.123.1595065473282; Sat, 18 Jul 2020 02:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595065473; cv=none; d=google.com; s=arc-20160816; b=tvdXjajx83ATppup7NhZ8m9GjbmmnjDz38ctvU+x2tqYh7+zzynNoTQsv1FBusAf+u k/GqJSrRVZnBCEiGvjVxXzMjh3t6yFzJ3pS6mnun1O7Ii07AGDuALkqb9tW8jrA709Ni X4/D2NV+bYK+MlxHwX4rC7fOOuObT1q5eK+gug5AV2zJkuSH/p05rwxtCpCcoQvGdMNv 3f2k23ryFTvmfXaWcweMp41E4ccbxC/SrbFIQQvYJNg73iJErpX08LTP2lUuSKDAADbR IGIMo6DCmDtXruzEVmmi84XjjrhvrPg18XPdbrdVGSzO9zThipx48F6bpudHhK1W5kai xLMg== 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=kpsfY2lvNhcpQ6oBIss0DwYB6xChXidKXeoAH3THmuo=; b=sMvX1UA3WyA3EWJITzLA44fQSHhz4Bwjjcta0EnVEfaIP6iXPBbzw1VscudFrAnF62 qFFxrrXWSDpeviFidKENBAMCiiRbaF7kwzOw8KoeOyC7w5VLNum+Dr6MMr9AepOxn7j9 OCkGlmDLbFDTGuCEYPVYCRgoZhkC0rCsFuZKuXb7Rc8cjl1g2DRQVb3SBrwnOBFrp3lb YAEVqvwuImeFtvHOvyGg8Qr13DHf2LW6r79pBNJyiMllbJBwCUNsFx8E6cMCUXP1aJR1 BmlBPNZFaJ59h//nPDMq7XwOf6ulGpIrzv/Su6aSul7AWNTOq1Vx1Wc47ipV5f/PZLat NC7g== 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 l5si6599048ejr.75.2020.07.18.02.44.10; Sat, 18 Jul 2020 02:44:33 -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 S1726598AbgGRJnu (ORCPT + 99 others); Sat, 18 Jul 2020 05:43:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgGRJnt (ORCPT ); Sat, 18 Jul 2020 05:43:49 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F41AC0619D2; Sat, 18 Jul 2020 02:43:49 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 2216EBC053; Sat, 18 Jul 2020 09:43:46 +0000 (UTC) From: "Alexander A. Klimov" To: ssantosh@kernel.org, sre@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] power: reset: keystone-reset: Replace HTTP links with HTTPS ones Date: Sat, 18 Jul 2020 11:43:40 +0200 Message-Id: <20200718094340.93087-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/power/reset/keystone-reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/keystone-reset.c b/drivers/power/reset/keystone-reset.c index ad11faae19c5..211eeef0c81a 100644 --- a/drivers/power/reset/keystone-reset.c +++ b/drivers/power/reset/keystone-reset.c @@ -2,7 +2,7 @@ /* * TI keystone reboot driver * - * Copyright (C) 2014 Texas Instruments Incorporated. http://www.ti.com/ + * Copyright (C) 2014 Texas Instruments Incorporated. https://www.ti.com/ * * Author: Ivan Khoronzhuk */ -- 2.27.0