From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3547C433EF for ; Tue, 1 Mar 2022 04:21:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 758428D0002; Mon, 28 Feb 2022 23:21:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6E06F8D0001; Mon, 28 Feb 2022 23:21:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A8008D0002; Mon, 28 Feb 2022 23:21:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 482FE8D0001 for ; Mon, 28 Feb 2022 23:21:39 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id F275061443 for ; Tue, 1 Mar 2022 04:21:38 +0000 (UTC) X-FDA: 79194518676.01.AC1AF98 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf28.hostedemail.com (Postfix) with ESMTP id 712C6C0003 for ; Tue, 1 Mar 2022 04:21:38 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 759B3B81799; Tue, 1 Mar 2022 04:21:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0B9EC340EE; Tue, 1 Mar 2022 04:21:33 +0000 (UTC) Date: Mon, 28 Feb 2022 23:21:31 -0500 From: Steven Rostedt To: Daniel Latypov Cc: Kees Cook , Eric Biederman , David Gow , Alexey Dobriyan , Magnus =?UTF-8?B?R3Jvw58=?= , kunit-dev@googlegroups.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] binfmt_elf: Introduce KUnit test Message-ID: <20220228232131.4b9cee32@rorschach.local.home> In-Reply-To: References: <20220224054332.1852813-1-keescook@chromium.org> <202202232208.B416701@keescook> <20220224091550.2b7e8784@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 712C6C0003 X-Stat-Signature: 61auuo3rjyyotsax9pe5qhk46wfu7jat Authentication-Results: imf28.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf28.hostedemail.com: domain of "SRS0=8JF+=TM=goodmis.org=rostedt@kernel.org" designates 145.40.68.75 as permitted sender) smtp.mailfrom="SRS0=8JF+=TM=goodmis.org=rostedt@kernel.org" X-HE-Tag: 1646108498-609531 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, 28 Feb 2022 17:48:27 -0800 Daniel Latypov wrote: > He also prototyped a more intrusive alternative to using ftrace and > kernel livepatch since they don't work on all arches, like UML. Perhaps instead of working on a intrusive alternative on archs that do not support live kernel patching, implement live kernel patching on those archs! ;-) It's probably the same amount of work. Well, really, you only need to implement the klp_arch_set_pc(fregs, new_function); part. -- Steve