Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1663883ybt; Thu, 9 Jul 2020 12:17:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4NWY5l+UWQ3trzTJgEKdrP/ejniak3iwIRg6IxYzCHf8JoyVvOxEyCzq7dxo1vsBv5gZE X-Received: by 2002:a17:906:7b54:: with SMTP id n20mr56899171ejo.144.1594322251119; Thu, 09 Jul 2020 12:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594322251; cv=none; d=google.com; s=arc-20160816; b=L/Gmu+E/w7toGvJ5xCy7qboP71zs5QnAuKpY/W92Myajd83hVdrriMwQI4Iw4AFBeq kAwBm82VGr9DHFOcVOONu0n33j6znCSYipcMw64ldQTYUwwHAUCrKEpQSJZFUf9W1Dvj 92/R7CofagXWVa8c8JEnd/wQHPSX6OFXrmdYfEaIogPEDOhY5V/VVGyEzGQHePHR+aYe UAyT84HkelK3mLPCsUedqVALlo4DHskR4Ty3tg74MlA+4SfqOK3bfigAY0Mi4AWzIaZr MxgckF/Z0X/EqDkXjT2Qm0cKHmmPcMvMH8SCpcbqz4jLW4f1NgLeLaIy3E/cOjhsdIsI afaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5/oLBPwujQ5XNkBDNkpEsOKoD7ThCwinAZYZsqBOhbc=; b=o+m6v8rfcxaZRnpkA9sScBmKLNNeClKhtZjkzhMuPogfevZHqUhniLpVKc1eYqlTgR N47vDwMn54ZgK4AiTLGvlM4/mlRkd+JOwzbtSNdlDbIfVreOgXTi/C+FWOjnhwy0flVS VJ/NkOrfCHyx1XzCNoL4r3ZMA/Qn8J6om+dlAHljP2jtN0M9n1R/oS+cCZ/MvE4yhYlO wQOu7xoopHK5NalHIgiD72UL2t3Vqs0E6zlmMXjH9w75/OGQyQ4tFzm9xXJz+snhzFto UE48fKiSBJcRzIRaO6Uizmlis+fYb/Nbi1LXxShHn6sokkqof7AD03JY2UK0WprTv1ik Eg5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i16si2567396eds.541.2020.07.09.12.17.07; Thu, 09 Jul 2020 12:17:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726222AbgGITQs (ORCPT + 99 others); Thu, 9 Jul 2020 15:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbgGITQr (ORCPT ); Thu, 9 Jul 2020 15:16:47 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0DD4C08C5CE; Thu, 9 Jul 2020 12:16:47 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 07FFBBC116; Thu, 9 Jul 2020 19:16:42 +0000 (UTC) From: "Alexander A. Klimov" To: naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, mhiramat@kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] kprobes: Replace HTTP links with HTTPS ones Date: Thu, 9 Jul 2020 21:16:36 +0200 Message-Id: <20200709191636.26252-1-grandmaster@al2klimov.de> In-Reply-To: <20200708184201.611d929ae6017c87ea98b114@kernel.org> References: <20200708184201.611d929ae6017c87ea98b114@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: +++++ X-Spam-Level: ***** Authentication-Results: smtp.al2klimov.de; auth=pass smtp.auth=aklimov@al2klimov.de smtp.mailfrom=grandmaster@al2klimov.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 both the HTTP and HTTPS versions return 200 OK and serve the same content: Replace HTTP with HTTPS. Signed-off-by: Alexander A. Klimov --- I'd really would like to get HTTPSifying done before other tasks... Documentation/kprobes.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/kprobes.txt b/Documentation/kprobes.txt index 8baab8832c5b..88b4d2845b37 100644 --- a/Documentation/kprobes.txt +++ b/Documentation/kprobes.txt @@ -693,7 +693,7 @@ process. Here are sample overhead figures (in usec) for x86 architectures:: TODO ==== -a. SystemTap (http://sourceware.org/systemtap): Provides a simplified +a. SystemTap (https://sourceware.org/systemtap): Provides a simplified programming interface for probe-based instrumentation. Try it out. b. Kernel return probes for sparc64. c. Support for other architectures. -- 2.27.0