Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6548252rdb; Fri, 15 Dec 2023 01:27:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IERqfkzG+CuGnDs1cVq1GgMwEhP0FGpumGuPPpHnz3olBu+1GiHW941nMuEWPkJZDVWDzd2 X-Received: by 2002:a05:6808:140c:b0:3b9:f344:b5cf with SMTP id w12-20020a056808140c00b003b9f344b5cfmr18323702oiv.74.1702632476878; Fri, 15 Dec 2023 01:27:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702632476; cv=none; d=google.com; s=arc-20160816; b=xvDImIHYSQ0Ryj9edBBneHLQsv2qz8hpmUyaUh3oTeH6F85nzh2PzYGZ89nMcZVaEX buXiDG2tabruNvzWg7v/CPW1tyD2qKL9GgPL0Z70HSwZM35Czj3mYnLm6Axful4TJ/DZ wNo0gXrHqIioAaXxfOR7AeFeXV/jtCvbh7BNyP9+3aPOMDaFtbs2MT7hrJ46TwZXXWdY zRY2hFD0kVHZ8htIQRLRIrnJNxc1HaQIYZXLCCwuXLctgnTNR7j7hNPuZn5qGCWTiExv E31IX8sYwajEBVR6C4/VkoapWJ9i6/1CRNfLNHn7UTSYSCU7boIaGAl7XcfdDgN4Nqy0 I0qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=hYPAQIWLk8khuqHUwuIA1MRsSUVYCv86odQdWoEDCdQ=; fh=S6fFz52YCbsdznBjLtCSQN33hfexsgsFtw/Q3a/cb80=; b=cT5gG6VE8+RP4KbaoFFzDU/ODZfR+aof8w9g4aaWNf8U7soyCaOibOCVgKfwm96AHP zCaLwH3tH+YE7pJXhUhjgZBMSXxO+2+6H4s01M4NODBEXt753cgp1Zrn6U2/zlPYI7ej MimD0D+CS8p1wye/nah8hc1fuY8jf23hhrz4O6pK9AtgXJ7qpTULABqDxNd4vbUIc6vE JRfQxTne+VsRntoXaGX1uCt1VZKg8orgsE+bXt9CDWVbzmZ2x6ncBrZ9PEVVx2MAVbsf zL5O7lKYXlwvlByXc6frLZaoZcup3nWgoKldQxiSNZk3IzVEANouW4u2dG6HUTlHxMTS CTdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ar+MEkcH; spf=pass (google.com: domain of linux-kernel+bounces-680-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-680-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h6-20020a056a00170600b006cb686c08f4si12932394pfc.211.2023.12.15.01.27.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 01:27:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-680-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ar+MEkcH; spf=pass (google.com: domain of linux-kernel+bounces-680-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-680-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 8832128495D for ; Fri, 15 Dec 2023 09:27:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 818CA18028; Fri, 15 Dec 2023 09:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ar+MEkcH" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BA4F717986 for ; Fri, 15 Dec 2023 09:27:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDAC5C433C8; Fri, 15 Dec 2023 09:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702632470; bh=hYPAQIWLk8khuqHUwuIA1MRsSUVYCv86odQdWoEDCdQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ar+MEkcHFnCt8QuVaWalo6GF4nkAsmr/DHYeBxF91ZpTgeXcVGBksxuMerTBnaFDH ZRdk76FjXNnbx7AbOQozWTTgTbsj8wshiazXMDSX6yMaVVL6ExJFNI3d+YfyCacVfl v/eXaDIDy+AuWmcaTcUilH77G/FNtLp5d3UXvEaVQnc2pTJOv3iM1K1E05abawHxZR xAt4TdZiQHncAO1/PISkvu0/dVfCI6pSFIQllHDW10IU7kiUeCVMYoygENiamJ94P3 8EdSpVNeGX09ZHMbMl7Ra0JB7w/4SCWRp7uZvxInPYmQK2VY+vy0QlhvJeUDPSw+fr FVCsIox21GUIQ== X-Mailer: emacs 29.1 (via feedmail 11-beta-1 I) From: Aneesh Kumar K.V To: Nicholas Miehlbradt , glider@google.com, elver@google.com, dvyukov@google.com, akpm@linux-foundation.org, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu Cc: linux-mm@kvack.org, kasan-dev@googlegroups.com, iii@linux.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nicholas Miehlbradt Subject: Re: [PATCH 10/13] powerpc: Define KMSAN metadata address ranges for vmalloc and ioremap In-Reply-To: <20231214055539.9420-11-nicholas@linux.ibm.com> References: <20231214055539.9420-1-nicholas@linux.ibm.com> <20231214055539.9420-11-nicholas@linux.ibm.com> Date: Fri, 15 Dec 2023 14:57:42 +0530 Message-ID: <87ttoju86p.fsf@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Nicholas Miehlbradt writes: > Splits the vmalloc region into four. The first quarter is the new > vmalloc region, the second is used to store shadow metadata and the > third is used to store origin metadata. The fourth quarter is unused. > Do we support KMSAN for both hash and radix? If hash is not supported can we then using radix.h for these changes? > Do the same for the ioremap region. > > Module data is stored in the vmalloc region so alias the modules > metadata addresses to the respective vmalloc metadata addresses. Define > MODULES_VADDR and MODULES_END to the start and end of the vmalloc > region. > > Since MODULES_VADDR was previously only defined on ppc32 targets checks > for if this macro is defined need to be updated to include > defined(CONFIG_PPC32). -aneesh