Re: [PATCH 1/9] media: docs: v4l2-controls: fix sentence rendered in a nonsense way

2019-06-14 Thread Hans Verkuil
On 6/13/19 4:18 PM, Luca Ceresoli wrote: > This sentence renders as: > >> Since such compound controls need to expose more information about >> themselves than is possible with ioctls VIDIOC_QUERYCTRL, >> VIDIOC_QUERY_EXT_CTRL and VIDIOC_QUERYMENU the VIDIOC_QUERY_EXT_CTRL >

Re: [PATCH 01/14] ABI: fix some syntax issues at the ABI database

2019-06-14 Thread Andrew Donnellan
On 14/6/19 12:04 pm, Mauro Carvalho Chehab wrote: diff --git a/Documentation/ABI/testing/sysfs-class-cxl b/Documentation/ABI/testing/sysfs-class-cxl index bbbabffc682a..fc7c6f7c21b3 100644 --- a/Documentation/ABI/testing/sysfs-class-cxl +++ b/Documentation/ABI/testing/sysfs-class-cxl @@ -1,6 +1,

Re: [RFC 1/7] tee: optee: allow kernel pages to register as shm

2019-06-14 Thread Jens Wiklander
On Thu, Jun 13, 2019 at 04:00:27PM +0530, Sumit Garg wrote: > Kernel pages are marked as normal type memory only so allow kernel pages > to be registered as shared memory with OP-TEE. > > Signed-off-by: Sumit Garg Reviewed-by: Jens Wiklander Thanks, Jens

Re: [RFC 2/7] tee: enable support to register kernel memory

2019-06-14 Thread Jens Wiklander
On Thu, Jun 13, 2019 at 04:00:28PM +0530, Sumit Garg wrote: > Enable support to register kernel memory reference with TEE. This change > will allow TEE bus drivers to register memory references. > > Signed-off-by: Sumit Garg Reviewed-by: Jens Wiklander Thanks, Jens

Re: [RFC 0/7] Introduce TEE based Trusted Keys support

2019-06-14 Thread Sumit Garg
Thanks Mimi for your comments. On Fri, 14 Jun 2019 at 05:33, Mimi Zohar wrote: > > On Thu, 2019-06-13 at 09:40 -0700, Casey Schaufler wrote: > > On 6/13/2019 3:30 AM, Sumit Garg wrote: > > > Add support for TEE based trusted keys where TEE provides the > > > functionality > > > to seal and unsea

Re: [PATCH 01/14] ABI: fix some syntax issues at the ABI database

2019-06-14 Thread Rafael J. Wysocki
On Fri, Jun 14, 2019 at 4:04 AM Mauro Carvalho Chehab wrote: > > From: Mauro Carvalho Chehab > > On those three files, the ABI representation described at > README are violated. > > - at sysfs-bus-iio-proximity-as3935: > a ':' character is missing after "What" > > - at sysfs-class-devfreq

Re: [PATCH v10 3/3] watchdog: make the device time out at open_deadline when open_timeout is used

2019-06-14 Thread Rasmus Villemoes
On 07/06/2019 20.38, Guenter Roeck wrote: > On Wed, Jun 05, 2019 at 02:06:44PM +, Rasmus Villemoes wrote: >> When the watchdog device is not open by userspace, the kernel takes >> care of pinging it. When the open_timeout feature is in use, we should >> ensure that the hardware fires close to o

Re: [PATCH v3] Add a document on rebasing and merging

2019-06-14 Thread Dmitry Vyukov
On Wed, Jun 12, 2019 at 5:45 PM Jonathan Corbet wrote: > > Every merge window seems to involve at least one episode where subsystem > maintainers don't manage their trees as Linus would like. Document the > expectations so that at least he has something to point people to. > > Acked-by: David Rie

Re: [PATCH v4 1/2] fTPM: firmware TPM running in TEE

2019-06-14 Thread Ilias Apalodimas
Hi Sasha, On Thu, Jun 13, 2019 at 01:11:41PM -0400, Sasha Levin wrote: > On Wed, Jun 05, 2019 at 04:39:36PM +0530, Sumit Garg wrote: > >On Wed, 5 Jun 2019 at 01:39, Sasha Levin wrote: > >> > >>On Tue, Jun 04, 2019 at 11:45:52AM +0530, Sumit Garg wrote: > >>>On Thu, 30 May 2019 at 20:58, Sasha Lev

Re: [PATCH v4 1/2] fTPM: firmware TPM running in TEE

2019-06-14 Thread Sumit Garg
On Wed, 5 Jun 2019 at 16:39, Sumit Garg wrote: > > On Wed, 5 Jun 2019 at 01:39, Sasha Levin wrote: > > > > On Tue, Jun 04, 2019 at 11:45:52AM +0530, Sumit Garg wrote: > > >On Thu, 30 May 2019 at 20:58, Sasha Levin wrote: > > >> + /* Open context with TEE driver */ > > >> + pvt_data->

