From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756161AbcIFTlS (ORCPT ); Tue, 6 Sep 2016 15:41:18 -0400 Received: from one.firstfloor.org ([193.170.194.197]:53415 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754401AbcIFTlR (ORCPT ); Tue, 6 Sep 2016 15:41:17 -0400 Date: Tue, 6 Sep 2016 12:41:14 -0700 From: Andi Kleen To: Linus Torvalds Cc: Kees Cook , Jiri Olsa , Andi Kleen , Jiri Olsa , lkml , Ingo Molnar , Adrian Hunter , KAMEZAWA Hiroyuki Subject: Re: [PATCH] fs/proc/kcore.c: Omit kernel text area for hardened usercopy feature Message-ID: <20160906194114.GP5871@two.firstfloor.org> References: <1472819145-27260-1-git-send-email-jolsa@kernel.org> <20160902151713.GM5871@two.firstfloor.org> <20160905084722.GA3134@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 06, 2016 at 11:34:28AM -0700, Linus Torvalds wrote: > On Tue, Sep 6, 2016 at 10:56 AM, Kees Cook wrote: > > > > In the meantime, how about continuing to use a bounce buffer like > > already done in the vmalloc_or_module_addr() case immediately above? > > Yes please. Let's not make up even more of the user access functions > with magical properties, for some special-case code in /proc/kcore. I suspect it's more than just /proc/kcore, there could be also legitimate cases to read kernel text from /dev/mem or /dev/kmem I suppose could add bounce buffers everywhere. -Andi