Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1164842ybh; Mon, 13 Jul 2020 10:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlFQa6Rcl6+TkU0RMm0AkAn2YjNwRUrplHLpblhIDXqeuYuw9Gn+DJLCB6Jl3Hy9Q9cuhF X-Received: by 2002:a17:906:fcba:: with SMTP id qw26mr883368ejb.112.1594663096965; Mon, 13 Jul 2020 10:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594663096; cv=none; d=google.com; s=arc-20160816; b=UuyoIE0r3GL+oCaeKG5pZUnQvZvqQwQGQG4sW4B/UlDD2rqtVX/9h6AwEszZfYFsYu cd0NmFvYMniem7Sy7qqfZc0ju831gqLhrEESWwiKrenQo18YSf0muyACme+aJBLNYVpF jJd5BZeQhhhSfl2TlrgnrZOs5WuuQWoWNcOZQtoOzNIWJFtORBxyULYjShqVHHxcVjq/ GFI/X8blx1ujuQS9zip5AiRMBZb/YgUx8c2hQaCAwouI4mAY0ZX+vImTiW+i9NfaRXD0 epjpirmWWSkHqZYEhVX+DeivE5nb56ebHegYPqofr3HbAPFMxMpazzAxhU3LaBNWHZ89 FwgQ== 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=JY2CnPAmHgbmE+ZpA6oKICKhKpEDL90uiQfDK69Vgnk=; b=Pwla0DNibn75eu9Gt8wz/8HpqFUR2dKUO9m2zLv7G75QPVl/EBRbmCXbDbBymopVEk zRvDaSI0NHpwnSZqtC34TKvWM0+3K3IQ8/apaIX7vnx3Nzk13CZxOH/wKoI3p8pBvPGb ngMFWtYm5V0YY9Sk/yG9q0B8ffk3iV5dbGqDqjxEvNartSfxGKidcACurjY5jbXoeaBG teYxu4RJs3BYUWapcb4m5f95OqinYdLNeBo5XaIxjJWU35Lr6iUXvcuhG3On3MygXaeJ LoAUqXvbydNsPcxBbk+c52ZWkXahs7ydH5oyGCsJs8m73+UXdTwKJx8hs9kvwRmQO6Y2 ZTQA== 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 o3si9230606eje.601.2020.07.13.10.57.53; Mon, 13 Jul 2020 10:58:16 -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 S1729835AbgGMRzS (ORCPT + 99 others); Mon, 13 Jul 2020 13:55:18 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:58970 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729689AbgGMRzR (ORCPT ); Mon, 13 Jul 2020 13:55:17 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 9A113BC097; Mon, 13 Jul 2020 17:55:14 +0000 (UTC) From: "Alexander A. Klimov" To: fbarrat@linux.ibm.com, ajd@linux.ibm.com, arnd@arndb.de, gregkh@linuxfoundation.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] ocxl: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 19:55:06 +0200 Message-Id: <20200713175506.36676-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/ocxl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/ocxl/Kconfig b/drivers/misc/ocxl/Kconfig index 2d2266c1439e..6551007a066c 100644 --- a/drivers/misc/ocxl/Kconfig +++ b/drivers/misc/ocxl/Kconfig @@ -23,7 +23,7 @@ config OCXL The ocxl driver enables userspace programs to access these accelerators through devices in /dev/ocxl/. - For more information, see http://opencapi.org. + For more information, see https://opencapi.org. This is not to be confused with the support for IBM CAPI accelerators (CONFIG_CXL), which are PCI-based instead of a -- 2.27.0