lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200713201747.37955-1-grandmaster@al2klimov.de>
Date:   Mon, 13 Jul 2020 22:17:47 +0200
From:   "Alexander A. Klimov" <grandmaster@...klimov.de>
To:     gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org
Cc:     "Alexander A. Klimov" <grandmaster@...klimov.de>
Subject: [PATCH] uio: Replace HTTP links with HTTPS ones

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@...klimov.de>
---
 Continuing my work started at 93431e0607e5.
 See also: git log --oneline '--author=Alexander A. Klimov <grandmaster@...klimov.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 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/uio/Kconfig     | 6 +++---
 drivers/uio/uio_netx.c  | 2 +-
 drivers/uio/uio_pruss.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig
index 202ee81cfc2b..cdad8dc66b5e 100644
--- a/drivers/uio/Kconfig
+++ b/drivers/uio/Kconfig
@@ -81,7 +81,7 @@ config UIO_SERCOS3
 	  available for download from the Automata GmbH web site.
 
 	  Automata GmbH:        http://www.automataweb.com
-	  Sercos III interface: http://www.sercos.com
+	  Sercos III interface: https://www.sercos.com
 
 	  If you compile this as a module, it will be called uio_sercos3.
 
@@ -100,7 +100,7 @@ config UIO_NETX
 	help
 	  Driver for Hilscher NetX based fieldbus cards (cifX, comX).
 	  This driver requires a userspace component that comes with the card
-	  or is available from Hilscher (http://www.hilscher.com).
+	  or is available from Hilscher (https://www.hilscher.com).
 
 	  To compile this driver as a module, choose M here; the module
 	  will be called uio_netx.
@@ -123,7 +123,7 @@ config UIO_FSL_ELBC_GPCM_NETX5152
 	  together with the userspace netX stack from Hilscher.
 
 	  Information about this hardware can be found at:
-	  http://www.hilscher.com/netx
+	  https://www.hilscher.com/netx
 
 config UIO_PRUSS
 	tristate "Texas Instruments PRUSS driver"
diff --git a/drivers/uio/uio_netx.c b/drivers/uio/uio_netx.c
index 9ae29ffde410..3d5a92daa0b1 100644
--- a/drivers/uio/uio_netx.c
+++ b/drivers/uio/uio_netx.c
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
  * UIO driver for Hilscher NetX based fieldbus cards (cifX, comX).
- * See http://www.hilscher.com for details.
+ * See https://www.hilscher.com for details.
  *
  * (C) 2007 Hans J. Koch <hjk@...sjkoch.de>
  * (C) 2008 Manuel Traut <manut@...utronix.de>
diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c
index 1cc175d3c25c..64e5dfa92a0d 100644
--- a/drivers/uio/uio_pruss.c
+++ b/drivers/uio/uio_pruss.c
@@ -4,7 +4,7 @@
  * This driver exports PRUSS host event out interrupts and PRUSS, L3 RAM,
  * and DDR RAM to user space for applications interacting with PRUSS firmware
  *
- * Copyright (C) 2010-11 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-11 Texas Instruments Incorporated - https://www.ti.com/
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
-- 
2.27.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