Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1139012ybh; Mon, 13 Jul 2020 10:15:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQHRnEgWoaB6ldWilnEBwY+5zS4Gr/1kxSWkIkinF+Or6PFcJ8YBkaV1s+dnDfF9IfD5qX X-Received: by 2002:aa7:d90f:: with SMTP id a15mr423988edr.86.1594660529865; Mon, 13 Jul 2020 10:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594660529; cv=none; d=google.com; s=arc-20160816; b=Zj4rTnX0QezrK/aNP7BxpiMYg3BrQzL7PrXgeddtEqELBToTw9NQ4lXiSqZoR0Oat8 XyJUHmE5Q7dYkloemlReiYX9E175JJqpRyc2SScZ+eXuvlrFDiAcvTF/EeoL/6uTa5Gx oPUj4Ro0ytEl2PSyTAgzBlZmu+KASFq1HCtnmhy/b/wUizbJwArBf9D0G+6of/pWp7Kb sNSpmSAlaIN3hgXO+IKYX4tuePtuwMbuVd5MNNJaaGk1bkdH4M+OabV5viUj18uIBnl7 NDuKTfcqmTAmyZiMXzvnlkfMb8+5A/RD8YLRtuiqhCbFIdZk3LXVnMnenJDut9ONqkPp zeLw== 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=5KQHtigj4TxYMrsjO2xnvMqJ75gKUuY39W14+acznbU=; b=NXxEawmXFGa/4SaDuTgF/2QgmbjpWnPx1soGhf2FFW4uQM4L5iAGsMjGIPESMgzKZD NYWAZazZbM4PpFdkzTrcqJw8pxInBHfn3CxvZnO9rwIP2i4fx2jFp51WtaeekalnGn9e ffoaAfD3uu6thAc9sfBFOEqPLn9vIDm7aTkz+8wqjXexFrFYQhaQhmb6L2WZ+Jr65beb gb3ck9J076lcZSWOwwefyPV6OT9QTUzcos3VKk7Bw5hO9AVji65T4cDB6Ct8+dIzHW8E j5SzBvCmP52TtGBiBoWuV3TSVLzUB6XydA/oSOMBdrM8oUr5I4f3ImNya2jVrkPyXkf6 Yr8Q== 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 c68si9851743edf.428.2020.07.13.10.15.06; Mon, 13 Jul 2020 10:15:29 -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 S1729899AbgGMROk (ORCPT + 99 others); Mon, 13 Jul 2020 13:14:40 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:44972 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729700AbgGMROk (ORCPT ); Mon, 13 Jul 2020 13:14:40 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 1D2A3BC053; Mon, 13 Jul 2020 17:14:35 +0000 (UTC) From: "Alexander A. Klimov" To: ulli.kroll@googlemail.com, linus.walleij@linaro.org, davem@davemloft.net, kuba@kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] net: ethernet: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 19:14:29 +0200 Message-Id: <20200713171429.36369-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 (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/net/ethernet/cortina/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cortina/Kconfig b/drivers/net/ethernet/cortina/Kconfig index ac8cb5744a87..aaf9e294b70b 100644 --- a/drivers/net/ethernet/cortina/Kconfig +++ b/drivers/net/ethernet/cortina/Kconfig @@ -7,7 +7,7 @@ config NET_VENDOR_CORTINA help If you have a network (Ethernet) card belonging to this class, say Y and read the Ethernet-HOWTO, available from - . + . if NET_VENDOR_CORTINA -- 2.27.0