* stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13
@ 2023-08-08 5:27 Naresh Kamboju
2023-08-10 20:31 ` Kees Cook
0 siblings, 1 reply; 7+ messages in thread
From: Naresh Kamboju @ 2023-08-08 5:27 UTC (permalink / raw)
To: linux-stable, lkft-triage
Cc: Greg Kroah-Hartman, Sasha Levin, Anders Roxell, Kees Cook,
linux-hardening, Palmer Dabbelt
LKFT build plans updated with toolchain gcc-13 and here is the report.
Stable rc 6.1 arm64 builds with gcc-13 failed and the bisection is pointing
to this as first bad commit,
# first fixed commit: [e6a71160cc145e18ab45195abf89884112e02dfb]
gcc-plugins: Reorganize gimple includes for GCC 13
Thanks Anders for bisecting this problem against Linux 6.2-rc6.
Build errors:
---------------
In file included from /builds/linux/scripts/gcc-plugins/gcc-common.h:75,
from /builds/linux/scripts/gcc-plugins/stackleak_plugin.c:30:
/usr/lib/gcc-cross/aarch64-linux-gnu/13/plugin/include/gimple-fold.h:72:32:
error: use of enum 'gsi_iterator_update' without previous declaration
72 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Links:
--------
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y-sanity/build/v6.1.43-111-g565bca90c30e/testrun/18861637/suite/build/test/gcc-13-lkftconfig-kselftest-kernel/details/
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y-sanity/build/v6.1.43-111-g565bca90c30e/testrun/18861637/suite/build/test/gcc-13-lkftconfig-kselftest-kernel/log
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y-sanity/build/v6.1.43-111-g565bca90c30e/testrun/18861637/suite/build/test/gcc-13-lkftconfig-kselftest-kernel/history/
--
Linaro LKFT
https://lkft.linaro.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13
2023-08-08 5:27 stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13 Naresh Kamboju
@ 2023-08-10 20:31 ` Kees Cook
2023-08-11 3:17 ` Naresh Kamboju
0 siblings, 1 reply; 7+ messages in thread
From: Kees Cook @ 2023-08-10 20:31 UTC (permalink / raw)
To: Naresh Kamboju
Cc: linux-stable, lkft-triage, Greg Kroah-Hartman, Sasha Levin,
Anders Roxell, linux-hardening, Palmer Dabbelt
On Tue, Aug 08, 2023 at 10:57:30AM +0530, Naresh Kamboju wrote:
> LKFT build plans updated with toolchain gcc-13 and here is the report.
>
> Stable rc 6.1 arm64 builds with gcc-13 failed and the bisection is pointing
> to this as first bad commit,
>
> # first fixed commit: [e6a71160cc145e18ab45195abf89884112e02dfb]
> gcc-plugins: Reorganize gimple includes for GCC 13
>
> Thanks Anders for bisecting this problem against Linux 6.2-rc6.
>
> Build errors:
> ---------------
> In file included from /builds/linux/scripts/gcc-plugins/gcc-common.h:75,
> from /builds/linux/scripts/gcc-plugins/stackleak_plugin.c:30:
> /usr/lib/gcc-cross/aarch64-linux-gnu/13/plugin/include/gimple-fold.h:72:32:
> error: use of enum 'gsi_iterator_update' without previous declaration
> 72 | enum gsi_iterator_update,
> | ^~~~~~~~~~~~~~~~~~
>
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
I'm slightly confused by this report. Is it the build of v6.1 that is
failing? Commit e6a71160cc14 ("gcc-plugins: Reorganize gimple includes
for GCC 13") was added in v6.2.
I think you're saying you need it backported to the v6.1 stable tree?
("First bad commit" is really the first good commit?)
-Kees
--
Kees Cook
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13
2023-08-10 20:31 ` Kees Cook
@ 2023-08-11 3:17 ` Naresh Kamboju
2023-08-11 3:30 ` Kees Cook
2023-08-11 6:27 ` Greg Kroah-Hartman
0 siblings, 2 replies; 7+ messages in thread
From: Naresh Kamboju @ 2023-08-11 3:17 UTC (permalink / raw)
To: Kees Cook
Cc: linux-stable, lkft-triage, Greg Kroah-Hartman, Sasha Levin,
Anders Roxell, linux-hardening, Palmer Dabbelt
On Fri, 11 Aug 2023 at 02:01, Kees Cook <keescook@chromium.org> wrote:
>
> On Tue, Aug 08, 2023 at 10:57:30AM +0530, Naresh Kamboju wrote:
> > LKFT build plans updated with toolchain gcc-13 and here is the report.
> >
> > Stable rc 6.1 arm64 builds with gcc-13 failed and the bisection is pointing
> > to this as first bad commit,
> >
> > # first fixed commit: [e6a71160cc145e18ab45195abf89884112e02dfb]
> > gcc-plugins: Reorganize gimple includes for GCC 13
> >
> > Thanks Anders for bisecting this problem against Linux 6.2-rc6.
> >
> > Build errors:
> > ---------------
> > In file included from /builds/linux/scripts/gcc-plugins/gcc-common.h:75,
> > from /builds/linux/scripts/gcc-plugins/stackleak_plugin.c:30:
> > /usr/lib/gcc-cross/aarch64-linux-gnu/13/plugin/include/gimple-fold.h:72:32:
> > error: use of enum 'gsi_iterator_update' without previous declaration
> > 72 | enum gsi_iterator_update,
> > | ^~~~~~~~~~~~~~~~~~
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>
> I'm slightly confused by this report.
Sorry. I should have provided full details.
> Is it the build of v6.1 that is failing?
Linux-stable-rc linux.6.1.y failing with gcc-13.
> Commit e6a71160cc14 ("gcc-plugins: Reorganize gimple includes
> for GCC 13") was added in v6.2.
This commit is needed.
>
> I think you're saying you need it backported to the v6.1 stable tree?
> ("First bad commit" is really the first good commit?)
First good commit.
We need to backport this patch for linux.6.1.y
Bisect log:
------
# fixed: [6d796c50f84ca79f1722bb131799e5a5710c4700] Linux 6.2-rc6
# unfixed: [2241ab53cbb5cdb08a6b2d4688feb13971058f65] Linux 6.2-rc5
git bisect start '--term-new=fixed' '--term-old=unfixed' 'v6.2-rc6' 'v6.2-rc5'
# unfixed: [9f4d0bd24e6b42555c02e137763f12c106572e63] Merge tag
'linux-kselftest-fixes-6.2-rc6' of
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
git bisect unfixed 9f4d0bd24e6b42555c02e137763f12c106572e63
# unfixed: [37d0be6a7d7d6fede952c439f8d8b9d1df5c756f] Merge tag
'gpio-fixes-for-v6.2-rc6' of
git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
git bisect unfixed 37d0be6a7d7d6fede952c439f8d8b9d1df5c756f
# fixed: [f851453bf19554a42eb480b65436b9500c3cf392] Merge tag
'io_uring-6.2-2023-01-27' of git://git.kernel.dk/linux
git bisect fixed f851453bf19554a42eb480b65436b9500c3cf392
# unfixed: [78020233418518faa72fba11f40e1d53b9e88a2e] bootconfig:
Update MAINTAINERS file to add tree and mailing list
git bisect unfixed 78020233418518faa72fba11f40e1d53b9e88a2e
# unfixed: [e6f2f6ac500c67164f6f6b47299aece579277c14] Merge tag
'i2c-for-6.2-rc6' of
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
git bisect unfixed e6f2f6ac500c67164f6f6b47299aece579277c14
# fixed: [be0d8f48ad97f5b775b0af3310343f676dbf318a] bcache: Silence
memcpy() run-time false positive warnings
git bisect fixed be0d8f48ad97f5b775b0af3310343f676dbf318a
# fixed: [e6a71160cc145e18ab45195abf89884112e02dfb] gcc-plugins:
Reorganize gimple includes for GCC 13
git bisect fixed e6a71160cc145e18ab45195abf89884112e02dfb
# unfixed: [4acf1de35f41549e60c3c02a8defa7cb95eabdf2] kunit: memcpy:
Split slow memcpy tests into MEMCPY_SLOW_KUNIT_TEST
git bisect unfixed 4acf1de35f41549e60c3c02a8defa7cb95eabdf2
# first fixed commit: [e6a71160cc145e18ab45195abf89884112e02dfb]
gcc-plugins: Reorganize gimple includes for GCC 13
- Naresh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13
2023-08-11 3:17 ` Naresh Kamboju
@ 2023-08-11 3:30 ` Kees Cook
2023-08-11 3:34 ` Palmer Dabbelt
2023-08-11 6:27 ` Greg Kroah-Hartman
1 sibling, 1 reply; 7+ messages in thread
From: Kees Cook @ 2023-08-11 3:30 UTC (permalink / raw)
To: Naresh Kamboju
Cc: linux-stable, lkft-triage, Greg Kroah-Hartman, Sasha Levin,
Anders Roxell, linux-hardening, Palmer Dabbelt
On Fri, Aug 11, 2023 at 08:47:53AM +0530, Naresh Kamboju wrote:
> > > # first fixed commit: [e6a71160cc145e18ab45195abf89884112e02dfb]
> > > gcc-plugins: Reorganize gimple includes for GCC 13
> [...]
>
> > Commit e6a71160cc14 ("gcc-plugins: Reorganize gimple includes
> > for GCC 13") was added in v6.2.
>
> This commit is needed.
>
> >
> > I think you're saying you need it backported to the v6.1 stable tree?
> > ("First bad commit" is really the first good commit?)
>
> First good commit.
> We need to backport this patch for linux.6.1.y
Okay! Thanks. :) Yeah, this could probably go to all the stable kernels,
if someone wants to build with GCC 13 on older kernels.
--
Kees Cook
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13
2023-08-11 3:30 ` Kees Cook
@ 2023-08-11 3:34 ` Palmer Dabbelt
0 siblings, 0 replies; 7+ messages in thread
From: Palmer Dabbelt @ 2023-08-11 3:34 UTC (permalink / raw)
To: keescook
Cc: naresh.kamboju, stable, lkft-triage, Greg KH, sashal,
anders.roxell, linux-hardening
On Thu, 10 Aug 2023 20:30:52 PDT (-0700), keescook@chromium.org wrote:
> On Fri, Aug 11, 2023 at 08:47:53AM +0530, Naresh Kamboju wrote:
>> > > # first fixed commit: [e6a71160cc145e18ab45195abf89884112e02dfb]
>> > > gcc-plugins: Reorganize gimple includes for GCC 13
>> [...]
>>
>> > Commit e6a71160cc14 ("gcc-plugins: Reorganize gimple includes
>> > for GCC 13") was added in v6.2.
>>
>> This commit is needed.
>>
>> >
>> > I think you're saying you need it backported to the v6.1 stable tree?
>> > ("First bad commit" is really the first good commit?)
>>
>> First good commit.
>> We need to backport this patch for linux.6.1.y
>
> Okay! Thanks. :) Yeah, this could probably go to all the stable kernels,
> if someone wants to build with GCC 13 on older kernels.
I'm also sligtly lost in the bug report, but IIRC the GCC include
changes were really a GCC version issue not a kernel version issue. In
other words, any kernel would be impacted if it's built with the newer
GCC so this should be backported aggressively.
So
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13
2023-08-11 3:17 ` Naresh Kamboju
2023-08-11 3:30 ` Kees Cook
@ 2023-08-11 6:27 ` Greg Kroah-Hartman
2023-08-11 14:18 ` Greg Kroah-Hartman
1 sibling, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2023-08-11 6:27 UTC (permalink / raw)
To: Naresh Kamboju
Cc: Kees Cook, linux-stable, lkft-triage, Sasha Levin, Anders Roxell,
linux-hardening, Palmer Dabbelt
On Fri, Aug 11, 2023 at 08:47:53AM +0530, Naresh Kamboju wrote:
> On Fri, 11 Aug 2023 at 02:01, Kees Cook <keescook@chromium.org> wrote:
> >
> > On Tue, Aug 08, 2023 at 10:57:30AM +0530, Naresh Kamboju wrote:
> > > LKFT build plans updated with toolchain gcc-13 and here is the report.
> > >
> > > Stable rc 6.1 arm64 builds with gcc-13 failed and the bisection is pointing
> > > to this as first bad commit,
> > >
> > > # first fixed commit: [e6a71160cc145e18ab45195abf89884112e02dfb]
> > > gcc-plugins: Reorganize gimple includes for GCC 13
> > >
> > > Thanks Anders for bisecting this problem against Linux 6.2-rc6.
> > >
> > > Build errors:
> > > ---------------
> > > In file included from /builds/linux/scripts/gcc-plugins/gcc-common.h:75,
> > > from /builds/linux/scripts/gcc-plugins/stackleak_plugin.c:30:
> > > /usr/lib/gcc-cross/aarch64-linux-gnu/13/plugin/include/gimple-fold.h:72:32:
> > > error: use of enum 'gsi_iterator_update' without previous declaration
> > > 72 | enum gsi_iterator_update,
> > > | ^~~~~~~~~~~~~~~~~~
> > >
> > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> >
> > I'm slightly confused by this report.
>
> Sorry. I should have provided full details.
>
> > Is it the build of v6.1 that is failing?
>
> Linux-stable-rc linux.6.1.y failing with gcc-13.
I don't understand, I test here with gcc-13 for 6.4.y and 6.1.y and it's
working just fine. What changed to cause this to fail now?
I'm using:
gcc (GCC) 13.2.1 20230801
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13
2023-08-11 6:27 ` Greg Kroah-Hartman
@ 2023-08-11 14:18 ` Greg Kroah-Hartman
0 siblings, 0 replies; 7+ messages in thread
From: Greg Kroah-Hartman @ 2023-08-11 14:18 UTC (permalink / raw)
To: Naresh Kamboju
Cc: Kees Cook, linux-stable, lkft-triage, Sasha Levin, Anders Roxell,
linux-hardening, Palmer Dabbelt
On Fri, Aug 11, 2023 at 08:27:20AM +0200, Greg Kroah-Hartman wrote:
> On Fri, Aug 11, 2023 at 08:47:53AM +0530, Naresh Kamboju wrote:
> > On Fri, 11 Aug 2023 at 02:01, Kees Cook <keescook@chromium.org> wrote:
> > >
> > > On Tue, Aug 08, 2023 at 10:57:30AM +0530, Naresh Kamboju wrote:
> > > > LKFT build plans updated with toolchain gcc-13 and here is the report.
> > > >
> > > > Stable rc 6.1 arm64 builds with gcc-13 failed and the bisection is pointing
> > > > to this as first bad commit,
> > > >
> > > > # first fixed commit: [e6a71160cc145e18ab45195abf89884112e02dfb]
> > > > gcc-plugins: Reorganize gimple includes for GCC 13
> > > >
> > > > Thanks Anders for bisecting this problem against Linux 6.2-rc6.
> > > >
> > > > Build errors:
> > > > ---------------
> > > > In file included from /builds/linux/scripts/gcc-plugins/gcc-common.h:75,
> > > > from /builds/linux/scripts/gcc-plugins/stackleak_plugin.c:30:
> > > > /usr/lib/gcc-cross/aarch64-linux-gnu/13/plugin/include/gimple-fold.h:72:32:
> > > > error: use of enum 'gsi_iterator_update' without previous declaration
> > > > 72 | enum gsi_iterator_update,
> > > > | ^~~~~~~~~~~~~~~~~~
> > > >
> > > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > >
> > > I'm slightly confused by this report.
> >
> > Sorry. I should have provided full details.
> >
> > > Is it the build of v6.1 that is failing?
> >
> > Linux-stable-rc linux.6.1.y failing with gcc-13.
>
> I don't understand, I test here with gcc-13 for 6.4.y and 6.1.y and it's
> working just fine. What changed to cause this to fail now?
>
> I'm using:
> gcc (GCC) 13.2.1 20230801
Anyway, it's easy enough for me to apply it, so now queued up, thanks.
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-11 14:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 5:27 stable-rc: 6.1: gcc-plugins: Reorganize gimple includes for GCC 13 Naresh Kamboju
2023-08-10 20:31 ` Kees Cook
2023-08-11 3:17 ` Naresh Kamboju
2023-08-11 3:30 ` Kees Cook
2023-08-11 3:34 ` Palmer Dabbelt
2023-08-11 6:27 ` Greg Kroah-Hartman
2023-08-11 14:18 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox