Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1131809ybh; Mon, 13 Jul 2020 10:05:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhAQ7JhQSrAwqcurYAFTqS4U++rZqp7v4eGG5S1rwhkoqNNVcbskWOcmesDx2W0iItkf8I X-Received: by 2002:a50:dacf:: with SMTP id s15mr412063edj.136.1594659907873; Mon, 13 Jul 2020 10:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594659907; cv=none; d=google.com; s=arc-20160816; b=UCR3uFCrrKXSc3CsvjMieIXigz2yWe5C+pfjBgDfHOARF0ny/6gF52tmc1o8DiZtD3 xBLEhcVTkRFjsIiCbZAdWFrmNHxAK0SXkQccipEs32369G6uIetHLfjgPh9k4pD3Wqfw NMunsy1nSK9oWoyOZFtmdHDPuokOQYgqGcXe65zhXq9I/OUjTTPnYpyroEJ9ez7WCUTF VE0Xczk2i1vEpkj9LVleQ5uEFxVh3tbgo98FlWZr84xAV2JEQYC/uLF3K5oPR4Qcc7gn lahg4MpaLCSjV8IyiJZLMTSGRf6ApQxEwsx//P7a7Hhk7St/SCHDs5AEKSE2uDpeznLG eP1A== 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=0BCjCePzJVZmERX0HAurzlONC77pWiC/FDcGyZE0In8=; b=YX3nMc909ntV3e8OT9Qcosw1/tbfalVp6FdvcZ3qtND4P/MyBYpkk/fP2/HAyXe0FQ dW3GR5a5b26rtzUSjjoWSAHPSsoRna2iyotEjGZIBwwRiidyzg9go5cc95+/ydpwaeqQ bZdBkS60LrCMfYYPLenLxwoV2wWjEYJJenWIrwxMwOt2ak3t3UBr/JPJoQQD4kG+3zlZ TEnytwEyBIm5JQxgQAyjftgC+6ps0XUvzil7+166xKVOSYSoQMQDcvVOLxopZ1EnUgoB Gi7Nh3GT+bNMmfJ5//HUEFolGTSAPhj8VUorhyL0eE7tdvwk4dn5UJSNJTpSEbOZRDeX EJ0g== 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 d11si8803770edz.263.2020.07.13.10.04.44; Mon, 13 Jul 2020 10:05:07 -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 S1729873AbgGMREa (ORCPT + 99 others); Mon, 13 Jul 2020 13:04:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729747AbgGMREa (ORCPT ); Mon, 13 Jul 2020 13:04:30 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E37C061755 for ; Mon, 13 Jul 2020 10:04:30 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 03033BC0D3; Mon, 13 Jul 2020 17:04:26 +0000 (UTC) From: "Alexander A. Klimov" To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, tudor.ambarus@microchip.com, dinghao.liu@zju.edu.cn, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] mtd: rawnand: omap_elm: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 19:04:20 +0200 Message-Id: <20200713170420.36300-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! :) drivers/mtd/nand/raw/omap_elm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/omap_elm.c b/drivers/mtd/nand/raw/omap_elm.c index 078b1022ac2a..4b799521a427 100644 --- a/drivers/mtd/nand/raw/omap_elm.c +++ b/drivers/mtd/nand/raw/omap_elm.c @@ -2,7 +2,7 @@ /* * Error Location Module * - * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ + * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ */ #define DRIVER_NAME "omap-elm" -- 2.27.0