Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1015310imm; Wed, 15 Aug 2018 09:55:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwOBy8ifeMNwMKfK+6Yji21EQbIVwj3j/jjHb7HfA6SmePS3IZzlfVDf9dWX9wV0SNIUsDV X-Received: by 2002:a63:dd49:: with SMTP id g9-v6mr25594686pgj.356.1534352155295; Wed, 15 Aug 2018 09:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534352155; cv=none; d=google.com; s=arc-20160816; b=sMkLUkmxZs2TKsnGiiHbDptZ/vi72CqHTQzXLdk2xVg+HwJM458AQFH4+M+6ddw3HG bf7CZZ0A1bUIgMU8IdrfbrPLFv48o+DPx/SrrUtkU4NxnVr0EXhS3u+Xj+idXt299GnB XLiytP+qqN6E0EQ5CPg3CeReSYgfcVV5hv/+Iw59GXPb3EyrjvVKB4/smV3hTgEPR+xM Qi/kCFSoatIEoWor0jos3aOJFGX5t2f0g0TZS1p1cLxfFJpzShNjr/LCZN5fCzhDKsOK 95/aaOxa9AQYU6258sidXcXDorpARzJcC0jne2apdgyhug+OLAVuTL+QBI9Z57RAodcg 7n1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=6ciOGQyeV7HGfogv8AgnOybV1hGTcU+i6QaVs6QXagA=; b=x5Ck01OdCCcu5hf9fJv+veOFAItpJDcVAJmLcZ3hS9mcHe/d3a/XtSjEDSFbbQGTLu ub/4JA2uq9qbmVOeIWscL3RxUmEmxZUU1nN31D4IDYEIB1AQqZ5cW+MeyHGpqc0mHsjZ U/hMwS2DuIXUNkuZrMymewuj+qTeM81uygIsKOoFYisys2lF9niK0NxRdt0lUWllPobw tCHa35jhotpU5Exjz8riX166eJ8+LZ6yZlT7+iX+YLGZ2jhRW4F9O22NhcwH3h2zJn4J ODoP44c2gUTFQ9pN104IvvxypHfK/CZ4UwFK83XU9CzpPp8dksZiSWJBEUUMXA3nloBB Fdog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=aY3NHhar; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh12-v6si19185355plb.425.2018.08.15.09.55.39; Wed, 15 Aug 2018 09:55:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=aY3NHhar; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729556AbeHOTrm (ORCPT + 99 others); Wed, 15 Aug 2018 15:47:42 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:38988 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729347AbeHOTrl (ORCPT ); Wed, 15 Aug 2018 15:47:41 -0400 Received: by mail-it0-f65.google.com with SMTP id g141-v6so2802051ita.4 for ; Wed, 15 Aug 2018 09:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6ciOGQyeV7HGfogv8AgnOybV1hGTcU+i6QaVs6QXagA=; b=aY3NHharI20BHj4G6GRHy3Q/2JgkNzxJg/EmPcxrIhWVT0N7dKfg2UqtmBE0r9uX5I U5G3XM/rBk7l43HZNGZnPc2OwejOBh5Z+XI80sg5kBcO6OwtxNIIEtPiQbhoxLgRYJk4 p1jQKyba7ViBuVh91/snR5YZ/eR7A3SEPbGaA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6ciOGQyeV7HGfogv8AgnOybV1hGTcU+i6QaVs6QXagA=; b=pWR8nMkWS0pKbQyu93cYubhlhsJTxcyc6LODa/PTfNA0o3HWYwVAlU62zm7hfZLhGh Q1MsC6pP92gPWDey26K9otQLkl0dVZG5nsvjmRUR79cAu+MVaun2aKw3qn37vXUvnjom HMTKm39f0KeL2IG4dnLgWZyV7gF3NrWi/+i5GAtOI8jvg4dSElu8fpE+Ujam97jYEcIF T3WftagAiy8wBI2hKUqp12jsUiE7UjbUz50S05p2Z1YoFVD/9R8BuD2l9j28/5F9P8aa q18AGlcglI57I+a2h/5z+/XuiiXq7ZGAuXUSIGg9Rsi2UPcjaRzhS/k8fERPFDZMZ32a /U+w== X-Gm-Message-State: AOUpUlHUdXzGjGWjb/sVcwrmX5YO51G4WFJ+G3bqzFquI8RHJfSa4w6e XPI0VHdUogpUH5kgbjQ7UxzUEY+b+v4Eqn6qhmw= X-Received: by 2002:a24:b211:: with SMTP id u17-v6mr18172745ite.1.1534352085627; Wed, 15 Aug 2018 09:54:45 -0700 (PDT) MIME-Version: 1.0 References: <20180815100053.13609-1-yannik@sembritzki.me> In-Reply-To: <20180815100053.13609-1-yannik@sembritzki.me> From: Linus Torvalds Date: Wed, 15 Aug 2018 09:54:34 -0700 Message-ID: Subject: Re: [PATCH] Fix kexec forbidding kernels signed with custom platform keys to boot To: yannik@sembritzki.me, David Howells , Vivek Goyal Cc: Thomas Gleixner , Ingo Molnar , Peter Anvin , "the arch/x86 maintainers" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This needs more people involved, and at least a sign-off. It looks ok, but I think we need a #define for the magical (void *)1UL thing. I see the use in verify_pkcs7_signature(), but still. Linus On Wed, Aug 15, 2018 at 3:11 AM Yannik Sembritzki wrote: > > --- > arch/x86/kernel/kexec-bzimage64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kernel/kexec-bzimage64.c b/arch/x86/kernel/kexec-bzimage64.c > index 7326078e..eaaa125d 100644 > --- a/arch/x86/kernel/kexec-bzimage64.c > +++ b/arch/x86/kernel/kexec-bzimage64.c > @@ -532,7 +532,7 @@ static int bzImage64_cleanup(void *loader_data) > static int bzImage64_verify_sig(const char *kernel, unsigned long kernel_len) > { > return verify_pefile_signature(kernel, kernel_len, > - NULL, > + (void *)1UL, > VERIFYING_KEXEC_PE_SIGNATURE); > } > #endif > -- > 2.17.1 > > The exact scenario under which this issue occurs is described here: > https://bugzilla.redhat.com/show_bug.cgi?id=1554113 >