2021-01-12 19:23:38

by syzbot

[permalink] [raw]
Subject: upstream build error (12)

Hello,

syzbot found the following issue on:

HEAD commit: e609571b Merge tag 'nfs-for-5.11-2' of git://git.linux-nfs..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=15965a00d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6157970d0a91b812
dashboard link: https://syzkaller.appspot.com/bug?extid=76880518931d755473cf
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

clang-11: error: unable to execute command: Aborted (core dumped)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)

---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at [email protected].

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.


2021-01-12 19:45:47

by Nathan Chancellor

[permalink] [raw]
Subject: Re: upstream build error (12)

On Tue, Jan 12, 2021 at 11:20:27AM -0800, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: e609571b Merge tag 'nfs-for-5.11-2' of git://git.linux-nfs..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=15965a00d00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=6157970d0a91b812
> dashboard link: https://syzkaller.appspot.com/bug?extid=76880518931d755473cf
> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b)
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: [email protected]
>
> clang-11: error: unable to execute command: Aborted (core dumped)
> clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
>
> ---
> This report is generated by a bot. It may contain errors.
> See https://goo.gl/tpsmEJ for more information about syzbot.
> syzbot engineers can be reached at [email protected].
>
> syzbot will keep track of this issue. See:
> https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

Would it be possible for [email protected] to be CC'd
when there is a build error and the compiler is clang? Especially if
clang is hitting an assertion.

Cheers,
Nathan

2021-01-13 02:34:29

by Marco Elver

[permalink] [raw]
Subject: Re: upstream build error (12)

On Tue, 12 Jan 2021 at 21:32, Nathan Chancellor
<[email protected]> wrote:
>
> On Tue, Jan 12, 2021 at 12:40:58PM -0700, Nathan Chancellor wrote:
> > On Tue, Jan 12, 2021 at 11:20:27AM -0800, syzbot wrote:
> > > Hello,
> > >
> > > syzbot found the following issue on:
> > >
> > > HEAD commit: e609571b Merge tag 'nfs-for-5.11-2' of git://git.linux-nfs..
> > > git tree: upstream
> > > console output: https://syzkaller.appspot.com/x/log.txt?x=15965a00d00000
> > > kernel config: https://syzkaller.appspot.com/x/.config?x=6157970d0a91b812
> > > dashboard link: https://syzkaller.appspot.com/bug?extid=76880518931d755473cf
> > > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b)
> > >
> > > IMPORTANT: if you fix the issue, please add the following tag to the commit:
> > > Reported-by: [email protected]
> > >
> > > clang-11: error: unable to execute command: Aborted (core dumped)
> > > clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
> > >
> > > ---
> > > This report is generated by a bot. It may contain errors.
> > > See https://goo.gl/tpsmEJ for more information about syzbot.
> > > syzbot engineers can be reached at [email protected].
> > >
> > > syzbot will keep track of this issue. See:
> > > https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
> >
> > Would it be possible for [email protected] to be CC'd
> > when there is a build error and the compiler is clang? Especially if
> > clang is hitting an assertion.
>
> I cannot reproduce this with clang 11.0.1. I did a reverse bisect on
> LLVM and found commit 4b0aa5724fea ("Change the INLINEASM_BR MachineInstr
> to be a non-terminating instruction.") as the fix (which makes sense,
> that commit has direct kernel implications). It is probably worth
> upgrading syzkaller's clang to 11.0.1, where I have not seen any
> assertions across all of the configurations that I test.
>
> Ccing Dmitry and Marco directly.

I'll upgrade syzbot's clang 11. I think the version we use right now
was still a pre-release.

Thanks,
-- Marco

2021-01-13 02:34:43

by Nathan Chancellor

[permalink] [raw]
Subject: Re: upstream build error (12)

