From: "Alexander A. Klimov" <grandmaster@al2klimov.de>
To: axboe@kernel.dk, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: "Alexander A. Klimov" <grandmaster@al2klimov.de>
Subject: [PATCH] LIBATA SUBSYSTEM (Serial and Parallel ATA drivers): Replace HTTP links with HTTPS ones
Date: Fri, 10 Jul 2020 08:40:28 +0200 [thread overview]
Message-ID: <20200710064028.28976-1-grandmaster@al2klimov.de> (raw)
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 <grandmaster@al2klimov.de>
---
Continuing my work started at 93431e0607e5.
See also: git log --oneline '--author=Alexander A. Klimov <grandmaster@al2klimov.de>' 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 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/ata/acard-ahci.c | 4 ++--
drivers/ata/ahci.c | 4 ++--
drivers/ata/ahci.h | 4 ++--
drivers/ata/libahci.c | 4 ++--
drivers/ata/libata-core.c | 10 +++++-----
drivers/ata/libata-eh.c | 2 +-
drivers/ata/libata-scsi.c | 2 +-
drivers/ata/libata-sff.c | 2 +-
8 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c
index 2a04e8abd397..516d2139c7e0 100644
--- a/drivers/ata/acard-ahci.c
+++ b/drivers/ata/acard-ahci.c
@@ -13,8 +13,8 @@
* as Documentation/driver-api/libata.rst
*
* AHCI hardware documentation:
- * http://www.intel.com/technology/serialata/pdf/rev1_0.pdf
- * http://www.intel.com/technology/serialata/pdf/rev1_1.pdf
+ * https://www.intel.com/technology/serialata/pdf/rev1_0.pdf
+ * https://www.intel.com/technology/serialata/pdf/rev1_1.pdf
*/
#include <linux/kernel.h>
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 0c0a736eb861..e806a8547dd8 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -12,8 +12,8 @@
* as Documentation/driver-api/libata.rst
*
* AHCI hardware documentation:
- * http://www.intel.com/technology/serialata/pdf/rev1_0.pdf
- * http://www.intel.com/technology/serialata/pdf/rev1_1.pdf
+ * https://www.intel.com/technology/serialata/pdf/rev1_0.pdf
+ * https://www.intel.com/technology/serialata/pdf/rev1_1.pdf
*/
#include <linux/kernel.h>
diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h
index d991dd46e89c..a3b7145632bc 100644
--- a/drivers/ata/ahci.h
+++ b/drivers/ata/ahci.h
@@ -12,8 +12,8 @@
* as Documentation/driver-api/libata.rst
*
* AHCI hardware documentation:
- * http://www.intel.com/technology/serialata/pdf/rev1_0.pdf
- * http://www.intel.com/technology/serialata/pdf/rev1_1.pdf
+ * https://www.intel.com/technology/serialata/pdf/rev1_0.pdf
+ * https://www.intel.com/technology/serialata/pdf/rev1_1.pdf
*/
#ifndef _AHCI_H
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index ea5bf5f4cbed..1b050d137d80 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -12,8 +12,8 @@
* as Documentation/driver-api/libata.rst
*
* AHCI hardware documentation:
- * http://www.intel.com/technology/serialata/pdf/rev1_0.pdf
- * http://www.intel.com/technology/serialata/pdf/rev1_1.pdf
+ * https://www.intel.com/technology/serialata/pdf/rev1_0.pdf
+ * https://www.intel.com/technology/serialata/pdf/rev1_1.pdf
*/
#include <linux/kernel.h>
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index b1cd4d97bc2a..d86ce48b01f2 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -9,15 +9,15 @@
* as Documentation/driver-api/libata.rst
*
* Hardware documentation available from http://www.t13.org/ and
- * http://www.sata-io.org/
+ * https://www.sata-io.org/
*
* Standards documents from:
* http://www.t13.org (ATA standards, PCI DMA IDE spec)
- * http://www.t10.org (SCSI MMC - for ATAPI MMC)
- * http://www.sata-io.org (SATA)
+ * https://www.t10.org (SCSI MMC - for ATAPI MMC)
+ * https://www.sata-io.org (SATA)
* http://www.compactflash.org (CF)
- * http://www.qic.org (QIC157 - Tape and DSC)
- * http://www.ce-ata.org (CE-ATA: not supported)
+ * https://www.qic.org (QIC157 - Tape and DSC)
+ * https://www.ce-ata.org (CE-ATA: not supported)
*
* libata is essentially a library of internal helper functions for
* low-level ATA host controller drivers. As such, the API/ABI is
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 474c6c34fe02..63a9b893d83a 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -8,7 +8,7 @@
* as Documentation/driver-api/libata.rst
*
* Hardware documentation available from http://www.t13.org/ and
- * http://www.sata-io.org/
+ * https://www.sata-io.org/
*/
#include <linux/kernel.h>
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 46336084b1a9..854c6dc4c449 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -9,7 +9,7 @@
* as Documentation/driver-api/libata.rst
*
* Hardware documentation available from
- * - http://www.t10.org/
+ * - https://www.t10.org/
* - http://www.t13.org/
*/
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index ae7189d1a568..18cba8c77a63 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -9,7 +9,7 @@
* as Documentation/driver-api/libata.rst
*
* Hardware documentation available from http://www.t13.org/ and
- * http://www.sata-io.org/
+ * https://www.sata-io.org/
*/
#include <linux/kernel.h>
--
2.27.0
reply other threads:[~2020-07-10 6:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200710064028.28976-1-grandmaster@al2klimov.de \
--to=grandmaster@al2klimov.de \
--cc=axboe@kernel.dk \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).