Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1719666ybh; Tue, 14 Jul 2020 05:43:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDQCD6eo+30cJJw79TD5qlrVo0U8vGzttJ9TF51P2KDMi1HD5JhJdAv4v8K7zUbU6weNbb X-Received: by 2002:a17:906:dbed:: with SMTP id yd13mr4130471ejb.419.1594730630062; Tue, 14 Jul 2020 05:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594730630; cv=none; d=google.com; s=arc-20160816; b=m2s0OsPbDIX9mh0Plk0kJOPvsB1Ac96HhglF76lzb6rxalQZRDI4TK0ErXfGIzCA16 GTCJwEfj0xt8o1RNNzlnbbUdJps+pCBQ7QJRwkYWbyiqUCklsKSK00PserlQAK/r1UDV Y9wNB9Qj7xAMzlkuxvDMYdkSFy1g1bu36AXyTHdRvy9pKu6DnY+GMnaq8h30D7KkMiar 1Mre3GB0/c+ZZSObvuCti6JnISB2+Ku2at+KdhcYw5RuW0DhQg8RWzpi5j/OMEFZY6EH j+XPmtvfNhpnrXBbdzX5+5vXssCI+vTABN3oEzRvhS2ty3wSRTyMThETO5RnEfswH+nB ltzg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=dF4HGqLU9xx+XTRxbw1EokM2983CgsyRIVM68cQDzZQ=; b=DS7G561RjIWZnOZp59hyzYw8tfma7RccYK8S/s4AOZfHOF60Fo75jyrPf/s/OhYNLL G9z7R64jctyliAUS34lXm66NsA3L1FwcXWjJL/W/XbhzossmcCZ9LBlBV+G5R8mY3p4P KdsN8vzUG+KWEhn6qNNktEQvlWcgOUoyHh+CryIP6VKSu2y7K2BqMrF+mEnKJlQMSkV4 4f7WtBSss3t8kCzcCBUjcH5uP7HiIA9PVj39PXHxRz+urAGxsIiHLBFRN5olRcSdFWAo 5TPq5iKnzsQTvWzpTzhmAx6M4wWgwnQr30OQjcBdNCy81a3QKigsNT+jn7tpSStLOsy7 sNKg== 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 f1si10533200eje.610.2020.07.14.05.43.27; Tue, 14 Jul 2020 05:43:50 -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 S1728268AbgGNMmx (ORCPT + 99 others); Tue, 14 Jul 2020 08:42:53 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:42698 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726352AbgGNMmw (ORCPT ); Tue, 14 Jul 2020 08:42:52 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9F41BC49BDDEA57EC4A2; Tue, 14 Jul 2020 20:42:50 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.206) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 14 Jul 2020 20:42:47 +0800 Subject: Re: [PATCH] erofs: Replace HTTP links with HTTPS ones To: "Alexander A. Klimov" , , , , References: <20200713130944.34419-1-grandmaster@al2klimov.de> From: Chao Yu Message-ID: Date: Tue, 14 Jul 2020 20:42:46 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200713130944.34419-1-grandmaster@al2klimov.de> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/13 21:09, Alexander A. Klimov wrote: > 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 Reviewed-by: Chao Yu Thanks,