Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp235316lqs; Thu, 13 Jun 2024 08:41:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaijP0zz+WStaESIhhAghR9L2KCFXODElQ/8AorveLMGaolV6D3etHzh93Ez51X4sKCCKz7fbj8sFPH3DvnKMT9KdtOy+VuVfaDVePmw== X-Google-Smtp-Source: AGHT+IEFVQDG/nED3vP3oPZ3Mz7VXzDErd6B+OsbkwEPYDwrBqRzFo2FY7iXOa8W0uSXrWHQMLaf X-Received: by 2002:a17:906:d791:b0:a6f:1378:1328 with SMTP id a640c23a62f3a-a6f60cefd8bmr10783766b.10.1718293290555; Thu, 13 Jun 2024 08:41:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718293290; cv=pass; d=google.com; s=arc-20160816; b=W6a4GflXImhjy0Ynnw2ut+PdvewFezSE8JvvRx7CdtAWLyGoU9eu4v7TLqfufADRfb bsAbk3vM07PQzbi8c56A0YlZKl2QBydqjtXJNf1GdMBPUkTxhGEy9qjv0Z35Eq49hWeQ 803j/5Z4aCkTIBes1Y+JJiaVjxM6sURUrg/Rz5IMYfhZ9qigfHQn/L+nqiUjRBrlvYE8 mKpvEU5O7au4QCnF6/MEVMhbUPX8t2KZLzlj/mD24y+lD3Gv70NzZGDMJKi9lfPVahCH NQ6GTDuKG4DkGtgnX0mMMNmOIPFzvp2tO75v74Nk/kar0j6S5i2J+pt9+BY7OD2Y9F/6 YCMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3hDUyT9rvjh/uqttZeOy24s2Df+NNUjOmmqDaE5+6Vk=; fh=TQATEbdDZNcnk8L2eDP6eFL9HlexFaHIexhR1TH2IlY=; b=ps9ancs6yx6qxip17B5p9L/rmCstISxxQ4sBV1PZZZlGT8yTNsNCvYnilFj1t+mLpT /ut/7vEDikFeXzNoyKn3yqRQe9widjHsdNm3kOIr9L/Y7v0t6+P6GENATIi6poiAkmS2 dsUd1EXOJ+C+z0L3fee/eY3vEnQXSP6zDtKp52RRFK6EoJCaAdbocwa0z2uZZQ08NDNV Q6/76dIYAC/gzEW5/M6mUdxotUTm8UCKdBke9OWCj6nH/qclrDTBAj+myhMOYH0usKVl +XCF+dHdI7gWeMIHHUmuec9jNKSMYAIng/mcDCgGJjV8xCeWh+vQd+2h6XJeXv+KFiuz t8AQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oo35mO8s; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-213563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e26905si77855966b.737.2024.06.13.08.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oo35mO8s; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-213563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1205B1F22D02 for ; Thu, 13 Jun 2024 15:41:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0870B14A61E; Thu, 13 Jun 2024 15:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="oo35mO8s" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 A0E5012FB0B; Thu, 13 Jun 2024 15:40:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718293212; cv=none; b=ggJiFH5Yq7rqeRqrJIedEeu9zjuxjee6fQBJNLpRligBlHqWo/Tk8k63dU4S2vT//mYe72/oM7+bod18JEPVsUqhmHc2mqnGBCCQQHH6OA9O6p5t7wP8DmEecthJvR2B4A9QvwB1GfcN/TtPtAbq31KV6lpcCZEmkpotI7R7t4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718293212; c=relaxed/simple; bh=VZxS36owFyTFwfF0o1KxTwsjbCK5h/6199Ow8SsXxP8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TIuyXEJsOwACV3EFIC5KqiwAzaQOLljQaIlEp1ft14pjK68M2Eji6FsE+sJGNcgVQmLBPMeOmBw1GsTMne1jW+OCohNpXU2GeXKKiDFubP3SwoATh2rfLVIdN3aiZdzN/rfWCzdQU3u6bHGRSaHAWqcAqWOwrT3eQGwYcaFLRZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=oo35mO8s; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45DEp8mB000837; Thu, 13 Jun 2024 15:39:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=pp1; bh=3hDUyT9rvjh/u qttZeOy24s2Df+NNUjOmmqDaE5+6Vk=; b=oo35mO8ssvN7YO060I591Spt+NCLM JxLupeTo19zW3D3ipzVJ20z/tPMBvRX+aXuYBKGnPXPArL5Vas8vaDyOIcIRMSlp N3CBKePxeBRpFlxvf4Ox5j4rM7wltI3Mdodr2wK80yUu2T420zum/dUHT39rr2Jl no3XsB9VRdG8XzCcYphTFeoDGMzae+wtRPIguoxBgWx2jdVzZJlJCrUJK0RAK7Co hFZc2Aud2b/jMGeygTOQnrko5+nlCo7C2geLMGVSVXgyB33Lf5Ua8semTr6QuDNR 713bmLVkKr3GbdSrNF8t8lg59qCKjkg73w+uV62qqOhtIWipy4dFK/Zxw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yqrext11p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:44 +0000 (GMT) Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45DFdi5h029681; Thu, 13 Jun 2024 15:39:44 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yqrext11j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:44 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45DF1l4j003930; Thu, 13 Jun 2024 15:39:42 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yn2mq916t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jun 2024 15:39:42 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45DFdahY56033716 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Jun 2024 15:39:38 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BB60A2004F; Thu, 13 Jun 2024 15:39:36 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 446BF2006A; Thu, 13 Jun 2024 15:39:36 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 13 Jun 2024 15:39:36 +0000 (GMT) From: Ilya Leoshkevich To: Alexander Gordeev , Alexander Potapenko , Andrew Morton , Christoph Lameter , David Rientjes , Heiko Carstens , Joonsoo Kim , Marco Elver , Masami Hiramatsu , Pekka Enberg , Steven Rostedt , Vasily Gorbik , Vlastimil Babka Cc: Christian Borntraeger , Dmitry Vyukov , Hyeonggon Yoo <42.hyeyoo@gmail.com>, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mark Rutland , Roman Gushchin , Sven Schnelle , Ilya Leoshkevich Subject: [PATCH v4 07/35] kmsan: Remove a useless assignment from kmsan_vmap_pages_range_noflush() Date: Thu, 13 Jun 2024 17:34:09 +0200 Message-ID: <20240613153924.961511-8-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240613153924.961511-1-iii@linux.ibm.com> References: <20240613153924.961511-1-iii@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 8E0Zbtz0t13y_6R44lPTfF_XRZ9IqBsC X-Proofpoint-ORIG-GUID: TKPnZMb8tT_RMAgqeLavlGAFctQInKt3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-13_09,2024-06-13_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406130112 The value assigned to prot is immediately overwritten on the next line with PAGE_KERNEL. The right hand side of the assignment has no side-effects. Fixes: b073d7f8aee4 ("mm: kmsan: maintain KMSAN metadata for page operations") Suggested-by: Alexander Gordeev Reviewed-by: Alexander Potapenko Signed-off-by: Ilya Leoshkevich --- mm/kmsan/shadow.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/kmsan/shadow.c b/mm/kmsan/shadow.c index b9d05aff313e..2d57408c78ae 100644 --- a/mm/kmsan/shadow.c +++ b/mm/kmsan/shadow.c @@ -243,7 +243,6 @@ int kmsan_vmap_pages_range_noflush(unsigned long start, unsigned long end, s_pages[i] = shadow_page_for(pages[i]); o_pages[i] = origin_page_for(pages[i]); } - prot = __pgprot(pgprot_val(prot) | _PAGE_NX); prot = PAGE_KERNEL; origin_start = vmalloc_meta((void *)start, KMSAN_META_ORIGIN); -- 2.45.1