Re: [PATCH v10 3/3] watchdog: make the device time out at open_deadline when open_timeout is used

2019-06-14 Thread Guenter Roeck
On 6/14/19 1:41 AM, Rasmus Villemoes wrote: On 07/06/2019 20.38, Guenter Roeck wrote: On Wed, Jun 05, 2019 at 02:06:44PM +, Rasmus Villemoes wrote: When the watchdog device is not open by userspace, the kernel takes care of pinging it. When the open_timeout feature is in use, we should ensu

Re: [PATCH 05/14] scripts: add an script to parse the ABI files

2019-06-14 Thread Jani Nikula
On Thu, 13 Jun 2019, Mauro Carvalho Chehab wrote: > From: Mauro Carvalho Chehab > > Add a script to parse the Documentation/ABI files and produce > an output with all entries inside an ABI (sub)directory. > > Right now, it outputs its contents on ReST format. It shouldn't > be hard to make it pro

Re: [PATCH 12/14] doc-rst: add ABI documentation to the admin-guide book

2019-06-14 Thread Jani Nikula
On Thu, 13 Jun 2019, Mauro Carvalho Chehab wrote: > From: Mauro Carvalho Chehab > > As we don't want a generic Sphinx extension to execute commands, > change the one proposed to Markus to call the abi_book.pl > script. > > Use a script to parse the Documentation/ABI directory and output > it at t

Re: [PATCH 05/14] scripts: add an script to parse the ABI files

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 04:31:56PM +0300, Jani Nikula wrote: > On Thu, 13 Jun 2019, Mauro Carvalho Chehab wrote: > > From: Mauro Carvalho Chehab > > > > Add a script to parse the Documentation/ABI files and produce > > an output with all entries inside an ABI (sub)directory. > > > > Right now, it

Re: [PATCH 05/14] scripts: add an script to parse the ABI files

2019-06-14 Thread Jani Nikula
On Fri, 14 Jun 2019, Greg Kroah-Hartman wrote: > On Fri, Jun 14, 2019 at 04:31:56PM +0300, Jani Nikula wrote: >> On Thu, 13 Jun 2019, Mauro Carvalho Chehab >> wrote: >> > From: Mauro Carvalho Chehab >> > >> > Add a script to parse the Documentation/ABI files and produce >> > an output with all

Re: [PATCH 05/14] scripts: add an script to parse the ABI files

2019-06-14 Thread Mauro Carvalho Chehab
Em Fri, 14 Jun 2019 15:39:33 +0200 Greg Kroah-Hartman escreveu: > On Fri, Jun 14, 2019 at 04:31:56PM +0300, Jani Nikula wrote: > > On Thu, 13 Jun 2019, Mauro Carvalho Chehab > > wrote: > > > From: Mauro Carvalho Chehab > > > > > > Add a script to parse the Documentation/ABI files and produce

Re: [PATCH 12/14] doc-rst: add ABI documentation to the admin-guide book

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 04:42:20PM +0300, Jani Nikula wrote: > On Thu, 13 Jun 2019, Mauro Carvalho Chehab wrote: > > From: Mauro Carvalho Chehab > > > > As we don't want a generic Sphinx extension to execute commands, > > change the one proposed to Markus to call the abi_book.pl > > script. > > >

Re: [PATCH 12/14] doc-rst: add ABI documentation to the admin-guide book

2019-06-14 Thread Markus Heiser
Am 14.06.19 um 15:42 schrieb Jani Nikula: On Thu, 13 Jun 2019, Mauro Carvalho Chehab wrote: From: Mauro Carvalho Chehab As we don't want a generic Sphinx extension to execute commands, change the one proposed to Markus to call the abi_book.pl script. Use a script to parse the Documentation/

Re: [PATCH 05/14] scripts: add an script to parse the ABI files

2019-06-14 Thread Jonathan Corbet
On Fri, 14 Jun 2019 17:00:55 +0300 Jani Nikula wrote: > On Fri, 14 Jun 2019, Greg Kroah-Hartman wrote: > > On Fri, Jun 14, 2019 at 04:31:56PM +0300, Jani Nikula wrote: > >> On Thu, 13 Jun 2019, Mauro Carvalho Chehab > >> wrote: > >> > From: Mauro Carvalho Chehab > >> > > >> > Add a script

Re: [PATCH 12/14] doc-rst: add ABI documentation to the admin-guide book

2019-06-14 Thread Jonathan Corbet
On Fri, 14 Jun 2019 16:10:31 +0200 Markus Heiser wrote: > I agree with Jani. No matter how the decision ends, since I can't help here, > I'd > rather not show up in the copyright. Is there something specific you are asking us to do here? Thanks, jon

Re: [PATCH v3] Add a document on rebasing and merging

