From: Fihlman Emil <emil.fihlman@aalto.fi>
To: "yauheni.kaliuta@redhat.com" <yauheni.kaliuta@redhat.com>
Cc: "e@kellett.im" <e@kellett.im>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [RFC PATCH] gcc-9: workaround array bounds warning on boot_params cleaning
Date: Tue, 6 Aug 2019 18:54:56 +0000 [thread overview]
Message-ID: <e72c48b3d10540a8b763f5ba862f2b8a@aalto.fi> (raw)
It should also be possibly to simply cast to u64 and then to u8 * unless
the compiler overzealously tracks out of bound accesses even when
6.3.2.3 #5-6 explicitly allows pointer-integer-pointer conversions like
this and removes previous guarantees. Ie.
memset((u8 *)((u64)(&(boot_params->ext_ramdisk_image))), 0, size)
I apologise for not having the in-reply-to header.
Emil Fihlman
next reply other threads:[~2019-08-06 19:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-06 18:54 Fihlman Emil [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-08-06 16:30 Yauheni Kaliuta
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=e72c48b3d10540a8b763f5ba862f2b8a@aalto.fi \
--to=emil.fihlman@aalto.fi \
--cc=e@kellett.im \
--cc=linux-kernel@vger.kernel.org \
--cc=yauheni.kaliuta@redhat.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
all inboxes | Powered by JetHome®