Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1065269rdh; Fri, 27 Oct 2023 03:58:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFN5oLMZT3NTWnkHkAEGZAR2PFB6POqE9ebN06OelesMfQRlr0jro+PauP6cZYtCQo/In4u X-Received: by 2002:a25:a2c6:0:b0:d9c:aae9:10f4 with SMTP id c6-20020a25a2c6000000b00d9caae910f4mr1740045ybn.4.1698404292476; Fri, 27 Oct 2023 03:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698404292; cv=none; d=google.com; s=arc-20160816; b=TOObhmNAv/L/Xa/n4iSbae5oy2KROK4devLJP84NQhA7TadK1V7LIRjj2DtSgy/bA7 uYabxM5jxYuR+3VkcEnHikhQGtJDPvlmn/W0brvRBG9FwdENlRzvMcuW0wHly1CP0DId lgh2Jg2uxJLUrO3GuUGTW5SWKaE5N7CJNUfV6YZtmr0zcTYXj/3CEW3ULPlR8oFsG6G6 ebOnuKaFJ6St2m5rvNXFXFdMNfr0AdvcFagGoz2PJeNLIP7oyFoaa95PSXho+5U7xENr lBQvoAC3ShUeHuxl/aiPq7CHCJ4u2BCWAVBYbWBUzs7UUqc1X/I7BgsIoh0rBotuhPO5 WUHA== 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=3zQBT6jRuR5jxYiRAr8syfNhHciQ/BHcE4DZFyhdPwI=; fh=2clrXZplpmgSMpZFYHe2ZjjZRH5H5afXbhG6KHs0g38=; b=cJ6p/ePv4CjmeNHXxEOpKPNAks68FjGyVFfGMlmsCqTeXVqCd02JjAl/NCkz+xe0LS pnhs7YtjuWxBvYbvw40M6gkyzOM30FyD0DN/81cLyKRWSmZU065yFFSHjJgh7NooUXtk WkczDvIAgQ1DEta3C5x1yWbxH/timi7D0BSrZ3ynGn5h3cdJFAevSnpj/cuHLysRa9Jg xBnKwCUrsT3pImNTBg47Q5dXR4+8nlpy3VwNK5FX9b9u+39z7RuDmqPzqGuxCGDq08Jb Q82+wmBQAz06nyo/LBzMZJkPz8PLxlOTcr4FcwWCZ9tJmUyW4ISYKeMxmuH0iCsenxaF nnXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PP7jMKs5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id e72-20020a25e74b000000b00da0cafa0778si1835870ybh.640.2023.10.27.03.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PP7jMKs5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 4DCE08348DB9; Fri, 27 Oct 2023 03:58:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231602AbjJ0K57 (ORCPT + 99 others); Fri, 27 Oct 2023 06:57:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbjJ0K55 (ORCPT ); Fri, 27 Oct 2023 06:57:57 -0400 Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAF311AD for ; Fri, 27 Oct 2023 03:57:54 -0700 (PDT) Received: by mail-ua1-x932.google.com with SMTP id a1e0cc1a2514c-7b610279c8aso878437241.3 for ; Fri, 27 Oct 2023 03:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698404273; x=1699009073; 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=3zQBT6jRuR5jxYiRAr8syfNhHciQ/BHcE4DZFyhdPwI=; b=PP7jMKs5l7SL5IZXsqTzLeRLyfOLcpy+3xxK0sjSj2gr1UTLLRnankwT5A+w5SwD0J gdsAWOGRAT6DiTXv0BClS3Yl9Wi00+cZACEFYyDhtub68RweVSeuAo7RrHWQj9KY1qH3 85dswXIKUHhDyDKLTdgZi21nZ6z56YsM6/EgkEJb22uL7r1NqfWO0xuwda9WojuJNn6r /eP+ThfBybhRj/5O0jmwnMG98XfKSs9ldeITvRZoqhe/Sov2mGWdQK7BxvNXBi7WJUs6 4zlADIeSrk6+xVCA10IP9WrxJfSMI1FwqIpNzFsyTRUi7FKHDFjncg/gy0vhcq+A7zeM sIXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698404273; x=1699009073; 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=3zQBT6jRuR5jxYiRAr8syfNhHciQ/BHcE4DZFyhdPwI=; b=TSXoEYoKp5ZNGQG4Vtrvp3vdYsm4JYY3vmcS5IeIb8p7LKWTjarORhWWyn+RcpxryI UzFStKuksfAnfPCjDImxHiwbvu+hafcCRkcU9N6pGXd6Tj6nT02eJqOYQyGQ1y+XrbJZ 6OkFtBpeu1PJGRuAzikccvB10K5CQuCXE38z8G9fnnwYE6767R2y6gmdSm1gaTB/J6nk YpH8CL9MetIi50cTZ8Ly2ksiI3JkzHJPoGt2kQ0u/d2USUnv+0HxFWyy95wtWKVsvR/w m1AymWJ3UIHBD6sIgj2CwMiw1UQrAtZPBNdt3gZIFb6OwCIYAioerRTKWC6RyyZpavf8 f4aQ== X-Gm-Message-State: AOJu0YyuuWCNvoViOSOd0iOBum7Etm1XbswKmLCMysLZr84NwwBvNvRx TjEdB4qFZcIfV+hdF9y/QnZomnfbCcZxvqc9158UKQ== X-Received: by 2002:a05:6102:1592:b0:457:dbfc:5c69 with SMTP id g18-20020a056102159200b00457dbfc5c69mr2829666vsv.12.1698404273032; Fri, 27 Oct 2023 03:57:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Fri, 27 Oct 2023 16:27:41 +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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 03:58:09 -0700 (PDT) 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 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 :-) I am happy to test any proposed fix patch. - Naresh