Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1377833ybh; Mon, 13 Jul 2020 17:43:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLF69czqHtnbauWCbmmDc2I5BemUeHm5z0d2fWQc7wvo9ieApG6PV6Z8sGQOFl7QcHh7ao X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr2055230edv.65.1594687429483; Mon, 13 Jul 2020 17:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594687429; cv=none; d=google.com; s=arc-20160816; b=UXc+aS8B8i/+y0OAH0IV2+ENEWGscbiYBpwq1QTVyABZ6DP1J8EcQ0KZqazh8zizQ5 A1KSUn137LaC0vYVqEudWn0VwdpJ8Qda+l3RgUKTD+NcwTF0Hnd7p9RcRlk3i2F3FK47 Nmmnu6bzTPo4o4m8lNxxIqk3KBpIWc7fpVGZ+1h+ijVp7LNZhvROv8Y/SlfZujk7/G+r DXd227QHczwK+sz+ebf/UgBXQkmUe074CMEQBdABmkxUgupMn20AYT6Y3CFvUQGvWKv2 sEXD6e//nntXh8wX4Kszy0VPWDahrJLQQdgvUzmpAdakUJao0khqfTy9qW5QHF455O6p jeWQ== 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=PBe5AdhUDmsHoNBP5rtuOS1uqAh2B72QB5xOh3Ax/cs=; b=doIXXQorTxhWmeGVBfpor44KPaXwB2nZnGhNxhuTEA0LOciuR0n+RkefDNHQIK42Mq eHhtV1/78tt9oZJkmC2I4uNv0/UZ9mOuz0IV0AWFj0oQ3K7xK4uFFPVvXcHSBadpqk5g WjL2FtoLCcYfO2C2ZRrahmvoiIe+mwAnSA8+B3UR/0podzMLeac/iEy/YhCXBc31mzs3 SVYJXVYrAf+axG3qd4kw1sSi5FyL+jFH4LI3yzj4rdiFEzV16pXcYXjiBasAfTFbuHLP qdTHC169CueUkRZO6jKSWWVVmXHQvxtpHqpUmlh9BqW8dAhuuQMmRRoWAgWNSvcP2avU elqQ== 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 c11si10618164edy.498.2020.07.13.17.43.27; Mon, 13 Jul 2020 17:43:49 -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 S1726892AbgGNAnB (ORCPT + 99 others); Mon, 13 Jul 2020 20:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbgGNAnB (ORCPT ); Mon, 13 Jul 2020 20:43:01 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 821A3C061755; Mon, 13 Jul 2020 17:43:01 -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 B433112985773; Mon, 13 Jul 2020 17:43:00 -0700 (PDT) Date: Mon, 13 Jul 2020 17:42:59 -0700 (PDT) Message-Id: <20200713.174259.1939311860362174224.davem@davemloft.net> To: grandmaster@al2klimov.de Cc: ulli.kroll@googlemail.com, linus.walleij@linaro.org, kuba@kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: ethernet: Replace HTTP links with HTTPS ones From: David Miller In-Reply-To: <20200713171429.36369-1-grandmaster@al2klimov.de> References: <20200713171429.36369-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 17:43:01 -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 19:14:29 +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.