Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2583255rdh; Mon, 30 Oct 2023 01:16:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHa3H6Z2ktXmaJMg1nx5n62og1MeCs626JrzsjCHg6YwoyQvkSWBYUSM9xoa4bfurIoHpaK X-Received: by 2002:a17:903:210b:b0:1cc:2f70:4865 with SMTP id o11-20020a170903210b00b001cc2f704865mr3481902ple.26.1698653780902; Mon, 30 Oct 2023 01:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698653780; cv=none; d=google.com; s=arc-20160816; b=vRrgRtEBGzH5bApzXsEPGJMLaLIgcB0sm4WW/Jx1dBnsekEVCHda5344AUncTnbqhP rDCJdbTAiwDoe4z7e7kqvzGooTEu02rcAUB1+l2osIzIY7oCOXJyPd5RwoebOgmnSF2l kfU9H1F3Wtr/5+yLx/oWKlDKy6mT2LaH7zdwMr3r/tdiMa4J52gzg7eyuwA86+01CByB 4GaemnHppPU2xs38EVtSMrDTWvcC3CnOCIpC004laJ8GQboYLDMSm1XhwzEEuUvIgHHd JpPlHLCgVfLhedzMZV9dVzRfsyxzna+t+U3xLAcFHbYgXCDkKrf3dqurLtZhnrv4wZeh 3M+w== 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=KKVUQTbvw1nnLLMGhCp+TzRFNdrf89chzHYgpz0W4uc=; fh=QuQfB59XxU6WoHgGMI3cfN+CXfjN4qrS8C9lpt7whnU=; b=F27TjPZaPrnDwM0wcy0CuzkgenTqevd1tWm0CnIOVrV5UXhM1g9jTYb9qbIhcYtFSF G8W9Q60x0l8+75PCR8s22YGN9APQRPVKxzpRvxzga42zMCev1rr0haIE4T+tGzLhPmWj vCBjtTj2+UPWG5/zZX+Za3Fsbkh4Uamgrc3PkmY1ZY6QVgD92yJXMi1IwdKUnDTJQr3Z k/3NMEynrZUcaFx+CHA1wzS3TBCL1pJsMce+tZYLMOJHR4WxV9jYu6Vw0PocdlRhIJ41 AGB5Bpfy5eMzxXD35y1bZrBRv+TTo/sCjgYICGDvxap6i+olGbzVRpZMRMOxUkKFlugV RI2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l3QZcv5v; 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 ji11-20020a170903324b00b001b045d65aedsi4653763plb.228.2023.10.30.01.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 01:16:20 -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=l3QZcv5v; 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 3706D807C573; Mon, 30 Oct 2023 01:15:34 -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 S232022AbjJ3IPP (ORCPT + 99 others); Mon, 30 Oct 2023 04:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231609AbjJ3IPO (ORCPT ); Mon, 30 Oct 2023 04:15:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81F08A7; Mon, 30 Oct 2023 01:15:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C685C433C8; Mon, 30 Oct 2023 08:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698653712; bh=fuGVGto2o5T9jBRD1HhQGS82S7WwmgYHNiuC+wi817I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=l3QZcv5vpUDwVilYNar/MuFOezxUcNnLV7xZYXKuVwblw764y4g2NP8U2Wjw/P3pc vtpQDK46ASbrahd0rZ0raB/kOO42v52q661l4bn1mbwUKM1dXOr1UC+UeGVgxPsULW vSwpXotUlODxngrf/kO7mfJ1vSTFKVEcCN22qS/knUO2QMlOqBulPguqEz8u/E2xGz XADUSKBEhbi2dNaRUZ04q+BZLDVAifThk7LOe/QOmKSlU8c/ZyKUbxZmnHf5cRhSOD Aw1/YXwRutv2UZrYjGp6q7dCwnUNBQiuYvhyWXlaa9vnivDus0s4cvAmu1enEoeebs 5m2GNOva0MLVQ== Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2c50305c5c4so60249071fa.1; Mon, 30 Oct 2023 01:15:12 -0700 (PDT) X-Gm-Message-State: AOJu0YxOwuoyGJ3bgsbsyOW3xKRfy+Lg2AynCD63Yfyj1LBuXjR49mF8 Bc2jMRsXlF5a1Hrt5R0m3UnAjOpkB8ZYQwM3JUs= X-Received: by 2002:a2e:918d:0:b0:2c5:ffa:375d with SMTP id f13-20020a2e918d000000b002c50ffa375dmr6809167ljg.11.1698653710337; Mon, 30 Oct 2023 01:15:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Mon, 30 Oct 2023 09:14:56 +0100 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: Naresh Kamboju Cc: Mark Rutland , 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: multipart/mixed; boundary="0000000000000069660608eaa3a3" X-Spam-Status: No, score=-1.7 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]); Mon, 30 Oct 2023 01:15:34 -0700 (PDT) --0000000000000069660608eaa3a3 Content-Type: text/plain; charset="UTF-8" On Mon, 30 Oct 2023 at 09:07, Naresh Kamboju wrote: > > On Sat, 28 Oct 2023 at 13:12, Ard Biesheuvel wrote: > > > > On Fri, 27 Oct 2023 at 12:57, Naresh Kamboju wrote: > > > > > > On Thu, 26 Oct 2023 at 21:09, Ard Biesheuvel wrote: > > > > > > > > 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 ... > > > > > 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 :-) > > > > > > I am happy to test any proposed fix patch. > > > > > > > Thanks Naresh. Patch attached. > > This patch did not solve the reported problem. > Test log links, > - https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/naresh/tests/2XTP1lXcUUscT357YaAm2G1AhpS > Oops, sorry about that. Fixed patch attched. --0000000000000069660608eaa3a3 Content-Type: text/x-patch; charset="US-ASCII"; name="v2-0001-Add-missing-ESR-decoding-for-level-1-translation-.patch" Content-Disposition: attachment; filename="v2-0001-Add-missing-ESR-decoding-for-level-1-translation-.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_locmjrdg0 RnJvbSA5N2RlYTQzMmJjZWFkZmNlY2U4NDQ4NDYwOTM3NGMyNzdhZmMyYzgxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBcmQgQmllc2hldXZlbCA8YXJkYkBrZXJuZWwub3JnPgpEYXRl OiBTYXQsIDI4IE9jdCAyMDIzIDA5OjQwOjI5ICswMjAwClN1YmplY3Q6IFtQQVRDSCB2Ml0gQWRk IG1pc3NpbmcgRVNSIGRlY29kaW5nIGZvciBsZXZlbCAtMSB0cmFuc2xhdGlvbiBmYXVsdHMK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