Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2580168rdh; Mon, 30 Oct 2023 01:08:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLYTTvYZR3rcYwSOsoKGlSq8y1Uk7WkO55Ku1PnhCLhMGUzdWps/PwVy1PoR/GofJUvchg X-Received: by 2002:a17:902:c653:b0:1cc:30bf:d07c with SMTP id s19-20020a170902c65300b001cc30bfd07cmr5319410pls.10.1698653301650; Mon, 30 Oct 2023 01:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698653301; cv=none; d=google.com; s=arc-20160816; b=uZl+ivL61OX+SOfZJrJp2EZQd2OyvZ3oIt0es31oqe5kOW1psbyEkYdgd5n2V/aPBP W8m9XHmY33In3ABbxi4fxZVMDLGtbCMAuINLL9SrxAEWIupFyMD3tl/qiB5NJr4/R/7o iFG4Qj9iQ33xGJFQgTFNydY2Dhd950MeHQufJKRT3MtvxFteFQulCZODA0+lsjckQQfm BNHMndd/HBZ1Vc3wYrdtMcpwQbirUIHGldhWAnaB2JyfMYfmfCTIIxFo/Y6AvRC4eEqu hjGagyzZv8YC2SdbIZZ7CNTU+eXrBMk3m70qK2vE6vNBbjXF7nEHc1eVvCpvRZyf/A7X hSOg== 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=u1/VaDbZg1pSYVDN7uPxJsz6GyIrT5GcoGyIJN1XUSY=; fh=2clrXZplpmgSMpZFYHe2ZjjZRH5H5afXbhG6KHs0g38=; b=kevscMYx04BzXVlqVg75wcz3JUzvc/zd8TamwvH9T5MJyXDWxDlsiqGMtichm7Bbv4 4GG8j2S0lF1NvMnW8ebQkdu7+3M503GHbXL36uQjDXc5++Omhfuz0XUnkt3B/4YZRf/0 8OeDTxUHAzsjdjV6wqq6A27Vnwk6tCTNZAYnoYQZcT6sd991CTW7ugFWf9FI/TaUnL9Y gLE0XrgVIba2JTlQw7vEMpmHlrHJrKgAtoc1oiYxdpJkPbRNQfwmIGpwnT+Le1eNF6Je M5h09+wyIvsUJkm/9v+x4jgw4YXuW//58ARTRlKPpAtXl4ajsy4PZZ9DfJBcy7pkshji oBlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QEzOHijG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id b23-20020a170902b61700b001c589ba4a0bsi4720605pls.195.2023.10.30.01.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 01:08:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QEzOHijG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id BC6338051161; Mon, 30 Oct 2023 01:08:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231945AbjJ3IH4 (ORCPT + 99 others); Mon, 30 Oct 2023 04:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231944AbjJ3IHz (ORCPT ); Mon, 30 Oct 2023 04:07:55 -0400 Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11539D6 for ; Mon, 30 Oct 2023 01:07:52 -0700 (PDT) Received: by mail-ua1-x92d.google.com with SMTP id a1e0cc1a2514c-7b9dc244151so2542152241.1 for ; Mon, 30 Oct 2023 01:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698653271; x=1699258071; 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=u1/VaDbZg1pSYVDN7uPxJsz6GyIrT5GcoGyIJN1XUSY=; b=QEzOHijGzVSL2H4H1on8ry9lbReHY/FnIiWDA6Rl1EZUWYP3EfvILoEHgsCU6RTLCR wEN1TRExxbY0/LbRvLlnYhFQiFWX1PTOAKtaAdgYjO1v06/saY2Xr2Kxh5mAkxC1lh2s t4D0F4Kmwn4nleytpmlgD0L8c2QbwL2Wsst+X/yOEqJlNthyg6qb1/dkMZHN20OfeJF6 dhK2WDyjikoSjKrrov8sLJwx0iugC9fJKDA7/r2sHPgsfD5+Vo82JEEKoCC6NRjIGBU3 Bi5KLtSKWDa0XnCEOAaBPs+o4FLsagXl2d7WFe6uyvdlaaSHmCrZH3gm1nJHuIZRtXQn Xqrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698653271; x=1699258071; 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=u1/VaDbZg1pSYVDN7uPxJsz6GyIrT5GcoGyIJN1XUSY=; b=MEp+JQIyb64as0gekrVb9K1Byx7LrotB5eT2zrX/orOskTsi557SUeNRAD3OOhyTnI +0S177FWd4wnbQM62asHik4N1yBZEeBUg3JejOMH+Rir9JWQ3LkhfSGlpUfW5iyAtNbK ToAbTrDA0QsTXw4yvW7hhb4EiOH+0rs3iFOplmwqFrfwuGBu0uhU1ioWtmHBGh0GdF8d pFdtlKbathR68N/h3TApGdSpXWn08sWLl8MXE/PLfL0bJrVPHponOS/MBcj4Qesz6z/F 4Qd/3oRaSxSKRVJdzKNbdXhWX7xM/DWV0PYTokXSGAnX5WFdV5VccKWo0imSV969VNEq xM5w== X-Gm-Message-State: AOJu0YyYE1mogMWL2YxBL7VdMgMCwwpKFDpWyzkihlMBNKn+AmYsMkMj 6D8Fktf7WPHTHwpE0h/8WCcEyboaptdO4Q+8Wd8kwg== X-Received: by 2002:a67:e0c1:0:b0:457:c425:a696 with SMTP id m1-20020a67e0c1000000b00457c425a696mr4882109vsl.4.1698653271021; Mon, 30 Oct 2023 01:07:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Mon, 30 Oct 2023 13:37:39 +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: text/plain; charset="UTF-8" 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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 30 Oct 2023 01:08:18 -0700 (PDT) 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 - Naresh