Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp473767rwd; Wed, 24 May 2023 22:25:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6MLnU56wPWi4b+eBpUorgOKultEh5o6cmKUNlFD2k4RQJC5etbiG4rTSl4jtS8nIqdQk5b X-Received: by 2002:a05:6a21:7886:b0:10b:b6cf:bbb0 with SMTP id bf6-20020a056a21788600b0010bb6cfbbb0mr14949192pzc.42.1684992321949; Wed, 24 May 2023 22:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684992321; cv=none; d=google.com; s=arc-20160816; b=gu/w41rzozylBD9HwXzQp2xygONvJENm55YzvOaA8ms4owRNntniG7t87u6xqJWTpn hnWFH2PzE8XULRpsbhE314H58GHbjBkAhnuzHynR6tEwWAwrWWG2FM70jYbWVN8xLMZ5 YsV5AeWWkfaOyw8t2Zq6qy9lVmsmSXn2sMlQzONfd3CbiJFu/kD0fKXPHlmMTRmEXFrT x4pbTmmR2/ahchurLhAGE7f+fOQP1gnWIhwX0WTWv4dZ4GskYPMtJ/yTGT6D6ayn138R efi62ORfNbWXYad/DzBMQXsJYOQeMi25ERao4bBkDqhTfcs+P4GZUzrtuUTCVAfepP59 XHIg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ZxY9z+vsJzP60ZepVFR0wpTAwxFnFVaBU3RLWA1+pbo=; b=gzlns8a/W1OCmgL71Jj2u0DaaHGiyNx9IGKgpvEyZX+Pj4FYXiuRuEa8kxZfaKpH7G xsvjClAyYax/OQG32+0URRYBof7lAbTjKHBJLkeRBifmjykrxjVEqfq5/pNxLnKSBTQF Ag35d8JhLEYq6sLcA9gS0Pl6p7hq/Z+OZZB1NWchBx+Y6EZfVwpM7fjRQ6OSRZrNWeF9 AoBHRNq2oCiLNKdjYN9OMXcVImYrbP9mn0EQ9Io2NuglC2Ok26I6R3gzZZn4Iu/4r9B3 gJPEwfgvNhRjDCwHZGXRJ4dtqzCEUmAEeVJmRsnw2EZRMrKif5W9Zte/utfelGMQemiJ m9mw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i69-20020a638748000000b005342966f497si277524pge.712.2023.05.24.22.25.08; Wed, 24 May 2023 22:25:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237221AbjEYEsC (ORCPT + 99 others); Thu, 25 May 2023 00:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235377AbjEYEr7 (ORCPT ); Thu, 25 May 2023 00:47:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D80F83; Wed, 24 May 2023 21:47:57 -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 ED8F6641A6; Thu, 25 May 2023 04:47:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E56EC433EF; Thu, 25 May 2023 04:47:52 +0000 (UTC) Date: Thu, 25 May 2023 00:47:47 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Christian Brauner , Naresh Kamboju , open list , linux-stable , LTP List , lkft-triage@lists.linaro.org, Stephen Rothwell , Al Viro , linux-fsdevel@vger.kernel.org, Arnd Bergmann , Dan Carpenter , Anders Roxell , Linux Trace Kernel Subject: Re: LTP: tracing: RIP: 0010:security_inode_permission+0x5/0x70 Message-ID: <20230525004747.26ab2b27@rorschach.local.home> In-Reply-To: <20230525082148.af95df069c337fa570f24331@kernel.org> References: <20230524-windhund-karikatur-354025f2ef1c@brauner> <20230525082148.af95df069c337fa570f24331@kernel.org> 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 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 May 2023 08:21:48 +0800 Masami Hiramatsu (Google) wrote: > On Wed, 24 May 2023 12:39:40 +0200 > Christian Brauner wrote: > > > On Wed, May 24, 2023 at 02:32:25PM +0530, Naresh Kamboju wrote: > > > While running LTP tracing tests on qemu-x86_64 following kernel crash noticed > > > with stable-rc 6.3.4-rc2. > > > > > > Reported-by: Linux Kernel Functional Testing > > > > > > FAILED COMMAND File: > > > /lava-1/0/tests/0_ltp-tracing/automated/linux/ltp/output/LTP_tracing.failed > > > TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-LTP_tracing.log.tconf > > > Running tests....... > > > > No idea and seems very odd. Only thing I see is that there's ftrace > > regression testing running while the crash happens. > > It sounds like there is a timing issue on int3 self-modifying code @ alternative.c > ftrace@x86 uses it for arming/disarming mcount(fentry) call. > I would like to know what is the actual command to run it. The above files are > local file, and no actual commands recorded in the full log. > > Thank you, > > > > > > > > > <4>[ 57.932577] int3: 0000 [#1] PREEMPT SMP PTI Was there other text before the above? I believe there should have been more about what caused this bug. > > > <4>[ 57.933090] CPU: 0 PID: 138 Comm: systemd-udevd Not tainted 6.3.4-rc2 #1 > > > <4>[ 57.933243] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), > > > BIOS 1.14.0-2 04/01/2014 > > > <4>[ 57.933447] RIP: 0010:security_inode_permission+0x5/0x70 The +0x5 above is jumping to after the nop for fentry. > > > <4>[ 57.934163] Code: c0 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 > > > 00 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 > > > 0f 1f 00 e8 8d 64 18 f6 47 0d 02 75 50 55 48 89 e5 41 55 41 89 f5 Five bytes before the is 66 0f 1f 00 e8, which is e8 00 1f 0f 66, which should be a call to fentry. Why this failed, we need more information though (like perhaps there was more lines at the start before what is posted here). -- Steve > > > 41 54 49 > > > <4>[ 57.934257] RSP: 0018:ffffa300c050bca0 EFLAGS: 00000246 > > > <4>[ 57.934363] RAX: 00000000000041ed RBX: ffff9bda012805c0 RCX: > > > 0000000000000000 > > > <4>[ 57.934390] RDX: ffff9bda01f6df00 RSI: 0000000000000081 RDI: > > > ffff9bda012805c0 > > > <4>[ 57.934415] RBP: ffffa300c050bcd0 R08: ffffa300c050bd80 R09: > > > 00000000ffffff9c > > > <4>[ 57.934440] R10: 0000000000000fe0 R11: ffc9d09b99d09993 R12: > > > 0000000000000081 > > > <4>[ 57.934465] R13: 0000000000000000 R14: ffffffffa958f970 R15: > > > 2f2f2f2f2f2f2f2f > > > <4>[ 57.934544] FS: 00007fb89665f800(0000) > > > GS:ffff9bda7bc00000(0000) knlGS:0000000000000000 > > > <4>[ 57.934578] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > > <4>[ 57.934604] CR2: 00007f60c9b0e000 CR3: 0000000104402000 CR4: > > > 00000000000006f0 > > > <4>[ 57.934793] Call Trace: > > > <4>[ 57.934958] > > > <4>[ 57.935082] ? inode_permission+0x70/0x1a0 > > > <4>[ 57.935235] link_path_walk.part.0.constprop.0+0xdd/0x3b0 > > > <4>[ 57.935360] path_lookupat+0x3e/0x190 > > > <4>[ 57.935426] filename_lookup+0xe8/0x1f0 > > > <4>[ 57.935638] user_path_at_empty+0x42/0x60 > > > <4>[ 57.935692] do_fchmodat+0x5f/0xc0 > > > <4>[ 57.935809] __x64_sys_chmod+0x1f/0x30 > > > <4>[ 57.935845] do_syscall_64+0x3e/0x90 > > > <4>[ 57.935886] entry_SYSCALL_64_after_hwframe+0x72/0xdc > > > <4>[ 57.935996] RIP: 0033:0x7fb8964fbd6b > > > <4>[ 57.936393] Code: ff ff ff ff eb e6 66 0f 1f 84 00 00 00 00 00 > > > f3 0f 1e fa b8 5f 00 00 00 0f 05 c3 0f 1f 40 00 f3 0f 1e fa b8 5a 00 > > > 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 85 40 0f 00 f7 d8 64 > > > 89 01 48 > > > <4>[ 57.936422] RSP: 002b:00007ffcf4c2aa38 EFLAGS: 00000202 > > > ORIG_RAX: 000000000000005a > > > <4>[ 57.936471] RAX: ffffffffffffffda RBX: 0000000000000190 RCX: > > > 00007fb8964fbd6b > > > <4>[ 57.936490] RDX: 00007ffcf4c2aa4f RSI: 0000000000000190 RDI: > > > 00007ffcf4c2aa40 > > > <4>[ 57.936504] RBP: 0000000000000190 R08: 0000000000000000 R09: > > > 00007ffcf4c2a8e0 > > > <4>[ 57.936528] R10: 0000000000000000 R11: 0000000000000202 R12: > > > 00007ffcf4c2aa40 > > > <4>[ 57.936542] R13: 0000000000000005 R14: 0000000000000000 R15: > > > 0000000000000001 > > > <4>[ 57.936754] > > > <4>[ 57.936853] Modules linked in: > > > <4>[ 57.962890] ---[ end trace 0000000000000000 ]--- > > > <4>[ 57.963006] RIP: 0010:security_inode_permission+0x5/0x70 > > > <4>[ 57.963080] Code: c0 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 > > > 00 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 > > > 0f 1f 00 e8 8d 64 18 f6 47 0d 02 75 50 55 48 89 e5 41 55 41 89 f5 > > > 41 54 49 > > > <4>[ 57.963105] RSP: 0018:ffffa300c050bca0 EFLAGS: 00000246 > > > <4>[ 57.963145] RAX: 00000000000041ed RBX: ffff9bda012805c0 RCX: > > > 0000000000000000 > > > <4>[ 57.963163] RDX: ffff9bda01f6df00 RSI: 0000000000000081 RDI: > > > ffff9bda012805c0 > > > <4>[ 57.963180] RBP: ffffa300c050bcd0 R08: ffffa300c050bd80 R09: > > > 00000000ffffff9c > > > <4>[ 57.963195] R10: 0000000000000fe0 R11: ffc9d09b99d09993 R12: > > > 0000000000000081 > > > <4>[ 57.963209] R13: 0000000000000000 R14: ffffffffa958f970 R15: > > > 2f2f2f2f2f2f2f2f > > > <4>[ 57.963226] FS: 00007fb89665f800(0000) > > > GS:ffff9bda7bc00000(0000) knlGS:0000000000000000 > > > <4>[ 57.963246] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > > <4>[ 57.963261] CR2: 00007f60c9b0e000 CR3: 0000000104402000 CR4: > > > 00000000000006f0 > > > <0>[ 57.963444] Kernel panic - not syncing: Fatal exception in interrupt > > > <0>[ 57.964629] Kernel Offset: 0x26600000 from 0xffffffff81000000 > > > (relocation range: 0xffffffff80000000-0xffffffffbfffffff) > > > > > > > > > links, > > > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.3.y/build/v6.3.3-364-ga37c304c022d/testrun/17168198/suite/log-parser-test/tests/ > > > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.3.y/build/v6.3.3-364-ga37c304c022d/testrun/17168198/suite/log-parser-test/test/check-kernel-panic/log > > > - https://storage.tuxsuite.com/public/linaro/lkft/builds/2QCeudZ18KF3RXw3A5qfr5lPC2N/ > > > - https://storage.tuxsuite.com/public/linaro/lkft/builds/2QCeudZ18KF3RXw3A5qfr5lPC2N/config > > > > > > -- > > > Linaro LKFT > > > https://lkft.linaro.org > >