Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1953276AbdDZCcQ (ORCPT ); Tue, 25 Apr 2017 22:32:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45856 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1953132AbdDZCcJ (ORCPT ); Tue, 25 Apr 2017 22:32:09 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3486561B8C 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 3486561B8C Date: Tue, 25 Apr 2017 19:32:07 -0700 From: Jessica Yu To: Kees Cook Cc: Rusty Russell , "Peter Zijlstra (Intel)" , Josh Poimboeuf , Ard Biesheuvel , Heinrich Schuchardt , Nicholas Piggin , Chris Metcalf , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] module: Add module name to modinfo Message-ID: <20170426023206.raeaeqylnnjo25on@jeyu> References: <1492814127-66318-1-git-send-email-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1492814127-66318-1-git-send-email-keescook@chromium.org> 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]); Wed, 26 Apr 2017 02:32:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 609 Lines: 20 +++ Kees Cook [21/04/17 15:35 -0700]: >The mod structure is accessed for the "name" field prior to validating >sanity in check_modstruct_version(). This becomes very obvious once >struct layout randomization is happening, so instead add the module >name to modinfo and use that until the mod struct has been sanity-checked. > >-Kees > >v2: >- adjusted for more odd name load failure cases; jeyu Hi Kees! These patches look fine to me, would you mind if I held on to them until after the upcoming merge window? (Since we're at -rc8, and I'd still like for them to sit in -next for a while) Thanks, Jessica