From: Andy Lutomirski <luto@kernel.org>
To: "Yu, Yu-cheng" <yu-cheng.yu@intel.com>,
Dmitry Vyukov <dvyukov@google.com>
Cc: syzbot <syzbot+2067e764dbcd10721e2e@syzkaller.appspotmail.com>,
Borislav Petkov <bp@alien8.de>, Borislav Petkov <bp@suse.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
fenghua.yu@intel.com, "H. Peter Anvin" <hpa@zytor.com>,
LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
syzkaller-bugs <syzkaller-bugs@googlegroups.com>,
Thomas Gleixner <tglx@linutronix.de>,
tony.luck@intel.com, the arch/x86 maintainers <x86@kernel.org>
Subject: Re: [syzbot] WARNING in ex_handler_fprestore
Date: Wed, 26 May 2021 15:37:09 -0700 [thread overview]
Message-ID: <fdae31ab-02ca-79f8-445e-adb5ac8dcb01@kernel.org> (raw)
In-Reply-To: <27d52fe4-3159-2f19-33cd-01ef4b3e530b@intel.com>
On 5/26/21 2:21 PM, Yu, Yu-cheng wrote:
> On 5/26/2021 12:00 AM, Dmitry Vyukov wrote:
>> On Wed, May 26, 2021 at 2:33 AM Andy Lutomirski <luto@kernel.org> wrote:
>>>
>>> On 5/24/21 1:51 AM, syzbot wrote:
>>>> Hello,
>>>>
>>>> syzbot found the following issue on:
>>>>
>>>> HEAD commit: 45af60e7 Merge tag 'for-5.13-rc2-tag' of
>>>> git://git.kernel...
>>>> git tree: upstream
>>>> console output:
>>>> https://syzkaller.appspot.com/x/log.txt?x=1591e9f7d00000
>>>> kernel config:
>>>> https://syzkaller.appspot.com/x/.config?x=18fade5827eb74f7
>>>> dashboard link:
>>>> https://syzkaller.appspot.com/bug?extid=2067e764dbcd10721e2e
>>>> compiler: Debian clang version 11.0.1-2
>>>> syz repro:
>>>> https://syzkaller.appspot.com/x/repro.syz?x=11be6bd1d00000
>>>
>>> Hi syz people and x86 people-
>>>
>>> I entirely believe that this bug is real and that syzbot bisected it
>>> correctly, but I'm puzzled by the reproducer. It says:
>>>
>>> ptrace$setregs(0xd, r0, 0x0, &(0x7f0000000080))
>>>
>>> I would really, really expect this to result from PTRACE_SETREGSET or
>>> PTRACE_SETFPREGS, but this is PTRACE_SETREGS.
>>>
>>> Am I missing something really obvious here?
>>
>> Hi Andy,
>>
>> Sometimes syzkaller uses data format from one syscall variant, but
>> actually invokes another.
>> But here it does _not_ seem to be the case: 0xd is actually
>> PTRACE_SETREGS. And the other ptrace calls in the reproducer are
>> PTRACE_SEIZE and PTRACE_SINGLESTEP.
>> So I would assume somehow it happened with PTRACE_SETREGS.
>> Is there any indication from hardware as to what's wrong with fpregs?
>>
>
> PTRACE_SETREGS can change segment registers. The PTRACE_SETREGS is
> using some uninitialized memory area. One possibility would be that
> XRSTORS has a memory operand outside of segment limits.
It's a regression caused by your fpu__clear_user() patch. tglx and I
are working on it.
The syzbot report is confusing but correct.
next prev parent reply other threads:[~2021-05-26 22:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-24 8:51 [syzbot] WARNING in ex_handler_fprestore syzbot
2021-05-26 0:33 ` Andy Lutomirski
2021-05-26 7:00 ` Dmitry Vyukov
2021-05-26 21:21 ` Yu, Yu-cheng
2021-05-26 22:37 ` Andy Lutomirski [this message]
2021-05-26 22:03 ` Thomas Gleixner
2021-05-27 16:49 ` Thomas Gleixner
2021-05-27 18:59 ` Yu, Yu-cheng
2021-05-27 19:17 ` Thomas Gleixner
2021-05-27 19:05 ` Thomas Gleixner
2021-05-31 17:46 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fdae31ab-02ca-79f8-445e-adb5ac8dcb01@kernel.org \
--to=luto@kernel.org \
--cc=bp@alien8.de \
--cc=bp@suse.de \
--cc=dave.hansen@linux.intel.com \
--cc=dvyukov@google.com \
--cc=fenghua.yu@intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=syzbot+2067e764dbcd10721e2e@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
--cc=yu-cheng.yu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.