On Tue, Jan 12, 2021 at 12:40:58PM -0700, Nathan Chancellor wrote:
> On Tue, Jan 12, 2021 at 11:20:27AM -0800, syzbot wrote:
> > Hello,
> >
> > syzbot found the following issue on:
> >
> > HEAD commit: e609571b Merge tag 'nfs-for-5.11-2' of git://git.linux-nfs..
> > git tree: upstream
> > console output: https://syzkaller.appspot.com/x/log.txt?x=15965a00d00000
> > kernel config: https://syzkaller.appspot.com/x/.config?x=6157970d0a91b812
> > dashboard link: https://syzkaller.appspot.com/bug?extid=76880518931d755473cf
> > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b)
> >
> > IMPORTANT: if you fix the issue, please add the following tag to the commit:
> > Reported-by: [email protected]
> >
> > clang-11: error: unable to execute command: Aborted (core dumped)
> > clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
> >
> > ---
> > This report is generated by a bot. It may contain errors.
> > See https://goo.gl/tpsmEJ for more information about syzbot.
> > syzbot engineers can be reached at [email protected].
> >
> > syzbot will keep track of this issue. See:
> > https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
>
> Would it be possible for [email protected] to be CC'd
> when there is a build error and the compiler is clang? Especially if
> clang is hitting an assertion.

I cannot reproduce this with clang 11.0.1. I did a reverse bisect on
LLVM and found commit 4b0aa5724fea ("Change the INLINEASM_BR MachineInstr
to be a non-terminating instruction.") as the fix (which makes sense,
that commit has direct kernel implications). It is probably worth
upgrading syzkaller's clang to 11.0.1, where I have not seen any
assertions across all of the configurations that I test.

Ccing Dmitry and Marco directly.

Cheers,
Nathan

2021-01-14 11:34:13

by Dmitry Vyukov

[permalink] [raw]
Subject: Re: upstream build error (12)

On Tue, Jan 12, 2021 at 8:41 PM Nathan Chancellor
<[email protected]> wrote:
>
> On Tue, Jan 12, 2021 at 11:20:27AM -0800, syzbot wrote:
> > Hello,
> >
> > syzbot found the following issue on:
> >
> > HEAD commit: e609571b Merge tag 'nfs-for-5.11-2' of git://git.linux-nfs..
> > git tree: upstream
> > console output: https://syzkaller.appspot.com/x/log.txt?x=15965a00d00000
> > kernel config: https://syzkaller.appspot.com/x/.config?x=6157970d0a91b812
> > dashboard link: https://syzkaller.appspot.com/bug?extid=76880518931d755473cf
> > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b)
> >
> > IMPORTANT: if you fix the issue, please add the following tag to the commit:
> > Reported-by: [email protected]
> >
> > clang-11: error: unable to execute command: Aborted (core dumped)
> > clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
> >
> > ---
> > This report is generated by a bot. It may contain errors.
> > See https://goo.gl/tpsmEJ for more information about syzbot.
> > syzbot engineers can be reached at [email protected].
> >
> > syzbot will keep track of this issue. See:
> > https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
>
> Would it be possible for [email protected] to be CC'd
> when there is a build error and the compiler is clang? Especially if
> clang is hitting an assertion.

Hi Nathan,

I am adding functionality to CC specific emails on build errors on
specific instances:
https://github.com/google/syzkaller/pull/2388

2021-01-14 12:40:23

by Dmitry Vyukov

[permalink] [raw]
Subject: Re: upstream build error (12)

On Thu, Jan 14, 2021 at 12:32 PM Dmitry Vyukov <[email protected]> wrote:
>
> On Tue, Jan 12, 2021 at 8:41 PM Nathan Chancellor
> <[email protected]> wrote:
> >
> > On Tue, Jan 12, 2021 at 11:20:27AM -0800, syzbot wrote:
> > > Hello,
> > >
> > > syzbot found the following issue on:
> > >
> > > HEAD commit: e609571b Merge tag 'nfs-for-5.11-2' of git://git.linux-nfs..
> > > git tree: upstream
> > > console output: https://syzkaller.appspot.com/x/log.txt?x=15965a00d00000
> > > kernel config: https://syzkaller.appspot.com/x/.config?x=6157970d0a91b812
> > > dashboard link: https://syzkaller.appspot.com/bug?extid=76880518931d755473cf
> > > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b)
> > >
> > > IMPORTANT: if you fix the issue, please add the following tag to the commit:
> > > Reported-by: [email protected]
> > >
> > > clang-11: error: unable to execute command: Aborted (core dumped)
> > > clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
> > >
> > > ---
> > > This report is generated by a bot. It may contain errors.
> > > See https://goo.gl/tpsmEJ for more information about syzbot.
> > > syzbot engineers can be reached at [email protected].
> > >
> > > syzbot will keep track of this issue. See:
> > > https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
> >
> > Would it be possible for [email protected] to be CC'd
> > when there is a build error and the compiler is clang? Especially if
> > clang is hitting an assertion.
>
> Hi Nathan,
>
> I am adding functionality to CC specific emails on build errors on
> specific instances:
> https://github.com/google/syzkaller/pull/2388

