From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-f198.google.com (mail-yb0-f198.google.com [209.85.213.198]) by kanga.kvack.org (Postfix) with ESMTP id 5136B6B0003 for ; Wed, 20 Jun 2018 18:35:12 -0400 (EDT) Received: by mail-yb0-f198.google.com with SMTP id h85-v6so649235ybg.23 for ; Wed, 20 Jun 2018 15:35:12 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id i131-v6sor779872ywb.263.2018.06.20.15.35.11 for (Google Transport Security); Wed, 20 Jun 2018 15:35:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <12014310-19f7-dc31-d983-9c7e00c8b446@infradead.org> References: <1529532570-21765-1-git-send-email-rick.p.edgecombe@intel.com> <1529532570-21765-2-git-send-email-rick.p.edgecombe@intel.com> <12014310-19f7-dc31-d983-9c7e00c8b446@infradead.org> From: Kees Cook Date: Wed, 20 Jun 2018 15:35:10 -0700 Message-ID: Subject: Re: [PATCH 1/3] vmalloc: Add __vmalloc_node_try_addr function Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Randy Dunlap Cc: Rick Edgecombe , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , LKML , Linux-MM , Kernel Hardening , kristen Accardi , Dave Hansen , "Van De Ven, Arjan" On Wed, Jun 20, 2018 at 3:16 PM, Randy Dunlap wrote: > On 06/20/2018 03:09 PM, Rick Edgecombe wrote: >> +void *__vmalloc_node_try_addr(unsigned long addr, unsigned long size, >> + gfp_t gfp_mask, pgprot_t prot, unsigned long vm_flags, >> + int node, const void *caller) >> +{ > > so this isn't optional, eh? You are going to force it on people because? RANDOMIZE_BASE isn't optional either. :) This improves the module address entropy with (what seems to be) no down-side, so yeah, I think it should be non-optional. :) -Kees -- Kees Cook Pixel Security