From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965551AbdEXD0z (ORCPT ); Tue, 23 May 2017 23:26:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39250 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965505AbdEXD0x (ORCPT ); Tue, 23 May 2017 23:26:53 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 51230448D68 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jeyu@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 51230448D68 Date: Tue, 23 May 2017 20:26:52 -0700 From: Jessica Yu To: Kees Cook Cc: Rusty Russell , "Peter Zijlstra (Intel)" , Josh Poimboeuf , Ard Biesheuvel , Heinrich Schuchardt , Nicholas Piggin , Chris Metcalf , LKML Subject: Re: [PATCH v2 0/2] module: Add module name to modinfo Message-ID: <20170524032652.rp334dlkvmljzgot@jeyu> References: <1492814127-66318-1-git-send-email-keescook@chromium.org> <20170426023206.raeaeqylnnjo25on@jeyu> 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.29]); Wed, 24 May 2017 03:26:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Kees Cook [25/04/17 21:43 -0700]: >On Tue, Apr 25, 2017 at 7:32 PM, Jessica Yu wrote: >> +++ 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) > >Sure thing; I'm in no rush. :) These have been applied to modules-next, thanks! Jessica >Thanks! > >-Kees