Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp530971rdh; Thu, 26 Oct 2023 08:39:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQlGm4dT1paTbIwT+ohl6L9SiEC9eI+059tEDeOYOzA0/qnERBjJvSMppx4ZVJksJiwmF6 X-Received: by 2002:a05:6808:f15:b0:3b2:f2e0:6b39 with SMTP id m21-20020a0568080f1500b003b2f2e06b39mr22506146oiw.12.1698334783668; Thu, 26 Oct 2023 08:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698334783; cv=none; d=google.com; s=arc-20160816; b=mnDLrNxIUIWXjsT0+hIHXOf2tkjHL+XRWx+1MVyn/9dFv+a9r3sHd4L6yPys0G4bmz Zdo263N0RQFcn40a8FvQLEjI9JrD7F8wjorCZ9nbaM7v9Qwr6OFgjBm7B4Ndb0ufhH3W aB04nV8xLYaixAsGkA7/bzFe1sQ6iz2vHjZevpXZ3R39VyMS58U5fHxLrs8ezgGzeEEf y227odUlPUjFMzD2tc5jaBp1qN88MXj+HdxKVbO807dKO+HKxQ/sC6iqqg6XUzgVypzv j12JRViGUX5op3NMZPY/ZW8iYcLgSZXMgPYMKf36G6K+genlX7Q/vRW5g4M16FBIgKQ6 xhQw== 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:in-reply-to :references:mime-version:dkim-signature; bh=0H0oRbDjQ+CEfHVVv+IGopWtJVGVj7eCjJNBawsEqgI=; fh=bEFpUT7wFer8agEIg+BICAfmRZRCwpDQyHtaPM+2jjQ=; b=PLqoHT8/O37WWUA2n5fIzlrELe+9/zQ1tSYFKtcz+L9ImVc7Yfe1ZFjVQZP440GMWY wi8hMc7JD1OtqlyzLsiECHxVUkjX3BIKxozGXQLxpo7C7ZMqTx08zgVIjhnmqx5CRfve f5NFv9hIl748sZ35eYYdWPLi0OS5Vp9ytWQ8vHdHBzYkkvlFswK7JzHB3HgIplKqTyUK caHTkyZgVUmRdehziZTApO0EJjKp/7VJVGYfe4m+LCcJXOhiKVwtirohZLklsVo02xfF P06lW/2xIV1PrZ8/XFPu57kaRp7ezQTW5/P4K8Yg4AW29CZVc+6ZprIQBymas0jD+XcP iR4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fZprWnS1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t7-20020a056902124700b00d9cb944cf86si17506659ybu.452.2023.10.26.08.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 08:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fZprWnS1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C273B818D538; Thu, 26 Oct 2023 08:39:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345441AbjJZPjb (ORCPT + 99 others); Thu, 26 Oct 2023 11:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231280AbjJZPja (ORCPT ); Thu, 26 Oct 2023 11:39:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F251A7; Thu, 26 Oct 2023 08:39:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1555C433CA; Thu, 26 Oct 2023 15:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698334768; bh=FDj+TtkA41V8W+Dgx4SdwNTR5EfRCiqvl6KQP3P3OD0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fZprWnS1zKe9CbthGm2D8C8zn1nHzy+//yBaYsrHS2yMyLV4Mra2DrQCWoWjXTzBz wmZsR2S4VUKMnbpnDA2j8BvXxn9wQ2HGezAJaWDPSU5a6RYVylVKNc71ZBr7bTLf/0 md20LufSdvrHbA+7Y/9HEHJai5JDJ/LXeslMvVgc38iVm9ALkXNI0bSx4/No1e7twd 9IQkuaWHkBn4DGJqpMUo8J4lmwsu3KxMDmWbAFDWyLMymS1z2I94MghGWnphoVzqHH ek932aj5ECM/nNLrYNV+rPymMUzHfp8t1fNRvVqE1wuLbmDiAGPKuWymrgHTW8l+XM Ylf5ZSpZl3/Zg== Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2c509d5ab43so16284501fa.0; Thu, 26 Oct 2023 08:39:28 -0700 (PDT) X-Gm-Message-State: AOJu0YycJx7gjlFqJWtnyEptC+EvpBCU/kzfQDlV15e8dOd+jvbJktUV V5fomMX7Z0RRR3nhiznnQsBKbpobR11Q4BMQFms= X-Received: by 2002:a2e:b04b:0:b0:2c5:1b01:b67f with SMTP id d11-20020a2eb04b000000b002c51b01b67fmr13026501ljl.52.1698334766885; Thu, 26 Oct 2023 08:39:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Thu, 26 Oct 2023 17:39:11 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: qemu-arm64: handle_futex_death - kernel/futex/core.c:661 - Unable to handle kernel unknown 43 at virtual address To: Mark Rutland Cc: Naresh Kamboju , Catalin Marinas , Will Deacon , Oliver Upton , Linux-Next Mailing List , open list , Linux ARM , lkft-triage@lists.linaro.org, Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Anders Roxell , Dan Carpenter , LTP List , Petr Vorel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 08:39:41 -0700 (PDT) On Thu, 26 Oct 2023 at 17:30, Mark Rutland wrote: > > On Thu, Oct 26, 2023 at 08:11:26PM +0530, Naresh Kamboju wrote: > > Following kernel crash noticed on qemu-arm64 while running LTP syscalls > > set_robust_list test case running Linux next 6.6.0-rc7-next-20231026 and > > 6.6.0-rc7-next-20231025. > > > > BAD: next-20231025 > > Good: next-20231024 > > > > Reported-by: Linux Kernel Functional Testing > > Reported-by: Naresh Kamboju > > > > Log: > > ---- > > <1>[ 203.119139] Unable to handle kernel unknown 43 at virtual > > address 0001ffff9e2e7d78 > > <1>[ 203.119838] Mem abort info: > > <1>[ 203.120064] ESR = 0x000000009793002b > > <1>[ 203.121040] EC = 0x25: DABT (current EL), IL = 32 bits > > set_robust_list01 1 TPASS : set_robust_list: retval = -1 > > (expected -1), errno = 22 (expected 22) > > set_robust_list01 2 TPASS : set_robust_list: retval = 0 > > (expected 0), errno = 0 (expected 0) > > <1>[ 203.124496] SET = 0, FnV = 0 > > <1>[ 203.124778] EA = 0, S1PTW = 0 > > <1>[ 203.125029] FSC = 0x2b: unknown 43 > > It looks like this is fallout from the LPA2 enablement. > > According to the latest ARM ARM (ARM DDI 0487J.a), page D19-6475, that "unknown > 43" (0x2b / 0b101011) is the DFSC for a level -1 translation fault: > > 0b101011 When FEAT_LPA2 is implemented: > Translation fault, level -1. > > It's triggered here by an LDTR in a get_user() on a bogus userspace address. > The exception is expected, and it's supposed to be handled via the exception > fixups, but the LPA2 patches didn't update the fault_info table entries for all > the level -1 faults, and so those all get handled by do_bad() and don't call > fixup_exception(), causing them to be fatal. > > It should be relatively simple to update the fault_info table for the level -1 > faults, but given the other issues we're seeing I think it's probably worth > dropping the LPA2 patches for the moment. > Thanks for the analysis Mark. I agree that this should not be difficult to fix, but given the other CI problems and identified loose ends, I am not going to object to dropping this partially or entirely at this point. I'm sure everybody will be thrilled to go over those 60 patches again after I rebase them onto v6.7-rc1 :-)