Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3807156imd; Mon, 29 Oct 2018 12:41:16 -0700 (PDT) X-Google-Smtp-Source: AJdET5exVeeUZVxThLCYnwZSHyYoflGMZoNDhW69IiPHmzQGW+slsbz+pLGjGOzK+FTbkEzC7KzR X-Received: by 2002:a63:f210:: with SMTP id v16-v6mr14602235pgh.371.1540842076114; Mon, 29 Oct 2018 12:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540842076; cv=none; d=google.com; s=arc-20160816; b=NbD04dAVjBog8WOyIDc3QLDf9RjaUHAWp3A9qRY3vYjvhMu6tDqUbVsvhHq4WNwG+p 1RCsZC3vvkDOZ9+lEm986kfjNaO8bTNq0Q4IzOteoWCgNBFva6JZb0LaRNW8/6L1jKV2 v58zs8AsQ23Ivk00P5ZS1ppMRN7PgBp9fYm1vh5JGaqS97pMz2Vy6zHWseX5zQqnhUYc LouldzCFnp7l42cy911gTZRYsUjTEMbJTJu7aXeKBWbQ0Ok7GRihvGbE3ZulTJx0UBTE Rhq53ckiwvuv+YJF8kLOlVbPtWo4nvR5dFW61x3zpIFN2H91h5fTtaEhdrrQXIOCzpHd ivOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=f/1zgO6QY9dsdwTFWvdeZJ8nH6l3UbQTekXe/s6WAV0=; b=leBaOvBQvXybm2MoIClLcMktX8fqGhD1y2JdZtEdcQuJimbYZb0H4MAEOaTJMdnmBj O39zkwJn6cMya6APgeGdNy51cyLx2C1YNiR723e1LGJDGj+leD45VLlXhT6904VPwnES 24OJfyECg8Rb/F/pQXd3ozMugYHnobEYnFGcBuMkNW82f5jSpBhduN55mbUmC6zJZahJ F+clUkuonX9RC0ZYGtOQ1zd293qapgPFLlC5LLWE58iI93/aCFgm6eYTO8FEfD/IbA/c vBamSZU6uWyBWbpmzzNJ6Odnb52VJr3A5z3oERzDpIQdOU+g3qFYjwLCrw6FqVbItWCt PgXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eAox2x2i; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6-v6si20752774pgg.265.2018.10.29.12.40.59; Mon, 29 Oct 2018 12:41:16 -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=pass header.i=@gmail.com header.s=20161025 header.b=eAox2x2i; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726969AbeJ3Eaj (ORCPT + 99 others); Tue, 30 Oct 2018 00:30:39 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:41777 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbeJ3Eaj (ORCPT ); Tue, 30 Oct 2018 00:30:39 -0400 Received: by mail-lj1-f195.google.com with SMTP id z80-v6so2956213ljb.8; Mon, 29 Oct 2018 12:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=f/1zgO6QY9dsdwTFWvdeZJ8nH6l3UbQTekXe/s6WAV0=; b=eAox2x2iNNxHDRnRdRNmP8X0ETMgjCAen0U9xGP28w0OMB51Ep/QHAmR12E+ifjcU1 0T69OWZ2MttkREOyzS60b7Gy/daDI2ZR+ByVdvHY9s3tRjAYRwpGir5V62C2sGAETPl7 xRbbbmwQItKPUqZ2OMLp5YtuIB+YSn+zoL6at5lsvMk9wnTHR54xlPMVNDk4y/mRtcEP McGTnnjllEkGAeveRK9kjtWrae6SGi1HeUNz97YWP7DFsaNBdNGtyjbbXTOJ5VV4MtRU GdDpBZhqxE05TlaJSDPKG6PJlnQJn+jq3LWf9Mos/S3QYGeRUt3CeDcrC3bNcTu38FiB gW2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=f/1zgO6QY9dsdwTFWvdeZJ8nH6l3UbQTekXe/s6WAV0=; b=T259+VrdRyKZQ27p0wg0J0iseQhz/HVflc01yiUCNmxrUJ7oAd3DIB9HTheJgYT4n5 fz9fYVEis73KaGbFp2eD2Fjph/5VBur6UxyVyqxA06o3HW79D2TC1kusqnYis/1Rsad8 hyuqmdi4jRqI+LSm9aRid5jHhfMfZEZTb6dNquunoKAnJroKFK3YAynzQJXahnl85KG3 RwZtHff68bRxOgs4RKliW7vqQ5Nxy9vCLSGLSjzP08d2wXBezlCvagWCfV9PFQhwLR6Y ekiOvYHKVoWDW8ZJq7Wzf/CXT2v8TQhBileVwD1CZa4R7WaNRuzdlNUBAYcoJb0FbtO9 Swtg== X-Gm-Message-State: AGRZ1gK4MxJk0O7Pi/Nzc6oimHYBf8fSvDQORBFV219UO85mWc50uKI7 /UfuozX5K9qcKOW/Qb0PlqLfX5jJifM= X-Received: by 2002:a2e:809a:: with SMTP id i26-v6mr8788703ljg.100.1540842030457; Mon, 29 Oct 2018 12:40:30 -0700 (PDT) Received: from ?IPv6:2001:14bb:52:7be:f0bf:dd2d:f008:5213? (dmkd798g-7z2-yccwcp-4.rev.dnainternet.fi. [2001:14bb:52:7be:f0bf:dd2d:f008:5213]) by smtp.gmail.com with ESMTPSA id m13-v6sm22426ljg.56.2018.10.29.12.40.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 12:40:29 -0700 (PDT) Subject: Re: [PATCH 13/17] prmem: linked list: disable layout randomization To: Alexey Dobriyan Cc: Mimi Zohar , Kees Cook , Matthew Wilcox , Dave Chinner , James Morris , Michal Hocko , kernel-hardening@lists.openwall.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, igor.stoppa@huawei.com, Dave Hansen , Jonathan Corbet , Laura Abbott , Greg Kroah-Hartman , Andrew Morton , Masahiro Yamada , Pekka Enberg , "Paul E. McKenney" , Lihao Liang , linux-kernel@vger.kernel.org References: <20181023213504.28905-1-igor.stoppa@huawei.com> <20181023213504.28905-14-igor.stoppa@huawei.com> <20181024134343.GA7767@avx2> From: Igor Stoppa Message-ID: <47d5706b-12b9-a94f-d668-8e9a659e33d0@gmail.com> Date: Mon, 29 Oct 2018 21:40:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181024134343.GA7767@avx2> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/10/2018 14:43, Alexey Dobriyan wrote: > On Wed, Oct 24, 2018 at 12:35:00AM +0300, Igor Stoppa wrote: >> Some of the data structures used in list management are composed by two >> pointers. Since the kernel is now configured by default to randomize the >> layout of data structures soleley composed by pointers, > > Isn't this true for function pointers? Yes, you are right. Thanks for pointing this out. I can drop this patch. -- igor