Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3922589ybl; Mon, 12 Aug 2019 08:31:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVMbnteRVfZ+AxLd7blLZgwWgcgxujNGDRE26145D08WkRPToijmr3brJkLSs5WnbDc3XB X-Received: by 2002:aa7:9197:: with SMTP id x23mr35780832pfa.95.1565623878722; Mon, 12 Aug 2019 08:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565623878; cv=none; d=google.com; s=arc-20160816; b=d6KynUFJNc4yYODvZUDgPFFwV/6i5why6KiK1OVwbAkDXqllDoMC9tc/xnhdAzmXi3 +VupIqBTzIHGychr1f10ivDZHSXDnCWOrXG5tiSEPY/RkVToOiTVOCRaViFyEuah1T3K QXrFP2WbS0igoFqjEwdh5LcgxeuG67YoMbmIPo6rAsWzMpx+xdn4ZROwukRyZ5x5rXZD ucMpuDFOCyDu7hGQ+WQ/pDE9zQLngkW29QVxX/VN/Uxt4Pi5YBnWW15o3QH1jYnlNnk+ 8etv6X5vmymGEeLzmB3q7f6Oytfw7gQPtx1gY2r0y1RhPyfE0NqVI/GF/fpMOCVaYBik UAXA== 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=849Cx1AbHasRh+HRNROQ/wosQHNL3m8alLynrI6gusM=; b=RPCQAonZa6l7Qxm5tQXQ34znXXOy7S7eLz6Rm5BK+FZ9b25Xb7coGUrpg9ce6FZy2a R47k6CnlU5mRuELVfnWXanjXp118aWd+4j23dd4/TiQlo+J8qG/wvJTvhW4Bq5dF+HCK jFYz+keTraWp2QTQ8hOGDqwTY7tYqnzVAjphka1JjpdOmvwa85rvwD3ngdwB0in1Tvd9 XSZxH8oySQIrSi7bIbb7h8mcVD2EwdOL55RdgAYa0YIvpCxxlgyyKcAuHw4koF/GOgp5 MKQng51HbPDbU6S45YbGkcTHClXisLtN28rKbTk+IqeK9gRmJo9jdjokOBIwuXq2nudw s9qA== 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 d1si62952130pgq.540.2019.08.12.08.31.03; Mon, 12 Aug 2019 08:31:18 -0700 (PDT) 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 S1728224AbfHLP25 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Aug 2019 11:28:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:43596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727693AbfHLP24 (ORCPT ); Mon, 12 Aug 2019 11:28:56 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 E86B5208C2; Mon, 12 Aug 2019 15:28:54 +0000 (UTC) Date: Mon, 12 Aug 2019 11:28:53 -0400 From: Steven Rostedt To: Salvatore Bonaccorso Cc: Thomas Gleixner , Paul Menzel , Jacob Pan , Len Brown , x86@kernel.org, LKML , linux-pm@vger.kernel.org, Matthew Garrett Subject: Re: [Linux 5.2.x] /sys/kernel/debug/tracing/events/power/cpu_idle/id: BUG: kernel NULL pointer dereference, address: 0000000000000000 Message-ID: <20190812112853.53ecc122@gandalf.local.home> In-Reply-To: <20190811153326.GA8036@eldamar.local> References: <4b54ff1e-f18b-3c58-7caa-945a0775c24c@molgen.mpg.de> <01c7bc6b-dc6d-5eca-401a-8869e02f7c2a@molgen.mpg.de> <20190811094630.GA18925@eldamar.local> <20190811153326.GA8036@eldamar.local> 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: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 11 Aug 2019 17:33:26 +0200 Salvatore Bonaccorso wrote: > Thomas, > > On Sun, Aug 11, 2019 at 02:58:15PM +0200, Thomas Gleixner wrote: > > Salvatore, > > > > On Sun, 11 Aug 2019, Salvatore Bonaccorso wrote: > > > On Sun, Aug 11, 2019 at 08:22:35AM +0200, Thomas Gleixner wrote: > > > > On Sat, 10 Aug 2019, Paul Menzel wrote: > > > > > For the record. It is also reproducible with Linux 5.2.6, and trying to print > > > > > the file contents with cat already fails. > > > > > > > > > > ``` > > > > > $ sudo ls -l /sys/kernel/debug/tracing/events/power/cpu_idle/id > > > > > -r--r--r-- 1 root root 0 Aug 10 23:05 > > > > > /sys/kernel/debug/tracing/events/power/cpu_idle/id > > > > > $ sudo cat /sys/kernel/debug/tracing/events/power/cpu_idle/id > > > > > Killed > > > > > ``` > > > > > > This seems to be related to https://bugs.debian.org/934304 (in > > > particular https://bugs.debian.org/934304#29). The mentioned patch > > > features/all/lockdown/0031-tracefs-Restrict-tracefs-when-the-kernel-is-locked-d.patch > > > is a backport of https://patchwork.kernel.org/patch/11069661/ with > > > only change that it is converted back to the non-LSM lockdown API. > > > > So that's a debian kernel specific issue? > > "yes". A kernel build without the above patch does not exhibit the > issue. So the issue is specific to that lockdown patch ("tracefs: > Restrict tracefs when the kernel is locked down"). > > Steven and Matthew are both CC'ed. From what I understand, Matthew's "lockdown" work is to prevent the system from doing anything to see what is happening in the kernel. This includes tracefs. This looks like it is working as designed. Perhaps it's something in debian setup that needs to keep tracefs from being selected as "lockdown", otherwise anything that tries to access it, will have these issues. -- Steve