From patchwork Tue Oct 25 20:06:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1196197wru; Tue, 25 Oct 2022 13:13:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eBBGdJWLo0ngqPzv2Rmjc0o5I/plfs8kGRZOJRC5UDIXZC3v68K5+BjaBj6mDwSjCFCk1 X-Received: by 2002:a63:234c:0:b0:46f:1b7:438b with SMTP id u12-20020a63234c000000b0046f01b7438bmr11031917pgm.516.1666728787741; Tue, 25 Oct 2022 13:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666728787; cv=none; d=google.com; s=arc-20160816; b=smTRxk3HUKHMOk6jjklrCDY0PuJEA3NIKA4P0gR7eCiRRfgthFiiqyPbQy+ghAhh/6 MEURzVpbeg6SHFKrgHKzS9GItzl9NzM4aQVhme2d43UOELoV3Mht313/oV2y7OZnL5ua Yy/6pa0xR1xSwGX9s/EMI0xjoTW/w1xRgqieJHFKO4BB3C+Tjr2jV71PCuVexjyYe2Iz g0s16xjM88nfCsDQXt14c3l3B86dHRNTvEKxcu3UdNv4dBK2Th0iTqo0LCc2gQbmReCx fnHFvdbm4c9Hm7x3mXMgnr3/3shKcuo5hXNJUjnh5LfiEpkDx3OsDqQhvx74FMzWAXWu 6yJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:user-agent:message-id :dkim-signature; bh=arjjn6azk9uuxv9qRJ+TWeQwrm7jAh/OWTTw4STalbE=; b=WO3qM+6Xa8IFuBfka9sg4HRDMzf0QMINlvyTZNFPxIm1eRE4hwmrfUeMO+zouMv2CU wYeMuy3rMA4w8/86pDEqc6ViHWENG14Uh6bP95mKp3SPlGPD0aWQlV1Zk39i6jFifBvP xBRX+nmmakBv6gkjsHSdq7PARLc1ZqfTpLkNZi7/0vAWtGlluRlnnCb9+eP3vnkxw7CW Vaj9A3ecwhxchzJ4iYd3+ZMQSU13z69dv/PLXAEzAIC7VQuXqPgo0aFE63ai8W3cw7Ll B4RVSPf5mw/JgX2Py1bEopIir0/c50jzZ6StxYq8fy+e9MXVmjAV0ke6uSlqsxy8KQo+ kacg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SoA0yvjL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s64-20020a632c43000000b0046b1a7c6679si4198121pgs.414.2022.10.25.13.12.35; Tue, 25 Oct 2022 13:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SoA0yvjL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231549AbiJYULn (ORCPT + 99 others); Tue, 25 Oct 2022 16:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231327AbiJYULg (ORCPT ); Tue, 25 Oct 2022 16:11:36 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31FD679EC7 for ; Tue, 25 Oct 2022 13:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Subject:Cc:To:From:Date:Message-ID: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=arjjn6azk9uuxv9qRJ+TWeQwrm7jAh/OWTTw4STalbE=; b=SoA0yvjL6GoYB+2zKr2iW2n+CW Y00diumhJOcA6Du8eS/vHG6P2v8xueThdNVEx7uS3ftVAkGE38n2+AWibbqKg9wC69ms04V6Et/e3 Bb0rMCRjSeSnu2ary0XsvmDIzaCrqqIzsAy1m9Rexuzp6GUn1wAKnFk+ALwqsjP/Ox2wKM2JTsk/X 6kuGM3yL27VqqWJ2hrwHNbpLh9rmr2QBV/ZMEqvaCabyJK5Asf+SjID8CG/2th5wS8OYj2Xph+Ypg i6hZjEklqfE7N5K6GEhwAufY6ylbQnVAu7Vv3iqViGmctp9PD+B7yIJE3ssF4MMoeVqdBmHj/i6Rm LZ3sIbSw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1onQGm-00GWF5-EP; Tue, 25 Oct 2022 20:11:28 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9F04A30008D; Tue, 25 Oct 2022 22:11:22 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 8805D2C450286; Tue, 25 Oct 2022 22:11:22 +0200 (CEST) Message-ID: <20221025200656.951281799@infradead.org> User-Agent: quilt/0.66 Date: Tue, 25 Oct 2022 22:06:56 +0200 From: Peter Zijlstra To: torvalds@linux-foundation.org, rostedt@goodmis.org, dave.hansen@intel.com Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, x86@kernel.org, keescook@chromium.org, seanjc@google.com Subject: [PATCH 0/5] x86/ftrace: Cure boot time W+X mapping X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747691805512204758?= X-GMAIL-MSGID: =?utf-8?q?1747691805512204758?= Hi, These few patches re-work and re-order boot things enough to avoid ftrace creating boot time W+X maps. The patches compile and boot for the one config I tested things on (with ftrace=function enabled; *slooooow*). I've pushed them out for the robots to have a go at here: git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/mm.poke_me Signed-off-by: Peter Zijlstra (Intel)