Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4090086ybc; Thu, 14 Nov 2019 21:34:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzeiBBkWiiXtYvMV482jTQ3XE4XXaZIak1D3sqJpZhIUNNt4PQ05xsbIX7M7Gf8NEzHcXa4 X-Received: by 2002:a17:906:5015:: with SMTP id s21mr10906772ejj.226.1573796047602; Thu, 14 Nov 2019 21:34:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573796047; cv=none; d=google.com; s=arc-20160816; b=KT7BA2CmBL0Vcvwxr6DGGeI6oHOyBe0wCYGhZpFHCA5d1kC37SX+Y3AL/b2lK5YdqH Wk9P83pSiqplFgEJ8x3v+Gz8dBPENyYb3HiAfrpWFey4A9KpRNo1hYIVSfU8UdO5tvMl wmuBX16bUoqhYc7/0m6ICJiT0om1OHKN//g5HhWPXkjrKS/KRsIauOJO784MOcnVktOg S41mvsCP3FVwiJvzccHA0XqP8QoYuznBgcV7Iicq1lJ3GBuwCukme4Z9ijMG8Lhtw4Hy AZDm3pXrsSib1AJthZytpd4iiPZH2rK7MHH9DP1Duu7gAMgls8XONeinRGAAAhp6Te5O EhHQ== 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=qwWwUvjngD0vGITVGJw2bNFQc6m1rEqC7TEDYhp2gbo=; b=NruqVCxZrf++R5dmvbPijOTDLemuWuolLlvDRIkOcpI4rPatQvBEFYhpxfBukRaqHp 7pB3kgb9IeAscDhIYenoI4UGduBu0hO8ZaYPPE/dN8TGQTZMj9P8ml11ZQiTYZLdpmr3 dextH4aB5H/nygQQgr+EgnAUavIdr0OM77FRMSCmFMOsS0ATcD28aIahg32fofhB5Nsg +UTGMuWat0D2UdMOg7DfeXzDicBznwbPd/xHK1pUr/7aLgPSh9k7J+zn+99srKLoGsLX skIY9+n3AI9rPsEYmiCzeEB8YZ82+bHVEJ5imhbTThhXxwP6dB49TPL3/qPaDG7pepgJ F44g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=atnC2AMF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si5551919eda.307.2019.11.14.21.33.41; Thu, 14 Nov 2019 21:34:07 -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=pass header.i=@chromium.org header.s=google header.b=atnC2AMF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727002AbfKOF3l (ORCPT + 99 others); Fri, 15 Nov 2019 00:29:41 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43332 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726131AbfKOF3k (ORCPT ); Fri, 15 Nov 2019 00:29:40 -0500 Received: by mail-pf1-f196.google.com with SMTP id 3so5852306pfb.10 for ; Thu, 14 Nov 2019 21:29:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qwWwUvjngD0vGITVGJw2bNFQc6m1rEqC7TEDYhp2gbo=; b=atnC2AMFzcg/i0Mp01bQtIoCfLx+HHbTWM8nHw4lKY3bvK8sTjwuuQEAzd/5lBqjg8 S2gVzJA/HwmQYtqs72pyRN1J6FXkXvof9go4CmLgmO38QZr4HfrNVAzeJS6EmIVf0Xon frtfStys716GXGZIcxrtKpwu1jAmCujAqb+64= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qwWwUvjngD0vGITVGJw2bNFQc6m1rEqC7TEDYhp2gbo=; b=nlsz6voHMBqUJ1Cs7MAZDLHmq2Q1XDguhtF73rs/ZSZahMHgJQ6dVLKMc/0NxtAqFF 1iEYtpm71EIY+/Sgd1wU/hx8RCLi4Ky2UaZvOpQjhoqzsNIK4PTm70dBm1y6l0+i7aJZ HLr3+rBkD/T2DMxJeY1sRTutFutU7QK9PYEPP6zEQK3k3lkBQa0PnGGCHXGgBEOZo7+S /3ebjIV4KIMIJH/KxXniCw8KkZm57xv24S8/oR21802UrwE5HQkVzJhEXdx2tO3GOnyS NA9qXHN3KHqhI13n1qN0ZlucXCKsuLyun5Bq+YBXeMZOhXsPT1BglBuMsx3JD/ssuCEL OxtQ== X-Gm-Message-State: APjAAAW+YsMbMbVUzSVdpF1sHyRZ7o1ibRWgzZgUlYBDQSMKrCOyvOcT hAl1LWGqlL+5VFvly93BUFjOxg== X-Received: by 2002:a62:7c52:: with SMTP id x79mr15159448pfc.18.1573795780005; Thu, 14 Nov 2019 21:29:40 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 12sm9010639pjm.11.2019.11.14.21.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 21:29:38 -0800 (PST) Date: Thu, 14 Nov 2019 13:27:48 -0800 From: Kees Cook To: Jiri Slaby , Alexander Viro Cc: 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 , Christoph Lameter , "David S. Miller" , Laura Abbott , Mark Rutland , "Martin K. Petersen" , Paolo Bonzini , Christian Borntraeger , 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: <201911141327.4DE6510@keescook> References: <1515636190-24061-1-git-send-email-keescook@chromium.org> <1515636190-24061-10-git-send-email-keescook@chromium.org> <9519edb7-456a-a2fa-659e-3e5a1ff89466@suse.cz> <201911121313.1097D6EE@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201911121313.1097D6EE@keescook> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 12, 2019 at 01:21:54PM -0800, Kees Cook wrote: > How is iucv the only network protocol that has run into this? Do others > use a bounce buffer? Another solution would be to use a dedicated kmem cache (instead of the shared kmalloc dma one)? -- Kees Cook