Re: [PATCH 0/4] x86: enable User-Mode Instruction Prevention

2016-11-08 Thread Ricardo Neri
On Tue, 2016-11-08 at 07:34 -0800, Andy Lutomirski wrote: > > Would it not be better to emulate these instructions for them? What > way > > we can verify they're not malicious. > > Forget malice -- if they are really needed for some silly vm86-using > program, let's trap them and emulate them so

Re: [PATCH 2/4] x86: Prepare vm86 tasks to handle User-Mode Instruction Prevention

2016-11-08 Thread Ricardo Neri
On Tue, 2016-11-08 at 18:00 +0100, Peter Zijlstra wrote: > > > + } > > > +#endif > > > + > > > > NAK. If this code is going to exist, it needs to be deeply buried > in > > some unlikely if statement that already exists. There's no good > > reason to penalize all context switches to

Re: [PATCH 0/4] x86: enable User-Mode Instruction Prevention

2016-11-08 Thread Ricardo Neri
On Tue, 2016-11-08 at 17:52 +0100, Thomas Gleixner wrote: > On Tue, 8 Nov 2016, Andy Lutomirski wrote: > > On Tue, Nov 8, 2016 at 5:16 AM, Peter Zijlstra wrote: > > > On Mon, Nov 07, 2016 at 10:12:09PM -0800, Ricardo Neri wrote: > > >> There is a caveat, however. Certain

Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2016-11-08 Thread Ricardo Neri
On Tue, 2016-11-08 at 07:32 -0800, Andy Lutomirski wrote: > > diff --git a/arch/x86/include/asm/disabled-features.h > b/arch/x86/include/asm/disabled-features.h > > index 85599ad..4707445 100644 > > --- a/arch/x86/include/asm/disabled-features.h > > +++ b/arch/x86/include/asm/disabled-features.h >

Re: [PATCH] Change the document about iowait

2016-11-08 Thread Chao Fan
ping Thanks, Chao Fan On Wed, Oct 26, 2016 at 10:41:28AM +0800, Chao Fan wrote: >The iowait is not reliable by reading from /proc/stat, so this >method to get iowait is not suggested. And we mark it in the >document. > >Signed-off-by: Cao Jin >Signed-off-by: Chao Fan

Re: [RFC] fs: add userspace critical mounts event support

2016-11-08 Thread Luis R. Rodriguez
On Wed, Oct 05, 2016 at 09:46:33PM +0200, Luis R. Rodriguez wrote: > On Wed, Oct 05, 2016 at 11:08:06AM -0700, Linus Torvalds wrote: > > On Wed, Oct 5, 2016 at 11:00 AM, Luis R. Rodriguez > > wrote: > > > On Tue, Sep 13, 2016 at 09:38:17PM -0500, Rob Landley wrote: > > > > >

Re: [PATCH 2/4] x86: Prepare vm86 tasks to handle User-Mode Instruction Prevention

