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 CD46BC3DA4A for ; Tue, 20 Aug 2024 03:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=s5MXd7+LBc2W6/tCtakOOgLWx9k22jzrwAkAgVGQU1w=; b=wKaGRmpSjuuZBt0/1QA8of0VnN sElLcd2LEJ+kR8NZ1xnYF3Ms84k7B6Hb5SoXob4Jbyj/1jHa8c8sHL5Ax5KZ+NTLInjaECprUjtMM EY4NmkaM/mJ8MtuCokDI5ukyNzURL16C5zH7QeMqiscSOlmV/HGBq6AouOdwDvZQbNC+AIBSxK9Jq VOqtfzc5igjY3IzAu6WXJ2SeKWEZPC6xlcipphpzPRiQFigM51DZKWXG+Tmawxm4c6MeVVMhGLttM 0QpYerqx5I4BqP+bSxhi92ofnqnEn0QaJFzPWFda1wg0SlsfjYYBg5crIbO94Y9bnoZCrPizmUHKk 5idyYa9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgFpW-00000003gqa-1kou; Tue, 20 Aug 2024 03:46:46 +0000 Received: from szxga07-in.huawei.com ([45.249.212.35]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgFon-00000003ggX-2bzZ for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2024 03:46:05 +0000 Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4WnwGt5vK8z1S8KR; Tue, 20 Aug 2024 11:40:54 +0800 (CST) Received: from kwepemm600017.china.huawei.com (unknown [7.193.23.234]) by mail.maildlp.com (Postfix) with ESMTPS id 7B09814035E; Tue, 20 Aug 2024 11:45:54 +0800 (CST) Received: from [10.174.179.234] (10.174.179.234) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 20 Aug 2024 11:45:52 +0800 Message-ID: <9e27aeee-0e2d-7034-5afc-42f2f14eb02b@huawei.com> Date: Tue, 20 Aug 2024 11:45:51 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v12 6/6] arm64: send SIGBUS to user process for SEA exception To: Jonathan Cameron CC: Mark Rutland , Catalin Marinas , Will Deacon , Andrew Morton , James Morse , Robin Murphy , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Michael Ellerman , Nicholas Piggin , Andrey Ryabinin , Alexander Potapenko , Christophe Leroy , Aneesh Kumar K.V , "Naveen N. Rao" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , , "H. Peter Anvin" , , , , , , Guohanjun References: <20240528085915.1955987-1-tongtiangen@huawei.com> <20240528085915.1955987-7-tongtiangen@huawei.com> <20240819130809.0000731c@Huawei.com> From: Tong Tiangen In-Reply-To: <20240819130809.0000731c@Huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.234] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600017.china.huawei.com (7.193.23.234) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240819_204602_533269_E849C766 X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 在 2024/8/19 20:08, Jonathan Cameron 写道: > On Tue, 28 May 2024 16:59:15 +0800 > Tong Tiangen wrote: > >> For SEA exception, kernel require take some action to recover from memory >> error, such as isolate poison page adn kill failure thread, which are done >> in memory_failure(). >> >> During our test, the failure thread cannot be killed due to this issue[1], >> Here, I temporarily workaround this issue by sending signals to user >> processes in do_sea(). After [1] is merged, this patch can be rolled back >> or the SIGBUS will be sent repeated. >> >> [1]https://lore.kernel.org/lkml/20240204080144.7977-1-xueshuai@linux.alibaba.com/ > What's the status of that one? Seems better to help get that in than > carry this. > > Jonathan > . That patch set has not been incorporated yet. The latest one is still v11. The consideration here was to ensure the functional integrity of this feature. Considering that this may cause confusion, it is not appropriate to make this temporary modification here. Otherwise, this patch will not be included. Related impacts are described in patch 0. Thanks, Tong.