From: Konrad Eisele <konrad@gaisler.com>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH 4/4] kernel,debug: SPARC KGDB stub strcpy fix
Date: Wed, 12 Oct 2011 10:11:30 +0000 [thread overview]
Message-ID: <4E9567D2.4050405@gaisler.com> (raw)
In-Reply-To: <1317390450-5982-5-git-send-email-konrad@gaisler.com>
David Miller wrote:
> From: Konrad Eisele <konrad@gaisler.com>
> Date: Tue, 11 Oct 2011 14:16:01 +0200
>
>> It is a gcc optimization. strcpy(p,"string") is converted to memcpy(p,7).
>> I could think of 2 ways:
>> - fix memcpy() so that it returns the dest-pointer instead of 0. (However
>> there might be a reason that it returns 0 ...
>> - keep the "kernel,debug: SPARC KGDB stub strcpy fix" patch but change the
>> summary of the patch to:
>> Works aroung the fact that strcpy with a constant string is
>> converted to memcpy by gcc and that memcpy in SPARC returns 0.
>>
>> I'll send the 2 possibilities as a reply in a moment.
>
> I think memcpy() should be fixed to return the dest pointer.
>
>
In that case the patchset would be (I sent them 10/11/2011 02:18 PM):
+ 0001-apbuart-add-polling-callbacks-to-apbuart-driver.patch
+ 0002-apbuart-add-support-for-virtual-KGDB-GRMON-channel.patch
+ 0004-sparc32-return-destination-pointer-on-return-from-me.patch
+ 0005-sparc32-Add-support-for-KGDB-with-SMP-for-leon-and-s.patch
and skip the "0003-kernel-debug-SPARC-KGDB-stub-strcpy-fix.patch"
-- Konrad
prev parent reply other threads:[~2011-10-12 10:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-30 13:47 [PATCH 4/4] kernel,debug: SPARC KGDB stub strcpy fix Konrad Eisele
2011-10-06 5:49 ` David Miller
2011-10-11 12:16 ` Konrad Eisele
2011-10-11 18:38 ` David Miller
2011-10-12 10:11 ` Konrad Eisele [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=4E9567D2.4050405@gaisler.com \
--to=konrad@gaisler.com \
--cc=sparclinux@vger.kernel.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.