Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1103932ybh; Mon, 13 Jul 2020 09:24:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB6s2fFx9O/iJjoGfYH/Qr1Ojb8tSV9cNuCiRAemtp79voaz5SueS78c4Tcam4lK48CJEs X-Received: by 2002:a17:906:fa92:: with SMTP id lt18mr518091ejb.534.1594657475218; Mon, 13 Jul 2020 09:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594657475; cv=none; d=google.com; s=arc-20160816; b=FNchrhMmCN37U+a3lb/+hICI9Crs1GzO8AQ7R/FhIdIDbGlII57vlJSWmPipIGfxH4 BlriDtddwS1O05YO4zIpAZbTzE1xKxVpGlD9Qj7jN9euKt6lkF5NJBJUTeHncgsO69P8 S2x+6VQOEdb3sOTm9lv7bU9KMc1Pfj/ZKyKFYwikbaBHcfnwqa0lOhAuhVxGenPR+2vB tWmGWGy7QbjEuWEWl/lxZrPsNkt6N8d8govvBQ4OfVHhdTjnSQAydliBkv/y2Kk3Fhvi hfSk6AvH+bU1OPpMMFU1GwBmHfoxkSE3g6qmMXa7jrGV3BjFkzWc9lNaNyE1Ax6bwln4 qx1w== 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=jWpvYsrILS94caKztnUtIZYN9X8PHihaffNKnyZ3G48=; b=i+wHOn4SGjXfEXWdQLd2j1ZePrfpfSJMWTJQ10ibE+g6hnOZ/BELPhw3lgziA1nKOU oB28FJTJg/wdmTd2ULO88qzz/m9kSyvtZqYFXJ+ZMsD/juLxt/NWkpFrWfscOtnLiZGE o/Wqr9XgQXhBDtA+6LVUrhfHqOJ4tedNEF8JUsLr7aw/Z5qj5vBjedz+UxVgPle7yt8C 3BLbpndy+5R3Q8I26ISwwLjMYwYt2fcWDLRXRIGetp2iE54yFTxseFNjWaL2Sb1XvOq5 3PIhUTdOSPOilRzkG6/+8Hyf+d9RC/y2QsV9pJoZjWhS/BQE6CJ0C4hiWdQElKD9R3sZ /SXg== 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 r22si9503026edq.411.2020.07.13.09.24.11; Mon, 13 Jul 2020 09:24:35 -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 S1730011AbgGMQWz (ORCPT + 99 others); Mon, 13 Jul 2020 12:22:55 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:55544 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729933AbgGMQWz (ORCPT ); Mon, 13 Jul 2020 12:22:55 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 83998BC053; Mon, 13 Jul 2020 16:22:52 +0000 (UTC) From: "Alexander A. Klimov" To: laurent.pinchart@ideasonboard.com, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] media: uvcvideo: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 18:22:46 +0200 Message-Id: <20200713162246.35758-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 (Actually letting a shell for loop submit all this stuff for me.) 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. Sorry again to all maintainers who complained about subject lines. Now I realized that you want an actually perfect prefixes, not just subsystem ones. I tried my best... And yes, *I could* (at least half-)automate it. Impossible is nothing! :) drivers/media/usb/uvc/uvc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 431d86e1c94b..5676dc7bc319 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -284,7 +284,7 @@ void uvc_simplify_fraction(u32 *numerator, u32 *denominator, return; /* Convert the fraction to a simple continued fraction. See - * http://mathforum.org/dr.math/faq/faq.fractions.html + * https://mathforum.org/dr.math/faq/faq.fractions.html * Stop if the current term is bigger than or equal to the given * threshold. */ -- 2.27.0