2019-06-14 Thread Jonathan Corbet
On Fri, 14 Jun 2019 11:59:03 +0200 Dmitry Vyukov wrote: > I will appreciate if you elaborate a bit on this "scale of the > project". I wondered about reasons for having the current hierarchy of > trees and complex merging for a while, but wasn't able to find any > rationale. What exactly scale do

[PATCH v2] media: docs: v4l2-controls: fix sentence rendered in a nonsense way

2019-06-14 Thread Luca Ceresoli
This sentence renders as: > Since such compound controls need to expose more information about > themselves than is possible with ioctls VIDIOC_QUERYCTRL, > VIDIOC_QUERY_EXT_CTRL and VIDIOC_QUERYMENU the VIDIOC_QUERY_EXT_CTRL ^ ^ >

Re: [PATCH 1/9] media: docs: v4l2-controls: fix sentence rendered in a nonsense way

2019-06-14 Thread Luca Ceresoli
Hi Hans, On 14/06/19 09:14, Hans Verkuil wrote: > On 6/13/19 4:18 PM, Luca Ceresoli wrote: >> This sentence renders as: >> >>> Since such compound controls need to expose more information about >>> themselves than is possible with ioctls VIDIOC_QUERYCTRL, >>> VIDIOC_QUERY_EXT_CTRL and VIDIOC_QUERY

Re: [PATCH 12/14] doc-rst: add ABI documentation to the admin-guide book

2019-06-14 Thread Mauro Carvalho Chehab
Em Fri, 14 Jun 2019 16:06:03 +0200 Greg Kroah-Hartman escreveu: > On Fri, Jun 14, 2019 at 04:42:20PM +0300, Jani Nikula wrote: > > On Thu, 13 Jun 2019, Mauro Carvalho Chehab > > wrote: > > > From: Mauro Carvalho Chehab > > > > > > As we don't want a generic Sphinx extension to execute comman

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

2019-06-14 Thread Yu-cheng Yu
On Mon, 2019-06-10 at 15:59 -0700, Dave Hansen wrote: > On 6/10/19 3:40 PM, Yu-cheng Yu wrote: > > Ok, we will go back to do_mmap() with MAP_PRIVATE, MAP_NORESERVE and > > VM_DONTDUMP. The bitmap will cover only 48-bit address space. > > Could you make sure to discuss the downsides of only doing

Re: [RFC 6/7] doc: keys: Document usage of TEE based Trusted Keys

2019-06-14 Thread Jarkko Sakkinen
On Fri, Jun 14, 2019 at 11:07:23AM +0530, Sumit Garg wrote: > On Thu, 13 Jun 2019 at 21:04, Jarkko Sakkinen > wrote: > > > > On Thu, Jun 13, 2019 at 04:00:32PM +0530, Sumit Garg wrote: > > > Provide documentation for usage of TEE based Trusted Keys via existing > > > user-space "keyctl" utility. A

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

2019-06-14 Thread Dave Hansen
On 6/14/19 8:25 AM, Yu-cheng Yu wrote: > On Mon, 2019-06-10 at 15:59 -0700, Dave Hansen wrote: >> On 6/10/19 3:40 PM, Yu-cheng Yu wrote: >>> Ok, we will go back to do_mmap() with MAP_PRIVATE, MAP_NORESERVE and >>> VM_DONTDUMP. The bitmap will cover only 48-bit address space. >> >> Could you make s

Re: [PATCH 01/14] ABI: fix some syntax issues at the ABI database

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 05:20:29PM +1000, Andrew Donnellan wrote: > On 14/6/19 12:04 pm, Mauro Carvalho Chehab wrote: > > diff --git a/Documentation/ABI/testing/sysfs-class-cxl > > b/Documentation/ABI/testing/sysfs-class-cxl > > index bbbabffc682a..fc7c6f7c21b3 100644 > > --- a/Documentation/ABI/t

Re: [PATCH 14/14] docs: sphinx/kernel_abi.py: fix UTF-8 support

2019-06-14 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 11:04:20PM -0300, Mauro Carvalho Chehab wrote: > The parser breaks with UTF-8 characters with Sphinx 1.4. > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/sphinx/kernel_abi.py | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git

Re: [PATCH 00/14] Add support to generate ABI documentation at admin-guide

2019-06-14 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 11:04:06PM -0300, Mauro Carvalho Chehab wrote: > Greg, > > As promised, I'm resending the patch series with adds the Kernel ABI to > Documentation/admin-guide. > > Those patches are basically the version 3 patchset I sent back in 2017, > rebased on the top of linux-next (n

