Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1020956ybh; Mon, 13 Jul 2020 07:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZZrfhQiEiXFPW6/j2lQCuOGXud9Cb4MmglS7O6ZQgpFBNRuBXBWMORmP9qPN8j+sbKx9Y X-Received: by 2002:a05:6402:1766:: with SMTP id da6mr88501982edb.48.1594650238615; Mon, 13 Jul 2020 07:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594650238; cv=none; d=google.com; s=arc-20160816; b=htkc7GtL2oSW7RnHUyzARNHGaymvPtzBTIxUos5NmUQHLeYOrv2QmdzvGl0qD4KnHD 3IFcc4TVfGqdBA9suWEIpHsqF7YiRv+KXm1JbWzpTRSG6CDNfUJjJDM9ZUzkp3chfaZ4 /roht+xSPB6dhJw7vuS+HIVyLreMbuWuLoEXLa8AIAgTZiozftDRwB6By+y/ePptLwog Rzf4/G3fEvyMzdlb3+4AKOpQPiXmmaQ098sODvoVBLffajlmLkzcQHSGy2BMlMyQIlTg g63VUKG3t3laCH6jQFvYljlc+tCxtwsind3C5xYY5GjEJIM72Hx45i3XqooUk4ptKyq4 PCgQ== 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=JWpADUYA/pB0Any8OwdkHAlsgarVmM4XTx4yaBMlAUY=; b=jX4d7KlmlQvAenbwr3snx5e8hIgAIdBk7huSECnZMx1YwK9eTlB43imBQyllIn/o5s k80XN3GbQaAzsGCo+YHL9/X0kbsumhQ+XYVQM/AwglUVYMEaIDw5ER3voZcUwWqvTWLJ FdArgGgN93OFEy01uDrotT4aWBshb9zac+q+qRy1Sb7LGUeqnWnVSLji5qs/a+IzxQVv mYZvJZBqsjW2Dz3iHZylKpjf2dHDcSpPM7VEqRcdemjY+f0VgZOyoGiCxz16nEKyMkND B+dMm4SRXEmYnwVpZFcZ3gyb6Oeiusboz6mLcOHismSmM5INe1pv5z/gCSolqrUHK3p8 g9fA== 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 s2si8484226ejx.162.2020.07.13.07.23.35; Mon, 13 Jul 2020 07:23:58 -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 S1729997AbgGMOUz (ORCPT + 99 others); Mon, 13 Jul 2020 10:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729695AbgGMOUz (ORCPT ); Mon, 13 Jul 2020 10:20:55 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F542C061755; Mon, 13 Jul 2020 07:20:55 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 5CAF6BC0FD; Mon, 13 Jul 2020 14:20:51 +0000 (UTC) From: "Alexander A. Klimov" To: bvanassche@acm.org, dledford@redhat.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] ib_srp: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 16:20:45 +0200 Message-Id: <20200713142045.34909-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/infiniband/ulp/srp/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srp/Kconfig b/drivers/infiniband/ulp/srp/Kconfig index 67cd63d1399c..c33f4e5fa4d7 100644 --- a/drivers/infiniband/ulp/srp/Kconfig +++ b/drivers/infiniband/ulp/srp/Kconfig @@ -9,5 +9,5 @@ config INFINIBAND_SRP InfiniBand. The SRP protocol is defined by the INCITS T10 technical - committee. See . + committee. See . -- 2.27.0