Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1185455

Re: [REGRESSION] 4.2-rc2: early boot memory corruption from FPU rework

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [REGRESSION] 4.2-rc2: early boot memory corruption from FPU rework
Date Thu, 16 Jul 2015 05:00:01 +0200
Message-ID <pMHyV-22l-3@gated-at.bofh.it> (permalink)
References <pmPiq-1Qw-7@gated-at.bofh.it> <pmPit-1Qw-61@gated-at.bofh.it> <pMeng-1AT-19@gated-at.bofh.it> <pMsJz-5F0-5@gated-at.bofh.it> <pMFns-7jk-17@gated-at.bofh.it>
X-Original-To Dave Hansen <dave.hansen@linux.intel.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Dbs10I8LhfEj4aJiPAEfLum3kmOVqk1QQ9ZD/qSTIZw=; b=KNCMqQRRjOXw3SRkh5uYsCVzVNd1NoPvwA3hEMuoQbOta61CblATs1rApsYbctuQ9N hitVZspPhGwYTZDNKkiL0Lmc4HcF25+S9H4abZogPl+t+FcojYwYcOZN7IkKz+zSBZjP GM6nXYGxpTwPDWcdfUTQyINsjEJ3MZppxayAz3mxIkuvkOH4+miE2RZOtq3o0ZyUdFfP qRa1VBm9RpZdsTsUjY/6OVW98aOPBzYoFX8IFxEh/ibR9yR1G7bwTeKO5hbtFZ9A4VYe XFd4RXJ8KFDccT67J4aSXUZEI5zUASufh7qJGQ3A/ZSCk6bREZV9Mpb51x1/cNmsoz7S XQ9w==
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Dbs10I8LhfEj4aJiPAEfLum3kmOVqk1QQ9ZD/qSTIZw=; b=aGz73uOizq3/MvSI6eGF6JTnMkjJMs/Een5zbi8IB+RpgxJCvrlwF2eHvAWsi9SBkP +ClRQ952U5bVmngItu0hLOcOJXr7HtRrrWXngX0qaHxwdu07/CKiwVrNEQmuVRj9V6kh KCtGeou4ZeTUALJG5EzTzJUrotZDuUrn1JZBo=
MIME-Version 1.0
X-Received by 10.107.157.4 with SMTP id g4mr8856459ioe.66.1437015078396; Wed, 15 Jul 2015 19:51:18 -0700 (PDT)
X-Google-Sender-Auth 5DhBD97OZTsX76aRYyvmRUSuBIw
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
X-Original-Cc Ingo Molnar <mingo@kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Andy Lutomirski <luto@amacapital.net>, Borislav Petkov <bp@alien8.de>, Fenghua Yu <fenghua.yu@intel.com>, "H. Peter Anvin" <hpa@zytor.com>, Oleg Nesterov <oleg@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, Ross Zwisler <ross.zwisler@linux.intel.com>
X-Original-Date Wed, 15 Jul 2015 19:51:18 -0700
X-Original-Message-ID <CA+55aFzy54Bw9L4dGox=8TzBWoeyg3HUjOgitYKhtnvEq+1-dQ@mail.gmail.com>
X-Original-References <1430848300-27877-1-git-send-email-mingo@kernel.org> <1430848300-27877-19-git-send-email-mingo@kernel.org> <55A56709.6020201@linux.intel.com> <20150715110726.GA26611@gmail.com> <55A6FC31.5010102@linux.intel.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1185455

Show key headers only | View raw


On Wed, Jul 15, 2015 at 5:34 PM, Dave Hansen
<dave.hansen@linux.intel.com> wrote:
>
> I understand why you were misled by it, but the old "xsave_hdr_struct"
> was wrong.  Fenghua even posted patches to remove it before the FPU
> rework (you were cc'd):
>
>         https://lkml.org/lkml/2015/4/18/164

Oh, and that patch looks like a good idea.

I wish there was some way to make sure sizeof() fail on it so that
we'd enforce that nobody allocates that thing as-is. I had this dim
memory that an unsized array at the end would do that, but I was
clearly wrong. It's just the array itself you can't do sizeof on, not
the structure that contains it. Is there some magic trick that I'm
forgetting?

                      Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

4.2-rc2: early boot memory corruption from FPU rework Dave Hansen <dave.hansen@linux.intel.com> - 2015-07-14 21:50 +0200
  Re: 4.2-rc2: early boot memory corruption from FPU rework "H. Peter Anvin" <hpa@zytor.com> - 2015-07-15 03:30 +0200
  Re: 4.2-rc2: early boot memory corruption from FPU rework Ingo Molnar <mingo@kernel.org> - 2015-07-15 13:10 +0200
    [REGRESSION] 4.2-rc2: early boot memory corruption from FPU rework Dave Hansen <dave.hansen@linux.intel.com> - 2015-07-16 02:40 +0200
      Re: [REGRESSION] 4.2-rc2: early boot memory corruption from FPU rework Linus Torvalds <torvalds@linux-foundation.org> - 2015-07-16 04:40 +0200
      Re: [REGRESSION] 4.2-rc2: early boot memory corruption from FPU rework Linus Torvalds <torvalds@linux-foundation.org> - 2015-07-16 05:00 +0200
      Re: [REGRESSION] 4.2-rc2: early boot memory corruption from FPU  rework Ingo Molnar <mingo@kernel.org> - 2015-07-17 09:50 +0200
        Re: [REGRESSION] 4.2-rc2: early boot memory corruption from FPU  rework Ingo Molnar <mingo@kernel.org> - 2015-07-17 11:00 +0200

csiph-web