Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3986172pxm; Tue, 1 Mar 2022 09:01:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxa9qIRfF1c0bz0j4SweK8+9KWp4XW5DXSZnkenDgGAr2wOIWAsAfyrq5wz782Lh9bliaTz X-Received: by 2002:a17:90a:71ca:b0:1bd:5dd3:621d with SMTP id m10-20020a17090a71ca00b001bd5dd3621dmr9216782pjs.47.1646154084491; Tue, 01 Mar 2022 09:01:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646154084; cv=none; d=google.com; s=arc-20160816; b=HrnVWFZrWKyBHJN6sxUQj9J66oe3siEtdycoUHvG9w6R+NeIwc0dXMC8QhkT0NgrJa tBBqpmHqFzVNK8hoHFhuEwzxz1QT1r1tf1fGWXNOBcu+OO1ndIc3+ZySlvKXI+CCRNUp 2Ph8j+ymWmcEdK/3z4ry1P/8Sx2ULEbc64BVbAXR9e7ynoYSRiMBjEXUV7VqtdAN48Kc dTyf9XEa8tcZTkP84I5J9hSaw71HNDlYSd68fLotLZX3ci9+v0Rs4vS/0o66UxSEdZYb ExQaUjDGjgeKfrhiYxMjb09c3kN8pkjcp10h0oHW8okNXSxj1PJunHeEQhAZtC7nBauV 3Y+Q== 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=TLKcO2xFzHmmoS42uhzAT9iX1dZglqda4fXUqd6Gi9k=; b=HBU3W9SRq0GgH7qd4bIlV5z+2tKm41FaRi/e0A6mjlfwTjPeTc45Y2IL9VXYQy7U9l kynesapEjjkJpNKlxX0HuXeqa2Fo8JkyroyCKIMJtzgeoIFQZFWb8kfpjufJzQqj/3TW DW7JTzUZjyFLIu/KacQxLKw+B8x5pFMCNFIsYUGROgeJ/gfw1VEXD3lF6zVSxDdUo9l+ VxRpr7wkB6gaNIi2/vQPYORBuCXowCBstNujb2vDzIb6Ymd8qJitp0HspLiXvkEoTylG c2esxxlxwtw7lxYt5g3dgPtBVyMIt6WaS38DN/SsOcVxhRLOZ1e5jSorUBwsfoZY6H6g VxKQ== 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 r10-20020a056a00216a00b004e1baee50dasi12419773pff.36.2022.03.01.09.01.07; Tue, 01 Mar 2022 09:01:24 -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 S235540AbiCAPHi (ORCPT + 99 others); Tue, 1 Mar 2022 10:07:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235482AbiCAPHh (ORCPT ); Tue, 1 Mar 2022 10:07:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28543A650E; Tue, 1 Mar 2022 07:06:56 -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 ams.source.kernel.org (Postfix) with ESMTPS id D20F9B81986; Tue, 1 Mar 2022 15:06:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FFC2C340EE; Tue, 1 Mar 2022 15:06:52 +0000 (UTC) Date: Tue, 1 Mar 2022 10:06:50 -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: <20220301100650.52db90d8@gandalf.local.home> In-Reply-To: References: <20220224054332.1852813-1-keescook@chromium.org> <202202232208.B416701@keescook> <20220224091550.2b7e8784@gandalf.local.home> <20220228232131.4b9cee32@rorschach.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 22:42:51 -0800 Daniel Latypov wrote: > But it'd definitely be interesting to try and get klp_arch_set_pc() > working on UML if that's a possibility! > Speaking from ignorance, I can see this either being somewhat simple Looking at UML, it doesn't even look like it has ftrace support. So that would be required to do it for that arch. For UML, I'm not sure its worth it. I don't use UML but maybe others would want ftrace for it? As UML runs in userspace, the motivation for things like ftrace is not as high as you have gdb to walk through everything. That said, I'm sure it would be a fun exercise for anyone to port ftrace to UML :-) -- Steve