Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp793805ybt; Wed, 8 Jul 2020 11:50:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPnUNWOaehBglLQFofyRqRCfNbeT6dz5MLtiNnifqS1Kvi6GOFD5RnGhqW7hNyaKzy65aI X-Received: by 2002:a17:906:eb5a:: with SMTP id mc26mr50467871ejb.42.1594234221635; Wed, 08 Jul 2020 11:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594234221; cv=none; d=google.com; s=arc-20160816; b=L7ONtLBmkvIVS4/N+UsxWUZ/lHDhdauU/szxtt7OUs9jhlxubLUQlUDYY9foPiR06O WJrxNsErfxfYGxen3iAZ87lqpbDSWx4WkEu1cTb+bDUeHppjdyNa++Vv9GHfeA43+QaJ AQvDG1i/Za/BncDTfO/lZGF+tMSbHa/IzFJ/vVzbHOgUdUNXKBkVdHQI3xtOYHxUV4uT sn5thx74HZ1rP1YJ/7G1Xs93Mmj8N9guZbwHIjkKJh0R/YnWvb61hYC7J9hgIMwRVMNc b5gFzEEB4bMihuAH5oBTZbBW5afMkf+KROb6+WM64TS3aZY+T93ph7rSbv8HSxpufS3A D1pA== 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=r/SMVM5DRhqpIpZxsk0WsnS+8o79PAqW5rjkZbf0iFA=; b=o/e5epLI+oicdOYdq8mIGTuegN7h/hqKP1bGUwAz8UvUcpCKf4w9K6IVtwE1IUuPVw IxeDClUVMZQ0Iwz44mFmvZJeX3kKhYqsurxcDBwhhGOeJn3jqBxd+JyFk/xPLFQrHQxh nsUuN7dByhctNaqWUPz+FZUluB3s4oqE9JJgosgrAx/3g6R/z9Zfywg4Ao5aa+fFYJU8 NV5wQoGjkJGPZCR5/NXhvuIvQjNPkwffp5/0FSZhjSeRzcc7PVXX6p+/Y+VrD8PIs8Nm +39rQeyTHBJckSeUs0mgTgwUWYNiTEmRx/63Ei2IDgLNe/l0DDcjkJOAEdsGMD0tLs2V zUmA== 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 q5si376649ejb.751.2020.07.08.11.49.58; Wed, 08 Jul 2020 11:50:21 -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 S1726856AbgGHStN (ORCPT + 99 others); Wed, 8 Jul 2020 14:49:13 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:40728 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbgGHStN (ORCPT ); Wed, 8 Jul 2020 14:49:13 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 06A1EBC0D4; Wed, 8 Jul 2020 18:49:09 +0000 (UTC) From: "Alexander A. Klimov" To: stern@rowland.harvard.edu, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] USB: storage: replace HTTP links with HTTPS ones Date: Wed, 8 Jul 2020 20:49:03 +0200 Message-Id: <20200708184903.17350-1-grandmaster@al2klimov.de> In-Reply-To: <20200708103928.GC585606@kroah.com> References: <20200708103928.GC585606@kroah.com> 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/usb/storage/Kconfig | 2 +- drivers/usb/storage/freecom.c | 2 +- drivers/usb/storage/unusual_devs.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/storage/Kconfig b/drivers/usb/storage/Kconfig index 5335a7ff5d14..d17b60a644ef 100644 --- a/drivers/usb/storage/Kconfig +++ b/drivers/usb/storage/Kconfig @@ -57,7 +57,7 @@ config USB_STORAGE_FREECOM tristate "Freecom USB/ATAPI Bridge support" help Support for the Freecom USB to IDE/ATAPI adaptor. - Freecom has a web page at . + Freecom has a web page at . If this driver is compiled as a module, it will be named ums-freecom. diff --git a/drivers/usb/storage/freecom.c b/drivers/usb/storage/freecom.c index 34e7eaff1174..3d5f7d0ff0f1 100644 --- a/drivers/usb/storage/freecom.c +++ b/drivers/usb/storage/freecom.c @@ -11,7 +11,7 @@ * * This driver was developed with information provided in FREECOM's USB * Programmers Reference Guide. For further information contact Freecom - * (http://www.freecom.de/) + * (https://www.freecom.de/) */ #include diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index b6a9a7451620..220ae2c356ee 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -44,7 +44,7 @@ * mode. Existing userspace solutions are superior. * * New mode switching devices should instead be added to the database - * maintained at http://www.draisberghof.de/usb_modeswitch/ + * maintained at https://www.draisberghof.de/usb_modeswitch/ */ #if !defined(CONFIG_USB_STORAGE_SDDR09) && \ -- 2.27.0