From: Will Deacon <will@kernel.org>
To: Andre Przywara <andre.przywara@arm.com>,
Julien Thierry <julien.thierry.kdev@gmail.com>
Cc: catalin.marinas@arm.com, Will Deacon <will@kernel.org>,
Alexandru Elisei <alexandru.elisei@arm.com>,
kvm@vger.kernel.org
Subject: Re: [PATCH kvmtool v2] net: uip: Fix GCC 10 warning about checksum calculation
Date: Tue, 19 May 2020 17:46:59 +0100 [thread overview]
Message-ID: <158990624263.2259.695515833438045756.b4-ty@kernel.org> (raw)
In-Reply-To: <20200518125649.216416-1-andre.przywara@arm.com>
On Mon, 18 May 2020 13:56:49 +0100, Andre Przywara wrote:
> GCC 10.1 generates a warning in net/ip/csum.c about exceeding a buffer
> limit in a memcpy operation:
> ------------------
> In function 'memcpy',
> inlined from 'uip_csum_udp' at net/uip/csum.c:58:3:
> /usr/include/aarch64-linux-gnu/bits/string_fortified.h:34:10: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
> 34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from net/uip/csum.c:1:
> net/uip/csum.c: In function 'uip_csum_udp':
> include/kvm/uip.h:132:6: note: at offset 0 to object 'sport' with size 2 declared here
> 132 | u16 sport;
> ------------------
>
> [...]
Applied to kvmtool (master), thanks!
[1/1] net: uip: Fix GCC 10 warning about checksum calculation
https://git.kernel.org/will/kvmtool/c/56ef7bdc6a7d
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
prev parent reply other threads:[~2020-05-19 16:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-18 12:56 [PATCH kvmtool v2] net: uip: Fix GCC 10 warning about checksum calculation Andre Przywara
2020-05-19 16:46 ` Will Deacon [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=158990624263.2259.695515833438045756.b4-ty@kernel.org \
--to=will@kernel.org \
--cc=alexandru.elisei@arm.com \
--cc=andre.przywara@arm.com \
--cc=catalin.marinas@arm.com \
--cc=julien.thierry.kdev@gmail.com \
--cc=kvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).