[PATCH 1/2] jffs2: Provide forced dirty node cleanup via POLL signal

2018-07-19 Thread Theuns Verwoerd
Secure deletion under JFFS2 is complicated by the log of dirty nodes that may contain obsoleted versions of sensitive data. There is an existing mechanism to trigger a single gc step via -HUP signal; extend this to trigger gc collection of all currently-dirty data via a -POLL signal. On receipt o

[PATCH 2/2] jffs2: Provide jffs2_sync files to track gc POLL progress

2018-07-19 Thread Theuns Verwoerd
When executing secure deletion under JFFS2 via the -POLL forced cleanup option, userspace may need to know when the process has safely completed. Provide debugfs files per mount that, when read, blocks while cleanup is in progress: once the read completes it is safe to assume that all obsoleted sen

[PATCH 0/2] Secure deletion under JFFS2

2018-07-19 Thread Theuns Verwoerd
Security certifications such as FIPS require the capability to securely delete files, which is problematic under JFFS2's log-based model. We can ensure that all dirty or obsolete data has been cleared at the conclusion of secure deletion by forcibly driving the existing garbage collection syste

Re: [PATCH 16/32] staging: gasket: always allow root open for write

2018-07-19 Thread Todd Poynor
On Thu, Jul 19, 2018 at 2:29 AM, Greg Kroah-Hartman wrote: > On Tue, Jul 17, 2018 at 01:56:56PM -0700, Todd Poynor wrote: >> From: Todd Poynor >> >> Always allow root to open device for writing. >> >> Drop special-casing of ioctl permissions for root vs. owner. >> >> Reported-by: Dmitry Torokhov

Re: [PATCH v3 32/33] mtd: rawnand: do not export nand_scan_[ident|tail]() anymore

2018-07-19 Thread Boris Brezillon
On Fri, 20 Jul 2018 01:00:25 +0200 Miquel Raynal wrote: > Both nand_scan_ident() and nand_scan_tail() helpers used to be called > directly from controller drivers that needed to tweak some ECC-related > parameters before nand_scan_tail(). This separation prevented dynamic > allocations during the

[PATCH] PCI: fix ptr_ret.cocci warnings

2018-07-19 Thread kbuild test robot
From: kbuild test robot drivers/pci/controller/dwc/pcie-kirin.c:141:1-3: WARNING: PTR_ERR_OR_ZERO can be used drivers/pci/controller/dwc/pcie-kirin.c:177:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/

drivers/pci/controller/dwc/pcie-kirin.c:141:1-3: WARNING: PTR_ERR_OR_ZERO can be used

