Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ssb: 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@al2klimov.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200710062151.28871-1-grandmaster@al2klimov.de

authored by

Alexander A. Klimov and committed by
Kalle Valo
0db5bc7b 4f3ebd6f

+4 -4
+2 -2
drivers/ssb/driver_chipcommon.c
··· 238 238 } 239 239 } 240 240 241 - /* http://bcm-v4.sipsolutions.net/802.11/PmuFastPwrupDelay */ 241 + /* https://bcm-v4.sipsolutions.net/802.11/PmuFastPwrupDelay */ 242 242 static u16 pmu_fast_powerup_delay(struct ssb_chipcommon *cc) 243 243 { 244 244 struct ssb_bus *bus = cc->dev->bus; ··· 255 255 } 256 256 } 257 257 258 - /* http://bcm-v4.sipsolutions.net/802.11/ClkctlFastPwrupDelay */ 258 + /* https://bcm-v4.sipsolutions.net/802.11/ClkctlFastPwrupDelay */ 259 259 static void calc_fast_powerup_delay(struct ssb_chipcommon *cc) 260 260 { 261 261 struct ssb_bus *bus = cc->dev->bus;
+1 -1
drivers/ssb/driver_chipcommon_pmu.c
··· 513 513 chipco_write32(cc, SSB_CHIPCO_PMU_MAXRES_MSK, max_msk); 514 514 } 515 515 516 - /* http://bcm-v4.sipsolutions.net/802.11/SSB/PmuInit */ 516 + /* https://bcm-v4.sipsolutions.net/802.11/SSB/PmuInit */ 517 517 void ssb_pmu_init(struct ssb_chipcommon *cc) 518 518 { 519 519 u32 pmucap;
+1 -1
drivers/ssb/sprom.c
··· 186 186 return get_fallback_sprom(bus, out); 187 187 } 188 188 189 - /* http://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ 189 + /* https://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ 190 190 bool ssb_is_sprom_available(struct ssb_bus *bus) 191 191 { 192 192 /* status register only exists on chipcomon rev >= 11 and we need check