b43: Replace HTTP links with HTTPS ones
Subsystems (4)
PATCH 1/1 b43: 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.
---
Continuing my work started at 93431e0607e5.
See also: git log --oneline '--author=Alexander A. Klimov <[email protected]>' 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/net/wireless/broadcom/b43/main.c | 14 +- .../net/wireless/broadcom/b43/phy_common.c | 2 +- drivers/net/wireless/broadcom/b43/phy_g.c | 12 +- drivers/net/wireless/broadcom/b43/phy_ht.c | 2 +- drivers/net/wireless/broadcom/b43/phy_lp.c | 2 +- drivers/net/wireless/broadcom/b43/phy_n.c | 150 +++++++++--------- .../net/wireless/broadcom/b43/radio_2056.c | 2 +- .../net/wireless/broadcom/b43/tables_nphy.c | 4 +- drivers/net/wireless/intersil/orinoco/Kconfig | 4 +- 9 files changed, 96 insertions(+), 96 deletions(-)
drivers/net/wireless/broadcom/b43/main.c +7 -7
@@ -734,7 +734,7 @@ static void b43_short_slot_timing_disable(struct b43_wldev *dev) }/* DummyTransmission function, as documented on -* http://bcm-v4.sipsolutions.net/802.11/DummyTransmission +* https://bcm-v4.sipsolutions.net/802.11/DummyTransmission */ void b43_dummy_transmission (struct b43_wldev *dev,bool ofdm,bool pa_on) {
@@ -1198,7 +1198,7 @@ void b43_power_saving_ctl_bits(struct b43_wldev *dev, unsigned int ps_flags) } } -/* http://bcm-v4.sipsolutions.net/802.11/PHY/BmacCorePllReset */ +/* https://bcm-v4.sipsolutions.net/802.11/PHY/BmacCorePllReset */ void b43_wireless_core_phy_pll_reset (struct b43_wldev *dev) {struct bcma_drv_cc *bcma_cc__maybe_unused ;
@@ -2290,7 +2290,7 @@ int b43_do_request_fw(struct b43_request_fw_context *ctx,return -EPROTO ; } -/* http://bcm-v4.sipsolutions.net/802.11/Init/Firmware */ +/* https://bcm-v4.sipsolutions.net/802.11/Init/Firmware */ static int b43_try_request_fw (struct b43_request_fw_context *ctx) {struct b43_wldev *dev = ctx->dev;
@@ -2843,7 +2843,7 @@ static int b43_upload_initvals_band(struct b43_wldev *dev) }/* Initialize the GPIOs -* http://bcm-specs.sipsolutions.net/GPIO +* https://bcm-specs.sipsolutions.net/GPIO */ #ifdef CONFIG_B43_SSB
@@ -2971,7 +2971,7 @@ void b43_mac_enable(struct b43_wldev *dev) } } -/* http://bcm-specs.sipsolutions.net/SuspendMAC */ +/* https://bcm-specs.sipsolutions.net/SuspendMAC */ void b43_mac_suspend (struct b43_wldev *dev) {int i;
@@ -3004,7 +3004,7 @@ void b43_mac_suspend(struct b43_wldev *dev) dev->mac_suspended++; } -/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/MacPhyClkSet */ +/* https://bcm-v4.sipsolutions.net/802.11/PHY/N/MacPhyClkSet */ void b43_mac_phy_clock_set (struct b43_wldev *dev,bool on) {u32 tmp;
@@ -3231,7 +3231,7 @@ static void b43_chip_exit(struct b43_wldev *dev) }/* Initialize the chip -* http://bcm-specs.sipsolutions.net/ChipInit +* https://bcm-specs.sipsolutions.net/ChipInit */ static int b43_chip_init (struct b43_wldev *dev) {
drivers/net/wireless/broadcom/b43/phy_common.c +1 -1
@@ -559,7 +559,7 @@ bool b43_is_40mhz(struct b43_wldev *dev)return dev->phy.chandef->width ==NL80211_CHAN_WIDTH_40 ; } -/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/BmacPhyClkFgc */ +/* https://bcm-v4.sipsolutions.net/802.11/PHY/N/BmacPhyClkFgc */ void b43_phy_force_clock (struct b43_wldev *dev,bool force) {u32 tmp;
drivers/net/wireless/broadcom/b43/phy_g.c +6 -6
@@ -357,14 +357,14 @@ static void b43_set_original_gains(struct b43_wldev *dev)b43_dummy_transmission (dev, false, true); } -/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ +/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ static void b43_nrssi_hw_write (struct b43_wldev *dev,u16 offset,s16 val) {b43_phy_write (dev,B43_PHY_NRSSILT_CTRL , offset);b43_phy_write (dev,B43_PHY_NRSSILT_DATA , (u16 ) val); } -/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ +/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ static s16 b43_nrssi_hw_read (struct b43_wldev *dev,u16 offset) {u16 val;
@@ -375,7 +375,7 @@ static s16 b43_nrssi_hw_read(struct b43_wldev *dev, u16 offset)return (s16 ) val; } -/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ +/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ static void b43_nrssi_hw_update (struct b43_wldev *dev,u16 val) {u16 i;
@@ -389,7 +389,7 @@ static void b43_nrssi_hw_update(struct b43_wldev *dev, u16 val) } } -/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ +/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ static void b43_nrssi_mem_update (struct b43_wldev *dev) {struct b43_phy_g *gphy = dev->phy.g;
@@ -1575,7 +1575,7 @@ static void b43_phy_initb5(struct b43_wldev *dev)b43_write16 (dev,0x03E4 , (b43_read16 (dev,0x03E4 ) &0xFFC0 ) |0x0004 ); } -/* http://bcm-v4.sipsolutions.net/802.11/PHY/Init/B6 */ +/* https://bcm-v4.sipsolutions.net/802.11/PHY/Init/B6 */ static void b43_phy_initb6 (struct b43_wldev *dev) {struct b43_phy *phy = &dev->phy;
@@ -2746,7 +2746,7 @@ static int b43_gphy_op_interf_mitigation(struct b43_wldev *dev,return 0 ; } -/* http://bcm-specs.sipsolutions.net/EstimatePowerOut +/* https://bcm-specs.sipsolutions.net/EstimatePowerOut * This function converts a TSSI value to dBm in Q5.2 */ static s8 b43_gphy_estimate_power_out (struct b43_wldev *dev,s8 tssi)
drivers/net/wireless/broadcom/b43/phy_ht.c +1 -1
@@ -1018,7 +1018,7 @@ static void b43_phy_ht_op_free(struct b43_wldev *dev) phy->ht =NULL ; } -/* http://bcm-v4.sipsolutions.net/802.11/Radio/Switch%20Radio */ +/* https://bcm-v4.sipsolutions.net/802.11/Radio/Switch%20Radio */ static void b43_phy_ht_op_software_rfkill (struct b43_wldev *dev,bool blocked) {
drivers/net/wireless/broadcom/b43/phy_lp.c +1 -1
@@ -70,7 +70,7 @@ static void b43_lpphy_op_free(struct b43_wldev *dev) dev->phy.lp =NULL ; } -/* http://bcm-v4.sipsolutions.net/802.11/PHY/LP/ReadBandSrom */ +/* https://bcm-v4.sipsolutions.net/802.11/PHY/LP/ReadBandSrom */ static void lpphy_read_band_sprom (struct b43_wldev *dev) {struct ssb_sprom *sprom = dev->dev->bus_sprom;
drivers/net/wireless/broadcom/b43/phy_n.c +75 -75
600 lines not on this page · raw message
drivers/net/wireless/broadcom/b43/radio_2056.c +1 -1
@@ -3072,7 +3072,7 @@ INITTABSPTS(b2056_inittab_radio_rev11); .phy_regs.phy_bw5 = r4, \ .phy_regs.phy_bw6 = r5 -/* http://bcm-v4.sipsolutions.net/802.11/Radio/2056/ChannelTable */ +/* https://bcm-v4.sipsolutions.net/802.11/Radio/2056/ChannelTable */ static const struct b43_nphy_channeltab_entry_rev3 b43_nphy_channeltab_phy_rev3[] = { { .freq =4920 , RADIOREGS3(0xff, 0x01, 0x01, 0x01, 0xec, 0x05, 0x05, 0x04,
drivers/net/wireless/broadcom/b43/tables_nphy.c +2 -2
@@ -3620,7 +3620,7 @@ static void b43_nphy_tables_init_rev0(struct b43_wldev *dev)ntab_upload (dev,B43_NTAB_C1_LOFEEDTH , b43_ntab_loftlt1); } -/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/InitTables */ +/* https://bcm-v4.sipsolutions.net/802.11/PHY/N/InitTables */ void b43_nphy_tables_init (struct b43_wldev *dev) {if (dev->phy.rev >=16 )
@@ -3633,7 +3633,7 @@ void b43_nphy_tables_init(struct b43_wldev *dev)b43_nphy_tables_init_rev0 (dev); } -/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/GetIpaGainTbl */ +/* https://bcm-v4.sipsolutions.net/802.11/PHY/N/GetIpaGainTbl */ static const u32 *b43_nphy_get_ipa_gain_table (struct b43_wldev *dev) {struct b43_phy *phy = &dev->phy;
drivers/net/wireless/intersil/orinoco/Kconfig +2 -2
@@ -27,7 +27,7 @@ config HERMES You will also very likely also need the Wireless Tools in order to configure your card and that /etc/pcmcia/wireless.opts works : - <http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html> + <https://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html> config HERMES_PRISM bool "Support Prism 2/2.5 chipset"
@@ -120,7 +120,7 @@ config PCMCIA_HERMES You will very likely need the Wireless Tools in order to configure your card and that /etc/pcmcia/wireless.opts works: - <http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html>. + <https://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html>. config PCMCIA_SPECTRUM tristate "Symbol Spectrum24 Trilogy PCMCIA card support"
Signature · 1 line
2.27.0
PATCH 1/1 b43: Replace HTTP links with HTTPS ones
Quoted 15 lines · Alexander A. Klimov
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.
Quoted 1 line
Signed-off-by Alexander A. Klimov <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
2d96c1ed4bab b43: Replace HTTP links with HTTPS ones
Signature · 3 lines
https://patchwork.kernel.org/patch/11672421/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 15 lines · Alexander A. Klimov
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.
Quoted 1 line
Signed-off-by Alexander A. Klimov <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
2d96c1ed4bab b43: Replace HTTP links with HTTPS ones
Signature · 3 lines
https://patchwork.kernel.org/patch/11672421/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches