Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp673518ybt; Wed, 8 Jul 2020 08:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXnlaXWWF+7KXulPuwvSwtpxadDAY50ifVNm6ESP9rAPd3WLOc2vfZ8QQN3OROVNd7A4kk X-Received: by 2002:a17:907:1051:: with SMTP id oy17mr54529848ejb.394.1594223967041; Wed, 08 Jul 2020 08:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594223967; cv=none; d=google.com; s=arc-20160816; b=UTF5s1ubIv6HtwPAs3ZUB6rmMSLnQSQa1+kn6Mr3ksljIsryipk1hs2lGc/wzZkE3Y FD7KOEhOKo/G9xjjt5Cb2alWVeAG+n3i1jTC1DrewC6DogzImoaDJA3Zd+6pGjnogzP6 p2jOsrDtPwZbFUbhOAAec3DXHxSgf6Jr0S3/Cw5p4l8zN5+QUQN+TC9nC5ZxaWHNdyXJ ilWBF8QFt76vm040zPG+SKYOZAfkJh1BZHdi6Az2rd0ShAfN1qK4kC/cWYO27n5332Y2 uF1YGUxuE3Q6UGpPbAcxJZfnKVKX7ZwkOuNejtoAJ0AVr679vtDOs92tc15KqX9sIPLa HvFA== 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=RJbN/zGYM6tqUNug5te0pJwpksET0epDy9AozpJpa90=; b=MZZH874Vt1W24d0m/Q6NsCMcqYobtIs7/gWawAEs8Xfe3hT7HASRvCdHNO1u1Z08su sRYxQbyYDJJqtfbaMEQsFjfjYL3wmT4eBlc7iYKfszP+qEXxnHkP+itIFgbxbSwuYkN3 OOdm4F7MZuxUcpV8fwOn+M++s9rZFt3uqA410Z5QYVf62mTaRnkVqAG8pcccOvcY9YHu hXz7QLHl9uCk1dWo7H4pRj09wI9ErneHi+BPdOwb2yashJbNKIG5dlCTgj9CY3qgNicH DynK/3MlXVqo1mI0Xomgc3+z+i4dCaEdROpGcxwuhAvzZraR+0HrgRpxY//Og2BRH6Pv Gsqw== 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 l6si213184edq.465.2020.07.08.08.59.04; Wed, 08 Jul 2020 08:59:27 -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 S1730414AbgGHP6k (ORCPT + 99 others); Wed, 8 Jul 2020 11:58:40 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:43534 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730400AbgGHP6k (ORCPT ); Wed, 8 Jul 2020 11:58:40 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 7D40BBC06F; Wed, 8 Jul 2020 15:58:37 +0000 (UTC) From: "Alexander A. Klimov" To: krisman@collabora.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] Replace HTTP links with HTTPS ones: UNICODE SUBSYSTEM Date: Wed, 8 Jul 2020 17:58:31 +0200 Message-Id: <20200708155831.15102-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 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. fs/unicode/mkutf8data.c | 2 +- fs/unicode/utf8-norm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/unicode/mkutf8data.c b/fs/unicode/mkutf8data.c index ff2025ac5a32..33b76cbb3db3 100644 --- a/fs/unicode/mkutf8data.c +++ b/fs/unicode/mkutf8data.c @@ -244,7 +244,7 @@ utf8trie_t *nfdicf; * The shortest sequence requirement was introduced by: * Corrigendum #1: UTF-8 Shortest Form * It can be found here: - * http://www.unicode.org/versions/corrigendum1.html + * https://www.unicode.org/versions/corrigendum1.html * */ diff --git a/fs/unicode/utf8-norm.c b/fs/unicode/utf8-norm.c index 1d2d2e5b906a..7978d2b3634c 100644 --- a/fs/unicode/utf8-norm.c +++ b/fs/unicode/utf8-norm.c @@ -79,7 +79,7 @@ EXPORT_SYMBOL(utf8version_latest); * The shortest sequence requirement was introduced by: * Corrigendum #1: UTF-8 Shortest Form * It can be found here: - * http://www.unicode.org/versions/corrigendum1.html + * https://www.unicode.org/versions/corrigendum1.html * */ -- 2.27.0