Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp474925ybg; Tue, 28 Jul 2020 10:32:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1FprmnNO53C4hC2ejPtA4WQQBvUmhPAUo5TcoBRqbsIk006iRsCixi2fKCoN3a//0l+KJ X-Received: by 2002:a17:906:2681:: with SMTP id t1mr25893827ejc.350.1595957527039; Tue, 28 Jul 2020 10:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595957527; cv=none; d=google.com; s=arc-20160816; b=EUpxMu4dmx8MfKpEddGGqmXvew1pRyDbPou6kr3qX7wGO9V+NRLm09A1b0QzOZdqjl i71Q182MK0qaWnVv/MDh+h8Jr53PZkKFcFO5mZjYNzCgExEbbzxGNxKgUdw6VBUrBKCX MMVh6VKX31+oioxg/mxWr0uxqc6G0JlMASJOSGN+wI7mX6XcPTKKDBnKDG9n+nYMTJxL JURDB8m+Oa7s0iU2aWkFr754cGanehVGq0L4CAseWzA3v3Y0CbHeyD4BOryBHiZn+CD6 beN3/ClS6eKj/v9lq9fJEfr+ul3TuXAiMsjMfv3WpZJOPVChYHMDgt4TkDC/QZqBvveV D3UQ== 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=2T3mr7waKN2zzqEx10ZQKW4qYXOz5+D5jfjnMLkLR2o=; b=Eu+4nNxbFbE5piD48cwxLOvuJEWqCapaV+X+0gea7/FZF9lqVnVL2j4DH+mLmg1elT vq2l4Zwd0NSNPWJje5KN9o55K1Set09kzE5R8goa9zVAMDcCHaIwOYXUweQ6JSg8SltE Iu8qNGa+q3w2smp0HUQ3fQtmDpkbddasYhmA4Lhrr5UlHxIUprTfcAPl3Moi9doW/yWw Hv0tt8U/GIXflnYZj8VojG+kM3Egq5JJbfq8djwhxCT/Pyt+skKj8L7x4DbIx1fuFOpc 26jpbHKvbETCnfvl+PbKwNN+MsAyHCPgqdvmLgQfj+xXs53PJt2atKJ8W1lmvQYdg1de XCLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vVCKMUpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj5si7540845ejb.49.2020.07.28.10.31.43; Tue, 28 Jul 2020 10:32:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vVCKMUpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732023AbgG1R3O (ORCPT + 99 others); Tue, 28 Jul 2020 13:29:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:44020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731779AbgG1R3N (ORCPT ); Tue, 28 Jul 2020 13:29:13 -0400 Received: from linux-8ccs (p57a236d4.dip0.t-ipconnect.de [87.162.54.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 22C032078E; Tue, 28 Jul 2020 17:29:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595957353; bh=2T3mr7waKN2zzqEx10ZQKW4qYXOz5+D5jfjnMLkLR2o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vVCKMUptkWj96NFd/9wAfn1anprKpA1fwfJcUu2vSpsNVfOJyrX9Kybt/aAzDWI/3 zhPgKHbFtGm4eNoNdXw3LASuth1mLDaaX/XN4AcfyVmGU2TOq0dJr129XX1ogXhViN lIysWUbEQBTENhX/MJzpx14RG9c5PDIptwAHWYT0= Date: Tue, 28 Jul 2020 19:29:08 +0200 From: Jessica Yu To: Kristen Carlson Accardi Cc: keescook@chromium.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, "H. Peter Anvin" , arjan@linux.intel.com, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, rick.p.edgecombe@intel.com, Ard Biesheuvel , Tony Luck Subject: Re: [PATCH v4 10/10] module: Reorder functions Message-ID: <20200728172907.GA31178@linux-8ccs> References: <20200717170008.5949-1-kristen@linux.intel.com> <20200717170008.5949-11-kristen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200717170008.5949-11-kristen@linux.intel.com> X-OS: Linux linux-8ccs 5.5.0-lp150.12.61-default x86_64 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 +++ Kristen Carlson Accardi [17/07/20 10:00 -0700]: >Introduce a new config option to allow modules to be re-ordered >by function. This option can be enabled independently of the >kernel text KASLR or FG_KASLR settings so that it can be used >by architectures that do not support either of these features. >This option will be selected by default if CONFIG_FG_KASLR is >selected. > >If a module has functions split out into separate text sections >(i.e. compiled with the -ffunction-sections flag), reorder the >functions to provide some code diversification to modules. > >Signed-off-by: Kristen Carlson Accardi >Reviewed-by: Kees Cook >Acked-by: Ard Biesheuvel >Tested-by: Ard Biesheuvel >Reviewed-by: Tony Luck >Tested-by: Tony Luck Hi Kristen! I've boot tested this on x86, (un)loaded some modules, and checked their resulting section addresses as a quick sanity test. Feel free to add my: Acked-by: Jessica Yu Tested-by: Jessica Yu Thank you! Jessica