From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D405FC25B67 for ; Fri, 27 Oct 2023 10:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QMF+6W24gYOh1rwZIZEpJdbmEZClchZFax1QsNM5aB8=; b=XYC9Cy5/fK7HYJ FVoY5+NOMxP/7UFrgK4NHUgdsYC/jqgRt09SCJTICk/40yFDQ2AcWtru93DTt7j7AifkwOrLWhAiD Ox7on2DBcRl82xdVHLOWf1QhyyB+l3hV6FALRuPIO5b8prG4LqYe86sfg1EZl2jMDJ/MM+J6+BjPr x6GxqQP5MWyUOgEtw4UzhJhWa3+a131Plx+mqWyhH2r35t+5nWmrldOWo+SS1yKnKHxw4SGbaYhjf jbtJrHWAuN02tMO1DL5rjz21Lfilik2w7ewF8ya3ODM+hZjYS7Jz77Rg2PYlkA9Vb6PCL55bdZn49 DMS0WqBfixgajYJnbXrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qwKXP-00GGEg-2a; Fri, 27 Oct 2023 10:57:59 +0000 Received: from mail-ua1-x934.google.com ([2607:f8b0:4864:20::934]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qwKXM-00GGE9-13 for linux-arm-kernel@lists.infradead.org; Fri, 27 Oct 2023 10:57:58 +0000 Received: by mail-ua1-x934.google.com with SMTP id a1e0cc1a2514c-7b9dc92881eso737971241.2 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=lists.infradead.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=e2UWusDx6qJ2ryvxDZ+f5ZWRpV+Xz9haFuGmRzODr2EPnSG7sxe/hGtoA8keXgkns3 O0Ta3zImydAFENtizQDmU7fs2u/anzN7DNJGwW9VLkYJpuN1t/gr79/O2L6pTIIEEt61 liXvVqP5uvkoA14H1MU9a5rVoKaTQuSQQO4so5/oxGNkHqS0p2Li60tTl+EDVamiB8rZ 48qv9Nr79ZKqtLaOAm2yPsP2L4Uqt0g216/exzHyZnjtyUBgJUzrSaalPZ4KxR9eOM6O ItWKCJqd/ZLC5MUMZS5uPDROZNdCplSzgX9UhCzyOJ0j+m85S3DE9HifltGSMbkMRJm6 t9uw== 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=H+Hf1Gh9oKyos+4eAW8DZwPGR5BhsJhU0FOjtx4XEHTHlLMDgNiZnDarn9SMiV1BKe Vo0gWg73sqidD2FZB2MrcboGBe+k1eGSoJOpJ274+sVXdflFbxukHGtvLvPWJX7F6h8v dTJp8tCLK+8RR4CklS4KSGhCXwSMZeqhJUQXGidEKbzEZorpVYs1AkCgbkcuji1KxaVf xMKKEB6l+2K0DEpXBce8PEvP/7YJzhxd242Rp86N/1hx7j28HnLldI4Pw6YESBleyhNw 3LWW1HtwN6DxEYmcA7iDqJ65Y7t3R49LO5Qzq1+UdjtLSb8QJRV2tYY3DFhtZJOje2BJ 6JcQ== X-Gm-Message-State: AOJu0YwjiXhE2Oxy4X36kgh6qI+yl1jRH8hQGyzOjxEQ107i87b6acS3 6kH/pExwsYxNigL5A8xuYTCgaX3Uf9ndMQ6HkLgsqg== X-Google-Smtp-Source: AGHT+IHarNLCoFsdKNzL1a48n70a2eNgURLrsseEGHkrmEWYJ6n2/q05I2+4jQ74A/lQL0OqJP835LGQwXLk47ENiWU= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231027_035756_390801_57B7F0D2 X-CRM114-Status: GOOD ( 25.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel