From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] kernel 4.9.77 error segfault in compile.
Date: Tue, 23 Jan 2018 12:35:39 -0500 [thread overview]
Message-ID: <CAGfcS_=9OWgSFxqJ_62ivTa8uw6Ezbx3a42WzkCpmJSWQ-7Jhw@mail.gmail.com> (raw)
In-Reply-To: <a36a3aff-b8c7-57da-229b-baffaf2164cf@charter.net>
On Tue, Jan 23, 2018 at 12:28 PM, Corbin Bird <corbinbird@charter.net> wrote:
>
>
> FYI :
> Just tried a different compile.
> Switched off expert and flipped the CPU to "Generic x86_64" ( no other
> changes ).
>
> It compiled. ??????
>
> So ... what you choose for CPU in the kernel determines if the
> ext2/ext3/ext4 fs driver will compile.
>
> Been using Gentoo / "sys-kernel/gentoo-sources" w/experimental for 3+
> years now.
> First time the CPU choice has caused a problem.
>
> Suspect that a mismatch of the "Spectre / Meltdown" patches that have
> somehow gotten into the ext4 fs driver and the code for specific CPUs.
>
> Wonderful ... just finished a complete reload of Gentoo. Now have to
> redo it again ...
> ... the mistake? I used ext2/ext3 for the fs.
>
Abandoning ext4 over retpolines/etc seems a bit drastic. My guess is
that there is a bug in the latest kernel that will get fixed, or maybe
a bug in gcc (which needs to be patched for spectre anyway).
These Spectre changes are being merged and it has been a real mess.
The vulnerability is relatively serious so there is a lot of pressure
to do something, but the changes aren't trivial so they could contain
bugs or expose compiler bugs.
FWIW upstream 4.9.77 builds just fine for me,
If you want to mess with building alternate kernels to debug this here
are some instructions I created for this:
As a test you might consider the following:
mkdir /someplace
cd /someplace
git clone -b linux-4.9.y
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
.
mkdir /var/tmp/linux
cp /path/to/config /var/tmp/linux/.config
make O=/var/tmp/linux oldconfig
make O=/var/tmp/linux -j#
That will build the latest stable upstream kernel.
Depending on what you find you can do:
git checkout v4.9.76
rm -r /var/tmp/linux
mkdir /var/tmp/linux
cp /path/to/config /var/tmp/linux/.config
make O=/var/tmp/linux oldconfig
make O=/var/tmp/linux -j#
That will see if 4.9.76 fails. You could also substitute any version
you want (including a 4.14 kernel, or an earlier 4.9 kernel). This
will give you a sense of whether your toolchain is just entirely
broken, or if there is an issue with the objtool changes.
Note that you can build away as much as you want without having to
install any of this - so it won't affect your system at all. In fact,
the instructions above will work just fine if you run them as
non-root, as long as you clone the git sources and put the temp
directory someplace your non-root user has access to.
--
Rich
next prev parent reply other threads:[~2018-01-23 17:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-22 15:51 [gentoo-user] kernel 4.9.77 error segfault in compile Corbin Bird
2018-01-22 17:11 ` Alexander Kapshuk
2018-01-22 17:56 ` Rich Freeman
2018-01-23 2:34 ` Corbin Bird
2018-01-23 7:42 ` Alexander Kapshuk
2018-01-23 8:03 ` Corbin Bird
2018-01-23 8:19 ` Alexander Kapshuk
2018-01-23 17:28 ` Corbin Bird
2018-01-23 17:35 ` Rich Freeman [this message]
2018-01-23 17:59 ` Wol's lists
2018-01-23 19:14 ` Corbin Bird
2018-01-24 1:55 ` Corbin Bird
2018-01-24 2:17 ` Rich Freeman
2018-01-23 17:30 ` Rich Freeman
2018-01-24 5:06 ` Adam Carter
2018-01-24 19:56 ` Corbin Bird
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='CAGfcS_=9OWgSFxqJ_62ivTa8uw6Ezbx3a42WzkCpmJSWQ-7Jhw@mail.gmail.com' \
--to=rich0@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox