Re: [syzbot] WARNING: stack going in the wrong direction? at __sys_setsockopt

From: Dmitry Vyukov
Date: Thu Feb 16 2023 - 05:04:28 EST


On Thu, 16 Feb 2023 at 11:00, syzbot
<syzbot+91c3651bb190d53b4d16@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 9d9019bcea1a Add linux-next specific files for 20230215
> git tree: linux-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=11ad7710c80000
> kernel config: https://syzkaller.appspot.com/x/.config?x=60f48e09dc64b527
> dashboard link: https://syzkaller.appspot.com/bug?extid=91c3651bb190d53b4d16
> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
>
> Unfortunately, I don't have any reproducer for this issue yet.
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/7a22fa9fb779/disk-9d9019bc.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/68851ce42fd7/vmlinux-9d9019bc.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/09be0a2c410b/bzImage-9d9019bc.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+91c3651bb190d53b4d16@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> WARNING: stack going in the wrong direction? at __sys_setsockopt+0x2c6/0x5b0 net/socket.c:2271

+Josh, Ingo,

Yesterday we started seeing lots of "stack going in the wrong
direction" all over the kernel.

I see there is only your recent commit to ORC unwinder:
"x86/unwind/orc: Add 'signal' field to ORC metadata"

Can it be related?


> ---
> 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 syzkaller@xxxxxxxxxxxxxxxx.
>
> syzbot will keep track of this issue. See:
> https://goo.gl/tpsmEJ#status for how to communicate with syzbot.