Re: [PATCH 5.1 000/138] 5.1.18-stable review

2019-07-13 Thread Kelsey Skunberg
On Fri, Jul 12, 2019 at 02:17:44PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.18 release. > There are 138 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 5.2 00/61] 5.2.1-stable review

2019-07-13 Thread Kelsey Skunberg
On Fri, Jul 12, 2019 at 02:19:13PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.2.1 release. > There are 61 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

[PATCH 4/4] Documentation:kernel-per-CPU-kthreads.txt: Remove reference to elevator=

2019-07-13 Thread Marcos Paulo de Souza
This argument was not being considered since blk-mq was set by default, so removed this documentation to avoid confusion. Signed-off-by: Marcos Paulo de Souza --- Documentation/kernel-per-CPU-kthreads.txt | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH 2/4] kernel-parameters.txt: Remove elevator argument

2019-07-13 Thread Marcos Paulo de Souza
This argument was not being used since the legacy IO path was removed, when blk-mq was enabled by default. So removed it from the kernel parameters documentation. Signed-off-by: Marcos Paulo de Souza --- Documentation/admin-guide/kernel-parameters.txt | 6 -- 1 file changed, 6 deletions(-)

[PATCH 1/4] block: elevator.c: Remove now unused elevator= argument

2019-07-13 Thread Marcos Paulo de Souza
Since the inclusion of blk-mq, elevator argument was not being considered anymore, and it's utility died long with the legacy IO path, now removed too. Signed-off-by: Marcos Paulo de Souza --- block/elevator.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/block/elevator.c

Re: [PATCH 4.19 00/91] 4.19.59-stable review

2019-07-13 Thread Kelsey Skunberg
On Fri, Jul 12, 2019 at 02:18:03PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.59 release. > There are 91 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH] proc: revert /proc/*/cmdline rewrite

2019-07-13 Thread Linus Torvalds
[ Apparently this thread wasn't on the lists, and I didn't even notice. So re-sending the patches ] On Sat, Jul 13, 2019 at 9:16 PM Eric W. Biederman wrote: > Given that this fixes a regression and a bug. > > Acked-by: "Eric W. Biederman" I'd much rather start from scratch. Like the attached.

Re: [PATCH] proc: revert /proc/*/cmdline rewrite

