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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 351BDC433FE for ; Sat, 28 May 2022 12:52:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235526AbiE1Mwt (ORCPT ); Sat, 28 May 2022 08:52:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235477AbiE1Mwr (ORCPT ); Sat, 28 May 2022 08:52:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9349FDEF5; Sat, 28 May 2022 05:52:44 -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 26CB160EBB; Sat, 28 May 2022 12:52:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBB13C34100; Sat, 28 May 2022 12:52:41 +0000 (UTC) Date: Sat, 28 May 2022 08:52:40 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: LKML , Ingo Molnar , Andrii Nakryiko , Masami Hiramatsu , Jiri Olsa , Alexei Starovoitov , Daniel Borkmann , Networking , bpf , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , x86@kernel.org Subject: Re: [PATCH v4] ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to avoid adding weak function Message-ID: <20220528085240.6f9238f2@gandalf.local.home> In-Reply-To: References: <20220526141912.794c2786@gandalf.local.home> <20220527083043.022e8e36@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 28 May 2022 13:41:41 +0200 Peter Zijlstra wrote: > In what order does available_filter_functions print the symbols? > > The pending FGKASLR patches randomize kallsyms order and anything that > prints symbols in address order will be a security leak. Yes it is sorted, but tracefs is by default root accessible only. An admin can change the owner of it via normal chmod/chown permissions, but they get to keep the security pieces if they do. There's other things in tracefs that can pose security issues if unprivileged users are allowed to read, which is why the default permissions of files is rw-r----. Thus, I'm not worried about it. And why the security paranoid can always lockdown tracing, which will completely disable tracefs and access to all its files. -- Steve