2018-07-19 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fb7d1bcf1602b46f37ada72178516c01a250e434 commit: 6e0832fa432ec99c94caee733c8f5851cf85560b PCI: Collect all native drivers under drivers/pci/controller/ date: 6 weeks ago coccinelle warnings: (new ones pr

Re: [PATCH v3 33/33] mtd: rawnand: allocate dynamically ONFI parameters during detection

2018-07-19 Thread Boris Brezillon
On Fri, 20 Jul 2018 01:00:26 +0200 Miquel Raynal wrote: > Now that it is possible to do dynamic allocations during the > identification phase, convert the onfi_params structure (which is only > needed with ONFI compliant chips) into a pointer that will be allocated > only if needed. > > Signed-o

[tip:x86/pti] x86/entry/32: Add debug code to check entry/exit CR3

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 97193702c6d353e12aefc0fb2f73a98ca421cd56 Gitweb: https://git.kernel.org/tip/97193702c6d353e12aefc0fb2f73a98ca421cd56 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:16 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:49 +0200 x86/entry/32: Add debu

[tip:x86/pti] x86/mm/pti: Add Warning when booting on a PCID capable CPU

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 5e8105950a8b3e03e805299b4d05020ee4eda31a Gitweb: https://git.kernel.org/tip/5e8105950a8b3e03e805299b4d05020ee4eda31a Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:15 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:48 +0200 x86/mm/pti: Add Warnin

[tip:x86/pti] x86/pti: Allow CONFIG_PAGE_TABLE_ISOLATION for x86_32

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 7757d607c6b3186de42e1fb0210b9c5d8b70 Gitweb: https://git.kernel.org/tip/7757d607c6b3186de42e1fb0210b9c5d8b70 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:14 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:48 +0200 x86/pti: Allow CONFIG_

[tip:x86/pti] x86/ldt: Enable LDT user-mapping for PAE

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 6df934b92a549cb3badb6d576f71aeb133e2f110 Gitweb: https://git.kernel.org/tip/6df934b92a549cb3badb6d576f71aeb133e2f110 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:13 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:48 +0200 x86/ldt: Enable LDT us

[tip:x86/pti] x86/ldt: Split out sanity check in map_ldt_struct()

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 9bae3197e15dd5e03ce8e237db6fe4486b08a775 Gitweb: https://git.kernel.org/tip/9bae3197e15dd5e03ce8e237db6fe4486b08a775 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:12 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:47 +0200 x86/ldt: Split out san

Re: linux-next: build warning after merge of the net-next tree

2018-07-19 Thread Guenter Roeck
On Fri, Jul 20, 2018 at 08:19:34AM +0900, Masahiro Yamada wrote: > 2018-07-20 7:35 GMT+09:00 Guenter Roeck : > > On Fri, Jul 20, 2018 at 08:09:06AM +1000, Stephen Rothwell wrote: > >> Hi Guenter, > >> > >> On Thu, 19 Jul 2018 06:49:01 -0700 Guenter Roeck > >> wrote: > >> > > >> > On 07/18/2018 10

[tip:x86/pti] x86/ldt: Define LDT_END_ADDR

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 8195d869d118bc30bf0be8d0c5d8849d6f58529b Gitweb: https://git.kernel.org/tip/8195d869d118bc30bf0be8d0c5d8849d6f58529b Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:11 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:47 +0200 x86/ldt: Define LDT_EN

[tip:x86/pti] x86/ldt: Reserve address-space range on 32 bit for the LDT

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: f3e48e546c42e31c0c095a6f917a4ad64668608c Gitweb: https://git.kernel.org/tip/f3e48e546c42e31c0c095a6f917a4ad64668608c Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:10 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:47 +0200 x86/ldt: Reserve addre

[tip:x86/pti] x86/pgtable/pae: Use separate kernel PMDs for user page-table

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: f59dbe9ca6707eb7ffd0e24359085651c2d7df48 Gitweb: https://git.kernel.org/tip/f59dbe9ca6707eb7ffd0e24359085651c2d7df48 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:09 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:46 +0200 x86/pgtable/pae: Use s

[tip:x86/pti] x86/mm/dump_pagetables: Define INIT_PGD

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 4e8537e4a7a15402b87c424b22c25c9e59681d16 Gitweb: https://git.kernel.org/tip/4e8537e4a7a15402b87c424b22c25c9e59681d16 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:08 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:46 +0200 x86/mm/dump_pagetables

[tip:x86/pti] x86/mm/pti: Clone entry-text again in pti_finalize()

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: ba0364e260ab37c02975557dbecc014a26072236 Gitweb: https://git.kernel.org/tip/ba0364e260ab37c02975557dbecc014a26072236 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:07 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:45 +0200 x86/mm/pti: Clone entr

[tip:x86/pti] x86/mm/pti: Introduce pti_finalize()

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: b976690f5db26fbc7c2be413bfa0fbd270547a94 Gitweb: https://git.kernel.org/tip/b976690f5db26fbc7c2be413bfa0fbd270547a94 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:06 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:45 +0200 x86/mm/pti: Introduce

[tip:x86/pti] x86/mm/pti: Keep permissions when cloning kernel text in pti_clone_kernel_text()

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 1ac228a7c87f697d1d01eb6362a6b5246705b0dd Gitweb: https://git.kernel.org/tip/1ac228a7c87f697d1d01eb6362a6b5246705b0dd Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:05 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:45 +0200 x86/mm/pti: Keep permi

[tip:x86/pti] x86/mm/pti: Clone CPU_ENTRY_AREA on PMD level on x86_32

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: f94560cd6b5117f8913f4c42f4d9a405c26ddc1c Gitweb: https://git.kernel.org/tip/f94560cd6b5117f8913f4c42f4d9a405c26ddc1c Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:03 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:44 +0200 x86/mm/pti: Clone CPU_

[tip:x86/pti] x86/mm/pti: Make pti_clone_kernel_text() compile on 32 bit

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 39d668e04edad25abe184fb329ce35a131146ee5 Gitweb: https://git.kernel.org/tip/39d668e04edad25abe184fb329ce35a131146ee5 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:04 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:44 +0200 x86/mm/pti: Make pti_c

[tip:x86/pti] x86/mm/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 2c1b9fbe83412598d2dccdd448147336b085e0c6 Gitweb: https://git.kernel.org/tip/2c1b9fbe83412598d2dccdd448147336b085e0c6 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:02 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:44 +0200 x86/mm/pti: Define X86

[tip:x86/pti] x86/mm/pti: Add an overflow check to pti_clone_pmds()

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 935232ce28dfabff1171e5a7113b2d865fa9ee63 Gitweb: https://git.kernel.org/tip/935232ce28dfabff1171e5a7113b2d865fa9ee63 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:01 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:43 +0200 x86/mm/pti: Add an ove

[tip:x86/pti] x86/mm/legacy: Populate the user page-table with user pgd's

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 1f40a46cf47c12d93a5ad9dccd82bd36ff8f956a Gitweb: https://git.kernel.org/tip/1f40a46cf47c12d93a5ad9dccd82bd36ff8f956a Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:41:00 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:43 +0200 x86/mm/legacy: Populat

[tip:x86/pti] x86/mm/pae: Populate the user page-table with user pgd's

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 9b7b8bbd7f6ba4ef7caa5a078ead70237e12d045 Gitweb: https://git.kernel.org/tip/9b7b8bbd7f6ba4ef7caa5a078ead70237e12d045 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:59 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:43 +0200 x86/mm/pae: Populate t

[tip:x86/pti] x86/mm/pae: Populate valid user PGD entries

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 6c0df8689494e1fefa685377676fa8192291a0eb Gitweb: https://git.kernel.org/tip/6c0df8689494e1fefa685377676fa8192291a0eb Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:58 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:42 +0200 x86/mm/pae: Populate v

[tip:x86/pti] x86/pgtable: Move two more functions from pgtable_64.h to pgtable.h

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 76e258add7b653b60037ee4b25ebc40da6a35c4a Gitweb: https://git.kernel.org/tip/76e258add7b653b60037ee4b25ebc40da6a35c4a Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:57 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:42 +0200 x86/pgtable: Move two

[tip:x86/pti] x86/pgtable: Move pti_set_user_pgtbl() to pgtable.h

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: fcbbd977572cfe5a3dcc97d663bf7480431a07ca Gitweb: https://git.kernel.org/tip/fcbbd977572cfe5a3dcc97d663bf7480431a07ca Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:56 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:42 +0200 x86/pgtable: Move pti_

Re: [PATCH 2/2] apparmor: Fully initialize aa_perms struct when answering userspace query

2018-07-19 Thread John Johansen
On 07/05/2018 10:25 PM, Tyler Hicks wrote: > Fully initialize the aa_perms struct in profile_query_cb() to avoid the > potential of using an uninitialized struct member's value in a response > to a query from userspace. > > Detected by CoverityScan CID#1415126 ("Uninitialized scalar variable") >

[PATCHv2 1/2] arm64: Add stack information to on_accessible_stack

2018-07-19 Thread Laura Abbott
In preparation for enabling the stackleak plugin on arm64, we need a way to get the bounds of the current stack. Extend on_accessible_stack to get this information. Signed-off-by: Laura Abbott --- v2: Switched to using struct stack_info for argument passing. on_accessible_stack is now the prima

[tip:x86/pti] x86/pgtable: Move pgdp kernel/user conversion functions to pgtable.h

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 8372d66865deb45ee3ec21401a9c80f231b728c8 Gitweb: https://git.kernel.org/tip/8372d66865deb45ee3ec21401a9c80f231b728c8 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:55 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:41 +0200 x86/pgtable: Move pgdp

[PATCHv2 2/2] arm64: Clear the stack

2018-07-19 Thread Laura Abbott
Implementation of stackleak based heavily on the x86 version Signed-off-by: Laura Abbott --- v2: Convert to adjusted on_acessible_stack APIs. Fixed alloca check to just panic. Dropped the extra include per Kees. I also didn't add the Reviewed-by since the APIs did change and I wanted another pa

[PATCHv2 0/2] Stackleak for arm64

2018-07-19 Thread Laura Abbott
Hi, This is hopefully the final version of the stackleak plugin for arm64. Acks are appreciated! Laura Abbott (2): arm64: Add stack information to on_accessible_stack arm64: Clear the stack arch/arm64/Kconfig| 1 + arch/arm64/include/asm/processor.h| 15 ++ arch

Re: [PATCH 1/2] apparmor: Check buffer bounds when mapping permissions mask

2018-07-19 Thread John Johansen
On 07/05/2018 10:25 PM, Tyler Hicks wrote: > Don't read past the end of the buffer containing permissions > characters or write past the end of the destination string. > > Detected by CoverityScan CID#1415361, 1415376 ("Out-of-bounds access") > > Fixes: e53cfe6c7caa ("apparmor: rework perm mappin

[tip:x86/pti] x86/pgtable/pae: Unshare kernel PMDs when PTI is enabled

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 7ffcf1497c8ab59a705bfafb7401876fd2f6f71e Gitweb: https://git.kernel.org/tip/7ffcf1497c8ab59a705bfafb7401876fd2f6f71e Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:53 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:40 +0200 x86/pgtable/pae: Unsha

[tip:x86/pti] x86/pgtable/32: Allocate 8k page-tables when PTI is enabled

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: e3238faf20fb1b51a814497751398ab525a2c884 Gitweb: https://git.kernel.org/tip/e3238faf20fb1b51a814497751398ab525a2c884 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:54 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:41 +0200 x86/pgtable/32: Alloca

Re: [PATCH v3 28/33] mtd: rawnand: docg4: convert driver to nand_scan()

2018-07-19 Thread Boris Brezillon
On Fri, 20 Jul 2018 01:00:21 +0200 Miquel Raynal wrote: > Two helpers have been added to the core to make ECC-related > configuration between the detection phase and the final NAND scan. Use > these hooks and convert the driver to just use nand_scan() instead of > both nand_scan_ident() and nand_

[tip:x86/pti] x86/pgtable: Rename pti_set_user_pgd() to pti_set_user_pgtbl()

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 23b772883d1ddcf7fdf883614b88b2a6205db4da Gitweb: https://git.kernel.org/tip/23b772883d1ddcf7fdf883614b88b2a6205db4da Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:52 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:40 +0200 x86/pgtable: Rename pt

[tip:x86/pti] x86/entry: Rename update_sp0 to update_task_stack

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 252e1a0526304f0f3f6888fc09e81cb220f957f3 Gitweb: https://git.kernel.org/tip/252e1a0526304f0f3f6888fc09e81cb220f957f3 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:51 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:40 +0200 x86/entry: Rename upda

[tip:x86/pti] x86/entry/32: Add PTI CR3 switches to NMI handler code

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: b65bef400689ceee7108c2d47fb97ae91f4d1440 Gitweb: https://git.kernel.org/tip/b65bef400689ceee7108c2d47fb97ae91f4d1440 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:50 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:39 +0200 x86/entry/32: Add PTI

[tip:x86/pti] x86/entry/32: Add PTI cr3 switch to non-NMI entry/exit points

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: e464fb9f241ddf46815b31ca594af96f2699a78e Gitweb: https://git.kernel.org/tip/e464fb9f241ddf46815b31ca594af96f2699a78e Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:49 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:39 +0200 x86/entry/32: Add PTI

[tip:x86/pti] x86/entry/32: Simplify debug entry point

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 929b44eb5739bf11d4a9bce85d7346bd955fc24d Gitweb: https://git.kernel.org/tip/929b44eb5739bf11d4a9bce85d7346bd955fc24d Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:48 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:39 +0200 x86/entry/32: Simplify

[tip:x86/pti] x86/entry/32: Handle Entry from Kernel-Mode on Entry-Stack

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: b92a165df17ee6e616e43107730f06bf6ecf5d8d Gitweb: https://git.kernel.org/tip/b92a165df17ee6e616e43107730f06bf6ecf5d8d Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:47 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:38 +0200 x86/entry/32: Handle E

[tip:x86/pti] x86/entry/32: Introduce SAVE_ALL_NMI and RESTORE_ALL_NMI

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 8b376fae0514dc7ee04786e2327169e39d12e51b Gitweb: https://git.kernel.org/tip/8b376fae0514dc7ee04786e2327169e39d12e51b Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:46 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:38 +0200 x86/entry/32: Introduc

[tip:x86/pti] x86/entry/32: Leave the kernel via trampoline stack

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: e5862d0515ad970ccec6208ecf5bb0cffe291ea3 Gitweb: https://git.kernel.org/tip/e5862d0515ad970ccec6208ecf5bb0cffe291ea3 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:45 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:37 +0200 x86/entry/32: Leave th

[tip:x86/pti] x86/entry/32: Enter the kernel via trampoline stack

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 45d7b255747c21fc4b1f5043bee0754d39c3bdbf Gitweb: https://git.kernel.org/tip/45d7b255747c21fc4b1f5043bee0754d39c3bdbf Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:44 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:37 +0200 x86/entry/32: Enter th

[tip:x86/pti] x86/entry/32: Split off return-to-kernel path

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 0d2eb73b29996684d5bbb72f85c74b47b4c359f7 Gitweb: https://git.kernel.org/tip/0d2eb73b29996684d5bbb72f85c74b47b4c359f7 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:43 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:37 +0200 x86/entry/32: Split of

[tip:x86/pti] x86/entry/32: Unshare NMI return path

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 8e676ced31e9d1448d3ffc4159586a259cc67f30 Gitweb: https://git.kernel.org/tip/8e676ced31e9d1448d3ffc4159586a259cc67f30 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:42 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:36 +0200 x86/entry/32: Unshare

Re: [PATCH 00/39 v8] PTI support for x86-32

2018-07-19 Thread Thomas Gleixner
Joerg, On Wed, 18 Jul 2018, Joerg Roedel wrote: > > here is version 8 of my patches to enable PTI on x86-32. The > last version got some good review which I mostly worked into > this version. I went over the whole set once again and did not find any real issues. As the outstanding review comment

[tip:x86/pti] x86/entry/32: Put ESPFIX code into a macro

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 46eabca284f9f27fe94698a068a4a21ba93b4975 Gitweb: https://git.kernel.org/tip/46eabca284f9f27fe94698a068a4a21ba93b4975 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:41 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:36 +0200 x86/entry/32: Put ESPF

[tip:x86/pti] x86/entry/32: Load task stack from x86_tss.sp1 in SYSENTER handler

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: a6b744f3ce9d017dd86b28355de2d8e0d36496d4 Gitweb: https://git.kernel.org/tip/a6b744f3ce9d017dd86b28355de2d8e0d36496d4 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:40 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:36 +0200 x86/entry/32: Load tas

[tip:x86/pti] x86/entry/32: Rename TSS_sysenter_sp0 to TSS_entry2task_stack

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: ae2e565bc6aaee3f3db420fec5fdd39755c9813e Gitweb: https://git.kernel.org/tip/ae2e565bc6aaee3f3db420fec5fdd39755c9813e Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:39 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:35 +0200 x86/entry/32: Rename T

[tip:x86/pti] x86/asm-offsets: Move TSS_sp0 and TSS_sp1 to asm-offsets.c

2018-07-19 Thread tip-bot for Joerg Roedel
Commit-ID: 9e97b73fdb235345a826519862a52a7398c89eb8 Gitweb: https://git.kernel.org/tip/9e97b73fdb235345a826519862a52a7398c89eb8 Author: Joerg Roedel AuthorDate: Wed, 18 Jul 2018 11:40:38 +0200 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 01:11:35 +0200 x86/asm-offsets: Move

KASAN: use-after-free Read in _copy_from_iter

2018-07-19 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1c34981993da Add linux-next specific files for 20180719 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1658732c40 kernel config: https://syzkaller.appspot.com/x/.config?x=7002497517b09aec

Re: [PATCH v3 01/33] mtd: rawnand: brcmnand: convert driver to nand_scan()

2018-07-19 Thread Boris Brezillon
On Fri, 20 Jul 2018 00:59:54 +0200 Miquel Raynal wrote: > + > +static struct nand_controller_ops brcmnand_controller_ops = { static const ... The same comment applies to all patches of this series. > + .attach_chip = brcmnand_attach_chip, > +};

[PATCH] platform: goldfish: Retire pdev_bus

2018-07-19 Thread rkir
From: Roman Kiryanov Not used by goldfish. Signed-off-by: Roman Kiryanov --- drivers/platform/goldfish/Kconfig| 5 - drivers/platform/goldfish/Makefile | 1 - drivers/platform/goldfish/pdev_bus.c | 232 --- 3 files changed, 238 deletions(-) delete mode 100644

Re: [PATCH v3 2/6] KVM: X86: Implement PV IPIs in linux guest

2018-07-19 Thread David Matlack
On Mon, Jul 2, 2018 at 11:23 PM Wanpeng Li wrote: > > From: Wanpeng Li > > Implement paravirtual apic hooks to enable PV IPIs. Very cool. Thanks for working on this! > > apic->send_IPI_mask > apic->send_IPI_mask_allbutself > apic->send_IPI_allbutself > apic->send_IPI_all > > The PV IPIs support

[PATCH v3 06/33] mtd: rawnand: fsl_ifc: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 01/33] mtd: rawnand: brcmnand: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 08/33] mtd: rawnand: gpmi: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 10/33] mtd: rawnand: jz4780: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal Acked-by: Harvey Hunt

[PATCH v3 31/33] mtd: rawnand: tegra: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 23/33] mtd: rawnand: txx9ndfmc: rename nand controller internal structure

2018-07-19 Thread Miquel Raynal
As already done in the core, calling a struct nand_controller 'hw_control' is misleading. Use the same name as in nand_base.c: 'controller'. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/txx9ndfmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nan

[PATCH v3 29/33] mtd: rawnand: qcom: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 26/33] mtd: rawnand: atmel: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 30/33] mtd: rawnand: jz4740: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 27/33] mtd: rawnand: sm_common: convert driver to nand_scan_with_ids()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan_with_ids() (alternative to nand_scan() for passing a flash IDs table) instead of both nand_scan_ident() and nan

[PATCH v3 20/33] mtd: rawnand: sh_flctl: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 22/33] mtd: rawnand: tango: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 32/33] mtd: rawnand: do not export nand_scan_[ident|tail]() anymore

2018-07-19 Thread Miquel Raynal
Both nand_scan_ident() and nand_scan_tail() helpers used to be called directly from controller drivers that needed to tweak some ECC-related parameters before nand_scan_tail(). This separation prevented dynamic allocations during the phase of NAND identification, which was inconvenient. All contro

[PATCH v3 24/33] mtd: rawnand: txx9ndfmc: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 28/33] mtd: rawnand: docg4: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 33/33] mtd: rawnand: allocate dynamically ONFI parameters during detection

