lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <212daa8e-8f48-30d9-cfc8-ee5c2025f02c@icdsoft.com>
Date:   Thu, 1 Dec 2022 14:58:38 +0200
From:   Ivan Zahariev <famzah@...soft.com>
To:     Dave Hansen <dave.hansen@...el.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        "Yu, Yu-cheng" <yu-cheng.yu@...el.com>,
        Andy Lutomirski <luto@...nel.org>,
        LKML <linux-kernel@...r.kernel.org>
Cc:     linux-tip-commits@...r.kernel.org,
        Fenghua Yu <fenghua.yu@...el.com>,
        Borislav Petkov <bp@...e.de>,
        Dave Hansen <dave.hansen@...ux.intel.com>,
        Tony Luck <tony.luck@...el.com>, x86 <x86@...nel.org>,
        "Shankar, Ravi V" <ravi.v.shankar@...el.com>
Subject: Re: [tip: x86/fpu] x86/fpu/xstate: Define new functions for clearing
 fpregs and xstates

Hello,

On 29.11.2022 г. 20:16, Dave Hansen wrote:

> On 11/29/22 03:19, Ivan Zahariev wrote:
>> Can you please take a look into this bug which syzbot tracked to a
>> commit of yours (b860eb8dce5906b14e3a7f3c771e0b3d6ef61b94). Even since
>> we switched from kernel 4.14 to 5.15 we are experiencing often random
>> segmentation faults with the following error in "dmesg":
> Which kernel are you running, exactly?  There is a fix for the commit
> that you identified:
>
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=484cea4f362e
> but it should have been in 5.15.

We are running 5.15.75 (LTS) but the problem started when we upgraded 
from 5.15.31 to 5.15.59 and is present ever since. I erroneously said 
that it's present into every 5.15.

I didn't do my homework well and blamed the commit by Yu-cheng Yu. But 
this commit never landed into 5.15, nor the fix commit that you 
referred. There are no functions fpu__clear_all(), 
copy_init_fpstate_to_fpregs(), copy_user_to_xstate() anywhere in the 
sources of 5.15.75 or 5.15.31, so the 5.15 kernel is running with a 
different FPU implementation.

Additionally, I tested the reproducer on older 5.15 kernels and on the 
super-stable 4.14.256. They all emit the same "dmesg" error, so the 
reproducer is not reliable to detect our problem.

I am sorry for wasting your time.

> Is there a chance you could test current mainline and see if the issue
> is still there?

That's our only option, it seems. Thank you.

Best regards.
--Ivan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