From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=3.0 tests=DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E387C43141 for ; Fri, 15 Nov 2019 05:29:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D2FDD2072B for ; Fri, 15 Nov 2019 05:29:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="atnC2AMF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D2FDD2072B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3680F6B0007; Fri, 15 Nov 2019 00:29:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 318FC6B0008; Fri, 15 Nov 2019 00:29:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 207216B000A; Fri, 15 Nov 2019 00:29:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0088.hostedemail.com [216.40.44.88]) by kanga.kvack.org (Postfix) with ESMTP id 0733A6B0007 for ; Fri, 15 Nov 2019 00:29:42 -0500 (EST) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id 942872465 for ; Fri, 15 Nov 2019 05:29:41 +0000 (UTC) X-FDA: 76157384562.04.jelly89_71acbdf191247 X-HE-Tag: jelly89_71acbdf191247 X-Filterd-Recvd-Size: 4259 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Fri, 15 Nov 2019 05:29:41 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id c13so5866675pfp.5 for ; Thu, 14 Nov 2019 21:29:41 -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=cq/Uo0s4tGps63iHEG81ksbBS9zc34FJMwUHHWjAlSfe1yQ+WvfrAmvFywsNApdXPI CktrYURSNDAAszd/x3K7y9wNMVkZI53cFveQj98T1grLE6ZlqpvVNB39FC8GmmFo5RvT sqyCGRLV6HWOQMXfUenrv7SmGpi5OJNxUoAnvE4MQMo2LCwHRtmshqudLzAFhSbTsn4l 7gLHP221KiyUQuwNvXEnySj3PE/+Elp3hWrV3wY0Dj5Mo1mhteN1PWT0fIahjQFUez8G iNmwvuVgieVWDpXYBqHwX4Q2bQjI64tPnkAg5jI5rbUTCtpqANXrBXh31jHoTsHtZ4RC tI+g== X-Gm-Message-State: APjAAAVxwPNB4YZ604g+Kn3e/pasOhFcZ6ERCduiWuwQZP7jBdq00E3M n2tAlzFNA4zN68CsWn6Fh52Y4w== X-Google-Smtp-Source: APXvYqwt4zb0Je/V6IpxbO3fLLPDi96nB5JTyVu+Y5Gk5ifcWF6G9mnVci2ds1rUWNSyZ5xoFyc++Q== 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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