Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933856AbdCYAmp (ORCPT ); Fri, 24 Mar 2017 20:42:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46364 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbdCYAmg (ORCPT ); Fri, 24 Mar 2017 20:42:36 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C504461B93 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jeyu@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C504461B93 Date: Fri, 24 Mar 2017 17:42:35 -0700 From: Jessica Yu To: Kees Cook Cc: Eddie Kovsky , Rusty Russell , LKML , "kernel-hardening@lists.openwall.com" Subject: Re: [PATCH v3 1/2] module: verify address is read-only Message-ID: <20170325004235.rzpwhvh6h2eapllj@jeyu> References: <20170323025549.19588-1-ewk@edkovsky.org> <20170323025549.19588-2-ewk@edkovsky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-OS: Linux jeyu 4.8.12-100.fc23.x86_64 x86_64 User-Agent: NeoMutt/20161126 (1.7.1) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Sat, 25 Mar 2017 00:42:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 871 Lines: 25 +++ Kees Cook [23/03/17 14:13 -0700]: >On Wed, Mar 22, 2017 at 7:55 PM, Eddie Kovsky wrote: >> Implement a mechanism to check if a module's address is in >> the rodata or ro_after_init sections. It mimics the exsiting functions >> that test if an address is inside a module's text section. >> >> Functions that take a module as an argument will be able to >> verify that the module is in a read-only section. >> >> Signed-off-by: Eddie Kovsky > >Awesome! I'll be glad to have these. > >Reviewed-by: Kees Cook > >Jessica, if this looks good to you, should this go via modules or via >my tree? If mine, can I have your Ack? Sure, would be happy to let you take this patch through your tree. I only had a few minor comments left, so I think just one more small respin and it'll be good to go. Thanks! Jessica