Re: [PATCH 05/14] scripts: add an script to parse the ABI files

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 05:00:55PM +0300, Jani Nikula wrote: > On Fri, 14 Jun 2019, Greg Kroah-Hartman wrote: > > On Fri, Jun 14, 2019 at 04:31:56PM +0300, Jani Nikula wrote: > >> On Thu, 13 Jun 2019, Mauro Carvalho Chehab > >> wrote: > >> > From: Mauro Carvalho Chehab > >> > > >> > Add a scrip

Re: [PATCH 14/14] docs: sphinx/kernel_abi.py: fix UTF-8 support

2019-06-14 Thread Mauro Carvalho Chehab
Em Fri, 14 Jun 2019 18:18:37 +0200 Greg Kroah-Hartman escreveu: > On Thu, Jun 13, 2019 at 11:04:20PM -0300, Mauro Carvalho Chehab wrote: > > The parser breaks with UTF-8 characters with Sphinx 1.4. > > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > Documentation/sphinx/kernel_abi.py | 10

[PATCH v2 03/10] mfd / platform: cros_ec: Miscellaneous character device to talk with the EC

2019-06-14 Thread Enric Balletbo i Serra
That's a driver to talk with the ChromeOS Embedded Controller via a miscellaneous character device, it creates an entry in /dev for every instance and implements basic file operations for communicating with the Embedded Controller with an userspace application. The API is moved to the uapi folder,

Re: [PATCH] docs: stop suggesting strlcpy

2019-06-14 Thread Federico Vaga
In data Thursday, June 13, 2019 6:25:48 PM CEST, Stephen Kitt ha scritto: > Since strlcpy is deprecated, the documentation shouldn't suggest using > it. This patch fixes the examples to use strscpy instead. It also uses > sizeof instead of underlying constants as far as possible, to simplify > futu

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

2019-06-14 Thread Yu-cheng Yu
On Fri, 2019-06-14 at 09:13 -0700, Dave Hansen wrote: > On 6/14/19 8:25 AM, Yu-cheng Yu wrote: > > On Mon, 2019-06-10 at 15:59 -0700, Dave Hansen wrote: > > > On 6/10/19 3:40 PM, Yu-cheng Yu wrote: > > > > Ok, we will go back to do_mmap() with MAP_PRIVATE, MAP_NORESERVE and > > > > VM_DONTDUMP. Th

[PATCH 1/2] Documentation: perf: Update documentation for ThunderX2 PMU uncore driver

2019-06-14 Thread Ganapatrao Kulkarni
From: Ganapatrao Kulkarni Add documentation for Cavium Coherent Processor Interconnect (CCPI2) PMU. Signed-off-by: Ganapatrao Kulkarni --- Documentation/perf/thunderx2-pmu.txt | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Documentation/perf/thunderx2

[PATCH 0/2] Add CCPI2 PMU support

2019-06-14 Thread Ganapatrao Kulkarni
Add Cavium Coherent Processor Interconnect (CCPI2) PMU support in ThunderX2 Uncore driver. Ganapatrao Kulkarni (2): Documentation: perf: Update documentation for ThunderX2 PMU uncore driver drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver. Documentation/perf/thunderx2-pmu.t

[PATCH 2/2] drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver.

2019-06-14 Thread Ganapatrao Kulkarni
CCPI2 is a low-latency high-bandwidth serial interface for connecting ThunderX2 processors. This patch adds support to capture CCPI2 perf events. Signed-off-by: Ganapatrao Kulkarni --- drivers/perf/thunderx2_pmu.c | 179 ++- 1 file changed, 157 insertions(+), 22 d

[PATCH v2 14/16] docs: sphinx/kernel_abi.py: fix UTF-8 support

2019-06-14 Thread Mauro Carvalho Chehab
The parser breaks with UTF-8 characters with Sphinx 1.4. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py

[PATCH v2 12/16] scripts/get_abi.pl: add a validate command

2019-06-14 Thread Mauro Carvalho Chehab
Sometimes, we just want the parser to retrieve all symbols from ABI, in order to check for parsing errors. So, add a new "validate" command. While here, update the man/help pages. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 16 +--- 1 file changed, 9 insertions(+),

[PATCH v2 15/16] sphinx/kernel_abi.py: make it compatible with Sphinx 1.7+

2019-06-14 Thread Mauro Carvalho Chehab
The same way kerneldoc.py needed changes to work with newer Sphinx, this script needs the same changes. While here, reorganize the include order to match kerneldoc.py. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 39 +- 1 file changed

[PATCH v2 07/16] scripts/get_abi.pl: add support for searching for ABI symbols

2019-06-14 Thread Mauro Carvalho Chehab
Change its syntax to allow switching between ReST output mode and a new search mode, with allows to seek for ABI symbols using regex. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 112 + 1 file changed, 103 insertions(+), 9 deletions(-)

[PATCH v2 13/16] doc-rst: add ABI documentation to the admin-guide book