2016-11-08 Thread Peter Zijlstra
On Tue, Nov 08, 2016 at 08:01:39AM -0800, Andy Lutomirski wrote: > > diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c > > index 0888a87..32b7301 100644 > > --- a/arch/x86/kernel/process.c > > +++ b/arch/x86/kernel/process.c > > @@ -233,6 +233,16 @@ void __switch_to_xtra(struct

Re: [PATCH 0/4] x86: enable User-Mode Instruction Prevention

2016-11-08 Thread Thomas Gleixner
On Tue, 8 Nov 2016, Andy Lutomirski wrote: > On Tue, Nov 8, 2016 at 5:16 AM, Peter Zijlstra wrote: > > On Mon, Nov 07, 2016 at 10:12:09PM -0800, Ricardo Neri wrote: > >> There is a caveat, however. Certain applications running in virtual-8086 > >> mode, such as DOSEMU[1] and

Re: [PATCH 2/4] x86: Prepare vm86 tasks to handle User-Mode Instruction Prevention

2016-11-08 Thread Andy Lutomirski
On Mon, Nov 7, 2016 at 10:12 PM, Ricardo Neri wrote: > User-Mode Instruction Prevention (UMIP) is a security feature in new Intel > processors that causes a general protection exception if certain > instructions are executed in user mode (CPL > 0). > >

Re: [PATCH 0/4] x86: enable User-Mode Instruction Prevention

2016-11-08 Thread Andy Lutomirski
On Tue, Nov 8, 2016 at 5:16 AM, Peter Zijlstra wrote: > On Mon, Nov 07, 2016 at 10:12:09PM -0800, Ricardo Neri wrote: >> There is a caveat, however. Certain applications running in virtual-8086 >> mode, such as DOSEMU[1] and Wine[2], want to utilize the SGDT, SIDT and >>

Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2016-11-08 Thread Andy Lutomirski
On Mon, Nov 7, 2016 at 10:12 PM, Ricardo Neri wrote: > User-Mode Instruction Prevention (UMIP) is a security feature present in > new Intel Processors. If enabled, it prevents the execution of certain > instructions if the Current Privilege Level (CPL) is

Re: [PATCH] Doc: update kselftest.txt with details on how to run tests after install

2016-11-08 Thread Daniel Vetter
On Mon, Nov 07, 2016 at 01:24:14PM -0700, Shuah Khan wrote: > Update kselftest.txt with details on how to run tests after install. > > Signed-off-by: Shuah Khan > --- > Documentation/kselftest.txt | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git

Re: Proposing help for documentation

2016-11-08 Thread Daniel Vetter
On Wed, Nov 02, 2016 at 12:41:45PM +0200, Jani Nikula wrote: > On Wed, 02 Nov 2016, Luis de Bethencourt wrote: > > I also offer my help, let me know if you see anything I can do. > > Luis, Patrice, anyone else out there willing to help: here's a list of > stuff to do, off

Re: [PATCH] Documentation/sphinx: set literal block highlight language to none

2016-11-08 Thread Daniel Vetter
On Thu, Nov 03, 2016 at 09:23:38AM -0600, Jonathan Corbet wrote: > On Thu, 3 Nov 2016 11:07:33 +0200 > Jani Nikula wrote: > > > Set the default highlight language to "none", i.e. do not try to guess > > the language and do automatic syntax highlighting on literal blocks.

Re: [PATCH 00/32] Create an User's manual and improve development-process book

2016-11-08 Thread Daniel Vetter
On Thu, Oct 27, 2016 at 08:40:56PM -0200, Mauro Carvalho Chehab wrote: > Em Thu, 27 Oct 2016 14:36:07 -0600 > Jonathan Corbet escreveu: > > > On Thu, 27 Oct 2016 13:17:33 -0700 > > Andrew Morton wrote: > > > > > > This patch series continues the

Re: [PATCH 0/4] x86: enable User-Mode Instruction Prevention

2016-11-08 Thread Peter Zijlstra
On Mon, Nov 07, 2016 at 10:12:09PM -0800, Ricardo Neri wrote: > There is a caveat, however. Certain applications running in virtual-8086 > mode, such as DOSEMU[1] and Wine[2], want to utilize the SGDT, SIDT and > SLDT instructions for legitimate reasons. In order to keep such > applications

[PATCH 2/3] Documentation: Move translations into a sub-directory

2016-11-08 Thread SeongJae Park
Signed-off-by: SeongJae Park --- Documentation/{ => translations}/ja_JP/HOWTO | 0 Documentation/{ => translations}/ja_JP/SubmitChecklist | 0 Documentation/{ => translations}/ja_JP/SubmittingPatches | 0

[PATCH 3/3] Documentation: Add HOWTO Korean translation into rst based build system

2016-11-08 Thread SeongJae Park
This commit adds Korean translation of HOWTO document into rst based documentation build system. Signed-off-by: SeongJae Park --- Documentation/index.rst | 8 Documentation/translations/ko_KR/{HOWTO => howto.rst} | 0

[PATCH 1/3] docs/driver-api: Apply changed source file names

2016-11-08 Thread SeongJae Park
Few files under dma-buf/ changed their names but the changes didn't applied to a document that referencing them. It is causing few documentation build warnings. This commit fixes the problems by applying changed file names on the document. Signed-off-by: SeongJae Park ---

[PATCH 0/3] Add howto.rst Korean translation into build system

2016-11-08 Thread SeongJae Park
This patchset does - fix trivial document build warnings, - move translations into translations/ subdirectory, and - insert howto.rst Korean translation into document build system. It is based on linux-next for 20161108 and patches[0] for the translation. [0] https://www.spinics.net/lists/kernel

Re: [Ksummit-discuss] Including images on Sphinx documents

2016-11-08 Thread Mauro Carvalho Chehab
Em Mon, 7 Nov 2016 09:05:05 -0800 Josh Triplett escreveu: > On Mon, Nov 07, 2016 at 09:46:48AM -0200, Mauro Carvalho Chehab wrote: > > That's said, PNG also doesn't seem to work fine on Sphinx 1.4.x. > > > > On my tests, I installed *all* texlive extensions on Fedora 24,

Re: [RFC v2 1/8] sched/tune: add detailed documentation

2016-11-08 Thread Patrick Bellasi
On 04-Nov 15:16, Viresh Kumar wrote: > On 27-10-16, 18:41, Patrick Bellasi wrote: > > +This last requirement is especially important if we consider that > > schedutil can > > +potentially replace all currently available CPUFreq policies. Since > > schedutil > > +is event based, as opposed to the

Re: [PATCH v2 0/6] Fix PDF builds on media documentation

2016-11-08 Thread Mauro Carvalho Chehab
Em Tue, 8 Nov 2016 07:19:38 -0200 Mauro Carvalho Chehab escreveu: > Em Tue, 08 Nov 2016 11:04:55 +0200 > Jani Nikula escreveu: > > > On Tue, 08 Nov 2016, Jani Nikula wrote: > > > On Mon, 07 Nov 2016, Mauro

[PATCH v2.1 3/6] [media] subdev-formats.rst: add missing columns to tabularcolumns

2016-11-08 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab There are several missing columns on the size specification, causing LaTeX to complain on interactive mode. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab ---

[PATCH v2.1 1/6] docs-rst: fix LaTeX \DURole renewcommand with Sphinx 1.3+

2016-11-08 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab PDF build on Kernel 4.9-rc? returns an error with Sphinx 1.3.x and Sphinx 1.4.x, when trying to solve some cross-references. The solution is to redefine the \DURole macro. However, this is redefined too late. Move such redefinition to LaTeX

[PATCH v2.1 2/6] [media] subdev-formats.rst: don't use adjustbox on a longtable

2016-11-08 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab adjustbox doesn't work on longtables. Also, this causes an error on LaTeX in interactive mode. So, use, instead, a tiny font. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab

[PATCH v2.1 0/6] Fix PDF builds on media documentation

2016-11-08 Thread Mauro Carvalho Chehab
This series address a series of errors during PDF generation from media documentation. It replaces the previous patch series entitled: [PATCH RFC 0/4] Fix PDF build errors The first patch fixes the late redefinition of a LaTeX command at the Sphinx LaTeX style that causes build to break

Re: [PATCH v2 0/6] Fix PDF builds on media documentation

2016-11-08 Thread Mauro Carvalho Chehab
Em Tue, 08 Nov 2016 11:04:55 +0200 Jani Nikula escreveu: > On Tue, 08 Nov 2016, Jani Nikula wrote: > > On Mon, 07 Nov 2016, Mauro Carvalho Chehab > > wrote: > >> This series address a series of errors during

Re: [PATCH v2 0/6] Fix PDF builds on media documentation

2016-11-08 Thread Jani Nikula
On Mon, 07 Nov 2016, Mauro Carvalho Chehab wrote: > This series address a series of errors during PDF generation from > media documentation. I'm missing patches 3-6 of this series, and so is the archive. BR, Jani. -- Jani Nikula, Intel Open Source Technology Center

Re: [PULL] sphinx fixes for docs-next

2016-11-08 Thread Mauro Carvalho Chehab
Hi Jon, Em Mon, 7 Nov 2016 18:59:15 -0700 Jonathan Corbet escreveu: > On Thu, 03 Nov 2016 12:52:38 +0200 > Jani Nikula wrote: > > > It's not all about pdf, but with these and Mauro's patches [1] make > > pdfdocs works for me. > > Me too. I've pulled

[PATCH] parse-headers.pl: add documentation for this script

2016-11-08 Thread Mauro Carvalho Chehab
Provide a man page for parse-headers.pl, describing how to use it. The documentation on ReST format was generated via pod2rst: http://search.cpan.org/~dowens/Pod-POM-View-Restructured-0.02/bin/pod2rst Signed-off-by: Mauro Carvalho Chehab ---