I've updated configs to CC [email protected]. This
should take effect on the next build failure (hopefully).

2021-01-14 18:09:01

by Nick Desaulniers

[permalink] [raw]
Subject: Re: upstream build error (12)

On Thu, Jan 14, 2021 at 4:38 AM 'Dmitry Vyukov' via Clang Built Linux
<[email protected]> wrote:
>
> On Thu, Jan 14, 2021 at 12:32 PM Dmitry Vyukov <[email protected]> wrote:
> >
> > On Tue, Jan 12, 2021 at 8:41 PM Nathan Chancellor
> > <[email protected]> wrote:
> > >
> > > Would it be possible for [email protected] to be CC'd
> > > when there is a build error and the compiler is clang? Especially if
> > > clang is hitting an assertion.
> >
> > Hi Nathan,
> >
> > I am adding functionality to CC specific emails on build errors on
> > specific instances:
> > https://github.com/google/syzkaller/pull/2388
>
> I've updated configs to CC [email protected]. This
> should take effect on the next build failure (hopefully).

Thanks Dmitry, (and thanks Marco for updating syzbot's clang).

Marco, can you update:
https://github.com/google/syzkaller/blob/master/docs/syzbot.md#crash-does-not-reproduce

I wasn't able to reproduce the reported compiler crash with ToT llvm
and the reported config, so I assume it was a mid-release of llvm-11
bug that has since been fixed. Do we need to report to syzbot to
close the issue? I did a quick skim of
https://github.com/google/syzkaller/blob/master/docs/syzbot.md, but it
looks like communication with syzbot is based on commit messages?
--
Thanks,
~Nick Desaulniers

2021-01-14 19:58:22

by Marco Elver

[permalink] [raw]
Subject: Re: upstream build error (12)

On Thu, 14 Jan 2021 at 19:07, Nick Desaulniers <[email protected]> wrote:
> On Thu, Jan 14, 2021 at 4:38 AM 'Dmitry Vyukov' via Clang Built Linux
> <[email protected]> wrote:
> >
> > On Thu, Jan 14, 2021 at 12:32 PM Dmitry Vyukov <[email protected]> wrote:
> > >
> > > On Tue, Jan 12, 2021 at 8:41 PM Nathan Chancellor
> > > <[email protected]> wrote:
> > > >
> > > > Would it be possible for [email protected] to be CC'd
> > > > when there is a build error and the compiler is clang? Especially if
> > > > clang is hitting an assertion.
> > >
> > > Hi Nathan,
> > >
> > > I am adding functionality to CC specific emails on build errors on
> > > specific instances:
> > > https://github.com/google/syzkaller/pull/2388
> >
> > I've updated configs to CC [email protected]. This
> > should take effect on the next build failure (hopefully).
>
> Thanks Dmitry, (and thanks Marco for updating syzbot's clang).
>
> Marco, can you update:
> https://github.com/google/syzkaller/blob/master/docs/syzbot.md#crash-does-not-reproduce

We have:

> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b)

Which is in the list of compilers:
https://storage.googleapis.com/syzkaller/clang-11-prerelease-ca2dcbd030e.tar.xz

> I wasn't able to reproduce the reported compiler crash with ToT llvm
> and the reported config, so I assume it was a mid-release of llvm-11
> bug that has since been fixed. Do we need to report to syzbot to
> close the issue? I did a quick skim of
> https://github.com/google/syzkaller/blob/master/docs/syzbot.md, but it
> looks like communication with syzbot is based on commit messages?

Given we this is likely due to a prerelease compiler, we can just use:

#syz invalid

^^ it should pick this up.

Thanks,
-- Marco