2019-06-14 Thread Mauro Carvalho Chehab
As we don't want a generic Sphinx extension to execute commands, change the one proposed to Markus to call the abi_book.pl script. Use a script to parse the Documentation/ABI directory and output it at the admin-guide. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/abi-obsol

[PATCH v2 02/16] ABI: Fix KernelVersion tags

2019-06-14 Thread Mauro Carvalho Chehab
It is "KernelVersion:" and not "Kernel Version:". Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/pstore | 2 +- .../sysfs-bus-event_source-devices-format | 2 +- .../ABI/testing/sysfs-bus-i2c-devices-hm6352 | 6 ++--- .../testing/sysfs-bus-pci-devices-aer

[PATCH v2 06/16] scripts/get_abi.pl: split label naming from xref logic

2019-06-14 Thread Mauro Carvalho Chehab
Instead of using a ReST compilant label while parsing, move the label to ReST output. That makes the parsing logic more generic, allowing it to provide other types of output. As a side effect, now all files used to generate the output will be output. We can later add command line arguments to filt

[PATCH v2 01/16] ABI: sysfs-bus-pci-devices-aer_stats uses an invalid tag

2019-06-14 Thread Mauro Carvalho Chehab
According with Documentation/ABI/, the right tag to describe an ABI symbol is "What:", and not "Where:". Signed-off-by: Mauro Carvalho Chehab --- .../ABI/testing/sysfs-bus-pci-devices-aer_stats | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/AB

[PATCH v2 03/16] scripts: add an script to parse the ABI files

2019-06-14 Thread Mauro Carvalho Chehab
Add a script to parse the Documentation/ABI files and produce an output with all entries inside an ABI (sub)directory. Right now, it outputs its contents on ReST format. It shouldn't be hard to make it produce other kind of outputs, since the ABI file parser is implemented in separate than the out

[PATCH v2 11/16] scripts/get_abi.pl: add a handler for invalid "where" tag

2019-06-14 Thread Mauro Carvalho Chehab
The ABI README file doesn't provide any meaning for a Where: tag. Yet, a few ABI symbols use it. So, make the parser handle it, emitting a warning. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/get_abi.pl b/scripts/g

[PATCH v2 04/16] scripts/get_abi.pl: parse files with text at beginning

2019-06-14 Thread Mauro Carvalho Chehab
It sounds usefult o parse files with has some text at the beginning. Add support for it. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 59 ++ 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/ge

[PATCH v2 05/16] scripts/get_abi.pl: avoid use literal blocks when not needed

2019-06-14 Thread Mauro Carvalho Chehab
The usage of literal blocks make the document very complex, causing the browser to take a long time to load. On most ABI descriptions, they're a plain text, and don't require a literal block. So, add a logic there with identifies when a literal block is needed. As, on literal blocks, we need to

[PATCH v2 09/16] scripts/get_abi.pl: fix parse issues with some files

2019-06-14 Thread Mauro Carvalho Chehab
A few files are failing to parse: Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats Documentation/ABI/testing/sysfs-class-pktcdvd Documentation/ABI/testing/sysfs-bus-nfit On all three files, the problem is that there is a ":" character at the initial file descripti

[PATCH v2 08/16] scripts/get_abi.pl: represent what in tables

2019-06-14 Thread Mauro Carvalho Chehab
Several entries at the ABI have multiple What: with the same description. Instead of showing those symbols as sections, let's show them as tables. That makes easier to read on the final output, and avoid too much recursion at Sphinx parsing. We need to put file references at the end, as we don't

[PATCH v2 16/16] docs: Kconfig/Makefile: add a check for broken ABI files

2019-06-14 Thread Mauro Carvalho Chehab
The files under Documentation/ABI should follow the syntax as defined at Documentation/ABI/README. Allow checking if they're following the syntax by running the ABI parser script on COMPILE_TEST. With that, when there's a problem with a file under Documentation/ABI, it would produce a warning lik

[PATCH v2 10/16] scripts/get_abi.pl: avoid creating duplicate names

2019-06-14 Thread Mauro Carvalho Chehab
The file the Documentation/ABI/testing/sysfs-class-power has voltage_min, voltage_max and voltage_now symbols duplicated. They are defined first for "General Properties" and then for "USB Properties". This cause those warnings: get_abi.pl rest --dir $srctree/Documentation/ABI/testing:269

[PATCH v4 00/14] ima: introduce IMA Digest Lists extension

2019-06-14 Thread Roberto Sassu
This patch set introduces a new IMA extension called IMA Digest Lists. At early boot, the extension preloads in kernel memory reference digest values, that can be compared with actual file digests when files are accessed in the system. The extension will open for new possibilities: PCR with predi

[PATCH v4 02/14] ima: generalize ima_read_policy()

2019-06-14 Thread Roberto Sassu
Rename ima_read_policy() to ima_read_file(), and add file_id as a new parameter. If file_id is equal to READING_POLICY, ima_read_file() behavior remains unchanged. If file_id will be READING_DIGEST_LIST (not yet defined), ima_read_file() will read and parse a digest list from a file whose path is w

