Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5607086rwd; Wed, 24 May 2023 04:29:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5yJL/tq6E52atNItENiyX0Us5vjcfE7WKRK4R06lltrHXOBjMctklxOaXsWuOTXFL5jBO7 X-Received: by 2002:a05:6a00:1a13:b0:64f:52b1:a890 with SMTP id g19-20020a056a001a1300b0064f52b1a890mr2852169pfv.34.1684927762966; Wed, 24 May 2023 04:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684927762; cv=none; d=google.com; s=arc-20160816; b=y/xLQ1m8oUCEec9olLpn4AUyoD1+gD/4r6yo7FYivkCVoMYLJGUjHlvDpCwe+foNQ8 UyBS1D0xsCtlmnW+z2l/bzdKoJ81JK8CIvRVoLlM3zvISYKSAxzCzYJXGX3yz1ZgqDn2 eyfINR8MFwskJWY63UQ4iIe27KY+eF4UIVjZZdmL5dTRgseu8YCmF6uIZ9teTOKOboNP y6krkK/WT6TAWsUAi3TEkJ82fw0sATtyRHIDshIlY8ABIpEgXLYXG0Z+joVp7Sf7FVhE BGZaMTQ84OwN/J9kMyoRxGcd2YK4qt4PNIXicz+x9AgPbCnIQlbqCAOELfv4Wi2eqZkW 6Tmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=94udbzVTGqNaMGw/zUgvdZI97Kq4XPISqem/Xsupn/8=; b=SnjaiPacZUOvydsQJTUd+KhFBfqTLTdQiPTdTwiCGaPQOx7QioicypknYuQ1CXlEIU KB/Km01GmRBUR0ZopdvbWoE6/VVsCWxeJOsBo2SsY11oHPXJluV4MFyh+t3gD/tQnXeg QM6XFtx2yHC2SnV42uFm8HIgAmsGEuQ0/hrP/Juoh/TbVfV6xYOhLtxUCP9TIgleabL8 2t2u25LY/8tD7yx471k+v8ijqNW7rEQUtO5OjmD4tJJUO6UXdG7EBWqV8i+1WZSICFv9 pLeVB3x6yn/leDyfheyJXQ8nCfNMDh2ZfiFweBykwlPhH7Q1PaiXO6yj/kPV523ppc4/ DTfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="w6r7T/7q"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=D7cZxt9r; 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 x16-20020aa79a50000000b0063b13efdd06si711862pfj.345.2023.05.24.04.29.10; Wed, 24 May 2023 04:29:22 -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=@arndb.de header.s=fm3 header.b="w6r7T/7q"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=D7cZxt9r; 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 S232076AbjEXLTy (ORCPT + 99 others); Wed, 24 May 2023 07:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233267AbjEXLTu (ORCPT ); Wed, 24 May 2023 07:19:50 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 640F0A3; Wed, 24 May 2023 04:19:49 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 311495C0269; Wed, 24 May 2023 07:19:48 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 24 May 2023 07:19:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1684927188; x=1685013588; bh=94 udbzVTGqNaMGw/zUgvdZI97Kq4XPISqem/Xsupn/8=; b=w6r7T/7qs8AGLDufOJ 0LyYeUmOuYZ0wEDKLwv7v2MwNIz5BGj1WvSmcYZROWapiIqaJrF/LJpRnIQPoFhj MTROX/VVKYUfabxXWxrbGjFOQJ34KM4RXRmx8mzLgVaVt71wXgdmmjKO+LIImrvU JGX2W4uqfnrvKlwSaiOjQnzC7KAxIs4AyyOLLAx34OgEisEnuTEZ/pZWC9k2Sqb/ zD7tB4cegxf0U1QRdkQ8IELBw4e/QWJPTrtUCZad6dupzeGcdVs4x4A9c1WMsjpu +2+zGUu0Cci90pH/omI/OcJLZftD0QBGyFupTHvaVf1ZutgAUn8LGzsknrip+4hj XcfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684927188; x=1685013588; bh=94udbzVTGqNaM Gw/zUgvdZI97Kq4XPISqem/Xsupn/8=; b=D7cZxt9rKuLyVChV7PUxn2n6ulSBC Ce+DRoNJCe7nj+fjCnsuLudpb0FtdNxZF1sivWkpqDN4RiYweBpJjuKbFBIjyQOw O6DZjmTTsJ5mPTmI/p5Xk3LzW5XWfi//nq8GBOjIJmhjqQx3FFcn/a8lgUq4sRny zlDTzN64LDZOtNxshc6Ieo1xHstJcVtZYfY/Jg4Bx+0//Xl4bhExYWoGM9bywKas YqMItPmggzEdmFhC3UDgZSTiZ2ZjadSYvdkVv0itI0JLY8h7+cdXuBkev8W8Qy/1 dHf6q+NmhFyhBCNyE4g6+CBRz/8pIoe1f57M3ETm6CX8MwR3WVBWEPRfw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejhedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E4DA2B60086; Wed, 24 May 2023 07:19:47 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-441-ga3ab13cd6d-fm-20230517.001-ga3ab13cd Mime-Version: 1.0 Message-Id: <3a055da0-fd88-4ec0-b006-9ccd382e9cc6@app.fastmail.com> In-Reply-To: References: Date: Wed, 24 May 2023 13:18:28 +0200 From: "Arnd Bergmann" To: "Naresh Kamboju" , "open list" , linux-stable , linux-mm , "LTP List" , lkft-triage@lists.linaro.org, "X86 ML" Cc: "Thomas Gleixner" , "Andy Lutomirski" , "Ingo Molnar" , "Dave Hansen" , "Andrew Morton" , "Dan Carpenter" , "Anders Roxell" Subject: Re: qemu-x86_64 compat: LTP: controllers: RIP: 0010:__alloc_pages Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, May 24, 2023, at 11:02, Naresh Kamboju wrote: > While running LTP controllers following kernel crash noticed on qemu-x86_64 > compat mode with stable-rc 6.3.4-rc2. > > Reported-by: Linux Kernel Functional Testing > > Linux version 6.3.4-rc2 (tuxmake@tuxmake) (x86_64-linux-gnu-gcc > (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 > SMP PREEMPT_DYNAMIC @1684862676 > .. > ./runltp -f controllers > ... > cpuset_inherit 11 TPASS: cpus: Inherited information is right! > cpuset_inherit 13 TPASS: mems: Inherited information is right! > <4>[ 1130.117922] int3: 0000 [#1] PREEMPT SMP PTI > <4>[ 1130.118132] CPU: 0 PID: 32748 Comm: cpuset_inherit_ Not tainted > 6.3.4-rc2 #1 > <4>[ 1130.118216] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), > BIOS 1.14.0-2 04/01/2014 > <4>[ 1130.118320] RIP: 0010:__alloc_pages+0xeb/0x340 > <4>[ 1130.118605] Code: 48 c1 e0 04 48 8d 84 01 00 13 00 00 48 89 45 > a8 8b 05 d9 31 cf 01 85 c0 0f 85 05 02 00 00 89 d8 c1 e8 03 83 e0 03 > 89 45 c0 66 <90> 41 89 df 41 be 01 00 00 00 f6 c7 04 75 66 44 89 e6 89 > df e8 ec I haven't figured out what is going on here, but I tracked down the trapping instruction <90> to the middle of the 'xchg %ax,%ax' two-byte nop in: ffffffff814218f4: 83 e0 03 and $0x3,%eax ffffffff814218f7: 89 45 c0 mov %eax,-0x40(%rbp) ffffffff814218fa: 66 90 xchg %ax,%ax ffffffff814218fc: 41 89 df mov %ebx,%r15d ffffffff814218ff: 41 be 01 00 00 00 mov $0x1,%r14d which in turn is the cpusets_enabled() check in prepare_alloc_pages(). static inline bool cpusets_enabled(void) { return static_branch_unlikely(&cpusets_enabled_key); } static __always_inline bool arch_static_branch(struct static_key *key, bool branch) { asm_volatile_goto("1:" "jmp %l[l_yes] # objtool NOPs this \n\t" JUMP_TABLE_ENTRY : : "i" (key), "i" (2 | branch) : : l_yes); return false; l_yes: return true; } I don't see any changes related to this between 6.3.3 and 6.3.4-rc2. Arnd