Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp141202rdb; Thu, 1 Feb 2024 04:45:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHFEvwdgAO/cE1rNeOPJLK5+EfptNy2cjLcEia8kQh5Jdvdz16LUL60sehNjjHufYL8E7A/ X-Received: by 2002:a05:6870:ec8a:b0:218:eff8:3161 with SMTP id eo10-20020a056870ec8a00b00218eff83161mr1401590oab.39.1706791519277; Thu, 01 Feb 2024 04:45:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706791519; cv=pass; d=google.com; s=arc-20160816; b=Y7duukD/piq7QRl3wDsOcgA0WjpdD+qlRmv0x/vTFPQRGauBjxZ3r/k+ZkmDQvM+BO QS63zv3Qwxjh1tflbvMG+sR+gwC+Zo5bofB8MwouvS86OFISvbjTtNZ+YujhNx5Z+blu vq9SVevVpgh/C7m8zTvrY95yOZqxos1Rj+OOqR7/p99X5HDwAif1Z/MLmGzPL97qhy75 iPEYcOiCDTareu/20Z3FBsUEkxFAXEYSjhQHX3zimrSlLao754VGr50lkSQvFb5gg7hF H/2VSSmbszZlJH7T+vQ4Dn62r4w4E922jdVv0ZCAXSM/FiDkN8UCEItRjvsKnzc3XWne UoRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=FYqH+OWIRAnnWbaqi+/jKJcu7PZrAVd2PkfYoCSpaR8=; fh=xLTWB0LULWeDqW3f2m+1SIMfOhaRmYE+lpvOGi/xM0E=; b=q230QIbWe/fDX6NCEnEoSs8NqbYyQViQAnRazRVDk15sRT8LtZy1tlishxhz9JfZ3g Uikip4rnO9c68o8hb3oaiim2x3r2bdtZY5NqXdW6Q5D+ubbQjSaQfqRqQ834TOvIZGgu 7GJ5cQL7xffZib0fGZbGYbgwYXbfPlnroic37yP4lNWLNMI1XWdK0AeSL2GhsqEgYpSl 4qzj18d3tsyT5L1Qm77mQpNHuBV0/BdHRibeiPMqz3K8trK9sanaVr3LPKrHNH3BAeN+ Cz/wHiPeI+jdxW7hU6Lg9gFrlZFLXWm4ZA7zU2x9oDyVARiNWeDNwPhFlnXSSmq3EQew ZGTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-48148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCUM7p/2YxI+vAGlI5DMXIutofTas3BWHe3t+/lpHFFJc2nw84XqNGc6vLh7I3gB0WwmONZA7S3Gcppi/3bcG/snozgQ2gXEysf6CvbiGA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u68-20020a637947000000b005d833363035si11393618pgc.790.2024.02.01.04.45.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 04:45:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-48148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A339628E421 for ; Thu, 1 Feb 2024 12:44:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EED9F86642; Thu, 1 Feb 2024 12:43:58 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8ABEB86633; Thu, 1 Feb 2024 12:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706791438; cv=none; b=fBeaCRJYYnxYfeWpGp/ynQuDPhzTBgKsrkkYIuMT0iJjba/rI6qT6l3+1rYg5s5/to1ijZhAOT8DLnFQDXRXdCKB/rfSBT4ZM1YUEzkCef7GW34LiBcOz8WrAa7cjzDOXbHh5yxHbuWFyTkffdAV9IdydFvDHIaeROITPA8ukA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706791438; c=relaxed/simple; bh=4auvn7LjrJT99HD1SM4g6QDGfIrFfbJp8dsmDU8bIfU=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=W2ZsbB/H0MgqFvrQdtohIqaw5Ous/mKeJ9PLMBQQmVbGwQUOGaRzcoPJM+nqnKHaMfeWjYcqunTDQ5+Vo0pzPifyLWHI8vrLwObkgTXzG+hHWRCIskIGOuqI9sr5jnBbulAtM3aLeGvIo/s9FhJHaLqWLtmJnQwSdN5pxF410ps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4TQdpy54rgz1xn48; Thu, 1 Feb 2024 20:42:50 +0800 (CST) Received: from kwepemm600017.china.huawei.com (unknown [7.193.23.234]) by mail.maildlp.com (Postfix) with ESMTPS id CD6D514040D; Thu, 1 Feb 2024 20:43:51 +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_128_GCM_SHA256) id 15.1.2507.35; Thu, 1 Feb 2024 20:43:50 +0800 Message-ID: <67c1f723-0a5e-6ab5-dd71-a654509fb956@huawei.com> Date: Thu, 1 Feb 2024 20:43:49 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -next v4 1/3] x86/mce: remove redundant fixup type EX_TYPE_COPY To: Borislav Petkov CC: Thomas Gleixner , Ingo Molnar , , Dave Hansen , , "H. Peter Anvin" , Tony Luck , Andy Lutomirski , Peter Zijlstra , Andrew Morton , Naoya Horiguchi , , , , Guohanjun References: <20240111135548.3207437-1-tongtiangen@huawei.com> <20240111135548.3207437-2-tongtiangen@huawei.com> <20240130210918.GFZbllfs4jUcd_QHL2@fat_crate.local> From: Tong Tiangen In-Reply-To: <20240130210918.GFZbllfs4jUcd_QHL2@fat_crate.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600017.china.huawei.com (7.193.23.234) 在 2024/1/31 5:09, Borislav Petkov 写道: > On Thu, Jan 11, 2024 at 09:55:46PM +0800, Tong Tiangen wrote: >> In commit 034ff37d3407 ("x86: rewrite '__copy_user_nocache' function"), >> rewrited __copy_user_nocache() uses EX_TYPE_UACCESS instead of >> EX_TYPE_COPY,this change does not broken the MC safe copy for >> __copy_user_nocache(), but as a result, there's no place for EX_TYPE_COPY >> to use. Therefore, we remove the definition of EX_TYPE_COPY. > > Please use passive voice in your commit message: no "we" or "I", etc, > and describe your changes in imperative mood. > > Also, pls read section "2) Describe your changes" in > Documentation/process/submitting-patches.rst for more details. > > Also, see section "Changelog" in > Documentation/process/maintainer-tip.rst Hi Borislav: how about this commit msg change? Since commit 034ff37d3407 ("x86: rewrite '__copy_user_nocache' function") rewrited __copy_user_nocache() uses EX_TYPE_UACCESS instead of EX_TYPE_COPY,there is no user for EX_TYPE_COPY,so remove it. Thanks. Tong. > >> diff --git a/arch/x86/include/asm/extable_fixup_types.h b/arch/x86/include/asm/extable_fixup_types.h >> index fe6312045042..787916ec1e12 100644 >> --- a/arch/x86/include/asm/extable_fixup_types.h >> +++ b/arch/x86/include/asm/extable_fixup_types.h >> @@ -36,18 +36,17 @@ >> #define EX_TYPE_DEFAULT 1 >> #define EX_TYPE_FAULT 2 >> #define EX_TYPE_UACCESS 3 >> -#define EX_TYPE_COPY 4 >> -#define EX_TYPE_CLEAR_FS 5 >> -#define EX_TYPE_FPU_RESTORE 6 >> -#define EX_TYPE_BPF 7 >> -#define EX_TYPE_WRMSR 8 >> -#define EX_TYPE_RDMSR 9 >> -#define EX_TYPE_WRMSR_SAFE 10 /* reg := -EIO */ >> -#define EX_TYPE_RDMSR_SAFE 11 /* reg := -EIO */ >> -#define EX_TYPE_WRMSR_IN_MCE 12 >> -#define EX_TYPE_RDMSR_IN_MCE 13 >> -#define EX_TYPE_DEFAULT_MCE_SAFE 14 >> -#define EX_TYPE_FAULT_MCE_SAFE 15 >> +#define EX_TYPE_CLEAR_FS 4 >> +#define EX_TYPE_FPU_RESTORE 5 >> +#define EX_TYPE_BPF 6 >> +#define EX_TYPE_WRMSR 7 >> +#define EX_TYPE_RDMSR 8 >> +#define EX_TYPE_WRMSR_SAFE 9 /* reg := -EIO */ >> +#define EX_TYPE_RDMSR_SAFE 10 /* reg := -EIO */ >> +#define EX_TYPE_WRMSR_IN_MCE 11 >> +#define EX_TYPE_RDMSR_IN_MCE 12 >> +#define EX_TYPE_DEFAULT_MCE_SAFE 13 >> +#define EX_TYPE_FAULT_MCE_SAFE 14 > > You don't need to renumber them - all you need to do is to comment it > out: > > /* unused, was: #define EX_TYPE_COPY 4 */ >