Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1635463rdh; Sat, 28 Oct 2023 00:43:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG03xE0k2hFnnLxPHObO/ALpZWl4kjQn8StF5iyJOwRmyX5WfzLxSrC3nf9TOgn1Qmlh9L4 X-Received: by 2002:a92:cda4:0:b0:357:fa1b:47b with SMTP id g4-20020a92cda4000000b00357fa1b047bmr6692484ild.20.1698478994073; Sat, 28 Oct 2023 00:43:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698478994; cv=none; d=google.com; s=arc-20160816; b=TdNoXdmUfCpYlDWCp8z1vXUDwaega8tHm4HOh8Ozs/gpDcKISqArVntdOnKm0NQvkN n+rji+Iz9dvCVaiwzA2GFMa846UAxeTxxR4OC/ZinEd8aMJkwF/WEUjLP5VyxOrpM94n gEc2yIkYrmEQ4ZUy0iEtTbRJX5Mci3RWivgwlA7tqNac1lH0owWG80h7g1EUo2yLXgcW IInjwIVfTZ0ompm9/eCtHgTfhiVlE2MnqBDlYNPNx2uH2Mo+Ou0xxD31k16o65H1+TFi 3nHgKIAFB5sI9vkY/1JO+1daloMXtHWgnutxRq5BzsGSDLvE4y2hzWaY3Is6guQzxqkH xhhQ== 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=Dr1FL5oTGA8lZqzt7veVnDZ5pgUIaxB32rzM1BqmmTU=; fh=QuQfB59XxU6WoHgGMI3cfN+CXfjN4qrS8C9lpt7whnU=; b=ARhNxzpd4YEc4/uAN6xxZ0WCIx3lf5GAMVcY4wf6zQ5W5yNTLYMzFINeoGYA6uXxvB 7skEWUMgGQWUrzpdV5fwStk82X2EPElfkC587UvB4rLNtraeiJCj38/03BcLl8q5KDgO EqXu1m7FFn0va2q4W+hH5XCWiAWutReex109twxtalMVSosT36mFUl+JbQq7RAzbDNvP /3M0TmzsMmIisE/NUlIwjtzRjKwiX8mNvLFiT6b1Va4lLo/UZmUinp8P6zQyxA+6Kpu/ wOrvRoW+jT6CWwES72zROvDrE3cmXhXw2VabnPVb5e+RT2zUWas0WZRaUbqcW7tx9d6o OZiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SLt9RpRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n68-20020a632747000000b005b8f446408bsi2125489pgn.422.2023.10.28.00.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 00:43:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SLt9RpRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 523EC8065EDE; Sat, 28 Oct 2023 00:43:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229581AbjJ1Hmp (ORCPT + 99 others); Sat, 28 Oct 2023 03:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjJ1Hmo (ORCPT ); Sat, 28 Oct 2023 03:42:44 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB9ADE1; Sat, 28 Oct 2023 00:42:41 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DCA8C433CC; Sat, 28 Oct 2023 07:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698478961; bh=htUU5NgNW5XjX1k4bhwOpjiaCPHzbKJXSRlXtBMXaaI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SLt9RpRk04EaksB4alsV5juWqDKrrkoFjxUkbGOZ7QmCkr5DaOIcuWvzpg2KRZFs4 oyNj7h+Nu2x3s/nz8wlUOhoDuxjmHXZ81/fxdhC/0g5Voz0M9n1SONNKBWxBpMncFw lBKCeI9FyvIc3DaiiGzH06wGVU7T0+DOcEqxXG5+SBgGefDMATnj9bRNWCQvHdXZeM FyqwXfRoKQYSCd/fmacxctuND9MgMxzBI8ScDwHMoocjekC8Ee6ezXeZ/nIzGkSYtn mnayYsRVJbFeSef6Ffe/Rd0T+4ssNkfDQtYf7XwHBc5QWDgU4QDZ0Wt0a762+yDV6w L93MhRkYGp9Cg== Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-507a62d4788so4346139e87.0; Sat, 28 Oct 2023 00:42:41 -0700 (PDT) X-Gm-Message-State: AOJu0Yzk/iHOJ5O2mT+ydEWzcvjd85tgVWvUTSmwTTkDwf9wg6+iPIKu cby8vZP+KDCNViIlRKuWA1v7c/ka76ewDvg6yD0= X-Received: by 2002:ac2:4835:0:b0:507:9ff7:2ed4 with SMTP id 21-20020ac24835000000b005079ff72ed4mr3299897lft.43.1698478959384; Sat, 28 Oct 2023 00:42:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Sat, 28 Oct 2023 09:42:27 +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: 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="000000000000087d0c0608c1f337" 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 groat.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 (groat.vger.email [0.0.0.0]); Sat, 28 Oct 2023 00:43:11 -0700 (PDT) --000000000000087d0c0608c1f337 Content-Type: text/plain; charset="UTF-8" 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. --000000000000087d0c0608c1f337 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Add-missing-ESR-decoding-for-level-1-translation-fau.patch" Content-Disposition: attachment; filename="0001-Add-missing-ESR-decoding-for-level-1-translation-fau.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lo9qibwf0 RnJvbSAwZDNjOWQzOWE0NTQxZjdjNWRlYTUxNzVhZGVhMmFmNjNlYzFiOTJkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBcmQgQmllc2hldXZlbCA8YXJkYkBrZXJuZWwub3JnPgpEYXRl OiBTYXQsIDI4IE9jdCAyMDIzIDA5OjQwOjI5ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gQWRkIG1p c3NpbmcgRVNSIGRlY29kaW5nIGZvciBsZXZlbCAtMSB0cmFuc2xhdGlvbiBmYXVsdHMKClNpZ25l ZC1vZmYtYnk6IEFyZCBCaWVzaGV1dmVsIDxhcmRiQGtlcm5lbC5vcmc+Ci0tLQogYXJjaC9hcm02 NC9tbS9mYXVsdC5jIHwgOCArKysrLS0tLQogMSBmaWxlIGNoYW5nZWQsIDQgaW5zZXJ0aW9ucygr KSwgNCBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9hcmNoL2FybTY0L21tL2ZhdWx0LmMgYi9h cmNoL2FybTY0L21tL2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