Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp817788ybt; Wed, 8 Jul 2020 12:25:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy66AvbBsGWMLonF51FwtCsBTUEoof8FLCmbDRv5gvJ8y21JFtdbi85tYIOpePsGuX2THU7 X-Received: by 2002:a17:906:1245:: with SMTP id u5mr52114558eja.286.1594236352850; Wed, 08 Jul 2020 12:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594236352; cv=none; d=google.com; s=arc-20160816; b=WMIlxSwHl6gZ3SYTW9yCj1YC7tSZEsDru2l5wVv7V0B7QfZvrh7CYr4wMI6rlAh8L0 Ym+3H5dJfcwukIwrOQoHp4Q9lJWJ6087EiiWhxqCHV43eQ9Sc168DZM+0NVPGJp8FVAs bSuctk/JUZkrFSAm4Gy5EsQCsO6cPevxNsd1T+5CSxeX2L+5uCkaD4BkPMdhdJj+PfSZ XMweLwG3jW1kOnd7dybbLFwjqf8FqL4xGhYZgAU+mHnLaduC0MN1MUXkmxllrS0djSsi SqPDWr4YMx71JFaB43XT2MZK4WGj5jZkKg32eEYYC0N48g18q3A5WeAV4AAwPPw0iPpI 3knw== 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:message-id:date:subject:cc:to:from; bh=/DnkyhjeiJX6sfCWoWLzEiimxjP+3ErWYr6tyJyQ624=; b=F9yxz6bz/Uky0lq1cdAA+okYnSpwo7lybJlcduTEtspl93yxiagMu3qAFPCfDTtDtB cwmRedRF7HieKLSJDbB3PDUul0NAaFOKZ14DOMDeqkCWHF2rhy6SSamZotSoKCtAf2hT VuosyRe/nhmiP/d5uNbgfihwc//F6ybDIM6jSbj8NE/LZD8PBZKA1YOB8eJtmTYmHj7N eTcf5362UblmcD1gl1y+wINrFmoS4em+n3Q8p3uvmpsv5rMoI6qAUvafJuJ0XezTfdba DQzPyyAux92siY1f2AV9SupiXTOBPshuRbm7wbElcH7PslEn+TCD6kvkf1w/ed6vFJkW d7qg== 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 y25si612324edm.63.2020.07.08.12.25.28; Wed, 08 Jul 2020 12:25:52 -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 S1725978AbgGHTZX (ORCPT + 99 others); Wed, 8 Jul 2020 15:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgGHTZX (ORCPT ); Wed, 8 Jul 2020 15:25:23 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D50A6C061A0B; Wed, 8 Jul 2020 12:25:22 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 3A466BC070; Wed, 8 Jul 2020 19:25:20 +0000 (UTC) From: "Alexander A. Klimov" To: ohad@wizery.com, bjorn.andersson@linaro.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] remoteproc: Replace HTTP links with HTTPS ones Date: Wed, 8 Jul 2020 21:25:13 +0200 Message-Id: <20200708192513.18629-1-grandmaster@al2klimov.de> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: +++++ X-Spam-Level: ***** Authentication-Results: smtp.al2klimov.de; auth=pass smtp.auth=aklimov@al2klimov.de smtp.mailfrom=grandmaster@al2klimov.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/remoteproc/da8xx_remoteproc.c | 2 +- drivers/remoteproc/keystone_remoteproc.c | 2 +- drivers/remoteproc/omap_remoteproc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/da8xx_remoteproc.c b/drivers/remoteproc/da8xx_remoteproc.c index 98e0be9476a4..9a4938c3025f 100644 --- a/drivers/remoteproc/da8xx_remoteproc.c +++ b/drivers/remoteproc/da8xx_remoteproc.c @@ -27,7 +27,7 @@ MODULE_PARM_DESC(da8xx_fw_name, /* * OMAP-L138 Technical References: - * http://www.ti.com/product/omap-l138 + * https://www.ti.com/product/omap-l138 */ #define SYSCFG_CHIPSIG0 BIT(0) #define SYSCFG_CHIPSIG1 BIT(1) diff --git a/drivers/remoteproc/keystone_remoteproc.c b/drivers/remoteproc/keystone_remoteproc.c index cd266163a65f..252ac6e2f653 100644 --- a/drivers/remoteproc/keystone_remoteproc.c +++ b/drivers/remoteproc/keystone_remoteproc.c @@ -2,7 +2,7 @@ /* * TI Keystone DSP remoteproc driver * - * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ + * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com/ */ #include diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap_remoteproc.c index 6955fab0a78b..d191610454d9 100644 --- a/drivers/remoteproc/omap_remoteproc.c +++ b/drivers/remoteproc/omap_remoteproc.c @@ -2,7 +2,7 @@ /* * OMAP Remote Processor driver * - * Copyright (C) 2011-2020 Texas Instruments Incorporated - http://www.ti.com/ + * Copyright (C) 2011-2020 Texas Instruments Incorporated - https://www.ti.com/ * Copyright (C) 2011 Google, Inc. * * Ohad Ben-Cohen -- 2.27.0