Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp963893ybh; Sun, 19 Jul 2020 04:32:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL/jZMpSud8ejqZn+zV+9HtuWo7G+hZ7g42saBvwcVlRp3APnvcKLeihOwcEM72WZmVn6B X-Received: by 2002:a05:6402:1757:: with SMTP id v23mr17580547edx.356.1595158339262; Sun, 19 Jul 2020 04:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595158339; cv=none; d=google.com; s=arc-20160816; b=jgmVLB1+vhCmPgGN1AEUoFhLSfTWMCkxSYsPHVO4OvX4jnY+ZZeGO64qX6R561RLT7 U2CQRAl3aSTWkXo5j26wz1+G1GZcP+zX9L9sLIjo3/4CtQfmRt1iEwENbMhVcEPRZit2 TJiDKqTZUO+KSICBHYTu0m7JloTfPzCHUgueFfFI4XBA+HgW/FLmi6t0Qn5vJfWdLmdl o8ep1xw+RdIGX0XSKA9P8dSbeHZhD1CSC5MGSFLarw4o2L8KvW4URwvKHTBS9QY97n9g EXf9I6oz0whiv/l6OCYAGnAQanDjutALb27m0xy9iU29itpRhwzAr1B9d9Luf/FkewbD DPNQ== 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=IPdO9QWQFIvJ1hGsHi32QK+szMnSgPz3W2TO1fhsBgM=; b=0q5Ksrfs1LufOjfLYeaPMH1Gk3Y+TPNM+EeAta3JBok41fXRUUtiAoPyg/Bw4h0qjl jQRxwTGMKYGw6cryq2GXMefNoOnaoKpa0A6xLcmcE0UJfmqeM+O36N383ENPHd8wG1+w kPSZwVSDnNs0hmYqQtxGbQZqz5DecqKfZeAGJc7TR0yW23HFwVWShlq5vvF0b4lmvj+l Pr2akKimoJXn8pnuMxFThODvlxid7m/lgWRc25BbpB99Vui+UgvHGVkFQPFFUoJ3kNy/ eSLUPv+FKTOls38qwQ6udu8fPPjl7dduCl4eB5SwKKbYbKkH5RcfOVgXdvgDPcMBG4xJ Gn8Q== 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 e19si8959037edr.218.2020.07.19.04.31.55; Sun, 19 Jul 2020 04:32:19 -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 S1726123AbgGSLbw (ORCPT + 99 others); Sun, 19 Jul 2020 07:31:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgGSLbw (ORCPT ); Sun, 19 Jul 2020 07:31:52 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8A7CC0619D2; Sun, 19 Jul 2020 04:31:51 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 59B4DBC063; Sun, 19 Jul 2020 11:31:48 +0000 (UTC) From: "Alexander A. Klimov" To: michael.hennerich@analog.com, alex.aring@gmail.com, stefan@datenfreihafen.org, davem@davemloft.net, kuba@kernel.org, linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH for v5.9] net: ieee802154: adf7242: Replace HTTP links with HTTPS ones Date: Sun, 19 Jul 2020 13:31:42 +0200 Message-Id: <20200719113142.58304-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/ieee802154/adf7242.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c index 5a37514e4234..60a016a6806a 100644 --- a/drivers/net/ieee802154/adf7242.c +++ b/drivers/net/ieee802154/adf7242.c @@ -4,7 +4,7 @@ * * Copyright 2009-2017 Analog Devices Inc. * - * http://www.analog.com/ADF7242 + * https://www.analog.com/ADF7242 */ #include -- 2.27.0