Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3827590pxm; Tue, 1 Mar 2022 06:14:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwvhT7sAjiyn8jT4BKvgyj1kaecyJl0EgdJIO3hvkAhMI8UrwaDGjWwNOxzunfW8CCkPfQ X-Received: by 2002:a05:6402:4309:b0:40f:8bf7:18cd with SMTP id m9-20020a056402430900b0040f8bf718cdmr24402981edc.79.1646144092937; Tue, 01 Mar 2022 06:14:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646144092; cv=none; d=google.com; s=arc-20160816; b=bGK6nG/aja6HTwa8AcrGT3nZQdfzfT0SakZd3fl+SmANf7sZFiAIa3myCvG6s9GqTE SRJNNBqkGA85stWeqja0Cp3f0OuXc/04Bwqsy1OhQl56uMRxtU0gF09HTPvbUkzAuAnm bG3MRuqH4b45ik6KeFmbt4Plwkxv1CcXy+fEDJLaVCDBkLCpnH9LmRFGdZU9u0DLfXvl RqlOCsgBL0s3vm4ys2wycNnNDBWBb0CK+nnfd9riIL5IV42Cna9p1jDmcmNPwPB3fT4u zUFD/xbwJnAfyMckffKiObLX23+jHSwChi1tcsv7/RQLUfZ/fHcYAU+6PSIS85r8sIlk qZmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=8BvfmMMhpkdGU/9sCybk2ePNNX/FPwah+KW1C7xAquM=; b=Ljh0b5d+6ZHkYYkBKXIKsAUa6+IzMwQK7yrxvQMT3IsFX/dJSM5n0QXHkktnqOnaf4 zDdKhdFiVRSGgCFOW3aWT3SK4Rkis9uw/j+j4KHpJchvzwdaYZ/kBEeJoAp9n2DY0qFy yjSfATecXFYgBOKtjFMPhW/WkT3TIVyQT4Vj/8dqV0kxRCuY1gDKU88uMSxG92Bqyyfj 1lZb7rRaig8GeoJyFbEo87KLxrHB5P2pmYj7JL3W3E1N6JptxumLBxvhaPbMMopc+k27 o/+p7Rp7A9d8ZcjLvoxZzpcBOp/RabcDIsI4y7TnY7hkkboXitsj7lNwvGj7YW0Z/BtQ ibvw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j25-20020aa7de99000000b0041086c885b9si8123280edv.392.2022.03.01.06.14.29; Tue, 01 Mar 2022 06:14:52 -0800 (PST) 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; 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 S231173AbiCAEWT (ORCPT + 99 others); Mon, 28 Feb 2022 23:22:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbiCAEWQ (ORCPT ); Mon, 28 Feb 2022 23:22:16 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6278B31365; Mon, 28 Feb 2022 20:21:36 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id C7CFC609EE; Tue, 1 Mar 2022 04:21:35 +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-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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