mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Laight <David.Laight@ACULAB.COM>
To: 'David Woodhouse' <dwmw2@infradead.org>,
	"Van De Ven, Arjan" <arjan.van.de.ven@intel.com>,
	'Andi Kleen' <andi@firstfloor.org>,
	"tglx@linutronix.de" <tglx@linutronix.de>
Cc: "torvalds@linux-foundation.org" <torvalds@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"peterz@infradead.org" <peterz@infradead.org>,
	Andi Kleen <ak@linux.intel.com>,
	"jeyu@kernel.org" <jeyu@kernel.org>
Subject: RE: [PATCH] retpoline/module: Taint kernel for missing retpoline in module
Date: Mon, 15 Jan 2018 14:08:52 +0000	[thread overview]
Message-ID: <81daa9f0a6f14aaaa73bcf8988b15daf@AcuMS.aculab.com> (raw)
In-Reply-To: <1516021268.22147.156.camel@infradead.org>

From: David Woodhouse
> Sent: 15 January 2018 13:01
> On Mon, 2018-01-15 at 12:53 +0000, Van De Ven, Arjan wrote:
> >
> > binary what? ;-)
> >
> > retpoline (or lack thereof) is part of the kernel ABI at this point....
> 
> Strictly speaking, only lack thereof.
> 
> If you build the kernel without CONFIG_RETPOLINE, you can't build
> modules with retpoline and then expect them to load — because the thunk
> symbols aren't exported.
> 
> If you build the kernel with the retpoline though, you *can*
> successfully load modules which aren't built with retpoline.
> 
> It's not even that unlikely, if the kernel engineers are ensuring they
> have the latest unreleased toolchain for kernel builds, but you're
> using out-of-tree modules built separately or even on the target system
> using DKMS, and you *haven't* got the shiny new compiler.

More likely you have got the 'shiny new compiler', but the kernel the
code is loading on is old and archaic.

We haven't yet managed to persuade all our customers to move from
2.6.18 kernels (think that is a supported RHEL release).

> That's what Andi's attempting to protect against.

Hopefully he'll only mark things 'tainted'.

	David


  reply	other threads:[~2018-01-15 14:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12 17:55 Andi Kleen
2018-01-12 19:01 ` David Woodhouse
2018-01-12 19:17   ` Andi Kleen
2018-01-13 14:12 ` Greg KH
2018-01-13 14:38   ` Van De Ven, Arjan
2018-01-13 15:37     ` Greg KH
2018-01-13 14:53   ` Andi Kleen
2018-01-13 15:36     ` Greg KH
2018-01-13 18:20       ` Andi Kleen
2018-01-16 20:08       ` Andi Kleen
2018-01-15 12:47 ` David Laight
2018-01-15 12:53   ` Van De Ven, Arjan
2018-01-15 13:01     ` David Woodhouse
2018-01-15 14:08       ` David Laight [this message]
2018-01-15 16:48   ` Andi Kleen

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=81daa9f0a6f14aaaa73bcf8988b15daf@AcuMS.aculab.com \
    --to=david.laight@aculab.com \
    --cc=ak@linux.intel.com \
    --cc=andi@firstfloor.org \
    --cc=arjan.van.de.ven@intel.com \
    --cc=dwmw2@infradead.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jeyu@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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

Powered by JetHome