Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp260562ybh; Sat, 18 Jul 2020 03:10:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJxToxySam3R4HhSqzOvCkIa9BdbwhDOQywpoHokjDc3I0tcPJGmnYwEIBYYWu2Y0hkCAc X-Received: by 2002:a05:6402:1c8f:: with SMTP id cy15mr13195196edb.308.1595067056164; Sat, 18 Jul 2020 03:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595067056; cv=none; d=google.com; s=arc-20160816; b=FKwB3kaf9V4yieXcdFtn1V9U5da5KwzeHs4+dPGd7WYBVlSDuRf/fUcJgFJctkMIhf bysg0bZy1JGSkLaJBqIG6GIfR3313LrXGzUnRTEFMUx/7TKWFh65vtg5DvIwTJMOTbxc HNqdcFludLtD5PVIxc52QM6gaUQ2AOQP7YGZLFdfooxbbHEGsyd3AqIrIysyvUt5QV2d 7/W5KLg1JVt01v4AVaIGr86p23DuCM+gp2fwkt7FQpE5tcwJ1iqwUxExf5tV7WTOEe3C yZLF46jaEGFklFEa9mXPQWrYWZniMlJjwtwX+5A4Tj+zTz2G0VDTuteIov0VnpywVYMx BUEA== 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 :message-id:date:subject:cc:to:from; bh=lR2La+VD7w2ncVo+axH50MdJRh1H9Emze+1IxlxeQ2k=; b=CjAOxpl3G+RmxyL+vpG06+BwwblKLJLXDBapGleV4Lup2a4NDaRuUHtLp9OnxCaH9F 4/tYmFi/et02TZickxNfAzV1jnOOT1wRSPWshsu6Og64QlOh5vxMLWviojQ6NL1Q0JHm zSBkZHgcJf93mtZrkLtVS5bW1MzgQqddjtcmtYeM7IBU7j/ZxeutDtTK5h5onNuOXCZH MiC/klFLKqH6aZ9yc7+lHiW6Au7WjrImtJ+CVFGzBEDR4cpZ1RlOmc+asHuBCC30QCqC hpXDj1hV0VThT1pXr4+xIhOK9+gxPGvuJUOl3oMwip3E1R5plgbTaleuvcW3IHJxr0Sz eEaA== 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 v22si6172756ejf.411.2020.07.18.03.10.32; Sat, 18 Jul 2020 03:10:56 -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 S1726528AbgGRKIT (ORCPT + 99 others); Sat, 18 Jul 2020 06:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbgGRKIT (ORCPT ); Sat, 18 Jul 2020 06:08:19 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D742C0619D2; Sat, 18 Jul 2020 03:08:19 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id EFE58BC07E; Sat, 18 Jul 2020 10:08:14 +0000 (UTC) From: "Alexander A. Klimov" To: jacmet@sunsite.dk, gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] tty: serial: uartlite: Replace HTTP links with HTTPS ones Date: Sat, 18 Jul 2020 12:08:07 +0200 Message-Id: <20200718100807.983-1-grandmaster@al2klimov.de> 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 --- Continuing my work started at 93431e0607e5. See also: git log --oneline '--author=Alexander A. Klimov ' v5.7..master If there are any URLs to be removed completely or at least not (just) HTTPSified: Just clearly say so and I'll *undo my change*. See also: https://lkml.org/lkml/2020/6/27/64 If there are any valid, but yet not changed URLs: See: https://lkml.org/lkml/2020/6/26/837 If you apply the patch, please let me know. drivers/tty/serial/uartlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 7dbd0c471d92..09379db613d8 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -32,7 +32,7 @@ * Register definitions * * For register details see datasheet: - * http://www.xilinx.com/support/documentation/ip_documentation/opb_uartlite.pdf + * https://www.xilinx.com/support/documentation/ip_documentation/opb_uartlite.pdf */ #define ULITE_RX 0x00 -- 2.27.0