Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp619525ima; Wed, 24 Oct 2018 06:44:40 -0700 (PDT) X-Google-Smtp-Source: AJdET5cshhmfYY4CRAUko8/ZkGHEFdlQSi0ucd9B92jlkGlRp98/gdrKPPJczNByAeGCkJPZ/zSR X-Received: by 2002:a62:11cb:: with SMTP id 72-v6mr2723510pfr.120.1540388680130; Wed, 24 Oct 2018 06:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540388680; cv=none; d=google.com; s=arc-20160816; b=XJNvcAXBRV9TmMJpdkqKWej0I0YvHG15otiipBJ3evzjYOUJ9zTdNLAEY4KN8uJ2TT CZCIzceRCcjWYnYBlLMJ9fFagSovrTvAiqugX86jwVsKK2/zVfbFxHRE4CEplLKPp2CQ HsGXoD0NfJoHVvgF17UGVcQohBck8WiqzPHY4C8PuzxLQkyTF1bYvYIwql+N6SYBNKv+ avj5bKzNXDbjwwDtj8P9Ncm/a1AmxH2UwIP/Ni406GPyFDhHPpuwLjRkNQ1FtaUDp260 Mtqe4kSnfo9MH9TdMXYrXqSUZvockcT/w5hW2S7Ydsaifj218e8oT8SfX1wXM90XMom2 UhNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dNJtO6i3Kfvf1KktXEna8GrGSbj5XeMGVArGLLH9Iwk=; b=IYF8Fbx2kvXArkdby1PGKjxKgLjs1Y9yL9cy+3gf5catVMeRTP/TELjaSLfsxBGU+v xxgpH+YKPgyAr9YIwZdMyCSO6yIBfW5SteXTOKNBaJ5VVkpWj8U8c2kVk232YSaIL07n dAawkmPfD116ZSr0sMZMv8Sptc0l/b5Im4m68SRlgUz58TdIuSdjNw9Prisn63Hw8i10 WtkDd1paxsF2QkLRcCBIweLGJ6FmCT87374roagAg5TE8nLYKzu4Y1MmplgXz5mQ78iI swryprxT19n8wyKWLA/G/h5ZpN17dvz1lqZApNRuB3aEP0Qg+b4EXS1mGLaxbJ+Us8qM IlmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D7Qbpjfs; 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 d4-v6si4695799pgl.524.2018.10.24.06.44.23; Wed, 24 Oct 2018 06:44:40 -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=D7Qbpjfs; 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 S1726850AbeJXWL6 (ORCPT + 99 others); Wed, 24 Oct 2018 18:11:58 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37439 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbeJXWL6 (ORCPT ); Wed, 24 Oct 2018 18:11:58 -0400 Received: by mail-wr1-f65.google.com with SMTP id g9-v6so5658680wrq.4; Wed, 24 Oct 2018 06:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dNJtO6i3Kfvf1KktXEna8GrGSbj5XeMGVArGLLH9Iwk=; b=D7Qbpjfs83TTGaTKXLLfoV9nMNNXmCTAscxOF5Z42z1oNXFMhuLoGfe1XT5+mkPX2g FyUjTyIGZJDtnwkRTezwdphbBLQ9liGuLgBA8VnDTM1SIxSQwO98/+XYpH2EaSLgUUkr rqkhrtT4T4a/khzjB4whJL9PMvLUCWXMGDiz9LxzyKYvbpoot2DLYo3F42X41rPuBVmq r1ge3kHV1J7VIjRzZ3VEmpXDlBnSrFvhP5R9tpidAmBdaQNONznHGzuekmkh4R+yOMc0 rlY47qBRQkV+VvO/5rjZulEd/5wvTbL2mRqnfmTpztn5RpPNiMe9k6mYnkOjDPM8aJOr 9/aw== 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:user-agent; bh=dNJtO6i3Kfvf1KktXEna8GrGSbj5XeMGVArGLLH9Iwk=; b=uLnq4YehmBAti4uW2SbJMNvR/Qpzxuw/vXOuMtTLC4bsyZi7nF1KG3Qe6Omc3l+QL0 yHzmUiQbKU4Nb2pe70r6mTd3ElEtfHRKbNo3LeAQPop3xI4w/s/bBel2f3FJpr1m3RW3 ALTImTkiTdGndDnQ7VJ52BJ9LgKWPFSWxN07F6vTrK4Lf0oFu04tw49p4lpk0aLnjHnB xlP6QafLm8KhGy4zMC9qHanUN3QUp4AuLdLtTLMf9SYokhYmsGpNWVhwnVePSIzCHmpM ObJ9hdUK85jJk5MsLtoek46xXQpnEy2U9USc4sxoWyQBxWBfgjELzTJMDSz2u8hwAsIk FyjQ== X-Gm-Message-State: AGRZ1gJuqLYxgFiQ2xZliABIw0KcQXlLlCSVv9CrFEH8nC/scCvqHg6J C4jw/JD3Khq4Cp90hopmzQ== X-Received: by 2002:adf:9592:: with SMTP id p18-v6mr3145316wrp.202.1540388626661; Wed, 24 Oct 2018 06:43:46 -0700 (PDT) Received: from avx2 (nat5-minsk-pool-46-53-217-92.telecom.by. [46.53.217.92]) by smtp.gmail.com with ESMTPSA id m16sm3812393wrx.75.2018.10.24.06.43.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 06:43:45 -0700 (PDT) Date: Wed, 24 Oct 2018 16:43:43 +0300 From: Alexey Dobriyan To: Igor Stoppa 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 Subject: Re: [PATCH 13/17] prmem: linked list: disable layout randomization Message-ID: <20181024134343.GA7767@avx2> References: <20181023213504.28905-1-igor.stoppa@huawei.com> <20181023213504.28905-14-igor.stoppa@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181023213504.28905-14-igor.stoppa@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?