Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3649626ybc; Thu, 21 Nov 2019 11:29:24 -0800 (PST) X-Google-Smtp-Source: APXvYqwNqtp2RMHUvH7+to36WUKPvJaeHv7GQAEIbS/8pEGkqNhAYFF7qroIEpS8omJugaMKSP8K X-Received: by 2002:a17:906:5211:: with SMTP id g17mr16150191ejm.60.1574364564494; Thu, 21 Nov 2019 11:29:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574364564; cv=none; d=google.com; s=arc-20160816; b=fPz8w8WYOy2Xn0IUBIFOHuyKNHk0qSe/vydZo6bTcTAxuOJdSxoWcwMi1IknOM62zb oFrGX5eRw7Rvap3Sp0Q1Ai4C9z3D1yDiajPNyiPZmUhG3yqDiFkYBw1GUkjAkzoyHbTV b0qM9k69iIMKbSoZ8NzKmEDan7S75/9hsmXnvGGHhbhF3T3l0FMmitAHt//hzMsJZCKA C5k5cEzA3N6/TMEdQlUu80yY/E6OoNC8BvaLmORMLklHMmuWAwXLVga9Tk5IFf3DZ+qG IDR4AZ0p6T6xV/uGsgRIoarFnb4Y3fbIYUehZPiKXIwXK10sUzzOXxlVSAr7It6qSarK 7xyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=9dlyUecPGfK+9BIYZFQUHeYmY9VCrxxp6P3XtAt/FPg=; b=lGrUxh0liFghT1RgWVnaLMR4cN1ErKfGM7Xr4PfQ8K4vxkTdqmC3dDBbIpto1lcxR5 WLD0HUbKNWVWd544/KzqgtbP7XnS4bpjxCQB+lmopRwhguCQXnK5HWHjarg4elrvDDfO p3Bh2ZnUALKdRQhREcS9OxOCn7H1JQBQs4jJ4SlQi5DmyY6tbRHGXRYQdqd9KjVCrLZr pi4MLfucNFhj11Tdw37G5+0UXrwaKuZRICqLNmRFMJkCo10dU6lBcd/VlrT9CeUKJjsT TgRm6DAX1AUQRR+R+Dq+riRd2dsSs9G+y5/gdpHvWxz+1m6UUISH4n388H0jWpS8U5WE j/Pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dc21si193445ejb.101.2019.11.21.11.28.59; Thu, 21 Nov 2019 11:29:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbfKUT1j (ORCPT + 99 others); Thu, 21 Nov 2019 14:27:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:52344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfKUT1j (ORCPT ); Thu, 21 Nov 2019 14:27:39 -0500 Received: from oasis.local.home (unknown [66.170.99.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C61B22068F; Thu, 21 Nov 2019 19:27:38 +0000 (UTC) Date: Thu, 21 Nov 2019 14:27:37 -0500 From: Steven Rostedt To: Mark Rutland Cc: Torsten Duwe , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: KASAN_INLINE && patchable-function-entry Message-ID: <20191121142737.69978ef9@oasis.local.home> In-Reply-To: <20191121183630.GA3668@lakrids.cambridge.arm.com> References: <20191121183630.GA3668@lakrids.cambridge.arm.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Nov 2019 18:36:32 +0000 Mark Rutland wrote: > As a heads-up to the ftrace folk, I think it's possible to work around > this specific issue in the kernel by allowing the arch code to filter > out call sites at init time (probably in ftrace_init_nop()), but I > haven't put that together yet. If you need to make some code invisible to ftrace at init time, it can be possible by setting the dyn_ftrace rec flag to DISABLED, but this can be cleared, which we would need a way to keep it from being cleared, which shouldn't be too hard. Is that what you would be looking for? -- Steve