Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2128773rwd; Wed, 17 May 2023 06:13:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TRmdssBzip/g+n8XOKLuSjcahVKNQmgpakHMGxsl/G/E1KPQBGQlMSts9rR/eVPTsnhzd X-Received: by 2002:a17:902:f547:b0:1ac:4a41:d38d with SMTP id h7-20020a170902f54700b001ac4a41d38dmr47992558plf.51.1684329221054; Wed, 17 May 2023 06:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684329221; cv=none; d=google.com; s=arc-20160816; b=HE8t9H4jITPaLaoCEjdEmtpDs0EUibOJeAHutgEZilF9xolb65NF9c9rGAKSSwATlJ ypyWffrRONNiu5djsGUJA9JiavMmcGryvcBH53p+AOYbZLHjQ8fVCK8zH52DayvTKODW DgVBHaVGlBSRavYQiVZLKA3IF1FMUOhmS71CKPBPYw9/OhNlnB+IgukPepe8N1dNsB8W f5yUxNT90QCzJTmk9DBKAcm99PfAIuhQiLPAswORIqUVkyIJDmjoClwZrOCexFN/0ULw DJpI9d1Jn+6McmyiTJNZ2Wy7NeVtziNZ39zMnCG6N8NMupmU23cHnSlryfjFuGVjigJz Ce/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=ua/o5PzFklkBeJo1MA6CcWtIUHo5rMfHi+5Zb+6pjFY=; b=CELy0XdQzCbprGPfqD9Oj5hEpkVJaqE/d+j4J8b2y1LUeIuIq5YVWpNLoJJxbFEDDP MZqOGoYCeQ928pd0OPC61SI1S/7RCC4jcP0Gqf+5OAlTvMCTlIanxQVBs2Ut6A3XDXYj 9uJbjlbGWU1BqcAnRHFiub31u8s1x4Ksx4/Ix9Oc0CKsd5Blt3K3Pnz8nZ+TgfRd+5j2 mxS6zu0n29IubHHvMCxAClSHlXXiAxwASdVT00WVF4bC0cwwzwIVOYzicmfsnhgmU3Pn cV9ef4xrxmQT2MFa6nMzuuA7KRw4Gin+aUbIt3JBOYagop7ok7rZdBIwWS4kNHxzfkTT sXCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pJPevUCk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay10-20020a1709028b8a00b001a19bd8aa63si20468131plb.36.2023.05.17.06.13.26; Wed, 17 May 2023 06:13:41 -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; dkim=pass header.i=@linaro.org header.s=google header.b=pJPevUCk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231671AbjEQNKQ (ORCPT + 99 others); Wed, 17 May 2023 09:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231475AbjEQNKN (ORCPT ); Wed, 17 May 2023 09:10:13 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DDBE10EB for ; Wed, 17 May 2023 06:10:09 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-ba829e17aacso1012292276.0 for ; Wed, 17 May 2023 06:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684329009; x=1686921009; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ua/o5PzFklkBeJo1MA6CcWtIUHo5rMfHi+5Zb+6pjFY=; b=pJPevUCkssDRW3kFLjN3FYAq0N4TwQLI7cKPt6IXXGvLdbdIeGdfppJ5KU7q0Ly9TL lrhP+B+lETOmMP3qy1QLS9ZsgeIpl4sicxERDLs4qsHLML1LjVDaqY02HY42WoIGOaKt zSMY7mczRbB5Gfhc37mEb8nYUiCxQ6GEbpcAETIy2ZMdbt0sEXJaopm1jZKaOFd2YVmo w+VJmJatcJIdkzXeZk/X7DckqkgqaU1DRETvsHGmlNnPYU+3nL3GYHgkt5ElJlHTCAs7 y9V3W657R5InIpT0cLd9hF00bgd4S222BqR2g+pyKXCYPSgF1mCgcMFG3xwzRnkJSxi6 z15Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684329009; x=1686921009; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ua/o5PzFklkBeJo1MA6CcWtIUHo5rMfHi+5Zb+6pjFY=; b=SEQlR7xCCphC+UASbyTSUluizWcVGhzdE/6sr+gxz9Ojlkcw6r8mvD7vHn2MnnT0Ax 3rLGLi3sopshH9nG3GATeZ5G5XCH70qwbk25nwKfCOfLc1Wef5DLFgkhH3DlApvX3GnL 1yFshLTBugohZ3dHuxsUwr07Lo80Z0fkTE3szA9AofxiylTW0XKttm0VNEuYqoRSXK++ 9sI7bXeuETvEiVS7V5T/9m6EYsz+waztXcW6LfNXUoFMHxl8LKM33i44Cvi+3WR8v6No qKl2uAD18/hi7vtLipZeuWjIk3w30pVg6OMZK2pQL+Ce6xDKFpGreO+9MiZS2P+hCgWQ 3Ggg== X-Gm-Message-State: AC+VfDxQgSOJ+Tz5TVlY3XjpPlq6lIouvONsx5i5pTOtf5NazHGyyAEe yAZpw1z1WdMISRq5jElIxGCXVXYne/M2O5OkSbkczQ== X-Received: by 2002:a25:4884:0:b0:b9d:fe06:1f5b with SMTP id v126-20020a254884000000b00b9dfe061f5bmr34522856yba.15.1684329008875; Wed, 17 May 2023 06:10:08 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Wed, 17 May 2023 18:39:57 +0530 Message-ID: Subject: next: qemu-arm64: kernel BUG at fs/inode.c:1763! To: Linux-Next Mailing List , open list , linux-fsdevel@vger.kernel.org, linux-mm , lkft-triage@lists.linaro.org Cc: Al Viro , Christian Brauner , Dan Carpenter , "Paul E. McKenney" , frederic@kernel.org, Arnd Bergmann , Anders Roxell Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Following kernel crash noticed while booting qemu-arm64 kunit builds on Linux next version 6.4.0-rc2-next-20230517. WARNING: CPU: 1 PID: 1436 at mm/page_alloc.c:4781 __alloc_pages kernel BUG at fs/inode.c:1763! WARNING: CPU: 0 PID: 0 at kernel/context_tracking.c:128 ct_kernel_exit.constprop.0+0xe0/0xe8 Reported-by: Linux Kernel Functional Testing Detailed Crash log: ========= <4>[ 800.148388] ------------[ cut here ]------------ <4>[ 800.150072] WARNING: CPU: 1 PID: 1436 at mm/page_alloc.c:4781 __alloc_pages+0x998/0x13e8 <4>[ 800.151978] Modules linked in: <4>[ 800.153337] CPU: 1 PID: 1436 Comm: kunit_try_catch Tainted: G B N 6.4.0-rc2-next-20230517 #1 <4>[ 800.154662] Hardware name: linux,dummy-virt (DT) <4>[ 800.155921] pstate: 22400005 (nzCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) <4>[ 800.157079] pc : __alloc_pages+0x998/0x13e8 <4>[ 800.158148] lr : __kmalloc_large_node+0xc0/0x1b8 <4>[ 800.159238] sp : ffff80000b5e7aa0 <4>[ 800.160154] x29: ffff80000b5e7aa0 x28: 0000000000000000 x27: 0000000000000000 <4>[ 800.161762] x26: ffff0000c4509f00 x25: ffff800008087a98 x24: ffffd0168ffa8460 <4>[ 800.163283] x23: 1ffff000016bcf74 x22: 0000000000040dc0 x21: 0000000000000000 <4>[ 800.164813] x20: 0000000000000015 x19: 0000000000000000 x18: 000000000000000b <4>[ 800.166307] x17: 00000000bd2c963e x16: 00000000a2b18575 x15: 0000000033b8949b <4>[ 800.167831] x14: 000000006d0ad0a4 x13: 00000000e32f85f5 x12: ffff7000016bcfa1 <4>[ 800.169363] x11: 1ffff000016bcfa0 x10: ffff7000016bcfa0 x9 : 000000000000f204 <4>[ 800.170928] x8 : 00000000f2000000 x7 : 00000000f2f2f2f2 x6 : 00000000f3f3f3f3 <4>[ 800.172467] x5 : 0000000000040dc0 x4 : ffff0000c614e900 x3 : 0000000000000000 <4>[ 800.173976] x2 : 0000000000000000 x1 : 0000000000000001 x0 : ffffd01696633000 <4>[ 800.175603] Call trace: <4>[ 800.176314] __alloc_pages+0x998/0x13e8 <4>[ 800.177355] __kmalloc_large_node+0xc0/0x1b8 <4>[ 800.178401] __kmalloc+0x158/0x1c0 <4>[ 800.179350] handshake_req_alloc+0x70/0xb8 <4>[ 800.180510] handshake_req_alloc_case+0xa4/0x188 <4>[ 800.181598] kunit_try_run_case+0x88/0x120 <4>[ 800.182614] kunit_generic_run_threadfn_adapter+0x38/0x60 <4>[ 800.183809] kthread+0x194/0x1b0 <4>[ 800.184813] ret_from_fork+0x10/0x20 <4>[ 800.185873] ---[ end trace 0000000000000000 ]--- <6>[ 800.202972] ok 6 handshake_req_alloc excessive privsize <6>[ 800.217425] ok 7 handshake_req_alloc all good <6>[ 800.219182] # req_alloc API fuzzing: pass:7 fail:0 skip:0 total:7 <6>[ 800.222082] ok 1 req_alloc API fuzzing <6>[ 800.243148] ok 2 req_submit NULL req arg <6>[ 800.260195] ok 3 req_submit NULL sock arg <6>[ 800.274397] ok 4 req_submit NULL sock->file <6>[ 800.294631] ok 5 req_lookup works <6>[ 800.310289] ok 6 req_submit max pending <6>[ 800.326669] ok 7 req_submit multiple <6>[ 800.342645] ok 8 req_cancel before accept <4>[ 800.359161] ------------[ cut here ]------------ <2>[ 800.360659] kernel BUG at fs/inode.c:1763! <0>[ 800.362464] Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP <4>[ 800.364079] Modules linked in: <4>[ 800.364978] CPU: 0 PID: 9 Comm: kworker/0:1 Tainted: G B W N 6.4.0-rc2-next-20230517 #1 <4>[ 800.366607] Hardware name: linux,dummy-virt (DT) <4>[ 800.368282] Workqueue: events delayed_fput <4>[ 800.369511] pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) <4>[ 800.370861] pc : iput+0x2c4/0x328 <4>[ 800.371839] lr : iput+0x3c/0x328 <4>[ 800.372882] sp : ffff800008107b50 <6>[ 800.375744] ok 9 req_cancel after accept <4>[ 800.376704] x29: ffff800008107b50 x28: ffffd016924f7400 x27: ffff0000c08d4da0 <4>[ 800.379288] x26: ffff0000c042f918 x25: ffff0000cc273918 x24: ffff0000cc273900 <4>[ 800.381160] x23: 0000000000000000 x22: ffff0000c042f9b8 x21: ffffd016924f7b40 <4>[ 800.383408] x20: ffff0000c042f880 x19: ffff0000c042f880 x18: 000000000000000b <4>[ 800.385535] x17: ffffd0168fb6f094 x16: ffffd0168fb6ee10 x15: ffffd0168fb6ebd4 <4>[ 800.387985] x14: ffffd0168f7d5de8 x13: ffffd0168f617f98 x12: ffff700001020f53 <4>[ 800.389672] x11: 1ffff00001020f52 x10: ffff700001020f52 x9 : ffffd0168fb67384 <4>[ 800.392442] x8 : ffff800008107a98 x7 : 0000000000000000 x6 : 0000000000000008 <4>[ 800.395053] x5 : ffff800008107a58 x4 : 0000000000000001 x3 : dfff800000000000 <4>[ 800.397652] x2 : 0000000000000007 x1 : ffff0000c042f918 x0 : 0000000000000060 <4>[ 800.400110] Call trace: <4>[ 800.401352] iput+0x2c4/0x328 <4>[ 800.402741] dentry_unlink_inode+0x12c/0x240 <4>[ 800.404519] __dentry_kill+0x16c/0x2b0 <4>[ 800.406047] dput+0x24c/0x438 <4>[ 800.407331] __fput+0x140/0x3b0 <4>[ 800.409152] delayed_fput+0x64/0x80 <4>[ 800.410708] process_one_work+0x3cc/0x7d0 <4>[ 800.413032] worker_thread+0xa4/0x6a0 <4>[ 800.415041] kthread+0x194/0x1b0 <6>[ 800.416283] ok 10 req_cancel after done <4>[ 800.416205] ret_from_fork+0x10/0x20 <0>[ 800.419090] Code: 17ffffc4 97fffb54 17ffffd4 d65f03c0 (d4210000) <4>[ 800.421577] ---[ end trace 0000000000000000 ]--- <6>[ 800.424335] note: kworker/0:1[9] exited with irqs disabled <6>[ 800.428252] note: kworker/0:1[9] exited with preempt_count 1 <4>[ 800.435635] ------------[ cut here ]------------ <4>[ 800.436529] WARNING: CPU: 0 PID: 0 at kernel/context_tracking.c:128 ct_kernel_exit.constprop.0+0xe0/0xe8 <4>[ 800.439070] Modules linked in: <4>[ 800.440326] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G B D W N 6.4.0-rc2-next-20230517 #1 <4>[ 800.442196] Hardware name: linux,dummy-virt (DT) <4>[ 800.443408] pstate: 224003c5 (nzCv DAIF +PAN -UAO +TCO -DIT -SSBS BTYPE=--) <4>[ 800.445031] pc : ct_kernel_exit.constprop.0+0xe0/0xe8 <4>[ 800.446629] lr : ct_kernel_exit.constprop.0+0x20/0xe8 <4>[ 800.448263] sp : ffffd01694ed7cd0 <4>[ 800.449375] x29: ffffd01694ed7cd0 x28: 00000000437e90ac x27: 0000000000000000 <4>[ 800.451354] x26: ffffd01694ef1e40 x25: 0000000000000000 x24: 0000000000000000 <4>[ 800.453397] x23: ffffd01694ee2ba0 x22: 1ffffa02d29dafb4 x21: 0000000000000000 <4>[ 800.455573] x20: ffffd01692f29c20 x19: ffff0000da667c20 x18: 000000000000000b <4>[ 800.457649] x17: 000000000055a8d0 x16: 000000006cbc159c x15: ffffd0168fb6865c <4>[ 800.459662] x14: ffffd0168fb680ec x13: ffffd0168fb3b03c x12: ffff7a02d29daf81 <4>[ 800.461787] x11: 1ffffa02d29daf80 x10: ffff7a02d29daf80 x9 : dfff800000000000 <4>[ 800.463827] x8 : ffffd01694ed7c08 x7 : 0000000000000000 x6 : 0000000000000008 <4>[ 800.465864] x5 : ffffd01694ed7bc8 x4 : 0000000000000001 x3 : dfff800000000000 <4>[ 800.467860] x2 : 4000000000000002 x1 : 4000000000000000 x0 : ffff2fea4773e000 <4>[ 800.469981] Call trace: <4>[ 800.470946] ct_kernel_exit.constprop.0+0xe0/0xe8 <4>[ 800.472535] ct_idle_enter+0x10/0x20 <4>[ 800.473923] default_idle_call+0x58/0x90 <4>[ 800.475213] do_idle+0x304/0x388 <4>[ 800.476492] cpu_startup_entry+0x2c/0x40 <4>[ 800.477885] rest_init+0x120/0x128 <4>[ 800.478830] arch_call_rest_init+0x1c/0x28 <4>[ 800.479961] start_kernel+0x2f8/0x3c0 <4>[ 800.482015] __primary_switched+0xc0/0xd0 <4>[ 800.483086] ---[ end trace 0000000000000000 ]--- <6>[ 800.487780] ok 11 req_destroy works <6>[ 800.488283] # Handshake API tests: pass:11 fail:0 skip:0 total:11 <6>[ 800.491161] # Totals: pass:17 fail:0 skip:0 total:17 <6>[ 800.495059] ok 75 Handshake API tests <6>[ 800.514129] uart-pl011 9000000.pl011: no DMA platform data links, - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230517/testrun/17029810/suite/boot/test/gcc-12-lkftconfig-kunit/log - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230517/testrun/17029810/suite/boot/test/gcc-12-lkftconfig-kunit/history/ - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230517/testrun/17029810/suite/boot/tests/ Steps to reproduce: ================= # To install tuxrun on your system globally: # sudo pip3 install -U tuxrun==0.42.0 # # See https://tuxrun.org/ for complete documentation. tuxrun \ --runtime podman \ --device qemu-arm64 \ --kernel https://storage.tuxsuite.com/public/linaro/lkft/builds/2PtylM1zfMZo4vZUtwFtBJhJRvx/Image.gz \ --modules https://storage.tuxsuite.com/public/linaro/lkft/builds/2PtylM1zfMZo4vZUtwFtBJhJRvx/modules.tar.xz \ --rootfs https://storage.tuxsuite.com/public/linaro/lkft/oebuilds/2PeQhlPkvTmtoQVO1F0CQ7lAsm5/images/juno/lkft-tux-image-juno-20230511150149.rootfs.ext4.gz \ --parameters SKIPFILE=skipfile-lkft.yaml \ --image docker.io/lavasoftware/lava-dispatcher:2023.01.0020.gc1598238f \ --tests kunit \ --timeouts boot=30 -- Linaro LKFT https://lkft.linaro.org