[PATCH v4 04/14] ima: generalize policy file operations

2019-06-14 Thread Roberto Sassu
This patch renames ima_open_policy() and ima_release_policy() respectively to ima_open_data_upload() and ima_release_data_upload(). They will be used to implement file operations for interfaces allowing to load data from user space. A new flag (IMA_POLICY_BUSY) has been defined to prevent concurre

[PATCH v4 05/14] ima: use ima_show_htable_value to show violations and hash table data

2019-06-14 Thread Roberto Sassu
ima_show_htable_violations() and ima_show_measurements_count() both call ima_show_htable_value() to copy the value of an atomic_long_t variable to a buffer. This patch modifies the definition of ima_show_htable_value(), so that this function can be used in any file_operations structure. The atomic

[PATCH v4 07/14] ima: restrict upload of converted digest lists

2019-06-14 Thread Roberto Sassu
If digest lists cannot be directly parsed by the kernel, access to the securityfs file must be exclusively granted to the parser, to avoid that an arbitrary process makes undesired modifications before uploading converted lists to IMA. Digest lists are measured before they are converted and no new

[PATCH v4 08/14] ima: prevent usage of digest lists that are not measured/appraised

2019-06-14 Thread Roberto Sassu
The Digest Lists extension creates a new measurement only when a file is unknown (i.e. its digest is not found in the uploaded digest lists). However, if digest lists are not measured, a remote verifier cannot determine which files could have possibly been accessed. If they are not appraised, a use

[PATCH v4 03/14] ima: generalize ima_write_policy() and raise uploaded data size limit

2019-06-14 Thread Roberto Sassu
ima_write_policy() is being used to load a new policy from user space. This function can be reused to load different types of data. This patch renames ima_write_policy() to ima_write_data() and executes the appropriate actions depending on the opened file in the securityfs filesystem. Also, this

[PATCH v4 06/14] ima: add parser of compact digest list

2019-06-14 Thread Roberto Sassu
This patch introduces the parser of the compact digest list. The format is optimized to store a large quantity of data with the same type. It is the only format supported by the kernel. Digest lists can be parsed directly by the kernel like the policy or, if they are in a different format, they ca

[PATCH v4 01/14] ima: read hash algorithm from security.ima even if appraisal is not enabled

2019-06-14 Thread Roberto Sassu
IMA reads the hash algorithm from security.ima, if exists, so that a signature can be verified even if the algorithm used for the signature differs from IMA algorithm. This patch moves ima_read_xattr() and ima_get_hash_algo() to ima_main.c, to retrieve the algorithm even if appraisal is not enable

[PATCH v4 09/14] ima: introduce new securityfs files

2019-06-14 Thread Roberto Sassu
This patch introduces two new files in the securityfs filesystem: digest_list_data, loads a digest list from the specified path, if it is in the compact format, or loads a digest list converted by the user space parser; digests_count: shows the number of digests stored in the ima_digests_htable has

[PATCH v4 11/14] ima: add support for measurement with digest lists

2019-06-14 Thread Roberto Sassu
IMA-Measure creates a new measurement entry every time a file is measured, unless the same entry is already in the measurement list. This patch introduces a new type of measurement list, recognizable by the PCR number specified with the new ima_digest_list_pcr= kernel option. This type of measurem

[PATCH v4 10/14] ima: load parser digests and execute the parser at boot time

2019-06-14 Thread Roberto Sassu
Digest lists should be uploaded to IMA as soon as possible, otherwise file digests would appear in the measurement list or access would be denied if appraisal is in enforcing mode. This patch adds a call to ima_load_parser_digest_list() in integrity_load_keys(), so that the function is executed wh

[PATCH v4 14/14] ima: add Documentation/security/IMA-digest-lists.txt

2019-06-14 Thread Roberto Sassu
This patch adds the documentation of the IMA Digest Lists extension. Signed-off-by: Roberto Sassu --- Documentation/security/IMA-digest-lists.txt | 226 1 file changed, 226 insertions(+) create mode 100644 Documentation/security/IMA-digest-lists.txt diff --git a/Documentat

[PATCH v4 12/14] ima: add support for appraisal with digest lists

2019-06-14 Thread Roberto Sassu
IMA-Appraise grants access to files with a valid signature or with actual file digest equal to the digest included in security.ima. This patch adds support for appraisal based on digest lists. Instead of using the reference value from security.ima, this patch checks if the calculated file digest i

[PATCH v4 13/14] ima: introduce new policies initrd and appraise_initrd

2019-06-14 Thread Roberto Sassu
This patch introduces the new policies 'initrd' and 'appraise_initrd' to measure/appraise files in the initial ram disk. Signed-off-by: Roberto Sassu --- .../admin-guide/kernel-parameters.txt | 5 +++- security/integrity/ima/ima_policy.c | 26 +-- 2 files chang