2018-07-19 Thread Miquel Raynal
Now that it is possible to do dynamic allocations during the identification phase, convert the onfi_params structure (which is only needed with ONFI compliant chips) into a pointer that will be allocated only if needed. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/nand_base.c| 61 ++

[PATCH v3 18/33] mtd: rawnand: s3c2410: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 21/33] mtd: rawnand: sunxi: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 25/33] mtd: rawnand: vf610: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 07/33] mtd: rawnand: fsmc: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 02/33] mtd: rawnand: cafe: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 03/33] mtd: rawnand: davinci: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Also change the unused "struct device *dev" paramete

[PATCH v3 05/33] mtd: rawnand: fsl_elbc: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 19/33] mtd: rawnand: sh_flctl: move all NAND chip related setup in one function

2018-07-19 Thread Miquel Raynal
Prepare the conversion of the sh_flctl driver to nand_scan() by moving all the configuration that must be made after nand_scan_ident() in one single function. Create a pdata entry in the controller structure for that. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/sh_flctl.c | 38

[PATCH v3 14/33] mtd: rawnand: mtk: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 13/33] mtd: rawnand: marvell: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 12/33] mtd: rawnand: lpc32xx_slc: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 15/33] mtd: rawnand: mxc: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 17/33] mtd: rawnand: omap2: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 00/33] Allow dynamic allocations during NAND chip identification phase

