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 C47EDC4332F for ; Thu, 9 Nov 2023 20:47:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345221AbjKIUrz (ORCPT ); Thu, 9 Nov 2023 15:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345212AbjKIUru (ORCPT ); Thu, 9 Nov 2023 15:47:50 -0500 Received: from snail.cherry.relay.mailchannels.net (snail.cherry.relay.mailchannels.net [23.83.223.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE6544A4 for ; Thu, 9 Nov 2023 12:47:48 -0800 (PST) X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D0F7C82BA7 for ; Thu, 9 Nov 2023 20:42:16 +0000 (UTC) Received: from pdx1-sub0-mail-a263.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 84AAF82419 for ; Thu, 9 Nov 2023 20:42:16 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1699562536; a=rsa-sha256; cv=none; b=auswKw8dVK/jCdGg02/Rcln6MrpkEddTzJK0pNm/qJ2XhCkNlyZAMqfF4Qc6qyYJvrbmNK oOKi7MolQvuvDcwuv6xqT0y+j85WhOYy5VYBSqrkMWTUYw54NaR47eo9IRf10c9cReOorO AADr2pELJq6cU159o02xwTYYz/xBQ5fDTv5S3yXDGjxzWgRk2e36evJKK8pcItgQgrA6bU VatUgj5gazC+1OMqsPZjtXmyiftpkjJNFFrpmY1Wgt+nB0v/DH98IR3OBtEVKMEZdpuuEo JUvJguzFjP13Z+AGRGrx88Bs0YwH6YxLlwPjfDLdbHAks/nyb/DAfSLb3DZlqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1699562536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=J8TgSKzVzW+2WUx6Pek4Go1CxyUWJVIsDKQsrukMIJs=; b=5X/b1E0oR3XHm4+dblGhS3IUfcL+5gjxh7LYP/z7g7FGB+zB/4ADZ0/ZOBuDXC8Yum7oKf JU9YkEW4xSeK9QLGU+uhzDta1YyxBvEGI8nbP70TkBwRzmVA+NEmzIA1DBPxeHQcCXAUqO 7G8eAIqfGtKFarFJ7DoOq4v8Rbi0rtdNL3IEgVoiSRdOtcfAallNKXCX9zAwPqjgyb3c+S K4lBcLft9xeqF6b0FO26IbkdFsqbVw5724YU/lKHKQN9D3TSx+WhKow55qTbUcX5bcHRJ1 U19bwBHJvUMP7/8sgUpL7l+s2NUqlhx/Zjqg7hHK69fQnSZ9T4nU+D7S6emmuA== ARC-Authentication-Results: i=1; rspamd-6f98f74948-7mt7d; auth=pass smtp.auth=dreamhost smtp.mailfrom=kjlx@templeofstupid.com X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|kjlx@templeofstupid.com X-MailChannels-Auth-Id: dreamhost X-Scare-Shelf: 1d2ff2825fc8b656_1699562536676_1768340824 X-MC-Loop-Signature: 1699562536676:552910827 X-MC-Ingress-Time: 1699562536676 Received: from pdx1-sub0-mail-a263.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.112.106.240 (trex/6.9.2); Thu, 09 Nov 2023 20:42:16 +0000 Received: from kmjvbox.templeofstupid.com (c-73-231-176-24.hsd1.ca.comcast.net [73.231.176.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kjlx@templeofstupid.com) by pdx1-sub0-mail-a263.dreamhost.com (Postfix) with ESMTPSA id 4SRDQv6wd4zj2 for ; Thu, 9 Nov 2023 12:42:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=templeofstupid.com; s=dreamhost; t=1699562536; bh=J8TgSKzVzW+2WUx6Pek4Go1CxyUWJVIsDKQsrukMIJs=; h=Date:From:To:Cc:Subject:Content-Type; b=JPnFqUnvsQeyLmYwG6HfPSbbu2a3Qf7YWOiAsDIX9oaAXK2t0TKH6RCQKeSDYvKcu 0UBPD1uAsSUMWzrVCPjZfjyWZkP0EON//sgwrz6xosgz9YZNK266udEwNmDW/uTZQo IIn2zQ3mwZindzPSIo3TWXN4aw5aDzL/u4emtUaWjo9Lz6HLmI9EEZMBM1qB6IOR1+ GzFOUeJimK8+tBg+iy2Zl1YGd2A3P/TmwoCLAnJkB8Nd1KOyVccpUBMwJ0hvx0yahS K5qKXqMe5WabCqC7GNz6gwVqTxN8TbV6JcYRkasmL2mMRSQtlJKsYS7R8lWXJAgZl4 azjUa73WbnRBQ== Received: from johansen (uid 1000) (envelope-from kjlx@templeofstupid.com) id e0044 by kmjvbox.templeofstupid.com (DragonFly Mail Agent v0.12); Thu, 09 Nov 2023 12:41:54 -0800 Date: Thu, 9 Nov 2023 12:41:54 -0800 From: Krister Johansen To: Naresh Kamboju Cc: linux-fsdevel@vger.kernel.org, open list , lkft-triage@lists.linaro.org, "open list:KERNEL SELFTEST FRAMEWORK" , regressions@lists.linux.dev, Miklos Szeredi , Krister Johansen , Dan Carpenter Subject: Re: selftests: memfd: run_fuse_test.sh - fuse_evict_inode - fs/fuse/inode.c:162 - panic Message-ID: <20231109204154.GB2073@templeofstupid.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Thu, Nov 09, 2023 at 06:34:24PM +0530, Naresh Kamboju wrote: > Following kernel panic noticed while running selftests: memfd: run_fuse_test.sh > on arm64 Juno-r2 and x86 devices running Linux next-20231109. > > Reported-by: Linux Kernel Functional Testing > > log: > --- > # timeout set to 45 > # selftests: memfd: run_fuse_test.sh > # opening: ./mnt/memfd > # fuse: DONE > [ 1931.860330] Unable to handle kernel paging request at virtual > address 005a5a5a5a5a5a5a > [ 1931.868645] Mem abort info: > [ 1931.871505] ESR = 0x0000000096000021 > [ 1931.875311] EC = 0x25: DABT (current EL), IL = 32 bits > [ 1931.880805] SET = 0, FnV = 0 > [ 1931.883924] EA = 0, S1PTW = 0 > [ 1931.887563] FSC = 0x21: alignment fault > [ 1931.891618] Data abort info: > [ 1931.894542] ISV = 0, ISS = 0x00000021, ISS2 = 0x00000000 > [ 1931.900219] CM = 0, WnR = 0, TnD = 0, TagAccess = 0 > [ 1931.905305] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 > [ 1931.910692] [005a5a5a5a5a5a5a] address between user and kernel address ranges > [ 1931.918091] Internal error: Oops: 0000000096000021 [#1] PREEMPT SMP > [ 1931.924375] Modules linked in: gpio_sim onboard_usb_hub tda998x > hdlcd crct10dif_ce cec drm_dma_helper dm_mod [last unloaded: > gpio_mockup] > [ 1931.936789] CPU: 1 PID: 20739 Comm: fusermount Not tainted > 6.6.0-next-20231109 #1 > [ 1931.944295] Hardware name: ARM Juno development board (r2) (DT) > [ 1931.950224] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [ 1931.957205] pc : fuse_evict_inode > (arch/arm64/include/asm/atomic_ll_sc.h:96 (discriminator 3) > arch/arm64/include/asm/atomic.h:51 (discriminator 3) > include/linux/atomic/atomic-arch-fallback.h:944 (discriminator 3) > include/linux/atomic/atomic-instrumented.h:401 (discriminator 3) > include/linux/refcount.h:272 (discriminator 3) > include/linux/refcount.h:315 (discriminator 3) > include/linux/refcount.h:333 (discriminator 3) fs/fuse/inode.c:137 > (discriminator 3) fs/fuse/inode.c:166 (discriminator 3)) > [ 1931.961586] lr : fuse_evict_inode (fs/fuse/inode.c:162) > [ 1931.965868] sp : ffff80008792ba90 > [ 1931.969189] x29: ffff80008792ba90 x28: ffff000800b58040 x27: 0000000000000000 > [ 1931.976358] x26: 0000000000000000 x25: ffff800080508f98 x24: ffff80008316a008 > [ 1931.983519] x23: ffff80008316a008 x22: ffff80008424a020 x21: ffff00082a514c00 > [ 1931.990679] x20: 5a5a5a5a5a5a5a5a x19: ffff000838828780 x18: 0000000000000000 > [ 1931.997840] x17: ffff80008050e610 x16: ffff80008050e5bc x15: ffff80008050e3e8 > [ 1932.005003] x14: ffff80008050df10 x13: ffff800080769c60 x12: ffff8000851f6388 > [ 1932.012165] x11: 0000000000000645 x10: 0000000000000645 x9 : ffff800081c0e0b4 > [ 1932.019332] x8 : ffff80008792b988 x7 : 0000000000000000 x6 : ffff800084a75fe8 > [ 1932.026495] x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008424a968 > [ 1932.033659] x2 : 0000000000000002 x1 : ffff000800b58040 x0 : 0000000000000001 > [ 1932.040820] Call trace: > [ 1932.043272] fuse_evict_inode > (arch/arm64/include/asm/atomic_ll_sc.h:96 (discriminator 3) > arch/arm64/include/asm/atomic.h:51 (discriminator 3) > include/linux/atomic/atomic-arch-fallback.h:944 (discriminator 3) > include/linux/atomic/atomic-instrumented.h:401 (discriminator 3) > include/linux/refcount.h:272 (discriminator 3) > include/linux/refcount.h:315 (discriminator 3) > include/linux/refcount.h:333 (discriminator 3) fs/fuse/inode.c:137 > (discriminator 3) fs/fuse/inode.c:166 (discriminator 3)) > [ 1932.047296] evict (fs/inode.c:669) > [ 1932.050279] iput_final (fs/inode.c:1776) > [ 1932.053694] iput.part.0 (fs/inode.c:1803) > [ 1932.057280] iput (fs/inode.c:1803) > [ 1932.060085] dentry_unlink_inode (fs/dcache.c:402) > [ 1932.064281] __dentry_kill (arch/arm64/include/asm/current.h:19 > arch/arm64/include/asm/preempt.h:47 fs/dcache.c:610) > [ 1932.067956] shrink_dentry_list (include/linux/list.h:373 > (discriminator 2) fs/dcache.c:1179 (discriminator 2)) > [ 1932.072067] shrink_dcache_parent (fs/dcache.c:1652) > [ 1932.076433] shrink_dcache_for_umount (fs/dcache.c:1682 fs/dcache.c:1698) > [ 1932.081062] generic_shutdown_super (fs/super.c:647) > [ 1932.085518] kill_anon_super (fs/super.c:1254) > [ 1932.089277] fuse_kill_sb_anon (fs/fuse/fuse_i.h:895 fs/fuse/inode.c:1912) > [ 1932.093298] deactivate_locked_super (fs/super.c:489) > [ 1932.097753] deactivate_super (fs/super.c:522) > [ 1932.101599] cleanup_mnt (fs/namespace.c:139 fs/namespace.c:1257) > [ 1932.105097] __cleanup_mnt (fs/namespace.c:1264) > [ 1932.108680] task_work_run (kernel/task_work.c:182) > [ 1932.112266] do_notify_resume (include/linux/resume_user_mode.h:49 > arch/arm64/kernel/signal.c:1305) > [ 1932.116283] el0_svc (arch/arm64/kernel/entry-common.c:137 > arch/arm64/kernel/entry-common.c:144 > arch/arm64/kernel/entry-common.c:679) > [ 1932.119345] el0t_64_sync_handler (arch/arm64/kernel/entry-common.c:697) > [ 1932.123710] el0t_64_sync (arch/arm64/kernel/entry.S:595) > [ 1932.127383] Code: f9026a7f 17ffffd9 52800020 f9800291 (885f7e81) > All code > ======== > 0: f9026a7f str xzr, [x19, #1232] > 4: 17ffffd9 b 0xffffffffffffff68 > 8: 52800020 mov w0, #0x1 // #1 > c: f9800291 prfm pstl1strm, [x20] > 10:* 885f7e81 ldxr w1, [x20] <-- trapping instruction > > Code starting with the faulting instruction > =========================================== > 0: 885f7e81 ldxr w1, [x20] > [ 1932.133486] ---[ end trace 0000000000000000 ]--- > [ 1932.138111] Kernel panic - not syncing: Oops: Fatal exception > [ 1932.143867] SMP: stopping secondary CPUs > [ 1932.148008] Kernel Offset: disabled > [ 1932.151498] CPU features: 0x1,0000020c,3c020000,0100421b > [ 1932.156820] Memory Limit: none > [ 1932.159880] ---[ end Kernel panic - not syncing: Oops: Fatal exception ]--- > > > Links: > - https://lkft.validation.linaro.org/scheduler/job/7006578#L6164 > - https://lkft.validation.linaro.org/scheduler/job/7006482#L9235 > > metadata: > git_ref: master > git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next > git_sha: b622d91ca201bf97582e9b09ebbaab005ecee86f > git_describe: next-20231109 > kernel_version: 6.6.0 > kernel-config: > https://storage.tuxsuite.com/public/linaro/lkft/builds/2Xv92VPrzXNNmQil9l8bJV2RQHs/config > artifact-location: > https://storage.tuxsuite.com/public/linaro/lkft/builds/2Xv92VPrzXNNmQil9l8bJV2RQHs/ > toolchain: gcc-13 Thanks for this report and apologies for the trouble this caused you. I'm in the process of preparing patch with a fix to send to Miklos. Hoping to send that out a little later today. -K