[PATCH v2 00/16] Add support to generate ABI documentation at admin-guide

2019-06-14 Thread Mauro Carvalho Chehab
Greg, In time: forgot to add a 00/16 patch... someone come to my desk while I was sending this... sorry for that. That's the second version of the doc ABI updated logic. Changes from version 1: - I updated my e-mail on older patches; - Two new ABI fix patches; - Improved the parser to detect

Re: [PATCH v4 02/28] docs: arm64: convert docs to ReST and rename to .rst

2019-06-14 Thread Jonathan Corbet
On Wed, 12 Jun 2019 14:52:38 -0300 Mauro Carvalho Chehab wrote: > The documentation is in a format that is very close to ReST format. > > The conversion is actually: > - add blank lines in order to identify paragraphs; > - fixing tables markups; > - adding some lists markups; > - marking

[PATCH v5 2/2] fTPM: add documentation for ftpm driver

2019-06-14 Thread Sasha Levin
This patch adds basic documentation to describe the new fTPM driver. Signed-off-by: Sasha Levin --- Documentation/security/tpm/index.rst| 1 + Documentation/security/tpm/tpm_ftpm_tee.rst | 31 + 2 files changed, 32 insertions(+) create mode 100644 Documentation/secu

[PATCH v5 0/2] fTPM: firmware TPM running in TEE

2019-06-14 Thread Sasha Levin
Changes from v4: - Don't show an error message while waiting for OP-TEE to come up. Sasha Levin (2): fTPM: firmware TPM running in TEE fTPM: add documentation for ftpm driver Documentation/security/tpm/index.rst| 1 + Documentation/security/tpm/tpm_ftpm_tee.rst | 31 ++ drivers/

[PATCH v5 1/2] fTPM: firmware TPM running in TEE

2019-06-14 Thread Sasha Levin
This patch adds support for a software-only implementation of a TPM running in TEE. There is extensive documentation of the design here: https://www.microsoft.com/en-us/research/publication/ftpm-software-implementation-tpm-chip/ . As well as reference code for the firmware available here: https:

Re: [PATCH v4 02/28] docs: arm64: convert docs to ReST and rename to .rst

2019-06-14 Thread Jonathan Corbet
On Fri, 14 Jun 2019 14:10:41 -0600 Jonathan Corbet wrote: > On Wed, 12 Jun 2019 14:52:38 -0300 > Mauro Carvalho Chehab wrote: > > > The documentation is in a format that is very close to ReST format. > > > > The conversion is actually: > > - add blank lines in order to identify paragraphs; >

Re: [PATCH v4 19/28] docs: powerpc: convert docs to ReST and rename to *.rst

2019-06-14 Thread Jonathan Corbet
On Wed, 12 Jun 2019 14:52:55 -0300 Mauro Carvalho Chehab wrote: > Convert docs to ReST and add them to the arch-specific > book. > > The conversion here was trivial, as almost every file there > was already using an elegant format close to ReST standard. > > The changes were mostly to mark lite

Re: [PATCH v5] docs: power: convert docs to ReST and rename to *.rst

2019-06-14 Thread Jonathan Corbet
On Thu, 13 Jun 2019 07:10:36 -0300 Mauro Carvalho Chehab wrote: > Convert the PM documents to ReST, in order to allow them to > build with Sphinx. > > The conversion is actually: > - add blank lines and identation in order to identify paragraphs; > - fix tables markups; > - add some lists

Re: [PATCH v4 00/28] Convert files to ReST - part 1

2019-06-14 Thread Jonathan Corbet
On Wed, 12 Jun 2019 14:52:36 -0300 Mauro Carvalho Chehab wrote: > This is mostly a rebase of the /33 series v3 I sent, on the top of the latest > linux-next (next-20190612). > > Changes from v3: > > - dropped cpufreq conversion - documents are too outdated; > - infiniband patch is not here any

Re: [PATCH v4 14/28] docs: locking: convert docs to ReST and rename to *.rst

2019-06-14 Thread Jonathan Corbet
On Wed, 12 Jun 2019 14:52:50 -0300 Mauro Carvalho Chehab wrote: > Convert the locking documents to ReST and add them to the > kernel development book where it belongs. > > Most of the stuff here is just to make Sphinx to properly > parse the text file, as they're already in good shape, > not req

Re: [PATCH] scripts/documentation-file-ref-check: ignore output dir

2019-06-14 Thread Jonathan Corbet
On Thu, 13 Jun 2019 07:29:17 -0300 Mauro Carvalho Chehab wrote: > When there's no Documentation/output directory, the script will > complain about those missing references: > > Documentation/doc-guide/sphinx.rst: Documentation/output > Documentation/doc-guide/sphinx.rst: Documentatio

