Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp271834ybh; Sat, 18 Jul 2020 03:32:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ/pTmcFB3EzvJBcTOgwQGA6OsKyXrOT4XObvCEBz0xyJh0CKUgK3FpMtYc/mFGkMMsneI X-Received: by 2002:a17:906:29d8:: with SMTP id y24mr12218924eje.212.1595068326593; Sat, 18 Jul 2020 03:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595068326; cv=none; d=google.com; s=arc-20160816; b=GGmBcZRyC1GhK/IwD2+Q2yMX/SDhhx58TWp6bGAvpJlul05ssiLtP5Q0nRth9ZF8tp iSUHLJfr3cOGxxFSqrG9qdPcRUy2MWh4R/o0z3t0zGn7+LgQFjMzULqY/wydpflJZAKS If7fyBty2IIhx/5Yleskt8IomYZ3kPOkzHnmz3LLieoXv37S6l82GTSdpJjgi8HPoYgF AwGegFfgVh8iDf1W9jsRDswZao6ScdMiuTLjNV/4D0pgs4rBc+mXufS0e5h7EFIAXsiv 9tbtlvrphLjtYO//HyoxmzT+h1zy/sI/AxF5vNkepp8t9Hy9ZAhoVHYPo+Qd0A/3tRKM ZFMQ== 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=iS5bgx6UMCkut2qwFuTCAbA8uksMmO0QOz1To8Fek6U=; b=InIMpTiFRAnFoENRM9Q+0hnl64Jw4O8tgWMi6o9/zbme4f07w+CWDTB8UL8ty2yxDf itcKCDPm1NcRm8RrZ/rYEMR9ix7vVDaxySEG9Q7RIFlpngVtGp07F9yrYjKcaW6XdiZa lMmY36OH0pwgcVZJBNnKQLZvRyJvRfcGpDs6znBRQvzWSii5fIhBxsh3/rEVR6uu3xpU exB3IbBIUGsGI3S1VQYRNeB4H+blCOX468Wx0b9cu62hYrVgRnskXVu5IhD53+m9iHzG i74low3Ho2AI+p7XFtY2+o+PCKNb1pqGvbMkOe/kWDjGs5JliA8f+/u6U3FwVmyVNkby dopw== 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 ml21si6529856ejb.261.2020.07.18.03.31.43; Sat, 18 Jul 2020 03:32:06 -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 S1726917AbgGRKa2 (ORCPT + 99 others); Sat, 18 Jul 2020 06:30:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbgGRKa1 (ORCPT ); Sat, 18 Jul 2020 06:30:27 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B223C0619D2; Sat, 18 Jul 2020 03:30:27 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id F09D7BC053; Sat, 18 Jul 2020 10:30:24 +0000 (UTC) From: "Alexander A. Klimov" To: tklauser@distanz.ch, gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] serial: altera_jtaguart: Replace HTTP links with HTTPS ones Date: Sat, 18 Jul 2020 12:30:18 +0200 Message-Id: <20200718103018.3164-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/altera_jtaguart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c index c90e503d6b57..d0ca9cf29b62 100644 --- a/drivers/tty/serial/altera_jtaguart.c +++ b/drivers/tty/serial/altera_jtaguart.c @@ -27,7 +27,7 @@ /* * Altera JTAG UART register definitions according to the Altera JTAG UART - * datasheet: http://www.altera.com/literature/hb/nios2/n2cpu_nii51009.pdf + * datasheet: https://www.altera.com/literature/hb/nios2/n2cpu_nii51009.pdf */ #define ALTERA_JTAGUART_SIZE 8 -- 2.27.0