Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933190Ab2JWPpe (ORCPT ); Tue, 23 Oct 2012 11:45:34 -0400 Received: from terminus.zytor.com ([198.137.202.10]:45863 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757058Ab2JWPpd (ORCPT ); Tue, 23 Oct 2012 11:45:33 -0400 Message-ID: <5086BB94.3040208@zytor.com> Date: Tue, 23 Oct 2012 08:45:24 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: Kees Cook CC: Lucas De Marchi , Rusty Russell , mtk.manpages@gmail.com, linux-kernel@vger.kernel.org, jonathon@jonmasters.org Subject: Re: [PATCH 1/4] module: add syscall to load module from fd References: <1348179300-11653-1-git-send-email-keescook@chromium.org> <50749DE8.7010703@zytor.com> <5074A0AB.8040207@zytor.com> <87d30o7iy6.fsf@rustcorp.com.au> <87ipa8o4mn.fsf@rustcorp.com.au> <87sj97hs5e.fsf@rustcorp.com.au> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 30 On 10/23/2012 08:42 AM, Kees Cook wrote: > > Hm, yeah, userspace mangling of a module plus signing would fail. > Seems like mangling and signing aren't compatible. Doing it in > kernel-space (as now written for finit_module) solves that, but it > means that now compression isn't possible if you need both signing and > mangling. > > I'm not a user of signing, compression, or mangling, so I'm probably a > bit unimaginative here. It seems like the case for needing all three > is pretty uncommon. (e.g. if you're doing compression, you're probably > building embedded images, which means you're unlikely to need > --force.) > In particular, mangling and signing aren't compatible... however, signing and compression should be just fine (sign before compression). -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/