Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2679699rdh; Mon, 30 Oct 2023 04:51:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEK9Xf110a7GwNYxVquNoBaU5LCSdNn0F3t4ossI0TsPhNPKKBaAInq9zfn+omo/kE3hY0z X-Received: by 2002:a05:6358:6f82:b0:168:d346:ce5e with SMTP id s2-20020a0563586f8200b00168d346ce5emr11871924rwn.8.1698666692221; Mon, 30 Oct 2023 04:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698666692; cv=none; d=google.com; s=arc-20160816; b=Ib5CRSVtullexYD6gJApx1PAdyEmLLDH4KqamqIC/+wF6Iph5WmAEwGOqcW3Z/N2GS nC9TqZ8/DtiQGFKoP9fjpM9E2Undwmgh+JKls9zC6+Y5uiOOkA3hgQ/+YMPU3iodVBgA CC0g3ihjQrzAHp6j25KcXkAQcHbUwVoTRyn7GrGD2pmoQyhttim7ipZY/4kfjMRugge+ OBneOdG1cFy25/IeWNm4FuoxsR2h0MoF1PSAfwi7b6VVDIgu6nabLplRXFHvEEocXcF1 U6CJfcd80mvslJ2mxU/9a4h0AhQgupuptI4/HRU0dIWVJBKrN9yxdxEiiLe3wq0PADOh XCvA== 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=jWivzrxCpxwoSOmvAbrkhtD9UjjIuIW8cSCmO3fV9OU=; fh=2clrXZplpmgSMpZFYHe2ZjjZRH5H5afXbhG6KHs0g38=; b=WSDexS28P4bopwwr4oh2+5sJpzfdRmm6xL3xpvbRrW3FZX2bTuNVxXMCIP8C4ZEXuo C2URgTWmZOlTmEh/eQjNlktJ0JODtzPsR1GUdNqt51II+Wn2pKYbP9qC3w4qBXOZUEx8 rfpBWPhNraCjKASvpUtsUcHg+gIBvzy0s089Rm5ePfza7loy0v7X8VA+Sm/+P7ujyuXU LxND7t/4JXXwMZ0CJJnuF7sQSfw4iq00jZrSJUciVx+l46FpaoR6jtv6ncftOAz8iQC+ 8BP5IivpdplJgcp0wTzF55hcCdctAzywG83n3N68S676mxNXCn/5CUYDTUj35HF0EA6b hPmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ozrMzrUw; 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=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e13-20020a65688d000000b005b7364d5dbfsi4844695pgt.49.2023.10.30.04.51.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:51:32 -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=@linaro.org header.s=google header.b=ozrMzrUw; 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=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B63FF806BF1E; Mon, 30 Oct 2023 04:51:13 -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 S232979AbjJ3Lu6 (ORCPT + 99 others); Mon, 30 Oct 2023 07:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232976AbjJ3Luz (ORCPT ); Mon, 30 Oct 2023 07:50:55 -0400 Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37DB59D for ; Mon, 30 Oct 2023 04:50:53 -0700 (PDT) Received: by mail-vk1-xa2f.google.com with SMTP id 71dfb90a1353d-49d39f07066so1826982e0c.0 for ; Mon, 30 Oct 2023 04:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698666652; x=1699271452; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jWivzrxCpxwoSOmvAbrkhtD9UjjIuIW8cSCmO3fV9OU=; b=ozrMzrUwe32rDYY2amZIpL7ZuqRZlyuP6AsFNK4OpnBfQdzSkYskMp0JzlZBkIPpWI LnvJ5JkA/G+rJHGJ/nKvEASND4YsDLThG2LIF+SGgS/fOpSCmZr5E6lrwS7vtXi7Uw08 mETQdleiknZCxc6YfZglnrtIz7AOG2HtUtMe7W94NJyGHcBazNOIzWha1qcB2An+6Rwk q7eHg/FPLUepyx/Bwc6DqkkxH8kpxYpvS5oRVBunp1hsIZGDobIP1qcqDzVV/zWPqZgj T13y6abC2l9bOmZqxgBOBIovGf/PcsfThWve3PLS8DYdKxEkTfm1z7FoEkQvI7vghKqA rzFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698666652; x=1699271452; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jWivzrxCpxwoSOmvAbrkhtD9UjjIuIW8cSCmO3fV9OU=; b=BFD22DHzIEdPEoBD19zVz/GgCe2s8aU3Gww9gIJQdghKZAf3WAZioKGszv84CcOpNE oDCFEx/r7Qtj64hknR6OKCAq9d/H6s8XNNyq1TdjAHnCLhMvpbhzWyx98HSsKSc8X63L jXNLT4cFTzHyrRlOCNtGnkPg8BKpdT6PPOgAWwOCR4MaXwvuJADBhvejRZlery+wwNDR 3rAzRDfJ8muON8y8qFc++V5aYUESgQRGfcvx4A/0kJIp4FMc0Qnde3YPIZiOXfSRWd+W vGSyDow76YFTOjiwHLxA3semx7tFnB0/IB83CCP7NyqySSpah+TweWdnVY623nu8Ot54 dGPA== X-Gm-Message-State: AOJu0Yx/V/Xf1DpC7Bl5e2nNk61udZ8sktqPRVuXCXb8CFdZmTMnlnDC xAB5JsbnAXTjCcxP9u6rhq0llZNXOIm5ka2YypJ4KA== X-Received: by 2002:a1f:a412:0:b0:4a4:156b:b46 with SMTP id n18-20020a1fa412000000b004a4156b0b46mr8433700vke.2.1698666652226; Mon, 30 Oct 2023 04:50:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Mon, 30 Oct 2023 17:20:40 +0530 Message-ID: Subject: Re: qemu-arm64: handle_futex_death - kernel/futex/core.c:661 - Unable to handle kernel unknown 43 at virtual address To: Ard Biesheuvel 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="000000000000661c610608eda645" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 04:51:14 -0700 (PDT) --000000000000661c610608eda645 Content-Type: text/plain; charset="UTF-8" On Mon, 30 Oct 2023 at 13:45, Ard Biesheuvel wrote: > > 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. Tested-by: Linux Kernel Functional Testing - Naresh --000000000000661c610608eda645 Content-Type: application/x-patch; 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 IG1pc3NpbmcgRVNSIGRlY29kaW5nIGZvciBsZXZlbCAtMSB0cmFuc2xhdGlvbiBmYXVsdHMKClNp Z25lZC1vZmYtYnk6IEFyZCBCaWVzaGV1dmVsIDxhcmRiQGtlcm5lbC5vcmc+Ci0tLQogYXJjaC9h cm02NC9tbS9mYXVsdC5jIHwgMTIgKysrKysrLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgNiBpbnNl cnRpb25zKCspLCA2IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2FyY2gvYXJtNjQvbW0vZmF1 bHQuYyBiL2FyY2gvYXJtNjQvbW0vZmF1bHQuYwppbmRleCAyZTVkMWUyMzhhZjkuLjEzZjE5MjY5 MTA2MCAxMDA2NDQKLS0tIGEvYXJjaC9hcm02NC9tbS9mYXVsdC5jCisrKyBiL2FyY2gvYXJtNjQv bW0vZmF1bHQuYwpAQCAtNzgwLDE4ICs3ODAsMTggQEAgc3RhdGljIGNvbnN0IHN0cnV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