Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1306502imm; Wed, 20 Jun 2018 15:37:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJi0FEAaIHu4pp475D3Drk2MCCKsH4LXfYFqszWELOg2wAy9sTu6Kwu2GVNJNUovTY3ysTt X-Received: by 2002:a17:902:5501:: with SMTP id f1-v6mr25594316pli.108.1529534267394; Wed, 20 Jun 2018 15:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529534267; cv=none; d=google.com; s=arc-20160816; b=JwS/6GD1r8sXzNYmnRvh2LInbYX35hI/GTELSEMw63IEl8GhNbzqOYrOMZvoljOuI3 6P9MkgJSmsn+1EGc4Dsur6jktiTiiAut1fMNRViNgEoP8yRqYUovIMbCdZiQOnlM68X0 ocZPGOmt6ik3OrcQl2vVWDDY/n4GnOV4cgc0I/ybJiD4yudx549oE10mHVENfX7Lx1Ke ZgUkXipjvI7pY9sfbWd9uhzMyuSeIt7CcH0blc2+MI0QVGSdMifjKBC8LS1YTK9v+35o GNdt2IBoj9yxYnZye9KN8Y4vIX+hBmLqykSerf/rQ9+V4hGFPGi8V7DDIt82cK3bpGUM xt7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=goL/kE6jWNPyenlWn/9GKinpPpxFWEcoT3NnCmCy0DY=; b=l6bRTSiizfymto2ATes+LVlb+9YbAgJsUxX5ufvuDjjEyHfUPTOjXXHDcWaOrac/7/ /bFzNeISQKBUQlHgoz+/wAxWkLuZuTwOfcTYwFTTuYzg4kLeLerUl3IVDLX2RULXvi75 6nnl7rQifKfbGRrM63ku/vFk9ccIGlriFQQ96X4ZH48UH+bUkXzUXnlji3qUq4yCkJ7t xti6yUtqBp11Aih/X0ml0cBAs5SeA2WOslgvOCibnqrtqlKxCsKWq6qE7dp4AJmSP236 WzH20SFBBr9AjGTwADjKRJxF1d9/cHJhDBk3lYwRtfO+9kI/QFGO8pmzxQOeWGy+1p2M mgyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=bwRA7xCS; dkim=fail header.i=@chromium.org header.s=google header.b=aQU03TzM; 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=fail (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 c8-v6si2557313pgn.473.2018.06.20.15.37.33; Wed, 20 Jun 2018 15:37:47 -0700 (PDT) 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=@google.com header.s=20161025 header.b=bwRA7xCS; dkim=fail header.i=@chromium.org header.s=google header.b=aQU03TzM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933795AbeFTWfN (ORCPT + 99 others); Wed, 20 Jun 2018 18:35:13 -0400 Received: from mail-yw0-f193.google.com ([209.85.161.193]:44182 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933555AbeFTWfL (ORCPT ); Wed, 20 Jun 2018 18:35:11 -0400 Received: by mail-yw0-f193.google.com with SMTP id k18-v6so430075ywm.11 for ; Wed, 20 Jun 2018 15:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=goL/kE6jWNPyenlWn/9GKinpPpxFWEcoT3NnCmCy0DY=; b=bwRA7xCSQMw+LmXh8z16ORKI2Bk6RONqt7NaMXOdBebPBIklgKdmm2r1e5JrHJQ7i9 IYt6HXwFPzWw4mybf8+vROg5vAz4SdRKacKIbGwgMxL8OVcLsVLPA7B++PbGTGT1WKfY zFuhPyh88kBUb+uIMiSzSficlY7NGn1gNaZtek5tihfOPtM7zfIVh5CksU0kDzREOI8/ E1bdtk++pstHv62xTO/nwmrNR/ul+Ozsgyce61J6VTasLRkKHhKgwAfgLJ1TbsryicXI nkyu2H/UziUF4IJhCA52OLFbCMU0yNNPy5Tu8IQeqVoldcoCzI2MdW3wLuWCR6AQHZRG GzSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=goL/kE6jWNPyenlWn/9GKinpPpxFWEcoT3NnCmCy0DY=; b=aQU03TzM3jEhCbDwAZJ6A5119aRlNdT3h9EYAT3QIlPKUMbVefmPUSI0BmtiryCWUO 9OiGokCvdAGQYdp8F/0KaNYXJtKkrvQF69t+1Shao1OaWczWopM1HzpQSLYmiQTf1gUA M+sVkH4gTjdAyCr/TOXjoJgT9twMVJnMI655I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=goL/kE6jWNPyenlWn/9GKinpPpxFWEcoT3NnCmCy0DY=; b=Lfla4G6jpIQW3XvW8GUalMuYHGbw3LG6fzf4NP0zBYZK1W+WYGMmjasDUUZu1ncls+ S17uiQYSKcbNOC+zT2bVNdCMj1d9Hyve0aQpDKUmxnvPV9rcDql9SL7/ViPsmY2BPxnC iEG0Da0lxP2qGl18bLstdJGVUrzR78cb34UgTnSKQTlvqoiWW4E9unjw+dYCDFiKVtr3 oVI4nE0VqQp2/jvItNRLPIet7UCl9fVDqGwz5cw3vD6IR1VlQK/XWt/cLOUgHStP/WdM CnH9DEyiTcnDOiJhEiRFmwG7tKHYQxpoA1HF+O8SNu/AvwUKVb4IEzHL8dN6396cz/uy ESjg== X-Gm-Message-State: APt69E1yYXLe24ObWOt+CC6X54BvIiM5ZLX/6oF5sV7ktofCc5B7draz /pc8/znUgwXO9tj79JcfWhsUsphbRypaD2l8ACtEvQ== X-Received: by 2002:a81:3b04:: with SMTP id i4-v6mr10852027ywa.38.1529534111064; Wed, 20 Jun 2018 15:35:11 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:d6c5:0:0:0:0:0 with HTTP; Wed, 20 Jun 2018 15:35:10 -0700 (PDT) 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 X-Google-Sender-Auth: FADzXAacuG9mF8uLVdRfCZGDqJ8 Message-ID: Subject: Re: [PATCH 1/3] vmalloc: Add __vmalloc_node_try_addr function 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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