From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BD349803BD for ; Mon, 20 Mar 2017 04:11:14 -0700 (PDT) Received: by mail-it0-x22b.google.com with SMTP id y18so28416162itc.1 for ; Mon, 20 Mar 2017 04:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=k027wiiLO8EXd5YzAqn0eYKWBsgJVj3cPdaBk5rC6ns=; b=Q07E540Hl/RwNwRZ4yT2mGxGg1Cs4jvsGGgGZFH2ISLn08weCGniJwMuNA8sjbRlxn 1PQ9zZwFwlIUKymDSU4v6KYcktkbrObWXQOthc0jTiOovA1BF+XFoLAP+eouvEWEbqME DKhVExMBAS0diaJrn5MgTG/H1ObFskv+lk8lI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=k027wiiLO8EXd5YzAqn0eYKWBsgJVj3cPdaBk5rC6ns=; b=EUfQU/ATKJj7jpv/amzK0XXcaPpdNfUYW/1zT8nfJN/ncyIXvx/mwtzgNSt+fDeqGm yL01lHe0IGIpxhsNSTCbyqXVM3Vjc7DdLfUVpoYEssbugYZySgWrFAkpJFN9LTsKNT5h 0RiqPTXif+B+Z8x87T5QUeMBzRgrKeCkx7qkqY0EJGfR/CXR89g/tBP5zD9VkXfaRZAx bAF0I11EtM92ySHE63hJi9JqJsyctpmnzKuJ7GOZ0PJidy4FO7um+MTfouowr0rFAAwf dyhRZ5PtTtuxKtiHYvozTsyhzMpnmbYfuzq4u5xrc53vQYyBc569Fz69Nr/LqfDqVWe6 uPvw== X-Gm-Message-State: AFeK/H2Pc4AB8z7pfYTQj6l2+JZIzsP2d3gAkVTbqpZiAXgZV2VpXTWVXuGcy71ErghhnwhcNeRn4OErChg77jaj X-Received: by 10.36.23.74 with SMTP id 71mr8448372ith.37.1490008274121; Mon, 20 Mar 2017 04:11:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.10.27 with HTTP; Mon, 20 Mar 2017 04:11:13 -0700 (PDT) In-Reply-To: <20170320110953.10033-1-lersek@redhat.com> References: <20170320110953.10033-1-lersek@redhat.com> From: Ard Biesheuvel Date: Mon, 20 Mar 2017 11:11:13 +0000 Message-ID: To: Laszlo Ersek Cc: edk2-devel-01 , Feng Tian , Jiewen Yao , Star Zeng Subject: Re: [PATCH] MdeModulePkg/Core/Dxe: downgrade "CodeSegmentCount is 0" msg to DEBUG_WARN X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2017 11:11:15 -0000 Content-Type: text/plain; charset=UTF-8 On 20 March 2017 at 11:09, Laszlo Ersek wrote: > UEFI executables that consist of a single read+write+exec PE/COFF section > trigger this message, but such a binary layout isn't actually an error. > The image can be launched alright, only image protection cannot be applied > to it fully. > > One example that elicits the message is (some) Linux kernels (with the EFI > stub of course). > > Cc: Ard Biesheuvel > Cc: Feng Tian > Cc: Jiewen Yao > Cc: Star Zeng > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Laszlo Ersek Acked-by: Ard Biesheuvel > --- > MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c b/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c > index 7689c794a8ad..699c9a827720 100644 > --- a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c > +++ b/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c > @@ -580,10 +580,10 @@ ProtectUefiImageCommon ( > } > > if (ImageRecord->CodeSegmentCount == 0) { > - DEBUG ((DEBUG_ERROR, "!!!!!!!! ProtectUefiImageCommon - CodeSegmentCount is 0 !!!!!!!!\n")); > + DEBUG ((DEBUG_WARN, "!!!!!!!! ProtectUefiImageCommon - CodeSegmentCount is 0 !!!!!!!!\n")); > PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageAddress); > if (PdbPointer != NULL) { > - DEBUG ((DEBUG_ERROR, "!!!!!!!! Image - %a !!!!!!!!\n", PdbPointer)); > + DEBUG ((DEBUG_WARN, "!!!!!!!! Image - %a !!!!!!!!\n", PdbPointer)); > } > goto Finish; > } > -- > 2.9.3 >