Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp994587pxa; Fri, 28 Aug 2020 00:08:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyURDBvaU4SUNSB/K3vEIR1B7Gs4unajA0sdtkeXw8783dQL968djcGyyn+iO9HS9vlrJcG X-Received: by 2002:a05:6402:615:: with SMTP id n21mr417834edv.59.1598598538156; Fri, 28 Aug 2020 00:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598598538; cv=none; d=google.com; s=arc-20160816; b=wlXaz0CZ8L5MudIEAJNSa2Mv6H3xz9knwGJOo6GFgAqyEZtHCymMmGE8aaFfUzFUkD eUos+GIpPao0K77Rsr1N7qRkJcRUsH0xsDcBghGPNLAM4gTPUjUh98TO9jm/jG45rNwI IsWNd/PV9EnCMOkeD72DDtWNnXR/bS8jhvl6li4/I8id4ox9Us2SqIAc2Rd2NZCtZU4D e2ZrpkvjgYYthAxciQ0mWX1DUCItAgR1ADEydj7KP1WSvtkkiu0YY2bCDLmu4zKy5s6B 7F+7ZayFa7d19qbEb2pD8HDclAjhgLVfEjnUEiEGJ4rLDq655hWcESYI6VpBgiT9P3VR Ineg== 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:dkim-signature; bh=m2SsIVbZ8bq+LCqCl4N5OrX5gyKuZhvtBav4WtS2mAU=; b=IOZ/1OXY6bQqosjzLW9c7DB9Ht1g3F8Y5EEOcQNf3FNRjCH/+yXWzk0MF8h8cs7k6c mjS7WzoSWRQhGuSLeRPfYvomGe//h7mBkTYZ8tGcO3tZxdXuaVUw0VfM90HHVc82w9ZG Htap8V7L5CBKROa6+JR+ZnEildPYa8BdOI/MvUd9suXwU6WODQkN/qX1NdXDz2HFpP5C abGDF1ibudJN2XjMsWnZOB6YlpCsiqdtfcxNGVbiA1kh2Yv0LyYDu1c24Mgh8M32N+Ac 2pv0Fg0hUTjVF4A4ez20qkKXeOhMy6YDiJluSA4MbRsiKNAzXFhfToCBYb3PEDJx9gD5 TTwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=eDTkRHSp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si13686edi.555.2020.08.28.00.08.35; Fri, 28 Aug 2020 00:08: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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=eDTkRHSp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726643AbgH1HFN (ORCPT + 99 others); Fri, 28 Aug 2020 03:05:13 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:29626 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgH1HFM (ORCPT ); Fri, 28 Aug 2020 03:05:12 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07S732Nk000598; Fri, 28 Aug 2020 09:04:54 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=m2SsIVbZ8bq+LCqCl4N5OrX5gyKuZhvtBav4WtS2mAU=; b=eDTkRHSp7Dc4QdaJHdJjRcB2J6q+TGniyud3FkuxdaVF/OOCKDLMj93KJN1e2KS0t3d/ rh+SCLUBaDRUD9/ONnE+0UsVWw6savd+yh/0S4PUU2+ZBT7g6IGZRprT+4doK2i4B9wB BYzZkiZN5eBH/D7HaSUwxDvMStSp9Jc7WR6FMjeFSxdOTsm9Nk4+tKZSADsulUIliVBi 4gFuBSFRyRmLFH7bhUuZ+Hlxn1s3kQUMfUiag0+l2jQRBgQ0X82ALQeIwb1SmJ1NKnwL 4qqHTxK7HEP1ADOv2JHHeaCL3lo1NdL/SkSMST8MK4HG8ZM3D1EdPJSo++76NwOVOWzS 2w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 333b6xj14m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Aug 2020 09:04:53 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 13705100034; Fri, 28 Aug 2020 09:04:51 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DC32721F66C; Fri, 28 Aug 2020 09:04:51 +0200 (CEST) Received: from lmecxl0912.lme.st.com (10.75.127.45) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 28 Aug 2020 09:04:51 +0200 Subject: Re: [PATCH v2] ARM: STM32: Replace HTTP links with HTTPS ones To: "Alexander A. Klimov" , , , , , References: <55c95208-de0f-b2d3-c20c-d19f3ce34e2a@st.com> <20200722192046.69334-1-grandmaster@al2klimov.de> From: Alexandre Torgue Message-ID: Date: Fri, 28 Aug 2020 09:04:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200722192046.69334-1-grandmaster@al2klimov.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG1NODE1.st.com (10.75.127.1) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-28_03:2020-08-28,2020-08-28 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexander On 7/22/20 9:20 PM, 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 > --- Applied on stm32-next. Thanks. Alex