Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1116023ybh; Mon, 13 Jul 2020 09:43:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/FvWZIuCQlqh30TcJEFnyPIvBKWr5I9nUMUupS6J9q+ctb4tSSnQ9Nk5zinn/RokA2qAS X-Received: by 2002:a17:906:ecf4:: with SMTP id qt20mr569893ejb.485.1594658593431; Mon, 13 Jul 2020 09:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594658593; cv=none; d=google.com; s=arc-20160816; b=QNeWXIENWjbO76BIkmDAWYImmr8aYCT2RzFnWjb7hzqSE3D0NMyHN4fFGQUTN58rDo kzPx4aIEDb2GpuAX3UEqatsvJP9dK9349EC5rYokFD3tTPDr0rwiT+Gt9HlsUepTW2ek PT+1EiRK9FUfKjg6pf3YLDmeAvBsyVgtXjifGot21GvjDxc1xT8h4jYuZZ/N7agjXyo8 3sbIRiV0eCOvRb2gRRrP3UzjdYNnK+2DrL1wOvGeVejXgxfix5xlzSwnsB+yDRDE9ACH KaGaIGC2SQsnQAKNCqZ9SiE+vtB4F/MeSH2GAr2t0jLqqATadC5SVNeyfBSNKY1jCgi5 xL3Q== 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=jM75FgryykiqrvWN+6IjhYyXN2a6Vxs2JI1DmKrlpDw=; b=ePKHoHvgCcUax77kTpUveDmdIvlLdeim5JcH35Pz794dh6HkAbkgEdeyeB2txp7xA5 /voyhcnMD1jJqKixoqTcUQzCwKy3yJbRNu3sfroLOmGN3VEwdRxrkSIcCKjwshnWswq+ 9MAQZRxtOJ43LpkAkN2lvc501iLIKNPvuGPsnPx6VK+Pjqcsx99QadferDJFE6LqQCgH 1L/JzrzXbdUNn0FXpQKPkoOc9t1CrQ9c6dS5k1FM7myasgrbD5nlBuI2/EeRj+unvxdy Lmaglxa13r9BVxLtitD6KRV+VzSOaAtfifoK/JNxYDIEg3Nh0bQjLerLiGU4slgJHmz5 fE0g== 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 e13si9306039edn.432.2020.07.13.09.42.49; Mon, 13 Jul 2020 09:43:13 -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 S1730258AbgGMQke (ORCPT + 99 others); Mon, 13 Jul 2020 12:40:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729969AbgGMQkd (ORCPT ); Mon, 13 Jul 2020 12:40:33 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABD07C061755 for ; Mon, 13 Jul 2020 09:40:33 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id CEEC7BC053; Mon, 13 Jul 2020 16:40:30 +0000 (UTC) From: "Alexander A. Klimov" To: derek.kiernan@xilinx.com, dragan.cvetic@xilinx.com, arnd@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] misc: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 18:40:24 +0200 Message-Id: <20200713164024.35988-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/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index e1b1ba5e2b92..1a11e1ca9ab4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -83,7 +83,7 @@ config IBM_ASM WARNING: This software may not be supported or function correctly on your IBM server. Please consult the IBM ServerProven - website + website for information on the specific driver level and support statement for your IBM server. -- 2.27.0