Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755750AbdDLXQk (ORCPT ); Wed, 12 Apr 2017 19:16:40 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:35115 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755583AbdDLXQi (ORCPT ); Wed, 12 Apr 2017 19:16:38 -0400 From: Kees Cook To: Jessica Yu Cc: Kees Cook , Rusty Russell , Nicholas Piggin , Josh Poimboeuf , Heinrich Schuchardt , "Peter Zijlstra (Intel)" , Andrew Morton , Ard Biesheuvel , Chris Metcalf , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] module: Add module name to modinfo Date: Wed, 12 Apr 2017 16:16:27 -0700 Message-Id: <1492038989-82136-1-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 289 Lines: 6 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