From mboxrd@z Thu Jan 1 00:00:00 1970 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 4FFD44400; Fri, 8 Mar 2024 15:04:18 +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=1709910259; cv=none; b=GBxdf8cpP17EkymPYKUrHzNJv3OktYU8ew+CGcgxKWhjhKM5ETcxNiFkQRd8yLEzvJzGMwLRmULk4nkTYKuZkAzllDWsPJByDyyS+su09XfEZBgXHeD4N2mb3932gxtIYMGEe19xqq88rWqQnuFJNPOeegNRjYrvOOBcSrKquX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709910259; c=relaxed/simple; bh=amIJ43frdp4LdXvpQ67ZzTeH+8PRRAvAbZgeIDVVaBg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GEYGaFiWES+O/P+NgCZA9qnUVbvLezwdn8+B6vfIfpMJ+Nu2hDQe+btc/4lfmaUHdHjns1wlz6L602tpFewtifAFiSQDx/JcKCMJHX+EEuS7icCH3fQEptWxfJPFV3JcbTaf9Kl2Ie09P5UfNDZDb8c6hkignCfEcAhYM2jnjVE= 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=WmdmwaPZ; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="WmdmwaPZ" 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:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pt9Vyv0hcTbTYMdOV2K1n/4yTaHmt/kpyjOZmBFIygA=; b=WmdmwaPZwwGNHbN9Mdm0fInXWg /38/AKUe+SqOhBSgny47q8Bln2IH0TAhlEeLXUOhQTzWEa1bpNSOcaXqRaAFez7eOXEskbuhE98kX iRE+3wrBkuVfSgA3g7sjP7fRClApebGV4ftmX3gFqpfAMOd6R4uTKvmfq7aRYPPzy0LhP/mF95wMI xOOIXJlud1/jcKPhRmlII6Z/RuHTA9md3ErqD2Y/Y2MX5PhjPI/h7cgO40v5gYXEd2nboW6EXHjI/ j++TdKQn/1bUJ1flcfUNVYxWr9JhN9YkSn7+mGji96XZkdr5Z42NV/TtHXKXutPgfMKtOcENGQ/BO y565Zzmg==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1ribld-00000009jst-2sof; Fri, 08 Mar 2024 15:04:13 +0000 Date: Fri, 8 Mar 2024 07:04:13 -0800 From: Christoph Hellwig To: Alexei Starovoitov Cc: Miguel Ojeda , Christoph Hellwig , Linus Torvalds , linux-mm , Andrew Morton , Catalin Marinas , Will Deacon , Linux ARM , Daniel Borkmann , bpf , Bjorn Helgaas , linux-pci@vger.kernel.org Subject: Re: vm_area at addr ffffffffc0800000 is not marked as VM_IOREMAP Message-ID: References: Precedence: bulk X-Mailing-List: bpf@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: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Thu, Mar 07, 2024 at 07:49:16PM -0800, Alexei Starovoitov wrote: > Ok. I think I figured it out. > Please try the attached patch. I don't think this is the right thing. The probem is that the PCI code shouldn't really be using ioremap_page_range if it is not an ioremap area, but instead directly call into vmap_range_noflush (or an added back vmap_range to avoid all the duplication) similar to the vunmap case in vunmap_range.