ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@infradead.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "ksummit-discuss@lists.linuxfoundation.org"
	<ksummit-discuss@lists.linuxfoundation.org>,
	Nicolas Pitre <nico@fluxnic.net>
Subject: Re: [Ksummit-discuss] Self nomination
Date: Wed, 27 Jul 2016 10:02:19 -0700	[thread overview]
Message-ID: <20160727170219.GC2565@f23x64.localdomain> (raw)
In-Reply-To: <CACRpkdZmXsYGBTP=AntbHts=ZfuG_HuPMi=5s+bQHZuLmQK10Q@mail.gmail.com>

On Wed, Jul 27, 2016 at 11:25:52AM +0200, Linus Walleij wrote:
> On Wed, Jul 27, 2016 at 6:46 AM, Darren Hart <dvhart@infradead.org> wrote:
> 
> >   - Developing a "safety culture" and any overlap that may have with security
> 
> Do you mean safety as in "Linux in airbags and smoke detectors"?

It's more like Linux in consolidated automotive ECUs, industrial robot and
control, medical devices, avionics, etc. When the computational requirements of
safety critical systems exceed the capabilities of the traditional MCUs.
Automotive and Industrial Control are two of the driving forces currently.

> 
> This area is interesting for GPIO and IIO as well for natural reasons:
> these systems all tend to use GPIO and sensors. (Albeit more often
> than not with some horrific userspace hodge-podge but this is not the
> time to be grumpy about that.)
> 
> This presentation appeared at LinuxCon Japan (got the link from
> my colleague Takahiro Akashi):
> 
> Qualifying Linux for Functional Safety
> http://events.linuxfoundation.org/sites/events/files/slides/20160713_SIL2LinuxMP_Min_ALS_0.9_pub.pdf
> 

There are others, but this one is the core of the approach to a successful
compliance route, and is based on the most rigorous and experienced approach.
Nicholas is a well respected leader in this area. It may be worth inviting him
to participate in this tech topic. I'll see what his interest level is.

> I have been in contact with a Swedish company working in the fire alarm
> business as well.
> 
> My overall feeling is that world regulations (standards) on safety-critical
> software seem to be centered around code inspection.
> 
> These regulations approach is not to trust any third party but have all
> code inspected by independent reviewers for functional safety. All the
> time. For every new deployment. Kernel, libc, busybox userspace.
> (Or whatever they use.)

This is true, and all changes (fixes, features, security patches, etc.) are
treated as modifications. The compliance route, however, for complex software
and complex hardware is an active area of development (see SIL2LinuxMP above),
as these standards (IEC 61508) were not developed with such software or hardware
in mind.

> 
> Thus Hitachi developed this minimizing stripping out all not-compiled code
> and #ifdefs etc too to get down the code size they have to manually inspect
> to a minimum. (It easily translates into work hours.)
>
> My loose thoughts on the issue is twofold:
> 
> - We will have an influx of professional safety reviewers that do not
>   share their review comments with us, instead apply fixes locally and
>   not upstream. This is potentially dangerous if the next reviewer for
>   a safety-critical system misses the same bug. (Not to say unethical
>   vs the community but I have come to understand that some people
>   out there do not care about that.) So we need to send a message to
>   the safety-critical industry that any issues found in such safety
>   inspections need to go upstream pronto. No vendor tree:ing of this.

SIL2LinuxMP will help significantly with this, and the TUeV is happy to see open
source entering the Functional Safety space as the developer culture rewards
finding and fixing issues. Bugs can be found and fixed early, rather than
waiting for accidents and deaths to drive changes.

> 
> - Can we record external inspection-only code reviews done by these
>   independent code reviewers (post-minimization) into the kernel (etc) git?
>   That I guess is pretty useful for building formal trust for the code,
>   but I never heard of git annotations to some random code lines like
>   that.
> 
> - Should minimization be a part of the kernel standard tooling for use
>   cases like this?
> 
> Incidentally that may overlap with the footprint minimizing goal: if you can
> configure code out (such as the modular syscalls things that Nico has
> been working on), that makes this kind of code minimization easier and
> may employ similar tooling.

The SIL2LinuxMP project works with a minimized Linux kernel of ~400k loc.

> 
> Yours,
> Linus Walleij
> 

