Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1231028ybh; Mon, 13 Jul 2020 12:49:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfswMXrE/hkFxy+84VQbnAStBcNicZn2pgYqZqlgXOEYPKhjZE4mWTikHgiKQOXCiF50Eq X-Received: by 2002:a17:906:eb5a:: with SMTP id mc26mr1433246ejb.42.1594669757073; Mon, 13 Jul 2020 12:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594669757; cv=none; d=google.com; s=arc-20160816; b=i0mcfg3uKVa6oa5n8Y+6Y3TbWkMbJpFhCJyW3M9+mX7TpClqF7Ror7Kvc2QRNqM6ns e8/YbFb3DNNpbDnVYzydhK4mHLlvCQ540pdJ82b2K0QEWJt2pNu1MoUEnUekWc/7dTYw PIq4kQJMDrGHEUYbgPOnyWddjgrFy3Cx1sj46K9Yxr/ezMyXJRhxZ77kIlDiDREbF1JD xatxlS7fG9Ci5PqozXJqS0/JloMDi4ZTgiZBlhiiEjkTPYQjEhBUuNSL8twEW0Cel3DE 0N4sRJLyO236FQbG7Lx1CyDYxl7+K4agTmHgHP5oylVteXHZRUPpg9wxgHjxPhSn9hfU /ReA== 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=oXeDEEY6ljCC/VjIBf0Gt/pRft/laLzTTmeLOdCVO+8=; b=jUGeofOBINn+6vs7q6TDV4O1M+gDy9l/opu4+14iTkhsOrSdDKHnstLex0PyM1YS0t a/ZHdSlMrkeJ4IJrkKp19RvcSRuVFSu8gNuLBp1JnW+55BFlOA+VU85pyWyXS+snhVRv gp6QHEczG0aV58IOE9613OgTs2bYQPMKQZrGtHoB3tUTnx351WrSuRrnG1Grhp7g5V1+ 5dZAP/OtHaK74aim0aLfHhgx7K6oAy0AsERFNwUsNirIwUUxscwIQ1HofPgXG1s+jN7T 7qr/yXb0T4mDs87jkb52BBe3tBCBbkpdTmk8mB8T7FCVqO832yIE1DfgU5eknU2b+7cx 8L+A== 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 bi2si9184585ejb.531.2020.07.13.12.48.54; Mon, 13 Jul 2020 12:49:17 -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 S1726506AbgGMTrZ (ORCPT + 99 others); Mon, 13 Jul 2020 15:47:25 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:38562 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbgGMTrZ (ORCPT ); Mon, 13 Jul 2020 15:47:25 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 6A55BBC0D1; Mon, 13 Jul 2020 19:47:22 +0000 (UTC) From: "Alexander A. Klimov" To: aacraid@microsemi.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] scsi: ips: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 21:47:16 +0200 Message-Id: <20200713194716.37593-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/scsi/ips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index f25672982c5f..c8887601532b 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -47,7 +47,7 @@ /* */ /* For system support issues, contact your local IBM Customer support. */ /* Directions to find IBM Customer Support for each country can be found at: */ -/* http://www.ibm.com/planetwide/ */ +/* https://www.ibm.com/planetwide/ */ /* */ /*****************************************************************************/ -- 2.27.0