From patchwork Tue Sep 5 18:26:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 13375021 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 0DDD7CA100D for ; Tue, 5 Sep 2023 20:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242598AbjIEUIl (ORCPT ); Tue, 5 Sep 2023 16:08:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242565AbjIEUIl (ORCPT ); Tue, 5 Sep 2023 16:08:41 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3825EFA; Tue, 5 Sep 2023 13:08:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 847B1C433B6; Tue, 5 Sep 2023 18:26:52 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.96) (envelope-from ) id 1qdalb-000zNZ-28; Tue, 05 Sep 2023 14:27:11 -0400 Message-ID: <20230905182607.505212458@goodmis.org> User-Agent: quilt/0.66 Date: Tue, 05 Sep 2023 14:26:07 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Andrew Morton , Ajay Kaher , kernel test robot , Ching-lin Yu Subject: [PATCH 0/2] tracing: Add missing LOCKDOWN_TRACEFS checking Precedence: bulk List-ID: X-Mailing-List: linux-trace-kernel@vger.kernel.org When LOCKDOWN_TRACEFS is activated, some of the tracefs functions can still return success leaving tracefs in an undefined state. I broke this up into two patches. One that fixes just tracefs that existed before this merge window and needs to be backported to stable. The other fixes changes added to this merge window. This should fix the issue reported by kernel test robot: https://lore.kernel.org/all/202309050916.58201dc6-oliver.sang@intel.com/ Steven Rostedt (Google) (2): tracefs: Add missing lockdown check to tracefs_create_dir() tracefs/eventfs: Add missing lockdown checks ---- fs/tracefs/event_inode.c | 15 +++++++++++++++ fs/tracefs/inode.c | 3 +++ 2 files changed, 18 insertions(+)