From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCB1B3858D39; Mon, 27 Mar 2023 06:13:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCB1B3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679897610; bh=oCwDjyYr/3QIckRSGV6EPAILFOotFABCOSDJuseP2NA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kavnehRJTZsJQu//WRu3JRTfRqRBmKy5F2INuOkewelC3jGK4puYaatN04Gek4Q2g NaeJ5HRsn3FD41k6UEQmMO4hdSQfUzYM9kYhBR6CYIANO4fNwstyi8VMlpN8apTSbX lETDrrbSIaTX6+a5yWZ4oj63rkDFM/nrmZFZCaaE= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzEwOTIzM10gWzEyLzEzIFJlZ3Jlc3Npb25dIHdhcm5p?= =?UTF-8?B?bmc6IGFycmF5IHN1YnNjcmlwdCA1IGlzIGFib3ZlIGFycmF5IGJvdW5kcyBv?= =?UTF-8?B?ZiDigJhzdHJ1Y3QgdGczX25hcGlbNV3igJkgc2luY2UgcjEyLTI1OTE=?= Date: Mon, 27 Mar 2023 06:13:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109233 --- Comment #13 from Uro=C5=A1 Bizjak --- (In reply to Martin Li=C5=A1ka from comment #7) > Note, the linux kernel disables the -Werror of the warning for GCC 11 and= 12: > https://github.com/torvalds/linux/blob/ > a1effab7a3a35a837dd9d2b974a1bc4939df1ad5/init/Kconfig#L893-L904 >=20 > while they still hope it can be enabled for GCC 13. This is a grep for "error:" in make allyesconfig compilation (make -k): ./include/linux/fortify-string.h:57:33: error: =E2=80=98__builtin_memcpy=E2= =80=99 pointer overflow between offset 0 and size [-2147483648, -1] [-Werror=3Darray-bound= s=3D] ./include/linux/fortify-string.h:57:33: error: =E2=80=98__builtin_memcpy=E2= =80=99 pointer overflow between offset 0 and size [-2147483648, -1] [-Werror=3Darray-bound= s=3D] fs/btrfs/sysfs.c:637:13: error: array subscript -50 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -64 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -63 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -62 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -52 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -51 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -61 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -60 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -59 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] fs/btrfs/sysfs.c:637:13: error: array subscript -57 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] ./include/linux/fortify-string.h:57:33: error: array subscript =E2=80=98uns= igned char[16][0]=E2=80=99 is partly outside array bounds of =E2=80=98u8[15]=E2= =80=99 {aka =E2=80=98unsigned char[15]=E2=80=99} [-Werror=3Darray-bounds=3D] drivers/net/ethernet/broadcom/tg3.c:17787:51: error: array subscript 5 is a= bove array bounds of =E2=80=98struct tg3_napi[5]=E2=80=99 [-Werror=3Darray-bound= s=3D] drivers/net/ethernet/broadcom/tg3.c:17787:51: error: array subscript 5 is a= bove array bounds of =E2=80=98struct tg3_napi[5]=E2=80=99 [-Werror=3Darray-bound= s=3D] drivers/net/wireless/ath/carl9170/cmd.c:125:30: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[4]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:126:30: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[4]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:125:30: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[20]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:126:30: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[20]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:161:12: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[20]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:162:12: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[20]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:163:12: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[20]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:164:12: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[20]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:125:30: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[8]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:126:30: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[8]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/net/wireless/ath/carl9170/cmd.c:220:12: error: array subscript =E2= =80=98struct carl9170_cmd[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigne= d char[8]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/media/tuners/mxl5005s.c:3429:72: error: array subscript 32 is above array bounds of =E2=80=98u16[25]=E2=80=99 {aka =E2=80=98short unsigned int[= 25]=E2=80=99} [-Werror=3Darray-bounds=3D] drivers/media/tuners/mxl5005s.c:3448:70: error: array subscript 32 is above array bounds of =E2=80=98u16[25]=E2=80=99 {aka =E2=80=98short unsigned int[= 25]=E2=80=99} [-Werror=3Darray-bounds=3D] drivers/hwmon/lm85.c:1110:26: error: array subscript [0, 31] is outside arr= ay bounds of =E2=80=98struct lm85_autofan[3]=E2=80=99 [-Werror=3Darray-bounds= =3D] drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c:641:42: error: array subscri= pt 2 is above array bounds of =E2=80=98u32[2]=E2=80=99 {aka =E2=80=98unsigned in= t[2]=E2=80=99} [-Werror=3Darray-bounds=3D] drivers/net/ethernet/microchip/sparx5/sparx5_psfp.c:167:31: error: array subscript 4 is above array bounds of =E2=80=98const struct sparx5_psfp_gce[= 4]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/infiniband/core/user_mad.c:564:50: error: array subscript =E2=80=98= struct ib_rmpp_mad[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigned= char[140]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/infiniband/core/user_mad.c:566:42: error: array subscript =E2=80=98= struct ib_rmpp_mad[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigned= char[140]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/infiniband/core/user_mad.c:618:25: error: array subscript =E2=80=98= struct ib_rmpp_mad[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigned= char[140]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/infiniband/core/user_mad.c:622:44: error: array subscript =E2=80=98= struct ib_rmpp_mad[0]=E2=80=99 is partly outside array bounds of =E2=80=98unsigned= char[140]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/infiniband/hw/bnxt_re/qplib_sp.c:229:29: error: array subscript 0 is outside array bounds of =E2=80=98struct bnxt_qplib_sgid_tbl[230584300921369= 395]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/infiniband/hw/bnxt_re/qplib_sp.c:290:29: error: array subscript 0 is outside array bounds of =E2=80=98struct bnxt_qplib_sgid_tbl[230584300921369= 395]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/platform/chrome/cros_ec_vbc.c:36:15: error: array subscript =E2=80= =98struct ec_params_vbnvcontext[1]=E2=80=99 is partly outside array bounds of =E2=80= =98unsigned char[36]=E2=80=99 [-Werror=3Darray-bounds=3D] drivers/staging/rtl8712/rtl871x_xmit.c:949:40: error: array subscript 4 is outside array bounds of =E2=80=98void[448]=E2=80=99 [-Werror=3Darray-bounds= =3D] drivers/staging/rtl8712/rtl871x_xmit.c:950:39: error: array subscript 4 is outside array bounds of =E2=80=98void[448]=E2=80=99 [-Werror=3Darray-bounds= =3D]=