All of lore.kernel.org
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Linux Kernel contains only C code?
Date: Mon, 29 Jan 2018 20:59:11 +0100	[thread overview]
Message-ID: <20180129195911.GA23545@kroah.com> (raw)
In-Reply-To: <CAH8yC8m9nUcLubixALFrMvbMJgxwz8Y3=2fw07FaOvj9=yju0Q@mail.gmail.com>

On Mon, Jan 29, 2018 at 01:00:10PM -0500, Jeffrey Walton wrote:
> On Mon, Jan 29, 2018 at 12:33 PM, Greg KH <greg@kroah.com> wrote:
> > On Mon, Jan 29, 2018 at 12:16:19PM -0500, Jeffrey Walton wrote:
> >> ...
> >> It would be nice if they moved away from UB and implementation defined
> >> behvior, but sometimes the political problems are heavier than the
> >> technical solutions.
> >
> > What do you mean by this?  What "UB" does the kernel rely on that
> > prevents compilers from properly building it?  We do have some pretty
> > strict requirements in the kernel for a compiler, but anything "odd" is
> > usually just a bug and we are always willing to take patches to fix
> > them.
> 
> https://groups.google.com/forum/#!topic/linux.kernel/-VzG6FWZiy8 and
> https://www.spinics.net/lists/linux-crypto/msg19466.html .
> 
> I found the first one from 2013 amusing:
> 
>   JW >> According to Section 5.8, "Shift Operators" of
>   JW >> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf:
>   JW >>  "The operands shall be of integral or enumeration type ...
>   CL > The kernel doesn't try to be fully standard conformant.
> 
> The second one from 2016 was disappointing. It suggested a standards
> compliant rotate that was constant time for the linux-crypto folks.
> That was rejected by some:
> 
>   PA >> So you are actually saying outright that we should sacrifice *actual*
>   PA >> portability in favor of *theoretical* portability?  What kind of
>   PA >> twilight zone did we just step into?!

Well, let's not get into the crazy crypto code in the kernel, it's not a
good example of much these days :)

> Its kind of like I said... the political problems are harder than the
> technical solutions.

Those should now all be gone, thanks to some persistent developers.
clang builds the kernel just fine as I mentioned, and if you look close,
people are working to get something other than 'ld' to link it as well
:)

thanks,

greg k-h

  reply	other threads:[~2018-01-29 19:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-26  6:58 Linux Kernel contains only C code? inventsekar
2018-01-26  7:16 ` Alice Ferrazzi
2018-01-26  7:19 ` valdis.kletnieks at vt.edu
2018-01-26  7:20 ` Larry Chen
2018-01-26 10:53   ` Ruben Safir
2018-01-26 13:12     ` valdis.kletnieks at vt.edu
2018-01-29 15:41       ` Augusto Mecking Caringi
2018-01-29 17:16         ` Jeffrey Walton
2018-01-29 17:33           ` Greg KH
2018-01-29 18:00             ` Jeffrey Walton
2018-01-29 19:59               ` Greg KH [this message]
2018-02-01 16:37 ` Aruna Hewapathirane
2018-02-01 16:49   ` Augusto Mecking Caringi
2018-02-01 17:32     ` Greg KH
2018-02-02  6:52   ` valdis.kletnieks at vt.edu
2018-02-02 10:11     ` Daniel.
2018-02-02 10:27       ` Augusto Mecking Caringi
2018-02-02 19:05         ` Daniel.

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=20180129195911.GA23545@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.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 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.