Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1231837rbb; Mon, 26 Feb 2024 03:06:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQ23B62UpxkvnlO7mi590jG9SPPjyhxvkCDy8kDd+ITSEDl9cgtGhrVLrHh6BxgaNAw6XSSY98RfOpvPr5WgG+dtfyy5L3+cevghkg2A== X-Google-Smtp-Source: AGHT+IFNcPbuspdoJ4AN2flDoUD08b5nIEipUWWj9ko6MU7Pdn7fvWH/3zAWPX8hpJUzxFyeDk6o X-Received: by 2002:a0c:e0c2:0:b0:690:6d7:b03e with SMTP id x2-20020a0ce0c2000000b0069006d7b03emr2808385qvk.33.1708945597877; Mon, 26 Feb 2024 03:06:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708945597; cv=pass; d=google.com; s=arc-20160816; b=d26wmO16bXB95qx7T3sBE0vSwc68yX0Jt/EcYV+M8tdO+6pHADsjayhdidwtQ92rAL PfwEE1gMdsYxSq1hTycowx9gDfdE7YtW66YOkBI0GnkhNtVhZO5/IV/AF8SqvtLKrphs OFiJpTBq2P9UxkX5vrY1crSUjSPUEcpOLgF5fFvJELX04AhUdc+yTEPnYIHKCSVCWhtI 6RUz8lSyqfXats+sSNne4Mjh4ls6sb8mL9yewbh9Mz/eGgGmidII/IQcoKP2NXgnqArA 6gm1rDVXH+HSvUeYuHJ6xvuDJZZLDR6mRyA/9kN0xORgqjv4jvBQtL6U1IVL8pYlOoFR DMCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:to :from:date:dkim-signature; bh=WHdbQnlfcOYTc10sxSqdjWKBT+rdFQUDsUt4B65OTok=; fh=XaynJhSuWtiTwsPiGEYstKtDgY24zaJUvluZSkSEHOk=; b=0dEhslASEOwW+/EN/P72jZGTtWWSAA776uDDQWj3keFOO8YjVhliUSYQ5mGK75hbbL ji5DcCfakb6bVe5LQrk1oDkHKUzWe0mciT6OPNgQ3W/HwPt2/Zmua3ECx/yuxI9CtQqW YUFa5lhQC6E5fMkN57H478C5w9P1YBBfQv+9+ODDCdzUEU9CNUTyAoJA3xuvno7k5xAx AlqZMEtK5dY9YR+hvqVqPuG9Cd/W1CxXSdiCR9NSnfCO+SlIOtMR2bq2ekqn8UZksBg1 xCV8tfBhXdt3SetvlgZZYMAez+oYuWJRfgNmWG/ObFaRIP/qZINUP0VZ14mQ/rZi9SeU L4yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=p1MrETxd; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-81247-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81247-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a3-20020a056214062300b0068f74977034si4753529qvx.493.2024.02.26.03.06.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:06:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81247-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=p1MrETxd; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-81247-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81247-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B0C981C25333 for ; Mon, 26 Feb 2024 11:06:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 319C81D526; Mon, 26 Feb 2024 11:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="p1MrETxd" 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.subspace.kernel.org (Postfix) with ESMTPS id 1F7DC1B966; Mon, 26 Feb 2024 11:06:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945583; cv=none; b=dQaCCIRWAAxHP2CHA33RFDx7YAvfw1qs42ghBVoa7xb9TevFSrKzvDPCNoCm+lRZ9yXj/0+sqa7f5RUd6zOeg38j7Skjnk1xhMp7E9qjVPddRS+AQTWYt0DS8xIYM/1c8k36UyIWVcQfZZ4+pgPkuw/PmJawaNdezZNjiYkTsmE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708945583; c=relaxed/simple; bh=WHdbQnlfcOYTc10sxSqdjWKBT+rdFQUDsUt4B65OTok=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nyrMZg/jy31D+tfOZnQqBlW9shit5N6MZ986/WZJWx7GHvpGEuiROWQ2nQ9/5633VUHeuKQAu8ZWdI8j3n3YrYIbjr6dfQwUdDsduiMzvljY8ywkgHyDIgs1eiV4GmP/1fpOqrPmzPIiUAiqvraBOsViLMj4fe43WVw521jFu68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=p1MrETxd; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WHdbQnlfcOYTc10sxSqdjWKBT+rdFQUDsUt4B65OTok=; b=p1MrETxdo6Glkfbn+2vVS2RuEW rinH2/GnYT9ViW/GlytDBwgUUtTmnis3fU16E3YJmEwQC9ppSayw//xMK1gh+p4YTgQjTMFqJHEq9 EGHfRR1+FVVXnJBKnyD5CGzrLHZzFN8poH8dC8IOvgs/LoXfchH+F3fORvbr2AItKgENhoT9g8Dau OTvOqDvrbmYPADRsOV309CtAb8CVNuHcxv5itsGIy4yAQHEKYP1h/QtwFTlQOcl48BVWZwdRfhtWM 5j+LF4wnMJO5aqsNE4p3awTDT0ZraCyFA+kgCejP6UdgG9Dot1X7WSItWQtst1GF1lj+UpLVZen1r 2VWNAtIw==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1reYoF-00000000Gzk-46br; Mon, 26 Feb 2024 11:06:11 +0000 Date: Mon, 26 Feb 2024 03:06:11 -0800 From: Christoph Hellwig To: Christoph Hellwig , Will Deacon , Quentin Perret , Chris Goldsworthy , Android KVM , Patrick Daly , Alex Elder , Srinivas Kandagatla , Murali Nalajal , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Philip Derrin , Prakruthi Deepak Heragu , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Konrad Dybcio , Bjorn Andersson , Dmitry Baryshkov , Fuad Tabba , Sean Christopherson , Andrew Morton , linux-arm-msm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Subject: Re: [PATCH v17 19/35] arch/mm: Export direct {un,}map functions Message-ID: References: <20240222-gunyah-v17-0-1e9da6763d38@quicinc.com> <20240222-gunyah-v17-19-1e9da6763d38@quicinc.com> <20240223071006483-0800.eberman@hu-eberman-lv.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240223071006483-0800.eberman@hu-eberman-lv.qualcomm.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html The point is that we can't we just allow modules to unmap data from the kernel mapping, no matter how noble your intentions are.