Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp542069ima; Fri, 26 Oct 2018 02:33:24 -0700 (PDT) X-Google-Smtp-Source: AJdET5fwZB/5TrLhVJrUIPTDhazj0hCXc9708bd0Wcl1mTY48x5optkwi8M4a2B3ZNF9IMaANrX/ X-Received: by 2002:a17:902:48:: with SMTP id 66-v6mr2806968pla.7.1540546404758; Fri, 26 Oct 2018 02:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540546404; cv=none; d=google.com; s=arc-20160816; b=fUvgAIKO3NDOxg4Ya2pA62VaNWG4cE2k25iMwfEmwjJCxlfTgFCsf7EZouyH1JhA0E eee9YjWH0s2DwUWjzvvixrWykAgNhm1ev6QUby9LkoXOyFuvsjtH5wUJDfQxNXcFE+9/ sbjsiyzVaaAcllckiOYuQlzJ1QTQFsZDPFsZuGtBo16EUiXpPQ8d8CPFhiWg3na17Zl8 RJIvx6OkNefKqnHajL0MCs6VYXaCLFhVMmooS1elvxwgqunenwGGpImguSjY2DkOLjKs vkiHCI0ZToHrNd+Lh4KKQnSO5YIOTxYprQxf9262ZNhXaRJeE3rXOb5qsAOmVXnonH3m NSqg== 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=iRzSzFfMpJPH5fWYU91iQwZk+vLFmG/YAbr0c3Dc980=; b=Na5NcYR1jFNBi0JBykDNF0xvMYIUQZeEJs5clP0I+WT82+784hBWZn8F9nVntsz6rn IE1LcAi48k8tP0orG3srvsVnFLDSjoivIYPECihFtUQFFDqwV4x2qCX+JxfYFujxOtYQ K7kn1kea0CE1ZENT2FhnKCAuqBv8AT/EnS/U/4EXO915v7enitUK3opMHg80F7kilWib HkjZjS7ypHk6c4Dm6rN25lyzm8Fgy3nd3EUfB9pxjXutaDQsCsfR7lgAhcYozf6QXAtp DP51+i8o2lTnFvebLeDUZ0rWbQmdSzP2z5oxfk/Ey8jDqRgTHyZSVtU8S/mgKzSKLEkg wEIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=a4ZTkaJY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v17-v6si10232560plo.417.2018.10.26.02.33.09; Fri, 26 Oct 2018 02:33:24 -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=@infradead.org header.s=bombadil.20170209 header.b=a4ZTkaJY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727330AbeJZSIg (ORCPT + 99 others); Fri, 26 Oct 2018 14:08:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55292 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbeJZSIg (ORCPT ); Fri, 26 Oct 2018 14:08:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iRzSzFfMpJPH5fWYU91iQwZk+vLFmG/YAbr0c3Dc980=; b=a4ZTkaJYY6UngxYjKqMogy9/S HIV/j3fehVFN6rAVhiujGZkzp7FVtpWwQa/6V/wTf9Oj+g65tNwNRUAnxtj7UkdB1RsSgUdS+pP1s 4PTZnD5nTxEr10qCXeDLv8CvEh6SDL8jb64POwb3yZ3nnHHrhXBkI0VCLsGpoOE+Mpkx1qV9QA8oE ngvSehZv6QSQtOfvoMJLE9GSwKYehbMsAt/ib9PW8+Msxe4ar+dgjrDDpxFb7OBYqZlMhGVW99Ftx OlQ6y8agO7uMwCRSKeFF9Bp7xGMi7pvsiAiru+/FAmHgApv3XEnDngoFlXab7EI8ChMvpLCexzBgf UIIT92xUg==; Received: from [167.98.65.38] (helo=worktop) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFyTP-0000hB-69; Fri, 26 Oct 2018 09:32:07 +0000 Received: by worktop (Postfix, from userid 1000) id 39F196E07BE; Fri, 26 Oct 2018 11:32:05 +0200 (CEST) Date: Fri, 26 Oct 2018 11:32:05 +0200 From: Peter Zijlstra 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 , Alexey Dobriyan , 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: <20181026093205.GD3159@worktop.c.hoisthospitality.com> References: <20181023213504.28905-1-igor.stoppa@huawei.com> <20181023213504.28905-14-igor.stoppa@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181023213504.28905-14-igor.stoppa@huawei.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) 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, this might > prevent correct type punning between these structures and their write > rare counterpart. 'might' doesn't really work for me. Either it does or it does not.