-- 
Darren Hart
Intel Open Source Technology Center

  parent reply	other threads:[~2016-07-27 17:02 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-27  4:46 Darren Hart
2016-07-27  9:25 ` Linus Walleij
2016-07-27 13:46   ` [Ksummit-discuss] Linux and Safety Industry reviews, was: " Jason Cooper
2016-07-27 16:52     ` Darren Hart
2016-07-29 17:11     ` Darren Hart
2016-07-27 17:02   ` Darren Hart [this message]
2016-08-04 12:30   ` [Ksummit-discuss] " Geert Uytterhoeven
  -- strict thread matches above, loose matches on Subject: below --
2016-07-31  6:57 Olof Johansson
2016-08-02 19:56 ` Mark Brown
2016-07-30  0:32 Ben Hutchings
2016-07-29 22:45 [Ksummit-discuss] self nomination Mimi Zohar
2016-07-29 15:13 [Ksummit-discuss] Self nomination Bartlomiej Zolnierkiewicz
2016-07-28 17:29 [Ksummit-discuss] self nomination James Bottomley
2016-07-28 17:31 ` James Bottomley
2016-07-27 23:20 Davidlohr Bueso
2016-07-28  7:18 ` Jan Kara
2016-07-28 14:37 ` Rik van Riel
2016-07-29  6:17 ` Wangnan (F)
2016-07-29 23:53   ` Davidlohr Bueso
2016-07-27 14:54 [Ksummit-discuss] Self nomination Mark Rutland
2016-07-27 13:57 Lorenzo Pieralisi
2016-07-27  0:50 Sergey Senozhatsky
2016-07-26 23:59 Stephen Rothwell
2016-07-28 12:23 ` Luis de Bethencourt
2016-07-26 22:30 Dmitry Torokhov
2016-07-28 10:14 ` Marc Zyngier
2016-08-02  8:09   ` Linus Walleij
2016-08-02 23:00     ` Rafael J. Wysocki
2016-08-03  8:12       ` Marek Szyprowski
2016-08-06  0:20         ` Rafael J. Wysocki
2016-08-24 12:12           ` Marek Szyprowski
2016-08-24 17:32             ` Rafael J. Wysocki
2016-08-08 11:07   ` Lorenzo Pieralisi
2016-09-23 10:42     ` Grant Likely
2016-07-26 15:44 David Woodhouse
2016-07-25 21:46 [Ksummit-discuss] self nomination Kevin Hilman
2016-07-25 17:11 [Ksummit-discuss] Self nomination Johannes Weiner
2016-07-25 18:15 ` Rik van Riel
2016-07-26 10:56   ` Jan Kara
2016-07-26 13:10     ` Vlastimil Babka
2015-08-24  4:20 [Ksummit-discuss] [TECH TOPIC] Kernel Hardening James Morris
2015-08-24 11:46 ` Jiri Kosina
2015-08-24 11:56   ` James Morris
2015-08-24 17:17     ` Kees Cook
2015-08-26 20:51       ` Kees Cook
2015-08-26 21:10         ` Matthew Garrett
2015-08-30  0:41           ` [Ksummit-discuss] Self nomination Matthew Garrett
2015-08-11  5:05 Haggai Eran
2015-07-31  9:15 David Howells
2015-07-31  2:55 Sasha Levin
2015-07-31 16:27 ` Bjorn Helgaas
2015-07-31 16:59   ` Guenter Roeck
2015-07-31 17:03     ` Bjorn Helgaas
2015-07-31 17:08     ` Greg KH
2015-07-31 17:15       ` Guenter Roeck
2015-07-31 17:51         ` Bjorn Helgaas
2015-07-31 18:12           ` Greg KH
2015-07-31 18:17             ` Dave Jones
2015-07-31 18:22               ` Greg KH
2015-07-31 18:59                 ` Dan Williams
2015-08-01 13:03                   ` Jiri Kosina
2015-07-31 17:26       ` James Bottomley
2015-07-31 17:43         ` Greg KH
2015-07-31 17:49         ` Sasha Levin
     [not found] ` <alpine.DEB.2.02.1507310650220.2218@localhost6.localdomain6>
2015-07-31 17:49   ` Sasha Levin
2015-08-01 13:45     ` Dan Carpenter
2015-08-01 15:26       ` Sasha Levin
2015-08-01 16:22         ` Greg KH
2015-08-03  5:14           ` Sasha Levin
2015-08-01 20:30         ` Dave Jones
2015-08-03  5:17           ` Sasha Levin

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=20160727170219.GC2565@f23x64.localdomain \
    --to=dvhart@infradead.org \
    --cc=ksummit-discuss@lists.linuxfoundation.org \
    --cc=linus.walleij@linaro.org \
    --cc=nico@fluxnic.net \
    /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