Re: [PATCH] sphinx.rst: Add note about code snippets embedded in the text

2019-06-14 Thread Jonathan Corbet
On Tue, 11 Jun 2019 17:03:16 -0300 André Almeida wrote: > There's a paragraph that explains how to create fixed width text block, > but it doesn't explains how to create fixed width text inline, although > this feature is really used through the documentation. Fix that adding a > quick note about

Re: [RESEND PATCH] Documentation/stackprotector: powerpc supports stack protector

2019-06-14 Thread Jonathan Corbet
On Mon, 10 Jun 2019 15:33:39 +0530 Bhupesh Sharma wrote: > powerpc architecture (both 64-bit and 32-bit) supports stack protector > mechanism since some time now [see commit 06ec27aea9fc ("powerpc/64: > add stack protector support")]. > > Update stackprotector arch support documentation to refle

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

2019-06-14 Thread Dave Hansen
On 6/14/19 10:13 AM, Yu-cheng Yu wrote: > On Fri, 2019-06-14 at 09:13 -0700, Dave Hansen wrote: >> On 6/14/19 8:25 AM, Yu-cheng Yu wrote: >>> The bitmap is very big. >> >> Really? It's actually, what, 8*4096=32k, so 1/32,768th of the size of >> the libraries legacy libraries you load? Do our cras

INQUIRY -AGRA POLANDS

2019-06-14 Thread Mrkt dept
Hello Sir, Greetings rom Agra Polands. we have been building our international business since 1997, dealing with a wide range of luxury consumer goods in order to efficiently and effectively satisfy all our customers’ demands. Kindly confirm if you be able to supply us with our desired items.

Re: [PATCH v5] docs: power: convert docs to ReST and rename to *.rst

2019-06-14 Thread Bjorn Helgaas
On Fri, Jun 14, 2019 at 02:36:31PM -0600, Jonathan Corbet wrote: > On Thu, 13 Jun 2019 07:10:36 -0300 > Mauro Carvalho Chehab wrote: > > > Convert the PM documents to ReST, in order to allow them to > > build with Sphinx. > > > > The conversion is actually: > > - add blank lines and identation

Re: [PATCH v4 19/28] docs: powerpc: convert docs to ReST and rename to *.rst

2019-06-14 Thread Bjorn Helgaas
>>> drivers/scsi/ipr > > +>>> drivers/scsi/sym53c8xx_2 > > +>>> drivers/scsi/qla2xxx > > +>>> drivers/scsi/lpfc > > +>>> drivers/next/bnx2.c > > +>>> drivers/next/e100.c > > +>>> drivers/net/e1000 > > +>>> drivers/net/e1000e > > +>>> drivers/net/ixgb > > +>>> drivers/net/ixgbe > > +>>> drivers/net/cxgb3 > > +>>> drivers/net/s2io.c > > +>>> drivers/net/qlge > > ...of this, which has the look of a set of conflict markers that managed > to get committed...? I don't see these conflict markers in my local branch or in linux-next (next-20190614). Let me know if I need to do something. Bjorn

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

2019-06-14 Thread Yu-cheng Yu
On Fri, 2019-06-14 at 13:57 -0700, Dave Hansen wrote: > On 6/14/19 10:13 AM, Yu-cheng Yu wrote: > > On Fri, 2019-06-14 at 09:13 -0700, Dave Hansen wrote: > > > On 6/14/19 8:25 AM, Yu-cheng Yu wrote: > > > > The bitmap is very big. > > > > > > Really? It's actually, what, 8*4096=32k, so 1/32,768th

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

2019-06-14 Thread Dave Hansen
On 6/14/19 2:34 PM, Yu-cheng Yu wrote: > On Fri, 2019-06-14 at 13:57 -0700, Dave Hansen wrote: >>> I have a related question: >>> >>> Do we allow the application to read the bitmap, or any fault from the >>> application on bitmap pages? >> >> We have to allow apps to read it. Otherwise they can't

Re: [PATCH v2 00/16] Add support to generate ABI documentation at admin-guide

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 03:07:36PM -0300, Mauro Carvalho Chehab wrote: > Greg, > > In time: forgot to add a 00/16 patch... someone come to my desk while I was > sending this... sorry for that. > > That's the second version of the doc ABI updated logic. > > Changes from version 1: > > - I update

Re: [PATCH 14/14] docs: sphinx/kernel_abi.py: fix UTF-8 support

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 01:25:30PM -0300, Mauro Carvalho Chehab wrote: > Em Fri, 14 Jun 2019 18:18:37 +0200 > Greg Kroah-Hartman escreveu: > > > On Thu, Jun 13, 2019 at 11:04:20PM -0300, Mauro Carvalho Chehab wrote: > > > The parser breaks with UTF-8 characters with Sphinx 1.4. > > > > > > Signe