Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2194129ybh; Fri, 17 Jul 2020 11:32:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEhMy3sxw5MHMKa39KpAvBqyZMEwS7QgrCLfHtGXoZyW+I2LoktXQpIziuK7vi03/m+Tqq X-Received: by 2002:a50:e8c9:: with SMTP id l9mr10428166edn.272.1595010753650; Fri, 17 Jul 2020 11:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595010753; cv=none; d=google.com; s=arc-20160816; b=TIUi3FDPZZHBLua9mYkJm3UEwh9oIpKQlPgztDbmkK3dFXMlkn+SOJpwjcz+Yw1z0D +DhqZzM31xrkcS63FqWdyfcG3BXwRT4ovXGHx+Mghtvkx9YgAtm4leL6cAmXv4tmBs6V 05DkLNe/ysA7HI/+wbecRzJWl9Gy5822MTi/M42Y4lzqCaORTf6s0pNU3yVsgKxyVj0b Cvsn234Ph1ZpNCvmFkrLH4FbcPPhjhCTNE6+NVaL/skZSHv8Vh9EQAYoG9ZZF0tL2rH1 bBfXBI8MxRRy+TQ7LKI2BsbMrv3oNJwNN4xWlCXgKkTj/m0NVCt6WzI4MDiAPXie+llf ylDg== 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=rsSI4dz0zQaFjSV0UyKjoEGf7Amuhz04UIjsUIsdAJw=; b=Sv1MAZodiROuhFeHT6nohptKGrLUQuUMyykFWbhdY4Dce8QqH5w+gdmY7cSA6KJJuN kLMUa01987xfeONvcbEd80GywQ6DZdahJjpjHMylY7vh2lgXoUGIxdUnpRAnJyrDhzH0 ajyYOBSjyyjq9lgdBfRqGaWzCDms1+mEorTcfowX7dZZgwEqIr5xgMw35ovp9F6hVgj1 iUbONW9l7bc2XBU8MFGJZHKLlmpSndi3QtrkFJQvgZ5vgF9n7ZEh1KeOyejzmuKg4Ezs jewsZYQhPrxQGrBRGQGejEwewegSJvDaZS0tHlphoZo4v3u9ca+lTqpRf5GVENhHKUGr 1YaQ== 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 q4si5565274eds.15.2020.07.17.11.32.10; Fri, 17 Jul 2020 11:32: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 S1726463AbgGQS3u (ORCPT + 99 others); Fri, 17 Jul 2020 14:29:50 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:58694 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726322AbgGQS3t (ORCPT ); Fri, 17 Jul 2020 14:29:49 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 1AA4EBC062; Fri, 17 Jul 2020 18:29:46 +0000 (UTC) From: "Alexander A. Klimov" To: colin@colino.net, benh@kernel.crashing.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] macintosh/therm_adt746x: Replace HTTP links with HTTPS ones Date: Fri, 17 Jul 2020 20:29:40 +0200 Message-Id: <20200717182940.75484-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/therm_adt746x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index 8f7725dc2166..7e218437730c 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c @@ -5,8 +5,8 @@ * Copyright (C) 2003, 2004 Colin Leroy, Rasmus Rohde, Benjamin Herrenschmidt * * Documentation from 115254175ADT7467_pra.pdf and 3686221171167ADT7460_b.pdf - * http://www.onsemi.com/PowerSolutions/product.do?id=ADT7467 - * http://www.onsemi.com/PowerSolutions/product.do?id=ADT7460 + * https://www.onsemi.com/PowerSolutions/product.do?id=ADT7467 + * https://www.onsemi.com/PowerSolutions/product.do?id=ADT7460 * */ -- 2.27.0