Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2209291ybh; Fri, 17 Jul 2020 11:55:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUIYDb75rYaqBNlymPZMErNqJn+Oayy5vKjHbjD5fj8iC3B7JhTGmAi2HZsc5vIcLQ7OM4 X-Received: by 2002:a17:906:aad7:: with SMTP id kt23mr10383848ejb.313.1595012149250; Fri, 17 Jul 2020 11:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595012149; cv=none; d=google.com; s=arc-20160816; b=DFj0+y5cGbIaQ2VwgY7hzNIIfwhVu5XLPn2pO7b4AQjFrzRVjqkVXg7mMD6ytTQMSL gKla9MMjyq6OFHqnGoNiYPzcV1QHn6oXVrtQHpG/hp+H/9GLXDVm0F7q0m14zjanbbE1 hNStfeOeeOodriyYu2IZZ9nj7a0z3a2N3dwWj3bbPlXBtPCYRbh/BibqrXyYDy/BlOsN V476MHyU95hyB3NSmhBPvGDq3JqKnxYRGIUPyLGQeiywu51wnFN7xQzv+Wy+2JZB3uKq V1/lvGW6GzGYylnflgayRQGisee+zYBEZ/JmXz71N/5qPDwr3MUqqWVwxTnV5IfP2WA4 Lv8A== 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=G7wn5AdL1qvusc1Q5YJez8kXhW6/FQdvV9MyvHhx5KI=; b=ZuJ8AYXzXLF+/ekai5qe90+1VljvzP7EQxdQkHOn1/dLUhRlkhMMp+KyeXw4aeVbIq rGlNhMDbPS2MaUd4hV6xttp1vcdsOArPd0n3ryr/wbalhO21qVdLKswVB5TKtlo8CES+ wMt/+B0wYsdhAVzEb/z+ouobow6AJ6LoK7QT3AA1jh5/27L6+fmEGJmtAfxWKOb49qJM RD9AdwldblFMKaNvZXII2jKqcGOfQQDLilZUhfthZ6u0DsZmRJfQZsMGrzj+5jKzS+pu 5By/U/WKFazZ6oovnlomxtpfW+NroJ+YeAQ7Ba5tzKux9NUgIFANWPwjbEAnV+exCrxJ 6tVA== 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 f16si6445781edy.386.2020.07.17.11.55.24; Fri, 17 Jul 2020 11:55:49 -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 S1728245AbgGQSxA (ORCPT + 99 others); Fri, 17 Jul 2020 14:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbgGQSxA (ORCPT ); Fri, 17 Jul 2020 14:53:00 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EE4BC0619D2; Fri, 17 Jul 2020 11:53:00 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 3271FBC063; Fri, 17 Jul 2020 18:52:54 +0000 (UTC) From: "Alexander A. Klimov" To: nsaenzjulienne@suse.de, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, wsa@kernel.org, wahrenst@gmx.net, ardb@kernel.org, chris.brandt@renesas.com, andriy.shevchenko@linux.intel.com, grandmaster@al2klimov.de, linux-i2c@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] i2c: bcm2835: Replace HTTP links with HTTPS ones Date: Fri, 17 Jul 2020 20:52:47 +0200 Message-Id: <20200717185247.81988-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 X-Spam: Yes 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/i2c/busses/i2c-bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index d9b86fcc3825..5dc519516292 100644 --- a/drivers/i2c/busses/i2c-bcm2835.c +++ b/drivers/i2c/busses/i2c-bcm2835.c @@ -392,7 +392,7 @@ static const struct i2c_algorithm bcm2835_i2c_algo = { /* * The BCM2835 was reported to have problems with clock stretching: - * http://www.advamation.com/knowhow/raspberrypi/rpi-i2c-bug.html + * https://www.advamation.com/knowhow/raspberrypi/rpi-i2c-bug.html * https://www.raspberrypi.org/forums/viewtopic.php?p=146272 */ static const struct i2c_adapter_quirks bcm2835_i2c_quirks = { -- 2.27.0