2019-07-13 Thread Eric W. Biederman
Alexey Dobriyan writes: > /proc/*/cmdline continues to cause problems: > > https://lkml.org/lkml/2019/4/5/825 > Subject get_mm_cmdline and userspace (Perl) changing argv0 > > https://marc.info/?l=linux-kernel=156294831308786=4 > [PATCH] proc: Fix uninitialized byte read

Re: INFO: task hung in unregister_netdevice_notifier (3)

2019-07-13 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:a2d79c71 Merge tag 'for-5.3/io_uring-20190711' of git://gi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10e45f0fa0 kernel config:

[PATCH] mtd: phram: Module parameters add writable permissions

2019-07-13 Thread Xiaoming Ni
The phram code implements managing multiple devices through a linked list. However, due to the module parameter permission of 0, the /sys/module/phram/parameters/phram interface is missing. The command line arguments in insmod can only create one device. Therefore, add writable permissions to the

Re: [PATCH v3 0/3] kernel/notifier.c: avoid duplicate registration

2019-07-13 Thread Xiaoming Ni
On 2019/7/12 22:07, gre...@linuxfoundation.org wrote: > On Fri, Jul 12, 2019 at 09:11:57PM +0800, Xiaoming Ni wrote: >> On 2019/7/11 21:57, Vasily Averin wrote: >>> On 7/11/19 4:55 AM, Nixiaoming wrote: On Wed, July 10, 2019 1:49 PM Vasily Averin wrote: > On 7/10/19 6:09 AM, Xiaoming Ni

net/netfilter/nf_tables_offload.c:135:24: sparse: sparse: incorrect type in initializer (different base types)

2019-07-13 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master head: a2d79c7174aeb43b13020dd53d85a7aefdd9f3e5 commit: c9626a2cbdb20e26587b3fad99960520a023432b netfilter: nf_tables: add hardware offload support date: 4 days ago reproduce: # apt-get install

Re: [PATCH v3 5/7] sched: SIS_CORE to disable idle core search

2019-07-13 Thread Subhra Mazumdar
On 7/4/19 6:04 PM, Parth Shah wrote: Same experiment with hackbench and with perf analysis shows increase in L1 cache miss rate with these patches (Lower is better) Baseline(%) Patch(%) --- - --- Total Cache miss rate

Re: [GIT PULL] xfs: new features for 5.3

2019-07-13 Thread Linus Torvalds
On Fri, Jul 12, 2019 at 9:07 PM Darrick J. Wong wrote: > > Doh, it turns out I was merging against the same HEAD as my last two > pull requests because I forgot to re-pull. Sorry about that. It's been > too long of a week. :/ Heh, no problem, I was just surprised when my merge result didn't

Re: [PATCH] rtc: Don't state that the RTC holds UTC in case it doesn't

2019-07-13 Thread Finn Thain
On Sat, 13 Jul 2019, Alexandre Belloni wrote: > On 26/06/2019 14:42:31+1000, Finn Thain wrote: > > > Userspace is certainly adjusting the timezone after the kernel did. > > > Can you run the same commands without running your init? > > > > > > > Sure. I booted into /bin/sh instead of

GOOD DAY

2019-07-13 Thread Dr. Bukola Saraki
The President of Nigeria MUHAMMADU BUHARI and SENATORS have agree to compensate all the foreign investors that has business with Nigerians or the other but didn't receive their fund,they have decide to compensate the person with sum one million seven hundred thousand united states dollars if you

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-07-13 Thread Segher Boessenkool
On Sun, Jul 14, 2019 at 07:45:15AM +0900, Masahiro Yamada wrote: > On Sat, Jul 13, 2019 at 10:17 PM Segher Boessenkool > wrote: > > On Sat, Jul 13, 2019 at 07:47:44AM -0500, Segher Boessenkool wrote: > > > On Sat, Jul 13, 2019 at 12:21:06PM +0900, Masahiro Yamada wrote: > > > > The KBUILD_ARFLAGS

[GIT PULL] Mailbox changes for v5.3

2019-07-13 Thread Jassi Brar
Hi Linus, The following changes since commit 6fbc7275c7a9ba97877050335f290341a1fd8dbf: Linux 5.2-rc7 (2019-06-30 11:25:36 +0800) are available in the Git repository at: git://git.linaro.org/landing-teams/working/fujitsu/integration.git tags/mailbox-v5.3 for you to fetch changes up to

Re: [PATCH v2] jffs2: remove C++ style comments from uapi header

2019-07-13 Thread Masahiro Yamada
On Thu, Jun 27, 2019 at 4:39 PM Richard Weinberger wrote: > > - Ursprüngliche Mail - > > Von: "Masahiro Yamada" > > An: "richard" > > CC: "Vignesh Raghavendra" , "Boris Brezillon" > > , "linux-kernel" > > , "Marek Vasut" , > > "linux-mtd" , > > "Miquel Raynal" , "Brian Norris" > > ,

Re: [PATCH] phy: Change the configuration interface param to void* to make it more general

2019-07-13 Thread kbuild test robot
/Zeng-Tao/phy-Change-the-configuration-interface-param-to-void-to-make-it-more-general/20190713-213420 config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.3-1 tag

2019-07-13 Thread pr-tracker-bot
The pull request you sent on Sat, 13 Jul 2019 14:28:00 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.3-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/192f0f8e9db7efe4ac98d47f5fa4334e43c1204d Thank you! --

Re: [GIT] Sparc

2019-07-13 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 23:17:42 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc.git > refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ec9249752465b87b5b26d03f476eebaf872ebd12 Thank you! --

Re: [GIT] Networking

2019-07-13 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 23:17:04 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d12109291ccbef7e879cc0d0733f31685cd80854 Thank you! -- Deet-doot-dot,

Re: [GIT] Ide

2019-07-13 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 23:17:24 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide.git refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1fa91854dcdf7829e2694873b19f96b65947112d Thank you! -- Deet-doot-dot,

DHL

2019-07-13 Thread Pastor David

Re: [REGRESSION] Xorg segfaults on Asus Chromebook CP101 with Linux v5.2 (was Asus C101P Chromeboot fails to boot with Linux 5.2)

2019-07-13 Thread Ezequiel Garcia
On Sat, 13 Jul 2019 at 13:43, Alex Dewar wrote: > > On 13/07/2019 16:17, Heiko Stuebner wrote: > > Hi, > > > > Am Samstag, 13. Juli 2019, 13:38:45 CEST schrieb Alex Dewar: > >> I initially thought my machine was failing to boot entirely, but it > >> turns out it was just failing to start the

Re: [GIT PULL] Pin control bulk changes for v5.3

2019-07-13 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 11:10:34 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git > tags/pinctrl-v5.3-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/43c95d3694cc448fdf50bd53b7ff3a5bb4655883 Thank you! --

Re: [git pull] Input updates for v5.3-rc0

2019-07-13 Thread pr-tracker-bot
The pull request you sent on Thu, 11 Jul 2019 22:41:58 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/073c916bc00571d8662b89a294eba265481b6fbb Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] IPMI bug fixes for 5.3

2019-07-13 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 06:52:04 -0500: > https://github.com/cminyard/linux-ipmi.git tags/for-linus-5.3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/92adeb616c9172dea9678f53ea6e5501fc4f4338 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-07-13 Thread Masahiro Yamada
On Sat, Jul 13, 2019 at 10:17 PM Segher Boessenkool wrote: > > On Sat, Jul 13, 2019 at 07:47:44AM -0500, Segher Boessenkool wrote: > > On Sat, Jul 13, 2019 at 12:21:06PM +0900, Masahiro Yamada wrote: > > > The KBUILD_ARFLAGS addition in arch/powerpc/Makefile has never worked > > > in a useful way

Re: [PATCH 4.19 00/91] 4.19.59-stable review

2019-07-13 Thread Guenter Roeck
On 7/12/19 5:18 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.59 release. There are 91 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 5.2 00/61] 5.2.1-stable review

2019-07-13 Thread Guenter Roeck
On 7/12/19 5:19 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.2.1 release. There are 61 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 5.1 000/138] 5.1.18-stable review

2019-07-13 Thread Guenter Roeck
On 7/12/19 5:17 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.1.18 release. There are 138 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH] mm: page_alloc: document kmemleak's non-blockable __GFP_NOFAIL case

2019-07-13 Thread Matthew Wilcox
On Sat, Jul 13, 2019 at 04:49:04AM +0800, Yang Shi wrote: > When running ltp's oom test with kmemleak enabled, the below warning was > triggerred since kernel detects __GFP_NOFAIL & ~__GFP_DIRECT_RECLAIM is > passed in: There are lots of places where kmemleak will call kmalloc with __GFP_NOFAIL

Re: [v3,1/2] rtc/fsl: add FTM alarm driver as the wakeup source

2019-07-13 Thread Alexandre Belloni
Hi, On 11/07/2019 22:37:48+0800, Biwen Li wrote: > diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile > index 9d997fa..5cccb07 100644 > --- a/drivers/rtc/Makefile > +++ b/drivers/rtc/Makefile > @@ -79,6 +79,7 @@ obj-$(CONFIG_RTC_DRV_HID_SENSOR_TIME) += > rtc-hid-sensor-time.o >

Re: [PATCH 2/3] rtc: Add support for the MediaTek MT2712 RTC

2019-07-13 Thread Alexandre Belloni
Hi, On 02/07/2019 11:21:19+0800, Ran Bi wrote: > diff --git a/drivers/rtc/rtc-mt2712.c b/drivers/rtc/rtc-mt2712.c > new file mode 100644 > index ..f98f0ab114c5 > --- /dev/null > +++ b/drivers/rtc/rtc-mt2712.c > @@ -0,0 +1,495 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + *

Re: [PATCH] rtc: Don't state that the RTC holds UTC in case it doesn't

2019-07-13 Thread Alexandre Belloni
On 26/06/2019 14:42:31+1000, Finn Thain wrote: > > Userspace is certainly adjusting the timezone after the kernel did. Can > > you run the same commands without running your init? > > > > Sure. I booted into /bin/sh instead of /sbin/init then mounted /proc and > /dev, and got this: > > #

Re: [PATCH 5.1 000/138] 5.1.18-stable review

2019-07-13 Thread Luke Nowakowski-Krijger
On Fri, Jul 12, 2019 at 02:17:44PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.18 release. > There are 138 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.19 00/91] 4.19.59-stable review

2019-07-13 Thread Luke Nowakowski-Krijger
On Fri, Jul 12, 2019 at 02:18:03PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.59 release. > There are 91 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 5.2 00/61] 5.2.1-stable review

2019-07-13 Thread Luke Nowakowski-Krijger
On Fri, Jul 12, 2019 at 02:19:13PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.2.1 release. > There are 61 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH] phy: Change the configuration interface param to void* to make it more general

2019-07-13 Thread Sakari Ailus
On Fri, Jul 12, 2019 at 09:21:45AM +0200, Maxime Ripard wrote: > On Fri, Jul 12, 2019 at 05:26:04PM +0800, Zeng Tao wrote: > > The phy framework now allows runtime configurations, but only limited > > to mipi now, and it's not reasonable to introduce user specified > > configurations into the

Re: [PATCH] drivers: rtc: rtc-wm831x: Add IRQF_ONESHOT flag

2019-07-13 Thread Alexandre Belloni
On 11/07/2019 23:26:15+0530, Hariprasad Kelam wrote: > fix below issue reported by coccicheck > drivers//rtc/rtc-wm831x.c:436:7-32: ERROR: Threaded IRQ with no primary > handler requested without IRQF_ONESHOT > > Signed-off-by: Hariprasad Kelam > --- > drivers/rtc/rtc-wm831x.c | 3 ++- > 1 file

Re: [PATCH] mm: page_alloc: document kmemleak's non-blockable __GFP_NOFAIL case

2019-07-13 Thread David Rientjes
On Sat, 13 Jul 2019, Yang Shi wrote: > When running ltp's oom test with kmemleak enabled, the below warning was > triggerred since kernel detects __GFP_NOFAIL & ~__GFP_DIRECT_RECLAIM is > passed in: > > WARNING: CPU: 105 PID: 2138 at mm/page_alloc.c:4608 > __alloc_pages_nodemask+0x1c31/0x1d50 >

Re: [PATCH] rtc: pcf2123: Fix build error

2019-07-13 Thread Alexandre Belloni
On 04/07/2019 16:55:42+0800, YueHaibing wrote: > If REGMAP_SPI is m and RTC_DRV_PCF2123 is y, > > drivers/rtc/rtc-pcf2123.o: In function `pcf2123_probe': > rtc-pcf2123.c:(.text+0xb2b): undefined reference to `__devm_regmap_init_spi' > > Select REGMAP_SPI as RTC_DRV_DS1347 driver does. > >

Re: [PATCH 5.1 000/138] 5.1.18-stable review

2019-07-13 Thread Jon Hunter
On 13/07/2019 15:31, Greg Kroah-Hartman wrote: > On Sat, Jul 13, 2019 at 10:16:58AM +0100, Jon Hunter wrote: >> >> On 12/07/2019 16:30, Greg Kroah-Hartman wrote: >>> On Fri, Jul 12, 2019 at 02:26:57PM +0100, Jon Hunter wrote: Hi Greg, On 12/07/2019 13:17, Greg Kroah-Hartman wrote:

USB on EBV Socrates

2019-07-13 Thread Pavel Machek
Hi! (First, I'd like to thank Detlev for fpgasoc-quickstart, it made getting Socrates to run way easier. I used some older version... so I had to delete your public key from it. If there's more than one, I'd like to know :-) ). Now, I'd like to get USB host to work; I don't have cable with right

Re: [PATCH v4 00/11] add thermal driver for h6

2019-07-13 Thread Vasily Khoruzhick
On Wed, Jul 10, 2019 at 4:09 PM Vasily Khoruzhick wrote: > > On Sun, Jun 23, 2019 at 9:42 AM Yangtao Li wrote: > > > > This patchset add support for H3 and H6 thermal sensor. > > > > BTY, do a cleanup in thermal makfile. > > > > Yangtao Li (11): > > thermal: sun8i: add thermal driver for h6 >

Re: [alsa-devel] [PATCH] sound: pci: emu10k1: Remove unneeded variable "change"

2019-07-13 Thread Takashi Iwai
On Fri, 12 Jul 2019 10:06:23 +0200, Wasko, Michal wrote: > > > On 7/11/2019 7:17 PM, Hariprasad Kelam wrote: > > fix below issue reported by coccicheck > sound/pci/emu10k1/emu10k1x.c:1077:5-11: Unneeded variable: "change". > Return "0" on line 1092 > > Signed-off-by:

Re: [PATCH] rcu: Make jiffies_till_sched_qs writable

2019-07-13 Thread Paul E. McKenney
On Sat, Jul 13, 2019 at 11:42:57AM -0400, Joel Fernandes wrote: > On Sat, Jul 13, 2019 at 08:13:30AM -0700, Paul E. McKenney wrote: > > On Sat, Jul 13, 2019 at 10:20:02AM -0400, Joel Fernandes wrote: > > > On Sat, Jul 13, 2019 at 4:47 AM Byungchul Park > > > wrote: > > > > > > > > On Fri, Jul 12,

Re: [RFC PATCH v4 1/3] selftests/x86/sgx: Fix Makefile for SGX selftest

2019-07-13 Thread Xing, Cedric
On 7/13/2019 8:15 AM, Jarkko Sakkinen wrote: On Sat, 2019-07-13 at 18:10 +0300, Jarkko Sakkinen wrote: On Fri, 2019-07-12 at 23:51 -0700, Cedric Xing wrote: The original x86/sgx/Makefile didn't work when "x86/sgx" was specified as the test target, nor did it work with "run_tests" as the make

[PATCH v21 27/28] docs: x86/sgx: Document kernel internals

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson Document some of the more tricky parts of the kernel implementation internals. Signed-off-by: Sean Christopherson Co-developed-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- Documentation/x86/sgx/2.Kernel-internals.rst | 76

[PATCH v21 28/28] docs: x86/sgx: Document the enclave API

2019-07-13 Thread Jarkko Sakkinen
Document the enclave driver API i.e. the set of ioctl's used to create and manage enclaves and set their privileges Signed-off-by: Jarkko Sakkinen --- Documentation/x86/sgx/3.API.rst | 27 +++ Documentation/x86/sgx/index.rst | 1 + 2 files changed, 28 insertions(+)

[PATCH v21 26/28] docs: x86/sgx: Add Architecture documentation

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson Document microarchitectural features of SGX relevant to the kernel. They are documented in detail enough to understand the implementation. Signed-off-by: Sean Christopherson --- Documentation/x86/index.rst | 1 +

[PATCH v21 25/28] x86/sgx: Update MAINTAINERS

2019-07-13 Thread Jarkko Sakkinen
Add the maintainer information for the SGX subsystem. Signed-off-by: Jarkko Sakkinen --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 133ec3cc11ae..96f779dd22a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8296,6 +8296,18 @@ L:

[PATCH v21 24/28] selftests/x86: Add a selftest for SGX

2019-07-13 Thread Jarkko Sakkinen
Add a selftest for SGX. It is a trivial test where a simple enclave copies one 64-bit word of memory between two memory locations given to the enclave as arguments. Signed-off-by: Jarkko Sakkinen --- tools/testing/selftests/x86/Makefile | 10 + tools/testing/selftests/x86/sgx/Makefile

[PATCH v21 22/28] x86/traps: Attempt to fixup exceptions in vDSO before signaling

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson vDSO functions can now leverage an exception fixup mechanism similar to kernel exception fixup. For vDSO exception fixup, the initial user is Intel's Software Guard Extensions (SGX), which will wrap the low-level transitions to/from the enclave, i.e. EENTER and ERESUME

[PATCH v21 23/28] x86/vdso: Add __vdso_sgx_enter_enclave() to wrap SGX enclave transitions

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson Intel Software Guard Extensions (SGX) introduces a new CPL3-only enclave mode that runs as a sort of black box shared object that is hosted by an untrusted normal CPL3 process. Skipping over a great deal of gory architecture details[1], SGX was designed in such a way

[PATCH v21 20/28] x86/vdso: Add support for exception fixup in vDSO functions

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson The basic concept and implementation is very similar to the kernel's exception fixup mechanism. The key differences are that the kernel handler is hardcoded and the fixup entry addresses are relative to the overall table as opposed to individual entries. Hardcoding

[PATCH v21 21/28] x86/fault: Add helper function to sanitize error code

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson ...to prepare for vDSO exception fixup, which will expose the error code to userspace and runs before set_signal_archinfo(), i.e. suppresses the signal when fixup is successful. Signed-off-by: Sean Christopherson --- arch/x86/mm/fault.c | 24 +---

[PATCH v21 15/28] mm: Introduce vm_ops->may_mprotect()

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson SGX will use ->may_mprotect() to invoke and enforce SGX variations on the existing file_mprotect() and mmap_file() LSM hooks. The name may_mprotect() is intended to reflect the hook's purpose as a way to restrict mprotect() as opposed to a wholesale replacement. Due

[PATCH v21 19/28] x86/sgx: ptrace() support for the SGX driver

2019-07-13 Thread Jarkko Sakkinen
Add VMA callbacks for ptrace() that can be used with debug enclaves. With debug enclaves data can be read and write the memory word at a time by using ENCLS(EDBGRD) and ENCLS(EDBGWR) leaf instructions. Signed-off-by: Jarkko Sakkinen --- arch/x86/kernel/cpu/sgx/encl.c | 98

[PATCH v21 17/28] x86/sgx: Add provisioning

2019-07-13 Thread Jarkko Sakkinen
In order to provide a mechanism for devilering provisoning rights: 1. Add a new device file /dev/sgx/provision that works as a token for allowing an enclave to have the provisioning privileges. 2. Add a new ioctl called SGX_IOC_ENCLAVE_SET_ATTRIBUTE that accepts the following data

[PATCH v21 16/28] x86/sgx: Add the Linux SGX Enclave Driver

2019-07-13 Thread Jarkko Sakkinen
Intel Software Guard eXtensions (SGX) is a set of CPU instructions that can be used by applications to set aside private regions of code and data. The code outside the enclave is disallowed to access the memory inside the enclave by the CPU access control. This commit adds the Linux SGX Enclave

[PATCH v21 18/28] x86/sgx: Add swapping code to the core and SGX driver

2019-07-13 Thread Jarkko Sakkinen
Because the kernel is untrusted, swapping pages in/out of the Enclave Page Cache (EPC) has specialized requirements: * The kernel cannot directly access EPC memory, i.e. cannot copy data to/from the EPC. * To evict a page from the EPC, the kernel must "prove" to hardware that are no valid TLB

[PATCH v21 11/28] x86/sgx: Add wrappers for ENCLS leaf functions

2019-07-13 Thread Jarkko Sakkinen
ENCLS is an umbrella instruction for a variety of cpl0 SGX functions. The ENCLS function that is executed is specified in EAX, with each function potentially having more leaf-specific operands beyond EAX. ENCLS introduces its own (positive value) error codes that (some) leafs use to return failure

[PATCH v21 10/28] x86/sgx: Add SGX1 and SGX2 architectural data structures

2019-07-13 Thread Jarkko Sakkinen
Define the data structures used by various ENCLS functions needed for Linux to support all SGX1 and SGX2 ENCLS leaf functions. This is not an exhaustive representation of all SGX data structures as several are only consumed by ENCLU (userspace), e.g. REPORT and KEYREQUEST, while others are only

[PATCH v21 14/28] x86/sgx: Add sgx_einit() for initializing enclaves

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson Add a helper function to perform ENCLS(EINIT) with the correct LE hash MSR values. ENCLS[EINIT] initializes an enclave, verifying the enclave's measurement and preparing it for execution, i.e. the enclave cannot be run until it has been initialized. The measurement

[PATCH v21 13/28] x86/sgx: Add functions to allocate and free EPC pages

2019-07-13 Thread Jarkko Sakkinen
At this time there is no support for reclaiming pages prior to the owner explicitly freeing the page. As for freeing pages, because freeing a page is expected to succeed in the vast majority of cases and because most call sites will not be equipped to handle failure, provide a variant for freeing

[PATCH v21 12/28] x86/sgx: Enumerate and track EPC sections

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson Enumerate Enclave Page Cache (EPC) sections via CPUID and add the data structures necessary to track EPC pages so that they can be allocated, freed and managed. As a system may have multiple EPC sections, invoke CPUID on SGX sub-leafs until an invalid leaf is

[PATCH v21 07/28] x86/mm: x86/sgx: Signal SIGSEGV for userspace #PFs w/ PF_SGX

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson The PF_SGX bit is set if and only if the #PF is detected by the SGX Enclave Page Cache Map (EPCM). The EPCM is a hardware-managed table that enforces accesses to an enclave's EPC pages in addition to the software-managed kernel page tables, i.e. the effective

[PATCH v21 09/28] x86/sgx: Add ENCLS architectural error codes

2019-07-13 Thread Jarkko Sakkinen
The SGX architecture defines an extensive set of error codes that are used by ENCL{S,U,V} instructions to provide software with (somewhat) precise error information. Though they are architectural, define the known error codes in a separate file from sgx_arch.h so that they can be exposed to

[PATCH v21 05/28] x86/msr: Add SGX Launch Control MSR definitions

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson Add a new IA32_FEATURE_CONTROL bit, SGX_LE_WR. When set, SGX_LE_WR allows software to write the SGXLEPUBKEYHASH MSRs (see below). The The existence of the bit is enumerated by CPUID as X86_FEATURE_SGX_LC. Like all other flags in IA32_FEATURE_CONTROL, the MSR must be

[PATCH v21 08/28] x86/cpu/intel: Detect SGX support and update caps appropriately

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson Similar to other large Intel features such as VMX and TXT, SGX must be explicitly enabled in IA32_FEATURE_CONTROL MSR to be truly usable. Clear all SGX related capabilities if SGX is not fully enabled in IA32_FEATURE_CONTROL or if the SGX1 instruction set isn't

[PATCH v21 06/28] x86/mm: x86/sgx: Add new 'PF_SGX' page fault error code bit

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson The SGX bit is set in the #PF error code if and only if the fault is detected by the Enclave Page Cache Map (EPCM), a hardware-managed table that enforces the paging permissions defined by the enclave, e.g. to prevent the kernel from changing the permissions of an

[PATCH v21 03/28] x86/msr: Add IA32_FEATURE_CONTROL.SGX_ENABLE definition

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson Add a new IA32_FEATURE_CONTROL bit, SGX_ENABLE, which must be set in order to execute SGX instructions, i.e. ENCL{S,U,V}. The existence of the bit is enumerated by CPUID as X86_FEATURE_SGX. Like all other flags in IA32_FEATURE_CONTROL, the MSR must be locked for

[PATCH v21 04/28] x86/cpufeatures: Add Intel-defined SGX_LC feature bit

2019-07-13 Thread Jarkko Sakkinen
From: Kai Huang X86_FEATURE_SGX_LC reflects whether or not the CPU supports SGX Launch Control, i.e. enumerates the existence of IA32_FEATURE_CONTROL's SGX_LE_WR bit and the IA32_SGXLEPUBKEYHASH MSRs. Signed-off-by: Kai Huang Signed-off-by: Jarkko Sakkinen ---

[PATCH v21 01/28] x86/cpufeatures: Add Intel-defined SGX feature bit

2019-07-13 Thread Jarkko Sakkinen
From: Kai Huang X86_FEATURE_SGX reflects whether or not the CPU supports Intel's Software Guard eXtensions (SGX). Signed-off-by: Kai Huang Co-developed-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen Reviewed-by: Borislav Petkov --- arch/x86/include/asm/cpufeatures.h | 1 +

[PATCH v21 02/28] x86/cpufeatures: Add SGX sub-features (as Linux-defined bits)

2019-07-13 Thread Jarkko Sakkinen
From: Sean Christopherson CPUID_12_EAX is an Intel-defined feature bits leaf dedicated for SGX that enumerates the SGX instruction sets that are supported by the CPU, e.g. SGX1, SGX2, etc... Because Linux currently only cares about two bits (SGX1 and SGX2) and there are currently only four

[PATCH v21 00/28] Intel SGX foundations

2019-07-13 Thread Jarkko Sakkinen
Intel(R) SGX is a set of CPU instructions that can be used by applications to set aside private regions of code and data. The code outside the enclave is disallowed to access the memory inside the enclave by the CPU access control. In a way you can think that SGX provides inverted sandbox. It

Re: [PATCH] mm: sparse: Skip no-map regions in memblocks_present

2019-07-13 Thread Wei Yang
On Sat, Jul 13, 2019 at 01:53:25PM +, Raslan, KarimAllah wrote: >On Fri, 2019-07-12 at 23:09 +, Wei Yang wrote: >> On Fri, Jul 12, 2019 at 10:51:31AM +0200, KarimAllah Ahmed wrote: >> > >> > Do not mark regions that are marked with nomap to be present, otherwise >> > these memblock cause

Re: [REGRESSION] Xorg segfaults on Asus Chromebook CP101 with Linux v5.2 (was Asus C101P Chromeboot fails to boot with Linux 5.2)

2019-07-13 Thread Alex Dewar
On 13/07/2019 16:17, Heiko Stuebner wrote: Hi, Am Samstag, 13. Juli 2019, 13:38:45 CEST schrieb Alex Dewar: I initially thought my machine was failing to boot entirely, but it turns out it was just failing to start the display manager. I managed to escape to a tty by hammering the keyboard a

Re: [PATCH] mm/z3fold.c: Allow __GFP_HIGHMEM in z3fold_alloc

2019-07-13 Thread Shakeel Butt
On Fri, Jul 12, 2019 at 3:22 PM Henry Burns wrote: > > One of the gfp flags used to show that a page is movable is > __GFP_HIGHMEM. Currently z3fold_alloc() fails when __GFP_HIGHMEM is > passed. Now that z3fold pages are movable, we allow __GFP_HIGHMEM. We > strip the movability related flags

FRESH & NEW EMAIL LEADS TOOLS, RDP,EMAILS, SPYWARES, SMTP, MAILER, CVV

2019-07-13 Thread CYBER GATES LTD
DEAR CUSTOMERS We are happy to inform you about our new SMTP SERVER today I would like to introduce you to a page that provides services for UNLIMITED SENDER We offer all the services that you desire now? 15x Domain Inbox SMTP please check

[PATCH v2] ARM: dts: msm8974-FP2: add reboot-mode node

2019-07-13 Thread Luca Weiss
This enables userspace to signal the bootloader to go into the bootloader or recovery mode. The magic values can be found in both the downstream kernel and the LK kernel (bootloader). Reviewed-by: Brian Masney Signed-off-by: Luca Weiss --- Changes v1 -> v2: - Move the majority of the node into

[PATCH] power: reset: reboot-mode: Fix author email format

2019-07-13 Thread Matwey V. Kornilov
Closing angle bracket was missing. Signed-off-by: Matwey V. Kornilov --- drivers/power/reset/reboot-mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/reboot-mode.c b/drivers/power/reset/reboot-mode.c index 06ff035b57f5..b4076b10b893 100644 ---

Re: [PATCH] rcu: Make jiffies_till_sched_qs writable

2019-07-13 Thread Joel Fernandes
On Sat, Jul 13, 2019 at 08:13:30AM -0700, Paul E. McKenney wrote: > On Sat, Jul 13, 2019 at 10:20:02AM -0400, Joel Fernandes wrote: > > On Sat, Jul 13, 2019 at 4:47 AM Byungchul Park > > wrote: > > > > > > On Fri, Jul 12, 2019 at 9:51 PM Joel Fernandes > > > wrote: > > > > > > > > On Fri, Jul

[net-next 0/2] ipvs: speedup ipvs netns dismantle

2019-07-13 Thread Haishuang Yan
Implement exit_batch() method to dismantle more ipvs netns per round. Haishuang Yan (2): ipvs: batch __ip_vs_cleanup ipvs: batch __ip_vs_dev_cleanup include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_core.c | 49 +

[net-next 2/2] ipvs: batch __ip_vs_dev_cleanup

2019-07-13 Thread Haishuang Yan
It's better to batch __ip_vs_cleanup to speedup ipvs devices dismantle. Signed-off-by: Haishuang Yan --- net/netfilter/ipvs/ip_vs_core.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c

Re: [PATCH] [net-next] cxgb4: reduce kernel stack usage in cudbg_collect_mem_region()

2019-07-13 Thread Arnd Bergmann
On Sat, Jul 13, 2019 at 2:14 AM Joe Perches wrote: > > On Fri, 2019-07-12 at 15:36 -0700, David Miller wrote: > > From: Arnd Bergmann > > Date: Fri, 12 Jul 2019 11:06:33 +0200 > > > > > The cudbg_collect_mem_region() and cudbg_read_fw_mem() both use several > > > hundred kilobytes of kernel

[net-next 1/2] ipvs: batch __ip_vs_cleanup

2019-07-13 Thread Haishuang Yan
It's better to batch __ip_vs_cleanup to speedup ipvs connections dismantle. Signed-off-by: Haishuang Yan --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_core.c | 29 + net/netfilter/ipvs/ip_vs_ctl.c | 13 ++--- 3 files changed, 28

Re: [PATCH v2 3/9] rcu/sync: Remove custom check for reader-section

2019-07-13 Thread Joel Fernandes
On Sat, Jul 13, 2019 at 07:41:08AM -0700, Paul E. McKenney wrote: > On Sat, Jul 13, 2019 at 09:30:49AM -0400, Joel Fernandes wrote: > > On Sat, Jul 13, 2019 at 01:21:14AM -0700, Paul E. McKenney wrote: > > > On Fri, Jul 12, 2019 at 11:10:08PM -0400, Joel Fernandes wrote: > > > > On Fri, Jul 12,

Re: [PATCH] platform/x86: pcengines-apu2 needs gpiolib

2019-07-13 Thread Arnd Bergmann
On Sat, Jul 13, 2019 at 4:36 PM Enrico Weigelt, metux IT consult wrote: > On 12.07.19 10:54, Arnd Bergmann wrote: > > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig > > index e869a5c760b6..cf48b9068843 100644 > > --- a/drivers/platform/x86/Kconfig > > +++

Re: [GIT PULL] Driver core patches for 5.3-rc1

2019-07-13 Thread Greg KH
On Fri, Jul 12, 2019 at 02:43:28PM -0700, Linus Torvalds wrote: > On Fri, Jul 12, 2019 at 2:37 PM Linus Torvalds > wrote: > > > > My bad. Will apply the fix properly. > > Ok, _now_ your fix is finally in my tree. D'oh. Thanks for fixing this up, sorry for the pain, this was a tough merge for

Re: [PATCH 5.2 00/61] 5.2.1-stable review

2019-07-13 Thread Greg Kroah-Hartman
On Sat, Jul 13, 2019 at 03:45:14PM +0530, Shreeya Patel wrote: > On Fri, 2019-07-12 at 14:19 +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.2.1 release. > > There are 61 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH 5.1 000/138] 5.1.18-stable review

2019-07-13 Thread Greg Kroah-Hartman
On Fri, Jul 12, 2019 at 08:46:15PM -0500, Jiunn Chang wrote: > On Fri, Jul 12, 2019 at 02:17:44PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.18 release. > > There are 138 patches in this series, all will be posted as a response > > to this one.

Re: [REGRESSION] Xorg segfaults on Asus Chromebook CP101 with Linux v5.2 (was Asus C101P Chromeboot fails to boot with Linux 5.2)

2019-07-13 Thread Heiko Stuebner
Hi, Am Samstag, 13. Juli 2019, 13:38:45 CEST schrieb Alex Dewar: > I initially thought my machine was failing to boot entirely, but it > turns out it was just failing to start the display manager. I managed to > escape to a tty by hammering the keyboard a bit. > > I suspect the culprit is the

Re: [RFC PATCH v4 1/3] selftests/x86/sgx: Fix Makefile for SGX selftest

2019-07-13 Thread Jarkko Sakkinen
On Sat, 2019-07-13 at 18:10 +0300, Jarkko Sakkinen wrote: > On Fri, 2019-07-12 at 23:51 -0700, Cedric Xing wrote: > > The original x86/sgx/Makefile didn't work when "x86/sgx" was specified as > > the > > test target, nor did it work with "run_tests" as the make target. Yet > > another > >

Re: [PATCH] rcu: Make jiffies_till_sched_qs writable

2019-07-13 Thread Paul E. McKenney
On Sat, Jul 13, 2019 at 10:20:02AM -0400, Joel Fernandes wrote: > On Sat, Jul 13, 2019 at 4:47 AM Byungchul Park > wrote: > > > > On Fri, Jul 12, 2019 at 9:51 PM Joel Fernandes > > wrote: > > > > > > On Fri, Jul 12, 2019 at 03:32:40PM +0900, Byungchul Park wrote: > > > > On Thu, Jul 11, 2019 at

Re: [PATCH] fTPM: fix PTR_ERR() usage

2019-07-13 Thread Sasha Levin
On Fri, Jul 12, 2019 at 06:34:24PM +0300, Jarkko Sakkinen wrote: On Fri, 2019-07-12 at 13:49 +0200, Arnd Bergmann wrote: A last minute change must have confused PTR_ERR() and ERR_PTR(): drivers/char/tpm/tpm_ftpm_tee.c:236:15: error: incompatible pointer to integer conversion passing 'struct

Re: [RFC PATCH v4 1/3] selftests/x86/sgx: Fix Makefile for SGX selftest

2019-07-13 Thread Jarkko Sakkinen
On Fri, 2019-07-12 at 23:51 -0700, Cedric Xing wrote: > The original x86/sgx/Makefile didn't work when "x86/sgx" was specified as the > test target, nor did it work with "run_tests" as the make target. Yet another > problem was that it breaks 32-bit only build. This patch fixes those problems, >

  1   2   3   >