Message ID | 20230626001144.2635956-1-zhengyejian1@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6883377vqr; Sun, 25 Jun 2023 05:18:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+jnNFNIqzBstHOPmZsEkdqZJAvHAtkyZJX2KvslDAFZKlNI8219amQzXtz6ykornTJbEg X-Received: by 2002:a17:90a:48:b0:260:fe48:491f with SMTP id 8-20020a17090a004800b00260fe48491fmr7642866pjb.45.1687695493388; Sun, 25 Jun 2023 05:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687695493; cv=none; d=google.com; s=arc-20160816; b=pguWLPujb8hY5eS+HP4DDAz1E8I6OV8R5tctcOOfvQZGGJpRQ91y8zi0hbcl/iAO06 aLdKiZUTncddkaxnSR5ePpn5kORN6J1VhZVDJr7ivWLIFJXzk9F6gMsCiUCOJB3GnpUq f0p4nBbIme2mqpTgYFcSD2ou9CKyOrD08sEo3llcmOGRkc8AlZuatvMSMnKKiX+wZWZb WCMmF+ixR7kqRq2jDr8X2W2JeoskrzFLheXarB4oDEt6MkpzosoWBzGk7q/aPFc5iLI+ tFuUcI8frQZybk4tj6q6l8MW9CDOeWhpBSfZvAf6JIeviZ7f5/bsgvCfYCt/50qg37sx SgvA== 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 :message-id:date:subject:cc:to:from; bh=hCM+fAwfioLInm7uXA3EpvVxVkjpIWpyyOyBzhqAl7Y=; fh=3bHNZKou9gEKyVVc34HWFD96ByTt1t/guH1ehzRyJhQ=; b=er9wrLAlBjBEzbAM/TkCAsSam7V2rl8O2ywgjMzd+K18s6AuWNpHMUfhxdqRnvJ5U8 37wQeZK5MyEWaFJV9HwSv6c2CrrayZN+4k1X9lZtU8li2oBBq5ntY1sU9mQ5Sy4daKOc RrEks0AtUCq7vx+BqsImCYxcWBAP5o+OW77kCJlAvEQqdUQaVa7YqWyru5bQepy84PBo iGTSOzaYjCGSqHzUBT7Ns6ebeuZigQ8vGtH9SB3okl1GaeqnUPkDwH4OS9ARaetOBPAG LV7ezAzQj0V0H2D4REpZknyXcT8D3/2F9SYdSyw3EO/9zAFyyC3DQXuJPq4e5OG6tHk2 PzNg== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g130-20020a636b88000000b00553c2f85095si3069717pgc.832.2023.06.25.05.18.00; Sun, 25 Jun 2023 05:18:13 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbjFYMLb (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Sun, 25 Jun 2023 08:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbjFYML3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 25 Jun 2023 08:11:29 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50FA8115; Sun, 25 Jun 2023 05:11:27 -0700 (PDT) Received: from dggpeml500012.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4QpqXL5vT4zLn4C; Sun, 25 Jun 2023 20:09:22 +0800 (CST) Received: from localhost.localdomain (10.67.175.61) by dggpeml500012.china.huawei.com (7.185.36.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sun, 25 Jun 2023 20:11:24 +0800 From: Zheng Yejian <zhengyejian1@huawei.com> To: <rostedt@goodmis.org>, <mhiramat@kernel.org>, <shuah@kernel.org> CC: <linux-kernel@vger.kernel.org>, <linux-trace-kernel@vger.kernel.org>, <linux-kselftest@vger.kernel.org>, <zhengyejian1@huawei.com> Subject: [PATCH] selftests/ftrace: Correctly enable event in instance-event.tc Date: Mon, 26 Jun 2023 08:11:44 +0800 Message-ID: <20230626001144.2635956-1-zhengyejian1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.175.61] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500012.china.huawei.com (7.185.36.15) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_12_24, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769676989676505841?= X-GMAIL-MSGID: =?utf-8?q?1769676989676505841?= |
Series |
selftests/ftrace: Correctly enable event in instance-event.tc
|
|
Commit Message
Zheng Yejian
June 26, 2023, 12:11 a.m. UTC
Function instance_set() expects to enable event 'sched_switch', so we
should set 1 to its 'enable' file.
Testcase passed after this patch:
# ./ftracetest test.d/instances/instance-event.tc
=== Ftrace unit tests ===
[1] Test creation and deletion of trace instances while setting an event
[PASS]
# of passed: 1
# of failed: 0
# of unresolved: 0
# of untested: 0
# of unsupported: 0
# of xfailed: 0
# of undefined(test bug): 0
Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
---
.../testing/selftests/ftrace/test.d/instances/instance-event.tc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, 26 Jun 2023 08:11:44 +0800 Zheng Yejian <zhengyejian1@huawei.com> wrote: > Function instance_set() expects to enable event 'sched_switch', so we > should set 1 to its 'enable' file. > > Testcase passed after this patch: > # ./ftracetest test.d/instances/instance-event.tc > === Ftrace unit tests === > [1] Test creation and deletion of trace instances while setting an event > [PASS] > > # of passed: 1 > # of failed: 0 > # of unresolved: 0 > # of untested: 0 > # of unsupported: 0 > # of xfailed: 0 > # of undefined(test bug): 0 > Good catch! Fixes: 91e6f1ce8657 ("ftracetest: Add instance created, delete, read and enable event test") It seems this tests internally broken but the result is same because this disabled error checking ('set +e'). > Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com> > --- > .../testing/selftests/ftrace/test.d/instances/instance-event.tc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > index 0eb47fbb3f44..42422e425107 100644 > --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > @@ -39,7 +39,7 @@ instance_read() { > > instance_set() { > while :; do > - echo 1 > foo/events/sched/sched_switch > + echo 1 > foo/events/sched/sched_switch/enable > done 2> /dev/null > } > > -- > 2.25.1 >
On Mon, 26 Jun 2023 19:11:14 +0900 Masami Hiramatsu (Google) <mhiramat@kernel.org> wrote: > On Mon, 26 Jun 2023 08:11:44 +0800 > Zheng Yejian <zhengyejian1@huawei.com> wrote: > > > Function instance_set() expects to enable event 'sched_switch', so we > > should set 1 to its 'enable' file. > > > > Testcase passed after this patch: > > # ./ftracetest test.d/instances/instance-event.tc > > === Ftrace unit tests === > > [1] Test creation and deletion of trace instances while setting an event > > [PASS] > > > > # of passed: 1 > > # of failed: 0 > > # of unresolved: 0 > > # of untested: 0 > > # of unsupported: 0 > > # of xfailed: 0 > > # of undefined(test bug): 0 > > > > Good catch! > > Fixes: 91e6f1ce8657 ("ftracetest: Add instance created, delete, read and enable event test") > > It seems this tests internally broken but the result is same because this disabled > error checking ('set +e'). And Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Thanks! > > > > Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com> > > --- > > .../testing/selftests/ftrace/test.d/instances/instance-event.tc | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > index 0eb47fbb3f44..42422e425107 100644 > > --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > @@ -39,7 +39,7 @@ instance_read() { > > > > instance_set() { > > while :; do > > - echo 1 > foo/events/sched/sched_switch > > + echo 1 > foo/events/sched/sched_switch/enable > > done 2> /dev/null > > } > > > > -- > > 2.25.1 > > > > > -- > Masami Hiramatsu (Google) <mhiramat@kernel.org>
Shuah, can you take this? On Mon, 26 Jun 2023 19:12:55 +0900 Masami Hiramatsu (Google) <mhiramat@kernel.org> wrote: > On Mon, 26 Jun 2023 19:11:14 +0900 > Masami Hiramatsu (Google) <mhiramat@kernel.org> wrote: > > > On Mon, 26 Jun 2023 08:11:44 +0800 > > Zheng Yejian <zhengyejian1@huawei.com> wrote: > > > > > Function instance_set() expects to enable event 'sched_switch', so we > > > should set 1 to its 'enable' file. > > > > > > Testcase passed after this patch: > > > # ./ftracetest test.d/instances/instance-event.tc > > > === Ftrace unit tests === > > > [1] Test creation and deletion of trace instances while setting an event > > > [PASS] > > > > > > # of passed: 1 > > > # of failed: 0 > > > # of unresolved: 0 > > > # of untested: 0 > > > # of unsupported: 0 > > > # of xfailed: 0 > > > # of undefined(test bug): 0 > > > > > > > Good catch! > > > > Fixes: 91e6f1ce8657 ("ftracetest: Add instance created, delete, read and enable event test") > > > > It seems this tests internally broken but the result is same because this disabled > > error checking ('set +e'). > > And > > Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> -- Steve > > Thanks! > > > > > > > > Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com> > > > --- > > > .../testing/selftests/ftrace/test.d/instances/instance-event.tc | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > > index 0eb47fbb3f44..42422e425107 100644 > > > --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > > +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > > @@ -39,7 +39,7 @@ instance_read() { > > > > > > instance_set() { > > > while :; do > > > - echo 1 > foo/events/sched/sched_switch > > > + echo 1 > foo/events/sched/sched_switch/enable > > > done 2> /dev/null > > > } > > > > > > -- > > > 2.25.1 > > > > > > > > > -- > > Masami Hiramatsu (Google) <mhiramat@kernel.org> > >
On 2023/7/11 06:37, Steven Rostedt wrote: > > Shuah, can you take this? > Kindly ping and bug report :) Hi, Steve, Ajay, After this patch and run this testcase, I got an use-after-free report by KASAN. Short log see [1], full logs see attach "panic.log". And by simple bisect, I found it may be introduced by: 27152bceea1d ("eventfs: Move tracing/events to eventfs") Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=27152bceea1df27ffebb12ac9cd9adbf2c4c3f35 [1] # ./ftracetest test.d/instances/instance-event.tc === Ftrace unit tests === [1] Test creation and deletion of trace instances while setting an event[ 89.472397] ================================================================== [ 89.475053] BUG: KASAN: slab-use-after-free in __ftrace_event_enable_disable+0x1b/0x3a0 [ 89.480039] Read of size 8 at addr ffff88814f5b2690 by task ftracetest/392 [ 89.483906] [ 89.484560] CPU: 10 PID: 392 Comm: ftracetest Tainted: G W 6.5.0+ #127 [ 89.487033] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 89.489751] Call Trace: [ 89.490315] <TASK> [ 89.490817] dump_stack_lvl+0x4b/0x80 [ 89.491570] print_report+0xd0/0x620 [ 89.492296] ? __virt_addr_valid+0xf9/0x180 [ 89.493134] ? __ftrace_event_enable_disable+0x1b/0x3a0 [ 89.494151] kasan_report+0xb6/0xf0 [ 89.494881] ? __ftrace_event_enable_disable+0x1b/0x3a0 [ 89.495878] __ftrace_event_enable_disable+0x1b/0x3a0 [ 89.496805] event_enable_write+0x109/0x170 [ 89.497631] ? __pfx_event_enable_write+0x10/0x10 [ 89.498618] ? __pfx_bpf_lsm_file_permission+0x10/0x10 [ 89.499659] ? security_file_permission+0x51/0x2d0 [ 89.500604] vfs_write+0x175/0x670 [ 89.501385] ? __pfx_vfs_write+0x10/0x10 [ 89.502246] ? __pfx__raw_spin_lock+0x10/0x10 [ 89.503187] ? expand_files+0x9b/0x330 [ 89.504011] ? __pfx_expand_files+0x10/0x10 [ 89.504898] ? set_close_on_exec+0x7b/0xe0 [ 89.505782] ? __fget_light+0xae/0x1e0 [ 89.506615] ? _raw_spin_lock+0x85/0xe0 [ 89.507989] ksys_write+0xbd/0x160 [ 89.509302] ? __pfx_ksys_write+0x10/0x10 [ 89.510493] ? dnotify_flush+0x38/0x220 [ 89.511654] ? fpregs_assert_state_consistent+0x5a/0x70 [ 89.513297] ? exit_to_user_mode_prepare+0x32/0x110 [ 89.514692] do_syscall_64+0x3f/0x90 [ 89.515516] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 > On Mon, 26 Jun 2023 19:12:55 +0900 > Masami Hiramatsu (Google) <mhiramat@kernel.org> wrote: > >> On Mon, 26 Jun 2023 19:11:14 +0900 >> Masami Hiramatsu (Google) <mhiramat@kernel.org> wrote: >> >>> On Mon, 26 Jun 2023 08:11:44 +0800 >>> Zheng Yejian <zhengyejian1@huawei.com> wrote: >>> >>>> Function instance_set() expects to enable event 'sched_switch', so we >>>> should set 1 to its 'enable' file. >>>> >>>> Testcase passed after this patch: >>>> # ./ftracetest test.d/instances/instance-event.tc >>>> === Ftrace unit tests === >>>> [1] Test creation and deletion of trace instances while setting an event >>>> [PASS] >>>> >>>> # of passed: 1 >>>> # of failed: 0 >>>> # of unresolved: 0 >>>> # of untested: 0 >>>> # of unsupported: 0 >>>> # of xfailed: 0 >>>> # of undefined(test bug): 0 >>>> >>> >>> Good catch! >>> >>> Fixes: 91e6f1ce8657 ("ftracetest: Add instance created, delete, read and enable event test") >>> >>> It seems this tests internally broken but the result is same because this disabled >>> error checking ('set +e'). >> >> And >> >> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> > > Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> > > Thanks for your ack :) -- Zheng Yejian > -- Steve > >> >> Thanks! >> >>> >>> >>>> Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com> >>>> --- >>>> .../testing/selftests/ftrace/test.d/instances/instance-event.tc | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc >>>> index 0eb47fbb3f44..42422e425107 100644 >>>> --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc >>>> +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc >>>> @@ -39,7 +39,7 @@ instance_read() { >>>> >>>> instance_set() { >>>> while :; do >>>> - echo 1 > foo/events/sched/sched_switch >>>> + echo 1 > foo/events/sched/sched_switch/enable >>>> done 2> /dev/null >>>> } >>>> >>>> -- >>>> 2.25.1 >>>> >>> >>> >>> -- >>> Masami Hiramatsu (Google) <mhiramat@kernel.org> >> >> > > # ./ftracetest test.d/instances/instance-event.tc === Ftrace unit tests === [1] Test creation and deletion of trace instances while setting an event[ 89.472397] ================================================================== [ 89.475053] BUG: KASAN: slab-use-after-free in __ftrace_event_enable_disable+0x1b/0x3a0 [ 89.480039] Read of size 8 at addr ffff88814f5b2690 by task ftracetest/392 [ 89.483906] [ 89.484560] CPU: 10 PID: 392 Comm: ftracetest Tainted: G W 6.5.0+ #127 [ 89.487033] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 89.489751] Call Trace: [ 89.490315] <TASK> [ 89.490817] dump_stack_lvl+0x4b/0x80 [ 89.491570] print_report+0xd0/0x620 [ 89.492296] ? __virt_addr_valid+0xf9/0x180 [ 89.493134] ? __ftrace_event_enable_disable+0x1b/0x3a0 [ 89.494151] kasan_report+0xb6/0xf0 [ 89.494881] ? __ftrace_event_enable_disable+0x1b/0x3a0 [ 89.495878] __ftrace_event_enable_disable+0x1b/0x3a0 [ 89.496805] event_enable_write+0x109/0x170 [ 89.497631] ? __pfx_event_enable_write+0x10/0x10 [ 89.498618] ? __pfx_bpf_lsm_file_permission+0x10/0x10 [ 89.499659] ? security_file_permission+0x51/0x2d0 [ 89.500604] vfs_write+0x175/0x670 [ 89.501385] ? __pfx_vfs_write+0x10/0x10 [ 89.502246] ? __pfx__raw_spin_lock+0x10/0x10 [ 89.503187] ? expand_files+0x9b/0x330 [ 89.504011] ? __pfx_expand_files+0x10/0x10 [ 89.504898] ? set_close_on_exec+0x7b/0xe0 [ 89.505782] ? __fget_light+0xae/0x1e0 [ 89.506615] ? _raw_spin_lock+0x85/0xe0 [ 89.507989] ksys_write+0xbd/0x160 [ 89.509302] ? __pfx_ksys_write+0x10/0x10 [ 89.510493] ? dnotify_flush+0x38/0x220 [ 89.511654] ? fpregs_assert_state_consistent+0x5a/0x70 [ 89.513297] ? exit_to_user_mode_prepare+0x32/0x110 [ 89.514692] do_syscall_64+0x3f/0x90 [ 89.515516] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 89.516574] RIP: 0033:0x7f2345c18077 [ 89.517399] Code: 64 89 02 48 c7 c0 ff ff ff ff eb bb 0f 1f 80 00 00 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 [ 89.520853] RSP: 002b:00007ffc322ec108 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 89.522367] RAX: ffffffffffffffda RBX: 0000563f82f3f560 RCX: 00007f2345c18077 [ 89.523717] RDX: 0000000000000002 RSI: 0000563f82f3f560 RDI: 0000000000000001 [ 89.525086] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000563f82f8d9d9 [ 89.526437] R10: 0000563f81225682 R11: 0000000000000246 R12: 0000000000000001 [ 89.527805] R13: 0000000000000002 R14: 7fffffffffffffff R15: 00007ffc322ec2d0 [ 89.529133] </TASK> [ 89.529650] [ 89.530135] Allocated by task 393: [ 89.530992] [ 89.531458] Freed by task 437: [ 89.532558] [ 89.533028] The buggy address belongs to the object at ffff88814f5b2680 [ 89.533028] which belongs to the cache trace_event_file of size 96 [ 89.536893] The buggy address is located 16 bytes inside of [ 89.536893] freed 96-byte region [ffff88814f5b2680, ffff88814f5b26e0) [ 89.540093] [ 89.540565] The buggy address belongs to the physical page: [ 89.541682] [ 89.542186] Memory state around the buggy address: [ 89.543171] ffff88814f5b2580: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 89.544561] ffff88814f5b2600: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 89.545991] >ffff88814f5b2680: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 89.547357] ^ [ 89.548180] ffff88814f5b2700: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 89.549603] ffff88814f5b2780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 89.551022] ================================================================== [ 89.558057] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 89.559509] #PF: supervisor read access in kernel mode [ 89.560537] #PF: error_code(0x0000) - not-present page [ 89.561585] PGD 0 P4D 0 [ 89.562239] Oops: 0000 [#1] PREEMPT SMP KASAN PTI [ 89.563218] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G B W 6.5.0+ #127 [ 89.564694] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 89.566739] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.567804] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.571057] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 89.572112] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffffa5a808f7 [ 89.573464] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.576277] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.577668] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.579093] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.580476] FS: 0000000000000000(0000) GS:ffff8880bb280000(0000) knlGS:0000000000000000 [ 89.582066] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.583190] CR2: 0000000000000008 CR3: 00000000102ee000 CR4: 00000000000006e0 [ 89.584521] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.585820] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.587152] Call Trace: [ 89.587757] <TASK> [ 89.588321] ? __die_body+0x1f/0x70 [ 89.589105] ? page_fault_oops+0x1f5/0x580 [ 89.589976] ? __pfx_page_fault_oops+0x10/0x10 [ 89.590892] ? is_prefetch.isra.0+0x7a/0x260 [ 89.591798] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 89.592755] ? __rcu_read_unlock+0x50/0x260 [ 89.593617] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.594597] ? search_bpf_extables+0xb3/0xd0 [ 89.595480] ? fixup_exception+0x3b/0x4e0 [ 89.596315] ? exc_page_fault+0x59/0xb0 [ 89.597122] ? asm_exc_page_fault+0x26/0x30 [ 89.597991] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.598940] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.599888] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.600838] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.601798] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 89.602799] ? kasan_report+0x48/0xf0 [ 89.603574] ? ring_buffer_unlock_commit+0xfb/0x250 [ 89.604529] ? kasan_report+0x48/0xf0 [ 89.605293] trace_event_buffer_lock_reserve+0x145/0x210 [ 89.606358] trace_event_buffer_reserve+0xe2/0x150 [ 89.607312] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 89.608335] ? sched_clock_cpu+0x67/0x2e0 [ 89.609141] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.610276] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.611407] __traceiter_sched_switch+0x59/0x80 [ 89.612286] __schedule+0x72b/0x1580 [ 89.613026] ? __pfx___schedule+0x10/0x10 [ 89.613842] ? ct_nmi_exit+0xd8/0xf0 [ 89.614584] ? irqentry_exit+0x3b/0x50 [ 89.615351] ? rcu_preempt_deferred_qs+0x22/0x90 [ 89.616241] ? ct_kernel_exit.constprop.0+0xa0/0xc0 [ 89.617147] schedule_idle+0x33/0x50 [ 89.617919] do_idle+0x1f3/0x2f0 [ 89.618621] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 89.619603] ? __pfx_do_idle+0x10/0x10 [ 89.620397] ? swake_up_locked.part.0+0x79/0x90 [ 89.621300] cpu_startup_entry+0x1d/0x20 [ 89.622104] start_secondary+0x1a8/0x1d0 [ 89.622889] ? __pfx_start_secondary+0x10/0x10 [ 89.623754] secondary_startup_64_no_verify+0x178/0x17b [ 89.624725] </TASK> [ 89.625255] Modules linked in: [ 89.625972] CR2: 0000000000000008 [ 89.626684] ---[ end trace 0000000000000000 ]--- [ 89.626685] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 89.627201] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.628002] #PF: supervisor read access in kernel mode [ 89.628577] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.629117] #PF: error_code(0x0000) - not-present page [ 89.631094] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 89.631652] PGD 0 [ 89.632032] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffffa5a808f7 [ 89.632582] P4D 0 [ 89.632808] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.633554] [ 89.633789] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.634533] Oops: 0000 [#2] PREEMPT SMP KASAN PTI [ 89.634707] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.635450] CPU: 7 PID: 0 Comm: swapper/7 Tainted: G B D W 6.5.0+ #127 [ 89.635957] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.636709] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 89.637515] FS: 0000000000000000(0000) GS:ffff8880bb280000(0000) knlGS:0000000000000000 [ 89.638259] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.639466] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.640291] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.640855] CR2: 0000000000000008 CR3: 00000000102ee000 CR4: 00000000000006e0 [ 89.641450] RSP: 0018:ffffc900001e79f8 EFLAGS: 00010082 [ 89.643342] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.644070] [ 89.644620] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.645349] RAX: 0000000000000000 RBX: 1ffff9200003cf48 RCX: ffffffffa5a808f7 [ 89.645522] Kernel panic - not syncing: Attempted to kill the idle task! [ 89.646349] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.646352] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.646355] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.646357] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.646363] FS: 0000000000000000(0000) GS:ffff88823ba80000(0000) knlGS:0000000000000000 [ 89.646366] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.646368] CR2: 0000000000000008 CR3: 0000000144c12000 CR4: 00000000000006e0 [ 89.646371] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.646373] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.646375] Call Trace: [ 89.646376] <TASK> [ 89.646378] ? __die_body+0x1f/0x70 [ 89.646385] ? page_fault_oops+0x1f5/0x580 [ 89.646390] ? __pfx_page_fault_oops+0x10/0x10 [ 89.646394] ? is_prefetch.isra.0+0x7a/0x260 [ 89.646397] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 89.646401] ? __rcu_read_unlock+0x50/0x260 [ 89.646405] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.646409] ? search_bpf_extables+0xb3/0xd0 [ 89.646415] ? fixup_exception+0x3b/0x4e0 [ 89.646421] ? exc_page_fault+0x59/0xb0 [ 89.646427] ? asm_exc_page_fault+0x26/0x30 [ 89.646434] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.646437] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.646442] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.646446] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.646450] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 89.646454] ? kasan_report+0x48/0xf0 [ 89.646461] ? ring_buffer_unlock_commit+0xfb/0x250 [ 89.646465] ? kasan_report+0x48/0xf0 [ 89.646471] trace_event_buffer_lock_reserve+0x145/0x210 [ 89.646476] trace_event_buffer_reserve+0xe2/0x150 [ 89.646482] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 89.646488] ? ct_nmi_exit+0x82/0xf0 [ 89.646492] ? sched_clock_cpu+0x67/0x2e0 [ 89.646497] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.646504] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.646509] __traceiter_sched_switch+0x59/0x80 [ 89.646515] __schedule+0x72b/0x1580 [ 89.646520] ? _raw_spin_unlock_irqrestore+0x16/0x50 [ 89.646527] ? __pfx___schedule+0x10/0x10 [ 89.646531] ? ct_nmi_exit+0xd8/0xf0 [ 89.646535] ? irqentry_exit+0x3b/0x50 [ 89.646541] ? rcu_preempt_deferred_qs+0x22/0x90 [ 89.646545] ? ct_kernel_exit.constprop.0+0xa0/0xc0 [ 89.646550] schedule_idle+0x33/0x50 [ 89.646555] do_idle+0x1f3/0x2f0 [ 89.646559] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 89.646564] ? __pfx_do_idle+0x10/0x10 [ 89.646568] ? swake_up_locked.part.0+0x79/0x90 [ 89.646573] cpu_startup_entry+0x1d/0x20 [ 89.646577] start_secondary+0x1a8/0x1d0 [ 89.646582] ? __pfx_start_secondary+0x10/0x10 [ 89.646587] secondary_startup_64_no_verify+0x178/0x17b [ 89.646595] </TASK> [ 89.646596] Modules linked in: [ 89.646600] CR2: 0000000000000008 [ 89.647328] ---[ end trace 0000000000000000 ]--- [ 89.647329] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 89.647330] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.647332] #PF: supervisor read access in kernel mode [ 89.647335] #PF: error_code(0x0000) - not-present page [ 89.647335] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.647339] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 89.647342] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffffa5a808f7 [ 89.647345] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.647346] PGD 0 [ 89.647347] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.647348] P4D 0 [ 89.647350] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.647351] Oops: 0000 [#3] PREEMPT SMP KASAN PTI [ 89.647353] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.647355] CPU: 9 PID: 0 Comm: swapper/9 Tainted: G B D W 6.5.0+ #127 [ 89.647359] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 89.647359] FS: 0000000000000000(0000) GS:ffff88823ba80000(0000) knlGS:0000000000000000 [ 89.647362] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.647361] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.647365] CR2: 0000000000000008 CR3: 0000000144c12000 CR4: 00000000000006e0 [ 89.647366] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.647368] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.647370] RSP: 0018:ffffc90000a0f9f8 EFLAGS: 00010082 [ 89.647370] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.647372] [ 89.647374] RAX: 0000000000000000 RBX: 1ffff92000141f48 RCX: ffffffffa5a808f7 [ 89.647376] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.647377] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.647379] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.647381] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.647386] FS: 0000000000000000(0000) GS:ffff88823bb80000(0000) knlGS:0000000000000000 [ 89.647389] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.647391] CR2: 0000000000000008 CR3: 0000000235a64000 CR4: 00000000000006e0 [ 89.647392] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.647394] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.647395] Call Trace: [ 89.647397] <TASK> [ 89.647399] ? __die_body+0x1f/0x70 [ 89.647403] ? page_fault_oops+0x1f5/0x580 [ 89.647407] ? __pfx_page_fault_oops+0x10/0x10 [ 89.647410] ? is_prefetch.isra.0+0x7a/0x260 [ 89.647413] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 89.647416] ? __rcu_read_unlock+0x50/0x260 [ 89.647419] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.647422] ? search_bpf_extables+0xb3/0xd0 [ 89.647426] ? fixup_exception+0x3b/0x4e0 [ 89.647431] ? exc_page_fault+0x59/0xb0 [ 89.647435] ? asm_exc_page_fault+0x26/0x30 [ 89.647440] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.647442] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.647446] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.647449] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.647452] ? ring_buffer_lock_reserve+0x25e/0x790 [ 89.647455] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 89.647458] ? kasan_report+0x48/0xf0 [ 89.647463] ? kasan_report+0x48/0xf0 [ 89.647468] trace_event_buffer_lock_reserve+0x145/0x210 [ 89.647473] trace_event_buffer_reserve+0xe2/0x150 [ 89.647477] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 89.647482] ? ct_nmi_exit+0x82/0xf0 [ 89.647484] ? sched_clock_cpu+0x67/0x2e0 [ 89.647488] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.647494] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.647498] __traceiter_sched_switch+0x59/0x80 [ 89.647502] __schedule+0x72b/0x1580 [ 89.647506] ? _raw_spin_unlock_irqrestore+0x16/0x50 [ 89.647511] ? __pfx___schedule+0x10/0x10 [ 89.647515] ? __pfx_hrtimer_start_range_ns+0x10/0x10 [ 89.647519] ? ct_nmi_exit+0xd8/0xf0 [ 89.647522] ? irqentry_exit+0x3b/0x50 [ 89.647527] ? account_idle_time+0x77/0x90 [ 89.647531] schedule_idle+0x33/0x50 [ 89.647535] do_idle+0x1f3/0x2f0 [ 89.647538] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 89.647542] ? __pfx_do_idle+0x10/0x10 [ 89.647545] ? swake_up_locked.part.0+0x79/0x90 [ 89.647549] cpu_startup_entry+0x1d/0x20 [ 89.647552] start_secondary+0x1a8/0x1d0 [ 89.647556] ? __pfx_start_secondary+0x10/0x10 [ 89.647560] secondary_startup_64_no_verify+0x178/0x17b [ 89.647566] </TASK> [ 89.647567] Modules linked in: [ 89.647569] CR2: 0000000000000008 [ 89.648173] ---[ end trace 0000000000000000 ]--- [ 89.648173] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 89.648174] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.648178] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.648178] #PF: supervisor read access in kernel mode [ 89.648181] #PF: error_code(0x0000) - not-present page [ 89.648181] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 89.648184] PGD 0 [ 89.648185] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffffa5a808f7 [ 89.648186] P4D 0 [ 89.648187] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.648189] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.648189] Oops: 0000 [#4] PREEMPT SMP KASAN PTI [ 89.648191] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.648194] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.648194] CPU: 5 PID: 0 Comm: swapper/5 Tainted: G B D W 6.5.0+ #127 [ 89.648198] FS: 0000000000000000(0000) GS:ffff88823bb80000(0000) knlGS:0000000000000000 [ 89.648199] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 89.648201] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.648203] CR2: 0000000000000008 CR3: 0000000235a64000 CR4: 00000000000006e0 [ 89.648201] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.648205] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.648207] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.648208] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.648212] RSP: 0018:ffffc900001c79f8 EFLAGS: 00010082 [ 89.648216] RAX: 0000000000000000 RBX: 1ffff92000038f48 RCX: ffffffffa5a808f7 [ 89.648219] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.648221] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffff52000038f80 [ 89.648223] R10: fffff52000038f7f R11: 0000000000000003 R12: 0000000000000000 [ 89.648226] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.648231] FS: 0000000000000000(0000) GS:ffff8880bb480000(0000) knlGS:0000000000000000 [ 89.648234] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.648237] CR2: 0000000000000008 CR3: 0000000235a64000 CR4: 00000000000006e0 [ 89.648239] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.648241] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.648244] Call Trace: [ 89.648246] <TASK> [ 89.648248] ? __die_body+0x1f/0x70 [ 89.648253] ? page_fault_oops+0x1f5/0x580 [ 89.648258] ? __pfx_page_fault_oops+0x10/0x10 [ 89.648262] ? is_prefetch.isra.0+0x7a/0x260 [ 89.648266] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 89.648269] ? __rcu_read_unlock+0x50/0x260 [ 89.648273] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.648277] ? search_bpf_extables+0xb3/0xd0 [ 89.648283] ? fixup_exception+0x3b/0x4e0 [ 89.648289] ? exc_page_fault+0x59/0xb0 [ 89.648294] ? asm_exc_page_fault+0x26/0x30 [ 89.648300] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.648304] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.648308] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.648312] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.648316] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 89.648321] ? kasan_report+0x48/0xf0 [ 89.648327] ? ring_buffer_unlock_commit+0xfb/0x250 [ 89.648330] ? kasan_report+0x48/0xf0 [ 89.648336] trace_event_buffer_lock_reserve+0x145/0x210 [ 89.648342] trace_event_buffer_reserve+0xe2/0x150 [ 89.648347] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 89.648352] ? strncpy+0x33/0x60 [ 89.648358] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.648363] ? __pfx_trace_save_cmdline+0x10/0x10 [ 89.648371] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.648375] __traceiter_sched_switch+0x59/0x80 [ 89.648381] __schedule+0x72b/0x1580 [ 89.648386] ? _raw_spin_unlock_irqrestore+0x16/0x50 [ 89.648392] ? __pfx___schedule+0x10/0x10 [ 89.648397] ? ct_nmi_exit+0xd8/0xf0 [ 89.648401] ? irqentry_exit+0x3b/0x50 [ 89.648407] ? nr_iowait_cpu+0x46/0x60 [ 89.648412] ? tick_nohz_stop_idle+0x86/0xc0 [ 89.648417] schedule_idle+0x33/0x50 [ 89.648422] do_idle+0x1f3/0x2f0 [ 89.648426] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 89.648431] ? __pfx_do_idle+0x10/0x10 [ 89.648435] ? swake_up_locked.part.0+0x79/0x90 [ 89.648441] cpu_startup_entry+0x1d/0x20 [ 89.648445] start_secondary+0x1a8/0x1d0 [ 89.648450] ? __pfx_start_secondary+0x10/0x10 [ 89.648455] secondary_startup_64_no_verify+0x178/0x17b [ 89.648463] </TASK> [ 89.648464] Modules linked in: [ 89.648466] CR2: 0000000000000008 [ 89.649210] ---[ end trace 0000000000000000 ]--- [ 89.649211] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 89.649212] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.649215] #PF: supervisor read access in kernel mode [ 89.649217] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.649218] #PF: error_code(0x0000) - not-present page [ 89.649221] PGD 0 [ 89.649220] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 89.649222] P4D 0 [ 89.649223] [ 89.649224] [ 89.649225] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffffa5a808f7 [ 89.649226] Oops: 0000 [#5] PREEMPT SMP KASAN PTI [ 89.649228] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.649230] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.649231] CPU: 11 PID: 169 Comm: systemd-journal Tainted: G B D W 6.5.0+ #127 [ 89.649232] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.649235] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.649236] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 89.649241] FS: 0000000000000000(0000) GS:ffff8880bb480000(0000) knlGS:0000000000000000 [ 89.649239] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.649244] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.649245] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.649247] CR2: 0000000000000008 CR3: 0000000235a64000 CR4: 00000000000006e0 [ 89.649250] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.649249] RSP: 0018:ffffc90001d2f7e8 EFLAGS: 00010086 [ 89.649252] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.649253] [ 89.649254] RAX: 0000000000000000 RBX: 1ffff920003a5f06 RCX: ffffffffa5a808f7 [ 89.649258] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.649260] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.649263] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.649265] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.649272] FS: 00007f70b7c81980(0000) GS:ffff88823bc80000(0000) knlGS:0000000000000000 [ 89.649275] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.649278] CR2: 0000000000000008 CR3: 000000014bf78000 CR4: 00000000000006e0 [ 89.649280] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.649282] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.649285] Call Trace: [ 89.649286] <TASK> [ 89.649288] ? __die_body+0x1f/0x70 [ 89.649294] ? page_fault_oops+0x1f5/0x580 [ 89.649299] ? __pfx_page_fault_oops+0x10/0x10 [ 89.649302] ? is_prefetch.isra.0+0x7a/0x260 [ 89.649306] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 89.649310] ? __rcu_read_unlock+0x50/0x260 [ 89.649314] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.649318] ? search_bpf_extables+0xb3/0xd0 [ 89.649324] ? fixup_exception+0x3b/0x4e0 [ 89.649329] ? exc_page_fault+0x59/0xb0 [ 89.649335] ? asm_exc_page_fault+0x26/0x30 [ 89.649341] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.649345] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.649349] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.649353] ? ring_buffer_lock_reserve+0x97/0x790 [ 89.649357] ? __pfx_sched_clock_cpu+0x10/0x10 [ 89.649362] ? do_syscall_64+0x3f/0x90 [ 89.649366] ? record_times+0x8b/0xd0 [ 89.649370] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 89.649374] ? kasan_report+0x48/0xf0 [ 89.649379] ? __pfx_load_balance+0x10/0x10 [ 89.649385] ? kasan_report+0x48/0xf0 [ 89.649389] ? sched_clock+0x10/0x30 [ 89.649395] ? sched_clock_cpu+0x67/0x2e0 [ 89.649400] trace_event_buffer_lock_reserve+0x145/0x210 [ 89.649406] trace_event_buffer_reserve+0xe2/0x150 [ 89.649412] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 89.649418] ? sched_clock_cpu+0x67/0x2e0 [ 89.649422] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.649429] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 89.649434] __traceiter_sched_switch+0x59/0x80 [ 89.649440] __schedule+0x72b/0x1580 [ 89.649446] ? __pfx___schedule+0x10/0x10 [ 89.649452] ? stack_trace_save+0x95/0xd0 [ 89.649459] ? futex_wait_setup+0xbe/0x150 [ 89.649465] ? plist_add+0x14c/0x180 [ 89.649472] schedule+0x92/0x120 [ 89.649477] futex_wait_queue+0x87/0xc0 [ 89.649482] futex_wait+0x219/0x3a0 [ 89.649488] ? do_syscall_64+0x3f/0x90 [ 89.649492] ? __pfx_futex_wait+0x10/0x10 [ 89.649499] ? __virt_addr_valid+0xf9/0x180 [ 89.649507] ? trace_hardirqs_on+0x27/0xc0 [ 89.649513] do_futex+0x198/0x230 [ 89.649518] ? __pfx_do_futex+0x10/0x10 [ 89.649524] __x64_sys_futex+0x106/0x290 [ 89.649530] ? __pfx___x64_sys_futex+0x10/0x10 [ 89.649535] ? do_sys_open+0x8e/0xf0 [ 89.649542] do_syscall_64+0x3f/0x90 [ 89.649546] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 89.649552] RIP: 0033:0x7f70b8490cd7 [ 89.649555] Code: 52 fe ff ff 0f 1f 80 00 00 00 00 bb ca 00 00 00 eb 20 90 e8 7b 93 00 00 45 31 d2 44 89 e2 31 f6 41 89 c0 4c 89 ef 89 d8 0f 05 <44> 89 c7 e8 c1 93 00 00 45 8b 65 00 45 85 e4 75 d8 eb b6 66 0f 1f [ 89.649559] RSP: 002b:00007fffce6df9c0 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 89.649564] RAX: ffffffffffffffda RBX: 00000000000000ca RCX: 00007f70b8490cd7 [ 89.649566] RDX: 00000000000001bb RSI: 0000000000000000 RDI: 00007f70b7c809d0 [ 89.649568] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007fffce6dfba8 [ 89.649570] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000001bb [ 89.649572] R13: 00007f70b7c809d0 R14: 000055e4be93fc90 R15: 00007f70b7c80700 [ 89.649578] </TASK> [ 89.649579] Modules linked in: [ 89.649581] CR2: 0000000000000008 [ 89.650344] ---[ end trace 0000000000000000 ]--- [ 89.650346] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 89.650351] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 5b 5a 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 b1 1d 23 00 48 89 ef e8 59 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 00 65 8b 2d 00 86 5b 5a 41 [ 89.650354] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 89.650357] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffffa5a808f7 [ 89.650360] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 89.650361] RBP: 0000000000000008 R08: ffffffffa5a808f7 R09: fffffbfff50e2e1b [ 89.650364] R10: fffffbfff50e2e1a R11: ffffffffa87170d7 R12: 0000000000000000 [ 89.650366] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 89.650371] FS: 00007f70b7c81980(0000) GS:ffff88823bc80000(0000) knlGS:0000000000000000 [ 89.650374] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.650377] CR2: 0000000000000008 CR3: 000000014bf78000 CR4: 00000000000006e0 [ 89.650379] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 89.650381] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 89.650384] note: systemd-journal[169] exited with irqs disabled [ 90.684878] Shutting down cpus with NMI [ 91.022097] Kernel Offset: 0x24800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 91.023759] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---
diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc index 0eb47fbb3f44..42422e425107 100644 --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc @@ -39,7 +39,7 @@ instance_read() { instance_set() { while :; do - echo 1 > foo/events/sched/sched_switch + echo 1 > foo/events/sched/sched_switch/enable done 2> /dev/null }