Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp425916ybh; Sat, 18 Jul 2020 08:16:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL83LVtT2L57xJ2/qxMWeh2Gp3gMVRpmcHOpHVuPIt3JQvH3eRAj0zykP2Go+fq76FC/aJ X-Received: by 2002:a05:6402:2064:: with SMTP id bd4mr13830442edb.180.1595085389198; Sat, 18 Jul 2020 08:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595085389; cv=none; d=google.com; s=arc-20160816; b=aekp+Urp4Iq+h0APMNTisSN5tyb2laCdbpPVJKZyF8oiYNsWoSLE+PHZHHBsf+Y32Y uq0pNQjinpzT74fgr35u7zsvu2fL8rWJMkbmN2+5i9Rm9WGjYwkeLoJkhxRQruEmcljT Gtzvk+/63EUP51HokF7XgAv3dt6zeWPQEDtQobZKSlIKUWOK9Sq+ypAe3xoWYyrT1RHZ EbAUwMk7KyqxPa+OGAuEKoVlu2jMTS03luv17y6Tw//qXHA3lzSk7jQlzPlUjOM+0gst G/BxL6Z2VuRWU0nMcuDQvBgHEfyEHfVMS55A3t7wU2Fxh2ILLqAm813arvAfNSGZBWsU 9cFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sP3q064VQOCv0VsgbZg8RRgy7Hqgh6IyOBD1iKUE8Uk=; b=oCEiXFwSFmpFfK/K0Y6W2ejeu8DsOpdJpPVZyFnl8B0TDId3mwmncMTdzKmu93qgH+ HeNVw9ZAC5rGPHTxRaQnJ+0XsRVojPTsof3Rg7Y3TJmsK7Rom5yDYwmJQc6pXi/GueqA 0WNHgSCnMadDGs8cI/Wp2j2XVQIG6R9LizF4oWNz5sNTk8tLur63MqXTvKFatPLSPwnB d0KC2mye6R3Iy1elWhtdDFtw8zAhRAFgJQtN1NxTOMiyk7E7wl+Fp8CmDyV2wNt9mqp8 Z+/xmcjXdIbaOm6DYG60GB6PL6qjed9zm+KGSRkKLFGOI2gMyJFVzti7RNsWXWbZWZ99 i9MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Ekl6YGfL; 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 c3si7307003edr.308.2020.07.18.08.16.06; Sat, 18 Jul 2020 08:16:29 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Ekl6YGfL; 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 S1727774AbgGRPOG (ORCPT + 99 others); Sat, 18 Jul 2020 11:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726155AbgGRPOG (ORCPT ); Sat, 18 Jul 2020 11:14:06 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD14C0619D2; Sat, 18 Jul 2020 08:14:06 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id t6so8146664pgq.1; Sat, 18 Jul 2020 08:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sP3q064VQOCv0VsgbZg8RRgy7Hqgh6IyOBD1iKUE8Uk=; b=Ekl6YGfLaeu7wRQ3de8Q4HvZqHrBha6I1IOKoCXkmy/JEh291Hlf9lUZ+evb9f+Txk fqXFnd5mAGVBbc/6rcU6R28qVHcNV+JYkUqy45EEoyGaJM1WiyVKmf87BVxtE1l9kT5X YST44pk0y5VMha4F7G8M6gnjrqcFrekTF++jPe2vSu0Uo2q0jghgpOsJ6eOHmanG8x7w m9uKgqvv4RsO16JmSYmCM63dYvAh6NZ9yWz7odvi1ORitYMXkzaIAJM/Rb90bVFt4nwu Mxzs9j/+NDgyLRLjobxRCup/cnMP5MT8Cy7oIfbDXI9T9squd9qqY5qtbgqzFfH+Apad +2Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=sP3q064VQOCv0VsgbZg8RRgy7Hqgh6IyOBD1iKUE8Uk=; b=C3yQa6DGUL61OsPbGGFGrRUgnVK83y4ywS6/0pJ6DoVTVo1vfl1NkW4abNR+MkgcvO dH+TJuGXQzNRkrk9yPmbuUg1oWPB9qZ5mQAmm78HSOwkOLs7WuHrHgTxC/L4pzn46LX/ ukD4jhwzKE7UUEF9v+yVZB+fJ3GKO7iupqDIxPgOGueMAybpVu3WiMp4iXe8sepUzroh BtN0ZJw2aXQWmJ2Re4wtIFKQNLpwlbdlV6NPMU8MWsPAbbNviPH1X9fWG21TgyaJTfPr S+vUjVuKvuNmhdAJtyA2SDb4j54wT6LPhDkctKpM26KwveBAuPIPsPuFDphUGaP0hYq3 yhsw== X-Gm-Message-State: AOAM532tvg/bYlslhf3IRQqOnoBhV8Ra/3lzPxanyEH4Scpn+MorxEqG aaQt5wQsyyN+TDu5Kz5iIarzs/vl X-Received: by 2002:a63:5220:: with SMTP id g32mr12400818pgb.78.1595085245767; Sat, 18 Jul 2020 08:14:05 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id hg13sm5609028pjb.21.2020.07.18.08.14.05 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Jul 2020 08:14:05 -0700 (PDT) Date: Sat, 18 Jul 2020 08:14:04 -0700 From: Guenter Roeck To: "Alexander A. Klimov" Cc: jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: (adm1025) Replace HTTP links with HTTPS ones Message-ID: <20200718151404.GA163308@roeck-us.net> References: <20200713140028.34775-1-grandmaster@al2klimov.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200713140028.34775-1-grandmaster@al2klimov.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 13, 2020 at 04:00:28PM +0200, Alexander A. Klimov wrote: > 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 Applied. Guenter > --- > 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/hwmon/adm1025.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwmon/adm1025.c b/drivers/hwmon/adm1025.c > index ae7b96945185..ed15185fa60f 100644 > --- a/drivers/hwmon/adm1025.c > +++ b/drivers/hwmon/adm1025.c > @@ -13,7 +13,7 @@ > * resolution of about 0.5% of the nominal value). Temperature values are > * reported with a 1 deg resolution and a 3 deg accuracy. Complete > * datasheet can be obtained from Analog's website at: > - * http://www.onsemi.com/PowerSolutions/product.do?id=ADM1025 > + * https://www.onsemi.com/PowerSolutions/product.do?id=ADM1025 > * > * This driver also supports the ADM1025A, which differs from the ADM1025 > * only in that it has "open-drain VID inputs while the ADM1025 has