Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp758362ybl; Wed, 29 Jan 2020 09:11:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzyEJM41WNpY71l2lbbs+BEulIzRY3ABZEUFmFWUUFWi7Xi7S7XRJi+daUOB5hvNxrUFcb1 X-Received: by 2002:a05:6808:b18:: with SMTP id s24mr6820912oij.31.1580317885426; Wed, 29 Jan 2020 09:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580317885; cv=none; d=google.com; s=arc-20160816; b=q/A1yCCWAjCLy3PvyCom+lLR+75Dr1pv+uyXlQjGIVA0NcmV9kYwIbG1CVwlZ0CeuD E5FjH08IDkeGf9AieoZ9aiH6B6+IRXKIlqTnKMu2sqNBtPfkDRnxk2ZwieAG/mHMMp9H 6oovColP/KnIPkrMNPzPNIG9L6/dNeLlZ2E35pD3tOCgYE2RM5YtYB2iYZ26SBT+u+IJ 4KvONEg3lmERxaKgAEZBnU/qfGKrmYVswx4FBB97Vp3fiBY61ypODUXMgx+j/kXfF8l/ MbWBqpn0InrkAJfi68WoF33I5C5WeP6UH7juS1t617vPBWOa4yb+KojEf8zOPluFUheX BiSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JBGzCaUSC9Lw4zwXSBacb958kBHmLwh4j+E2NT3N+w8=; b=y4cF3XdmUH2FaWaOVBB/PgkLDzXZTHLCxST9R5+IgPy9xAbPffWzRgESfZGWcR85uQ ZitshoELLtP0jcG1Whb42L01VRRJdgw18qOa8nGkMi5oGP2WPNpqJo5jlgfTabSNWBCX 6gKE8s1mzSR3PujtwyprRMvdZrJy8E/9p1DlVjUitMqwr71Obv/a5Y8U5AfW8Xw3qAuN S9NxWhREM6h/UQ/9JIEzdcyH2apPVNnpjgCGck1fesvb6F1hNuXtn4+UyZygCAwnCdz/ 1yfEeBtBzFtOjjwbvg79bskh0QeLBTHA1f3Mp5bhxEbdOLK3eF0gqvUIN/ScNBSOBDrg b55g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NhFKnxuo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si1425547ota.288.2020.01.29.09.11.12; Wed, 29 Jan 2020 09:11:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NhFKnxuo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbgA2RJq (ORCPT + 99 others); Wed, 29 Jan 2020 12:09:46 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:49012 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727192AbgA2RJp (ORCPT ); Wed, 29 Jan 2020 12:09:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JBGzCaUSC9Lw4zwXSBacb958kBHmLwh4j+E2NT3N+w8=; b=NhFKnxuoL1ybWnVtBKPDIWMBP kobcIUhcIWOiLiG3PhNd1ELyerpA31rPbS6Kk+/rNcGNtdvIwl3PWmij/a9xM6voX6vcQ34B/13tb 4sU+kkNa7lo/b+1DVlDczi63ra5N/m9v+y0mgHUBdkQYpbYHvL4MFcrF2hKLGtE/SDpRurYO/ZJMU 3fNEzYX6iMsOEDNCuxNq+MS6nvqCnrBj9PFGyavXJ3LfiH3BOipeubAWMl/VM2NN+GdAtadT2jDC1 ZhsY2KS8Q6r+OuKBSd1ZSOIe6r+EBoMmmCU1+Zeo7KcL47ocsUHq4SR16gYSJMGUFtfahEHuJSMCK tP90C6XjA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iwqqR-00019P-Ug; Wed, 29 Jan 2020 17:09:39 +0000 Date: Wed, 29 Jan 2020 09:09:39 -0800 From: Christoph Hellwig To: Christian Borntraeger Cc: Christopher Lameter , Kees Cook , Jiri Slaby , Julian Wiedmann , Ursula Braun , Alexander Viro , linux-kernel@vger.kernel.org, David Windsor , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-xfs@vger.kernel.org, Linus Torvalds , Andy Lutomirski , Christoph Hellwig , "David S. Miller" , Laura Abbott , Mark Rutland , "Martin K. Petersen" , Paolo Bonzini , Christoffer Dall , Dave Kleikamp , Jan Kara , Luis de Bethencourt , Marc Zyngier , Rik van Riel , Matthew Garrett , linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, netdev@vger.kernel.org, kernel-hardening@lists.openwall.com, Vlastimil Babka , Michal Kubecek Subject: Re: [kernel-hardening] [PATCH 09/38] usercopy: Mark kmalloc caches as usercopy caches Message-ID: <20200129170939.GA4277@infradead.org> References: <1515636190-24061-10-git-send-email-keescook@chromium.org> <9519edb7-456a-a2fa-659e-3e5a1ff89466@suse.cz> <201911121313.1097D6EE@keescook> <201911141327.4DE6510@keescook> <202001271519.AA6ADEACF0@keescook> <5861936c-1fe1-4c44-d012-26efa0c8b6e7@de.ibm.com> <202001281457.FA11CC313A@keescook> <6844ea47-8e0e-4fb7-d86f-68046995a749@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6844ea47-8e0e-4fb7-d86f-68046995a749@de.ibm.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 29, 2020 at 06:07:14PM +0100, Christian Borntraeger wrote: > > DMA can be done to NORMAL memory as well. > > Exactly. > I think iucv uses GFP_DMA because z/VM needs those buffers to reside below 2GB (which is ZONA_DMA for s390). The normal way to allocate memory with addressing limits would be to use dma_alloc_coherent and friends. Any chance to switch iucv over to that? Or is there no device associated with it?