Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1048203ybh; Mon, 13 Jul 2020 08:04:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybG9czFyT+nCdsdza6K0Ik7b8CahA26UawdkkHXtzAKSHkmAxzp1Yrvw8hY7oe/8tzaDoR X-Received: by 2002:a17:906:7d1:: with SMTP id m17mr206477ejc.490.1594652681916; Mon, 13 Jul 2020 08:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594652681; cv=none; d=google.com; s=arc-20160816; b=IvAS7IVwtr3nl7sRcAewc1tEg3HXrRWI8Q8BoQi3IM+yyZdirTkazRlmJU732/QQwZ YN6aIuZ+lt+qQ0gqg+tK9CDvy+wvqepSLqmfvws2Thud4puNnlG1I52D9J/Mgk8szFRR k8TQ8l92K4VXNM+gbRG4epiEozXvIb8fgP8Db2+GEp2KrA+f+fvBsG/UL+eADlYLhUne JiqgSNMurwVXoHafR8Oqopt2WGT5jehHMzglqJ41Mp2nvmtGub0JLEURw4zocQj9BMlb FYh3b0hcItlF8+0Q81IFj1KFnMQrqFqOj2i2xH2Y+/ax/cYCaDO54HSSjhly6jSF6JFB egFA== 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=/XmXD66yYLkndtrpgZpQ/i1lBgrU2S3UetReNoJ9o08=; b=MehCy/8gW2OVuqm6wBWyDjFpaU1EtPJDq+gwyN8csMbQyEnbtbyO8sY/peZX3eAVmm mIjoj2hfgBbGameqCK4ZmED2znGuPcO/+bpslLXz3pxPwMFVODCj7OILmTNaTZsx0zfK PXJA0XTsDO+VJf2unodZauyPkwTSDFtU/d5OCNJsMUHbJ3ltmHHxLGl2mHOilmtOXgqA MlnSrIEdAiAZVi84LnrBQG23hChHBhNTYv+Jd12cr+gP8AV5M3xaI95OcCYS5WwYXAip vWtK3fq6sQp9EnjPJf2H6XPouAm5SF2GSdt14vbHl7P3/HNRDH6Q68lXsCkBjU06Nv4a G/YA== 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 c102si11182674edf.216.2020.07.13.08.04.18; Mon, 13 Jul 2020 08:04:41 -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 S1729722AbgGMPBi (ORCPT + 99 others); Mon, 13 Jul 2020 11:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729027AbgGMPBi (ORCPT ); Mon, 13 Jul 2020 11:01:38 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ACC6C061755 for ; Mon, 13 Jul 2020 08:01:38 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 63A14BC0FD; Mon, 13 Jul 2020 15:01:35 +0000 (UTC) From: "Alexander A. Klimov" To: rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] lib: reciprocal_div: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 17:01:29 +0200 Message-Id: <20200713150129.35188-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! :) include/linux/reciprocal_div.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/reciprocal_div.h b/include/linux/reciprocal_div.h index 585ce89c0f33..362f6d772e27 100644 --- a/include/linux/reciprocal_div.h +++ b/include/linux/reciprocal_div.h @@ -11,7 +11,7 @@ * * The assembler implementation from Agner Fog, which this code is * based on, can be found here: - * http://www.agner.org/optimize/asmlib.zip + * https://www.agner.org/optimize/asmlib.zip * * This optimization for A/B is helpful if the divisor B is mostly * runtime invariant. The reciprocal of B is calculated in the -- 2.27.0