2018-07-19 Thread Miquel Raynal
Hello, This series make a quite deep change in the NAND framework. Until now, the NAND chip identification phase could be done in two manners from the controller driver perspective: 1/ Call nand_scan() or 1/ Call nand_scan_ident() 2/ Do some controller-dependent configuration 3/ Call nand_sca

[PATCH v3 16/33] mtd: rawnand: nandsim: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 11/33] mtd: rawnand: lpc32xx_mlc: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 09/33] mtd: rawnand: hisi504: convert driver to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

[PATCH v3 04/33] mtd: rawnand: denali: convert to nand_scan()

2018-07-19 Thread Miquel Raynal
Two helpers have been added to the core to make ECC-related configuration between the detection phase and the final NAND scan. Use these hooks and convert the driver to just use nand_scan() instead of both nand_scan_ident() and nand_scan_tail(). Signed-off-by: Miquel Raynal --- drivers/mtd/nand/

Re: [PATCH v3 0/7] Fix issues and cleanup for ERR_FATAL and ERR_NONFATAL

2018-07-19 Thread Bjorn Helgaas
On Thu, Jul 19, 2018 at 09:23:47AM +0530, p...@codeaurora.org wrote: > On 2018-07-19 01:14, Bjorn Helgaas wrote: > > This is a v3 of Oza's patches [1]. It's available at [2] if you prefer > > git. > > > > v3 changes: > > - Add pci_aer_clear_fatal_status() to clear ERR_FATAL bits, only > > calle

