Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1357143ybh; Mon, 13 Jul 2020 17:00:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWXvjMFtqBhJIjQXOA70avtzkXW97tdIRdJ3LCRU4C2FadawDvXidU5vAcTUgR1l5IfreU X-Received: by 2002:a05:6402:228d:: with SMTP id cw13mr1826633edb.343.1594684828256; Mon, 13 Jul 2020 17:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594684828; cv=none; d=google.com; s=arc-20160816; b=Gc/TCkeztWwjlNBzMUl85CVKJqVrxCW/3nLnzOvTCXqP47KtjoW86OKA1Qw4KM+0IC 7F9uyrG9K1qLCgWTOEQ6jFy2YYnnBNwX0P2gGHBkWoQTWzURZhAPocAy6rpRihEKv9p5 h9u05Z7zfklQK9baQ/O5ppuq55AbBPaabkoMuoPhz2vUO35+PZh5ahZFHL0et+F2MVfz /J2YQ7k++Rm5vEYjGj28CweuzR7i7hJ3EUR+dYYXOGj5kfrrwup7tyW8Jn5JpCiPWUhG 4DV2UXtmv5eU1b1P8WAOpbhgLeUHMFNNGAkam0uF5wVNjT6GCVJ6CO6LRie5e1R/mPxg nl+A== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=s3QGA5Xd7ddFaTZRGVBHh23h2lOgKqVJV7VQLCFFu1U=; b=D/ACSHiijd6dhfvNNuSz6TBss7FM3rxyiL12K8yCk1I0PyAfGxBjQxr+nnPv8uEGMy 59VnYCa0CPZhGD55nI5YBqHE/m8PEBQT3xqeWZJTSMaSFrFHI3j4d7eYFAKmYoEBw+de iQDrQJgiiKwxH2gMu1tikOtWpUD9HJb2l4+nglI/4c5XPsTKr3BXoqc6JdL7WHpaOSEl SpSpx6Dm5Q6teREHx/TQ5jNvnXv+1/8i/Xk84jx+IVD/4juc10tVb5vI2WYiVKGMHud0 fr3+qjeN9jF/Wi6Ix4MehTdchwl3shOgMa/qcSCsbJneJYNZoQ9pXYwWss94fWzieMuv ZJ6Q== 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 e20si10283387edy.5.2020.07.13.17.00.05; Mon, 13 Jul 2020 17:00:28 -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 S1726829AbgGMX7k (ORCPT + 99 others); Mon, 13 Jul 2020 19:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbgGMX7k (ORCPT ); Mon, 13 Jul 2020 19:59:40 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DA14C061755; Mon, 13 Jul 2020 16:59:40 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D2C0A1297E6E8; Mon, 13 Jul 2020 16:59:39 -0700 (PDT) Date: Mon, 13 Jul 2020 16:59:39 -0700 (PDT) Message-Id: <20200713.165939.496808182827217356.davem@davemloft.net> To: grandmaster@al2klimov.de Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arch/sparc: Replace HTTP links with HTTPS ones From: David Miller In-Reply-To: <20200713095351.32997-1-grandmaster@al2klimov.de> References: <20200713095351.32997-1-grandmaster@al2klimov.de> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 13 Jul 2020 16:59:40 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Alexander A. Klimov" Date: Mon, 13 Jul 2020 11:53:51 +0200 > 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, thanks.