Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp370762ybh; Wed, 15 Jul 2020 04:19:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9sohpFg+/Ej2lA/U5T1YN6KuQW0BcabSjjEBmqlANdyRs7b7xWIikSrKNHgni2q7kQkUJ X-Received: by 2002:a05:6402:ca1:: with SMTP id cn1mr8840669edb.223.1594811968449; Wed, 15 Jul 2020 04:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594811968; cv=none; d=google.com; s=arc-20160816; b=Tkrk2Qe+fI7eEvPoiSyuCRclFzsv9e6AUCUD6ZM8SVfVoLNwXPSwYpK04D9sWjjiWo GByAWoQ7f479rgtEDFCxvHbWJz509UPdngHAg+icqQN3Q3ZGghXFfR2sl5TjPwAxdBen u35ynBtdWBuIC3lJ043bFLATaH8ZKjl2UMx6/YD1oc2ev94nKYeO43VSKT1uNEptV6M9 to3hgZUBxotoFrgq/UmwcP5vOuMu2KDx/zaLHnhshmq/3oUWQmkyEJTaexBNoGoYgkvB IrKPulIh/dv3FrzBJdFJ2Ssy3C761NJeHCPpa2uG+dBzbWEnU0R2fG7TBMNPudipNEft XAGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YEDOjAgTw7zWY0d0LxzHZsYswYj4Ul+PN0OhtVXriQ0=; b=umQvtb6cYzIZ8auAo6ycmslBtjCnLsC3tx6sccSI5GVIFxJNvHaC01ayXjR11feKsq 7pIz6KG4zxi8uPGl2/84zHsu8bDf6a3aHzGxiBirhw/xepkCbiG5QiWW2ryiZXBdRkmK c2verzMmxHrr8BFKciaY3Y9XHcC0XhiG2a4Kx+9xW/7m2d8oYKBS9Cqj9rEHEUgx/wx+ SUTzch5/5I7vOism5K1dU1CqE+IJ4owhjE+cpgjsDcPXUjxS/PXuSisVDHNWp3rpP7Oo Lu7n841YelauIhI4OsD639p1D6mGNYfPOXM0w0GyLYXIRMcFhNe2CdZHWmKhWPLnm4pV +lpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hzWPutTj; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si1093589ejv.629.2020.07.15.04.19.04; Wed, 15 Jul 2020 04:19: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hzWPutTj; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730973AbgGOKD5 (ORCPT + 99 others); Wed, 15 Jul 2020 06:03:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbgGOKD5 (ORCPT ); Wed, 15 Jul 2020 06:03:57 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2239C061755; Wed, 15 Jul 2020 03:03:56 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id t6so2846342pgq.1; Wed, 15 Jul 2020 03:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YEDOjAgTw7zWY0d0LxzHZsYswYj4Ul+PN0OhtVXriQ0=; b=hzWPutTj0Fti6f4zw9K6dbh2iH0O0m4N+pltRPKsukA1jSQzrwpy+yyxi8hlKNmzsV +Itu+yaBZIAzKqIool5HxKLkpq7qRbxnbcM0RmxUlvZFuF6g3nse8lwfjaj22uqi46cg CQMRbeeTZc4vMgCFn1B8G2y1FM51sl/dE4JhsjvV6WoHvdsozw3Toi2ECZmrBZDZuxMy q8s74jqC8TXh3c5FMTYw5fLpnjG+eBaXsiF6kOw2fmrp8HQwlRLkVCEuaByZzlmu2ELX Afx1F4KjU6b6np5efpG4F0Q1O4/d5/akx5+ca0gPKJmkia0duLZkO2j+sIhI9bPriCR+ Nbsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YEDOjAgTw7zWY0d0LxzHZsYswYj4Ul+PN0OhtVXriQ0=; b=a18PG+U5ZvObsJBXva+ZBPPIzA7Y5AfAEMtnJFN+YttlVbsD64r2Zsl1JfQ9glgzUv C9Vrr6beY+UfTPqKpCaQVnVRR6p7Uad2pHRv32wrLKBlYxoBvAh9Td8wt9OtG39U8KIT WRvOuL8QFXaJuUKtYbireRcuFByDzPOIEgbz6/Pef4guaCAuDhHF+SSc+NExuNUEsi6r KK4G6Tf0M1CUesRD0jUeCnNQRgXvhOj1oI+7xhx+njHkHrCGCQY7dR0tpbxmGUnaK0AT 9zO+nU/8PyjfFyVCo2TP5ZzuZVE/N53ocw4MEPaZC8dGXDSSNOv/sIyuOQy0bWcI2pc4 qiNw== X-Gm-Message-State: AOAM530/kw+racTnjhs8oiRe6XZ294dyzarYXOBJRAv8aK9fcNrt/JYU OfGj0/YbICG0P3eXqj3tDjaNLZSPyk1bj8cucB4= X-Received: by 2002:aa7:8bcb:: with SMTP id s11mr7914531pfd.170.1594807436560; Wed, 15 Jul 2020 03:03:56 -0700 (PDT) MIME-Version: 1.0 References: <20200714190657.47527-1-grandmaster@al2klimov.de> In-Reply-To: <20200714190657.47527-1-grandmaster@al2klimov.de> From: Andy Shevchenko Date: Wed, 15 Jul 2020 13:03:40 +0300 Message-ID: Subject: Re: [PATCH] platform/x86: acerhdf: Replace HTTP links with HTTPS ones To: "Alexander A. Klimov" Cc: Darren Hart , Andy Shevchenko , Mika Westerberg , Mauro Carvalho Chehab , Lee Jones , Dmitry Torokhov , Ayman Bagabas , Masahiro Yamada , Platform Driver , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 10:07 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. So, please unify two Acer patches now into one. (And don't forget to provide proper version of the patch) Thanks! -- With Best Regards, Andy Shevchenko