public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
From: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
To: Simon Horman <horms@verge.net.au>
Cc: tjd21@cl.cam.ac.uk, kexec@lists.infradead.org,
	Wang YanQing <udknight@gmail.com>,
	ebiederm@xmission.com, hari@in.ibm.com,
	Zhang Yanfei <zhangyanfei.yes@gmail.com>
Subject: Re: [PATCH RESEND]kexec:i386/kexec-[bzImage|elf-x86]:x86_64/kexec-bzImage64: Use "\0" as command line instead of empty command line
Date: Wed, 17 Apr 2013 09:27:56 +0800	[thread overview]
Message-ID: <516DFA9C.5030704@cn.fujitsu.com> (raw)
In-Reply-To: <20130417001314.GB21434@verge.net.au>

于 2013年04月17日 08:13, Simon Horman 写道:
> On Tue, Apr 16, 2013 at 10:09:18PM +0800, Zhang Yanfei wrote:
>> 于 2013年04月08日 17:29, Zhang Yanfei 写道:
>>> 于 2013年04月08日 17:23, Wang YanQing 写道:
>>>> This patch prevents the problems to happen below:
>>>> In setup_linux_bootloader_parameters_high
>>>> 120         cmdline_ptr = ((char *)real_mode) + cmdline_offset;
>>>> 121         memcpy(cmdline_ptr, cmdline, cmdline_len);
>>>> 122         cmdline_ptr[cmdline_len - 1] = '\0';
>>>>
>>>> if cmdline_len == 0, Line 122 will corrupt kernel16 buf just before the commandline.
>>>> And in do_bzImage_load, for example,
>>>> 369         cmdline_end = setup_base + kern16_size_needed + command_line_len - 1;
>>>> 370         elf_rel_set_symbol(&info->rhdr, "cmdline_end", &cmdline_end,
>>>> 371                            sizeof(unsigned long));
>>>> Line 369 will go wrong, too.
>>>>
>>>> Signed-off-by: Wang YanQing <udknight@gmail.com>
>>>> ---
>>>>  Hi Zhang Yanfei, could you give your signed-off-by to
>>>>  this patch?
>>>
>>> Yeah.
>>>
>>> Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
>>>
>>> Hi Simon, could you please take a look at this to see if the change is reasonable?
>>> After all, if no commadline, we make the commandline_len to 1. I don't know if
>>> this behaviour could be accepted by you.
>>>
>>
>> Hi Simon
>>
>> What is your opinion about this patch?
> 
> It seems reasonable to me, I have applied it.
> 
> I have added your Signed-off-by. However, for reference: unless you are the
> maintainer or were involved in writing the patch I think an Acked-by or
> Tested-by would be more appropriate.
> 

I added some codes in the mail when we discussed this patch, so I
add my Signed-off-by.

Anyway, thanks for your reminding:-)

Thanks
Zhang

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

      reply	other threads:[~2013-04-17  1:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08  9:23 [PATCH RESEND]kexec:i386/kexec-[bzImage|elf-x86]:x86_64/kexec-bzImage64: Use "\0" as command line instead of empty command line Wang YanQing
2013-04-08  9:29 ` Zhang Yanfei
2013-04-09  6:14   ` Zhang Yanfei
2013-04-16 14:09   ` Zhang Yanfei
2013-04-17  0:13     ` Simon Horman
2013-04-17  1:27       ` Zhang Yanfei [this message]

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=516DFA9C.5030704@cn.fujitsu.com \
    --to=zhangyanfei@cn.fujitsu.com \
    --cc=ebiederm@xmission.com \
    --cc=hari@in.ibm.com \
    --cc=horms@verge.net.au \
    --cc=kexec@lists.infradead.org \
    --cc=tjd21@cl.cam.ac.uk \
    --cc=udknight@gmail.com \
    --cc=zhangyanfei.yes@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox