lkml.org 
[lkml]   [2020]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] LIBATA SUBSYSTEM (Serial and Parallel ATA drivers): Replace HTTP links with HTTPS ones
Date
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
\
 
 \ /
  Last update: 2020-07-10 08:41    [W:0.028 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site