All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	Pawel Wieczorkiewicz <wipawel@amazon.de>,
	xen-devel@lists.xen.org, xen-devel@lists.xenproject.org
Cc: Ross Lagerwall <ross.lagerwall@citrix.com>,
	wipawel@amazon.com, Stefano Stabellini <sstabellini@kernel.org>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [Xen-devel] [PATCH] livepatch: always print XENLOG_ERR information (ARM, ELF)
Date: Wed, 21 Aug 2019 22:16:20 +0100	[thread overview]
Message-ID: <1d8fd758-3cdd-ac27-1256-cdca24282ab1@arm.com> (raw)
In-Reply-To: <c1a8b2e0-e621-82c6-e577-fd19791257d6@citrix.com>

Hi,

On 8/21/19 11:20 AM, Andrew Cooper wrote:
> On 21/08/2019 11:04, Pawel Wieczorkiewicz wrote:
>> diff --git a/xen/common/livepatch_elf.c b/xen/common/livepatch_elf.c
>> index dd8b47a1fa..18b9684aeb 100644
>> --- a/xen/common/livepatch_elf.c
>> +++ b/xen/common/livepatch_elf.c
>> @@ -55,7 +55,7 @@ static int elf_resolve_sections(struct livepatch_elf *elf, const void *data)
>>       sec = xzalloc_array(struct livepatch_elf_sec, elf->hdr->e_shnum);
>>       if ( !sec )
>>       {
>> -        dprintk(XENLOG_ERR, LIVEPATCH"%s: Could not allocate memory for section table!\n",
>> +        printk(XENLOG_ERR LIVEPATCH"%s: Could not allocate memory for section table\n",
>>                  elf->name);
>>           return -ENOMEM;
>>       }
>> @@ -81,22 +81,22 @@ static int elf_resolve_sections(struct livepatch_elf *elf, const void *data)
>>                (sec[i].sec->sh_type != SHT_NOBITS && /* Skip SHT_NOBITS */
>>                 (delta > elf->len || (delta + sec[i].sec->sh_size > elf->len))) )
>>           {
>> -            dprintk(XENLOG_ERR, LIVEPATCH "%s: Section [%u] data %s of payload!\n",
>> -                    elf->name, i,
>> +            printk(XENLOG_ERR LIVEPATCH "%s: Section [%u] data %s of payload\n",
>> +                   elf->name, i,
>>                       delta < sizeof(Elf_Ehdr) ? "at ELF header" : "is past end");
>> @@ -328,7 +328,7 @@ int livepatch_elf_resolve_symbols(struct livepatch_elf *elf)
>>   
>>               if ( rc )
>>               {
>> -                dprintk(XENLOG_ERR, LIVEPATCH "%s: Out of bounds symbol section %#x\n",
>> +                printk(XENLOG_ERR LIVEPATCH "%s: Out of bounds symbol section %#x\n",
>>                           elf->name, idx);
>>                   break;
>>               }
> 
> These three hunks have minor indentation/spacing issues.  All can be
> fixed up on commit.

Acked-by: Julien Grall <julien.grall@arm.com>

Even if this some of the code is under arch/arm, this still need an ack 
from Konrad/Ross.


Cheers,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-08-21 21:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-21 10:04 [Xen-devel] [PATCH] livepatch: always print XENLOG_ERR information (ARM, ELF) Pawel Wieczorkiewicz
2019-08-21 10:20 ` Andrew Cooper
2019-08-21 21:16   ` Julien Grall [this message]
2019-09-13 10:01 ` Ross Lagerwall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1d8fd758-3cdd-ac27-1256-cdca24282ab1@arm.com \
    --to=julien.grall@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=konrad.wilk@oracle.com \
    --cc=ross.lagerwall@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=wipawel@amazon.com \
    --cc=wipawel@amazon.de \
    --cc=xen-devel@lists.xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.