Re: [PATCH] ARM64: smp: Fix cpu_up() racing with sys_reboot

2018-07-19 Thread Russell King - ARM Linux
On Thu, Jul 19, 2018 at 03:18:46PM -0700, Venkata Narendra Kumar Gutta wrote: > Nothing stops a process from hotplugging in a CPU concurrently > with a sys_reboot() call. In such a situation we could have > ipi_cpu_stop() mark a cpu as 'offline' and _cpu_up() ignore the > fact that the CPU is not r

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-07-19 Thread kbuild test robot
Hi Peter, I love your patch! Perhaps something to improve: [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.18-rc5 next-20180719] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH] security: export security_kernel_load_data to fix firmware_loader build

2018-07-19 Thread Randy Dunlap
On 07/19/2018 03:39 PM, Mimi Zohar wrote: > Thanks, Randy. > > On Thu, 2018-07-19 at 13:15 -0700, Randy Dunlap wrote: >> From: Randy Dunlap >> >> Fix build error when CONFIG_FW_LOADER=m, CONFIG_FW_LOADER_USER_HELPER=y, >> CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y, and CONFIG_SECURITY=y: >> >> ERROR

m68k allmodconfig build errors

2018-07-19 Thread Randy Dunlap
Hi Geert, I am seeing a few errors when cross-building m68k on x86_64, using the toolchain at https://mirrors.edge.kernel.org/pub/tools/crosstool/ (thanks, Arnd). (so this is gcc 8.1.0) block/partitions/ldm.o: In function `ldm_partition': ldm.c:(.text+0x1900): undefined reference to `strcmp' ldm

Re: [PATCH] security: export security_kernel_load_data to fix firmware_loader build

2018-07-19 Thread Mimi Zohar
Thanks, Randy. On Thu, 2018-07-19 at 13:15 -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build error when CONFIG_FW_LOADER=m, CONFIG_FW_LOADER_USER_HELPER=y, > CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y, and CONFIG_SECURITY=y: > > ERROR: "security_kernel_load_data" > [drivers/base/firmw

[ANNOUNCE] v4.16.18-rt10

2018-07-19 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.16.18-rt10 patch set. Changes since v4.16.18-rt9: - The gicv3 now gained a raw_spinlock_t and allocates memory early. This avoids splats early during boot. - The migrate_disable() replacements for UP and non-RT builds were broken. The l

<    1   2   3   4   5   6   7   8   >