Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3478749rwb; Mon, 5 Sep 2022 12:25:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6V7GH+BTmvbJvbvOepXlPMbcAXrDp9lew+l50Xsa0OTxvKCJSbP09FE91ax1Viyl+yHjMv X-Received: by 2002:a63:83c8:0:b0:42b:908c:710 with SMTP id h191-20020a6383c8000000b0042b908c0710mr39887253pge.195.1662405958223; Mon, 05 Sep 2022 12:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662405958; cv=none; d=google.com; s=arc-20160816; b=bAGiUX5DJVqCvIbNZ+g56oF4/v9bGR5T2DOiYnoY5F6IO3d5AsWK7KkORiWPITm6J4 n2mnfs8sppuPTeYoTu1xYdyw3J5OKrX67FykueCu2enBAzpEiEbokef8yUokJOJ8v2bo MgrY5kXJ845tb+ryvTJOinLH/hbaCvpBbBlEpS++B48RMgWMXoacvsHI2qdNAV5uh9Oe PPLsp39XUg37f/wBiOoZyqeDspq5444xk3HJYKVGjyAuDXmv6sn2jjw89IcnvHXN7ME4 R9alWQNPquSMrYkHbZdzFPq0NPowm2KHg5fYx0Iiaixdd91MlX0kKFVRW/wq8lbJBN2C 5p3w== 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=VhLWgZu0MgDN+H4Y6KMCp4dvS/ljYTxwbUIyngNvdVk=; b=uGnWgU8ZQY/2phgoUj6RgxjBObG4OgjksUTrI/YzY0TDUFxAJSYt3PicQokJH53P5Q GInZBnvtby+y+/9bTaXH458xZ9g8SLzKCCYv0TKcMmq8dBrWm28DEHbtPVVUPKbeeiVE sajdjhv9JBIO/tmFd0vo/EduL5bHQPBD6Saf+oDqtCwIbj7Xb9AHzwXdRASMb2fyBjqe kqigBv9NVOaMbo/8Ui3nEtMeQqQ2Z8JCDwTir1K50PO1/1b/w5IU7KTPmgMtvjobx3vJ H08AJkXrtKwsw2ew1o4K7lKRUbJq0Y5xKvfDNVxFZjdy2XCZywg9DIwSqNom+VGQom8t Dfvw== 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 rj5-20020a17090b3e8500b001ed40b70436si12289962pjb.155.2022.09.05.12.25.44; Mon, 05 Sep 2022 12:25:58 -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; 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 S231958AbiIETQI (ORCPT + 99 others); Mon, 5 Sep 2022 15:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbiIETQH (ORCPT ); Mon, 5 Sep 2022 15:16:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B83EC46202; Mon, 5 Sep 2022 12:16:02 -0700 (PDT) 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 4B0DC6146C; Mon, 5 Sep 2022 19:16:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7168DC433C1; Mon, 5 Sep 2022 19:15:56 +0000 (UTC) Date: Mon, 5 Sep 2022 15:16:33 -0400 From: Steven Rostedt To: Nadav Amit Cc: Mel Gorman , Kent Overstreet , Peter Zijlstra , Suren Baghdasaryan , Andrew Morton , Michal Hocko , Vlastimil Babka , Johannes Weiner , roman.gushchin@linux.dev, dave@stgolabs.net, Matthew Wilcox , liam.howlett@oracle.com, void@manifault.com, juri.lelli@redhat.com, ldufour@linux.ibm.com, Peter Xu , David Hildenbrand , Jens Axboe , mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, changbin.du@intel.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, Marco Elver , dvyukov@google.com, Shakeel Butt , Muchun Song , Arnd Bergmann , jbaron@akamai.com, David Rientjes , minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, Linux MM , iommu@lists.linux.dev, kasan-dev@googlegroups.com, io-uring@vger.kernel.org, linux-arch , xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-modules@vger.kernel.org, LKML Subject: Re: [RFC PATCH 00/30] Code tagging framework and applications Message-ID: <20220905151633.04081816@gandalf.local.home> In-Reply-To: <8EB7F2CE-2C8E-47EA-817F-6DE2D95F0A8B@gmail.com> References: <20220830214919.53220-1-surenb@google.com> <20220831084230.3ti3vitrzhzsu3fs@moria.home.lan> <20220831101948.f3etturccmp5ovkl@suse.de> <8EB7F2CE-2C8E-47EA-817F-6DE2D95F0A8B@gmail.com> 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, 5 Sep 2022 11:44:55 -0700 Nadav Amit wrote: > I would note that I have a solution in the making (which pretty much works) > for this matter, and does not require any kernel changes. It produces a > call stack that leads to the code that lead to syscall failure. > > The way it works is by using seccomp to trap syscall failures, and then > setting ftrace function filters and kprobes on conditional branches, > indirect branch targets and function returns. Ooh nifty! > > Using symbolic execution, backtracking is performed and the condition that > lead to the failure is then pin-pointed. > > I hope to share the code soon. Looking forward to it. -- Steve