[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210322160253.4032422-1-arnd@kernel.org>
Date: Mon, 22 Mar 2021 17:02:38 +0100
From: Arnd Bergmann <arnd@...nel.org>
To: linux-kernel@...r.kernel.org, Martin Sebor <msebor@....gnu.org>
Cc: Arnd Bergmann <arnd@...db.de>, x86@...nel.org,
Ning Sun <ning.sun@...el.com>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Kalle Valo <kvalo@...eaurora.org>,
Simon Kelley <simon@...kelleys.org.uk>,
James Smart <james.smart@...adcom.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
Anders Larsen <al@...rsen.net>, Tejun Heo <tj@...nel.org>,
Serge Hallyn <serge@...lyn.com>,
Imre Deak <imre.deak@...el.com>,
linux-arm-kernel@...ts.infradead.org,
tboot-devel@...ts.sourceforge.net, intel-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, ath11k@...ts.infradead.org,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-scsi@...r.kernel.org, cgroups@...r.kernel.org,
linux-security-module@...r.kernel.org
Subject: [PATCH 00/11] treewide: address gcc-11 -Wstringop-overread warnings
From: Arnd Bergmann <arnd@...db.de>
The coming gcc release introduces a new warning for string operations
reading beyond the end of a fixed-length object. After testing
randconfig kernels for a while, think I have patches for any such
warnings that came up on x86, arm and arm64.
Most of these warnings are false-positive ones, either gcc warning
about something that is entirely correct, or about something that
looks suspicious but turns out to be correct after all.
The two patches for the i915 driver look like something that might
be actual bugs, but I am not sure about those either.
We probably want some combination of workaround like the ones I
post here and changes to gcc to have fewer false positives in the
release. I'm posting the entire set of workaround that give me
a cleanly building kernel for reference here.
Arnd
Arnd Bergmann (11):
x86: compressed: avoid gcc-11 -Wstringop-overread warning
x86: tboot: avoid Wstringop-overread-warning
security: commoncap: fix -Wstringop-overread warning
ath11: Wstringop-overread warning
qnx: avoid -Wstringop-overread warning
cgroup: fix -Wzero-length-bounds warnings
ARM: sharpsl_param: work around -Wstringop-overread warning
atmel: avoid gcc -Wstringop-overflow warning
scsi: lpfc: fix gcc -Wstringop-overread warning
drm/i915: avoid stringop-overread warning on pri_latency
[RFC] drm/i915/dp: fix array overflow warning
arch/arm/common/sharpsl_param.c | 4 ++-
arch/x86/boot/compressed/misc.c | 2 --
arch/x86/kernel/tboot.c | 44 +++++++++++++++----------
drivers/gpu/drm/i915/display/intel_dp.c | 2 +-
drivers/gpu/drm/i915/i915_drv.h | 6 ++--
drivers/net/wireless/ath/ath11k/mac.c | 2 +-
drivers/net/wireless/atmel/atmel.c | 25 ++++++++------
drivers/scsi/lpfc/lpfc_attr.c | 6 ++--
fs/qnx4/dir.c | 11 +++----
kernel/cgroup/cgroup.c | 15 +++++++--
security/commoncap.c | 2 +-
11 files changed, 69 insertions(+), 50 deletions(-)
Cc: x86@...nel.org
Cc: Ning Sun <ning.sun@...el.com>
Cc: Jani Nikula <jani.nikula@...ux.intel.com>
Cc: Kalle Valo <kvalo@...eaurora.org>
Cc: Simon Kelley <simon@...kelleys.org.uk>
Cc: James Smart <james.smart@...adcom.com>
Cc: "James E.J. Bottomley" <jejb@...ux.ibm.com>
Cc: Anders Larsen <al@...rsen.net>
Cc: Tejun Heo <tj@...nel.org>
Cc: Serge Hallyn <serge@...lyn.com>
Cc: Imre Deak <imre.deak@...el.com>
Cc: linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org
Cc: tboot-devel@...ts.sourceforge.net
Cc: intel-gfx@...ts.freedesktop.org
Cc: dri-devel@...ts.freedesktop.org
Cc: ath11k@...ts.infradead.org
Cc: linux-wireless@...r.kernel.org
Cc: netdev@...r.kernel.org
Cc: linux-scsi@...r.kernel.org
Cc: cgroups@...r.kernel.org
Cc: linux-security-module@...r.kernel.org
--
2.29.2
Powered by blists - more mailing lists