Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp956512ybh; Mon, 13 Jul 2020 05:51:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd/Dpdaf4Jj97eguYquTuhInFeFieWWeXBTdgT9cbtq3qfCjVcgzS1bxXRXekPVTNYsVi0 X-Received: by 2002:a50:e791:: with SMTP id b17mr95732150edn.366.1594644668137; Mon, 13 Jul 2020 05:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594644668; cv=none; d=google.com; s=arc-20160816; b=fjSibTISI/1uuExQ4idI3ETIZgfUhHDeo5/ZymMZVe6U4OuXmbHXx0XibBr2EKS967 /FJr3YeN/EgHTbTqUM5iGfS8eCEeGVEvp5YXTrh23UGxEW/28ugHQO2JOW9ZxK6pPJUb k4iEOC2Sk+8XyBBuEiRTf8Go12Xvic2CYu9xROFCZdbzTMyLCeeBt0ZpmAKUKJHMrELD pyfg4FfuYz6kpz+UMW3WLYosbIRh7h/dps2oZzgV1sVLsnawTQgtLKM+getijpvs7lwM VcU0KG3J3MYKGnAnSy+Ze3j0M9w8N36d6WLRAP5oXNyNgaJhAkuOd81G4/zqWaqLTsJ7 nQGw== 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=hfkwHq7wUV0jot6FoxPTOefnFlkNw+D5umv9ufJckok=; b=i5nhwlh4LXiWgXa01X8lWi4UaJmKnN1rCV/0qaHTqyuKsnBa5IJqIcL9K5T9/O1rsT rkF3sbenMyDZQIEcnR3Vm8IpYJj1yQuwRYapA8EoNDELwd6pIvi0r4akp3a+SjalYSNC xJb2vKzFTwwGD8N/0rZrVVND33NS12+WmdmutHrL2NYbGEv8Ja0hl/1JA/JZ//E6dhFd 39iAvFZQHv/CldsZry4jvx0Hnet1nlqyXjWKYbc2STEjAkOqPJJioGYYspdDeD64f0pV p1p/8w7NPAFiQ3Ed2GASie1JhPm+7ZdwFR4NWqCpCPYKq4t95ykp+6EMwfvYe6Bieyuc UR7A== 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 y2si9808286edp.396.2020.07.13.05.50.44; Mon, 13 Jul 2020 05:51:08 -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 S1729564AbgGMMtf (ORCPT + 99 others); Mon, 13 Jul 2020 08:49:35 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:39906 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgGMMte (ORCPT ); Mon, 13 Jul 2020 08:49:34 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id BD155BC069; Mon, 13 Jul 2020 12:49:31 +0000 (UTC) From: "Alexander A. Klimov" To: hdegoede@redhat.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] drm/vboxvideo: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 14:49:23 +0200 Message-Id: <20200713124923.34282-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/gpu/drm/vboxvideo/hgsmi_defs.h | 2 +- drivers/gpu/drm/vboxvideo/vbox_hgsmi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vboxvideo/hgsmi_defs.h b/drivers/gpu/drm/vboxvideo/hgsmi_defs.h index 6c8df1cdb087..3cb52f2b2274 100644 --- a/drivers/gpu/drm/vboxvideo/hgsmi_defs.h +++ b/drivers/gpu/drm/vboxvideo/hgsmi_defs.h @@ -58,7 +58,7 @@ struct hgsmi_buffer_tail { /* Reserved, must be initialized to 0. */ u32 reserved; /* - * One-at-a-Time Hash: http://www.burtleburtle.net/bob/hash/doobs.html + * One-at-a-Time Hash: https://www.burtleburtle.net/bob/hash/doobs.html * Over the header, offset and for first 4 bytes of the tail. */ u32 checksum; diff --git a/drivers/gpu/drm/vboxvideo/vbox_hgsmi.c b/drivers/gpu/drm/vboxvideo/vbox_hgsmi.c index 94b60654a012..a9ca4d0c3eca 100644 --- a/drivers/gpu/drm/vboxvideo/vbox_hgsmi.c +++ b/drivers/gpu/drm/vboxvideo/vbox_hgsmi.c @@ -8,7 +8,7 @@ #include "vboxvideo_vbe.h" #include "hgsmi_defs.h" -/* One-at-a-Time Hash from http://www.burtleburtle.net/bob/hash/doobs.html */ +/* One-at-a-Time Hash from https://www.burtleburtle.net/bob/hash/doobs.html */ static u32 hgsmi_hash_process(u32 hash, const u8 *data, int size) { while (size--) { -- 2.27.0