[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 ---

[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 ---

[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 ---

[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"

[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 ---

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

[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 ---

[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

[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 ---

Re: [V9fs-developer] KASAN: use-after-free Read in generic_perform_write

2018-07-19 Thread Dominique Martinet
Andrew Morton wrote on Thu, Jul 19, 2018: > On Thu, 19 Jul 2018 11:01:01 -0700 syzbot > wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:1c34981993da Add linux-next specific files for 20180719 > > git tree:

Re: [RESEND][PATCH] powerpc/powernv : Save/Restore SPRG3 on entry/exit from stop.

2018-07-19 Thread Michael Neuling
On Wed, 2018-07-18 at 13:42 +0530, Gautham R Shenoy wrote: > Hello Mikey, > > On Wed, Jul 18, 2018 at 09:24:19AM +1000, Michael Neuling wrote: > > > > > DEFINE(PPC_DBELL_SERVER, PPC_DBELL_SERVER); > > > diff --git a/arch/powerpc/kernel/idle_book3s.S > > > b/arch/powerpc/kernel/idle_book3s.S >

Re: [PATCH v3 1/8] swap: Add comments to lock_cluster_or_swap_info()

2018-07-19 Thread Huang, Ying
Christoph Hellwig writes: > On Thu, Jul 19, 2018 at 04:48:35PM +0800, Huang Ying wrote: >> +/* >> + * Determine the locking method in use for this device. Return >> + * swap_cluster_info if SSD-style cluster-based locking is in place. >> + */ >> static inline struct swap_cluster_info

Re: [PATCH v3 4/8] swap: Unify normal/huge code path in swap_page_trans_huge_swapped()

2018-07-19 Thread Huang, Ying
Christoph Hellwig writes: >> static inline bool cluster_is_huge(struct swap_cluster_info *info) >> { >> -return info->flags & CLUSTER_FLAG_HUGE; >> +if (IS_ENABLED(CONFIG_THP_SWAP)) >> +return info->flags & CLUSTER_FLAG_HUGE; >> +else >> +return false; > >

Re: [PATCH v3 2/4] x86/boot: Add acpitb.c to parse acpi tables

2018-07-19 Thread Chao Fan
On Thu, Jul 19, 2018 at 05:22:35PM +0200, Thomas Gleixner wrote: >On Tue, 17 Jul 2018, Chao Fan wrote: >> + >> +/* Search efi table for rsdp table. */ >> +static bool efi_get_rsdp_addr(acpi_physical_address *rsdp_addr) >> +{ >> +efi_system_table_t *systab; >> +bool find_rsdp = false; >> +

RE: [PATCH 2/2] spi: add SPI controller driver for UniPhier SoC

2018-07-19 Thread Keiji Hayashibara
Hi Trent, > -Original Message- > From: Trent Piepho [mailto:tpie...@impinj.com] > Sent: Friday, July 20, 2018 4:46 AM > Subject: Re: [PATCH 2/2] spi: add SPI controller driver for UniPhier SoC > > On Thu, 2018-07-19 at 15:51 +0900, Keiji Hayashibara wrote: > > > > +config SPI_UNIPHIER >

[PATCH] arch/h8300: eliminate ptrace.h warnings

2018-07-19 Thread Randy Dunlap
From: Randy Dunlap Add a "struct task_struct;" stub to arch/h8300's ptrace.h header to eliminate gcc warnings (gcc version is 8.1.0). ../arch/h8300/include/asm/ptrace.h:32:34: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or

linux-next: manual merge of the mfd tree with the sound tree

2018-07-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mfd tree got a conflict in: drivers/gpu/drm/i915/Kconfig between commit: a57942bfdd61 ("ALSA: hda: Make audio component support more generic") from the sound tree and commit: 9c229127aee2 ("drm/i915: hdmi: add CEC notifier to intel_hdmi") from

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-19 Thread Benjamin Herrenschmidt
On Fri, 2018-07-20 at 09:37 +0930, Andrew Jeffery wrote: > > > > Andrew, can you start with a list that shows what you expect us to need > > on our systems ? > > > > Okay, our Witherspoon and Romulus platforms containing the ASPEED AST2500 > currently need the following tuneables exposed: > >

Re: [PATCH] sched/fair: remove #ifdefs from scale_rt_capacity

2018-07-19 Thread Viresh Kumar
On 19-07-18, 14:00, Vincent Guittot wrote: > Reuse cpu_util_irq() that has been defined for schedutil and set irq util > to 0 when !CONFIG_IRQ_TIME_ACCOUNTING > > But the compiler is not able to optimize the sequence (at least with > aarch64 GCC 7.2.1) > free *= (max - irq); > free /=

[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 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 ---

[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 ---

[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

[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

[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

[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

[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:

[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

[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

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

[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

[PATCH 1/2] ata: ahci: Support state with min power but Partial low power state

2018-07-19 Thread Srinivas Pandruvada
Currently when min_power policy is selected, the partial low power state is not entered and link will try aggressively enter to only slumber state. Add a new policy which still enable DEVSLP but also try to enter partial low power state. This policy is presented as "min_power_with_partial". For

[PATCH 0/2] ata: ahci: Enable DEVSLP by default on SLP_S0 support

2018-07-19 Thread Srinivas Pandruvada
One of the requirement for modern x86 system to enter lowest power mode (SLP_S0) is SATA IP block to be off. This is true even during when platform is suspended to idle and not only in opportunistic (runtime) suspend. This series is to enable DEVSLP by default. -current (non-rfc) series

[PATCH 2/2] ata: ahci: Enable DEVSLP by default on x86 with SLP_S0

2018-07-19 Thread Srinivas Pandruvada
One of the requirement for modern x86 system to enter lowest power mode (SLP_S0) is SATA IP block to be off. This is true even during when platform is suspended to idle and not only in opportunistic (runtime) suspend. Several of these system don't have traditional ACPI S3, so it is important that

Re: [V9fs-developer] KASAN: use-after-free Read in generic_perform_write

2018-07-19 Thread Matthew Wilcox
> > > HEAD commit:1c34981993da Add linux-next specific files for 20180719 > > > git tree: linux-next > > > console output: https://syzkaller.appspot.com/x/log.txt?x=16e6ac4440 > > > kernel config: https://syzkaller.appspot.com/x/.config?

Re: [PATCHv2 2/2] arm64: Clear the stack

2018-07-19 Thread Kees Cook
On Thu, Jul 19, 2018 at 4:28 PM, Laura Abbott wrote: > > Implementation of stackleak based heavily on the x86 version > > Signed-off-by: Laura Abbott This is the commit message I wrote when I was using an earlier version, which I think is more descriptive: arm64: Add support for STACKLEAK

[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 ---

[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 ---

[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 ---

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

Re: [PATCH] uio: fix wrong return value from uio_mmap()

2018-07-19 Thread Xiubo Li
On 2018/7/20 8:31, Hailong Liu wrote: uio_mmap has multiple fail paths to set return value to nonzero then goto out. However, it always returns *0* from the *out* at end, and this will mislead callers who check the return value of this function. Fixes: 57c5f4df0a5a0ee ("uio: fix crash after the

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

2018-07-19 Thread Wanpeng Li
On Fri, 20 Jul 2018 at 00:47, Paolo Bonzini wrote: > > On 19/07/2018 18:28, Radim Krčmář wrote: > >> + > >> +kvm_hypercall3(KVM_HC_SEND_IPI, ipi_bitmap_low, ipi_bitmap_high, > >> vector); > > and > > > > kvm_hypercall3(KVM_HC_SEND_IPI, ipi_bitmap[0], ipi_bitmap[1], vector); > > > >

[PATCH 19/20] staging: gasket: common ioctl dispatcher add __user annotations

2018-07-19 Thread Todd Poynor
From: Todd Poynor Add __user annotation to gasket core common ioctl pointer arguments for sparse checking. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_ioctl.c | 8 +--- drivers/staging/gasket/gasket_ioctl.h | 4 +++-

[PATCH 20/20] staging: gasket: common ioctls add __user annotations

2018-07-19 Thread Todd Poynor
From: Todd Poynor Add __user annotation to gasket common ioctl pointer arguments for sparse checking. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_ioctl.c | 102 ++ 1 file changed, 55

[PATCH 11/20] staging: gasket: fix comment syntax in apex.h

2018-07-19 Thread Todd Poynor
From: Todd Poynor Use kernel-style multi-line comment syntax. Reported-by: Guenter Roeck Signed-off-by: Simon Que Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/gasket/apex.h

[PATCH 10/20] staging: gasket: remove else clause after return in if clause

2018-07-19 Thread Todd Poynor
From: Todd Poynor Else after return is unnecessary and may cause static code checkers to complain. Reported-by: Guenter Roeck Signed-off-by: Simon Que Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH 04/20] staging: gasket: fix class create bug handling

2018-07-19 Thread Todd Poynor
From: Todd Poynor class_create() never returns NULL, and this driver should never return PTR_ERR(NULL) anyway. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor Reviewed-by: Dmitry Torokhov --- drivers/staging/gasket/gasket_core.c | 2 +- 1 file changed, 1

[PATCH 00/20 v4] staging: gasket: sundry fixes and fixups

2018-07-19 Thread Todd Poynor
From: Todd Poynor Various fixes mainly from the chromium review of the gasket and apex drivers. More to come. Todd Poynor (20): staging: gasket: allow compile for ARM64 in Kconfig staging: gasket: gasket_enable_dev remove unnecessary variable staging: gasket: remove code for no physical

[PATCH] Drivers: staging: rts5208: xd.c fixed a brace coding style issue

2018-07-19 Thread Ali Aminian
Fixing a coding style issue Signed-off-by: Ali Aminian --- drivers/staging/rts5208/xd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rts5208/xd.c b/drivers/staging/rts5208/xd.c index 667dfe1..261d868 100644 --- a/drivers/staging/rts5208/xd.c +++

[PATCH 1/1] x86/hyper-v: Fix a merge error

2018-07-19 Thread kys
From: "K. Y. Srinivasan" When the mapping betwween the Linux notion of CPU ID to the hypervisor's notion of CPU ID is not initialized, we should fall back on the non-enligghtened path for IPI. A merge error introduced this bug; fix it. Fixes: 1268ed0c474a ("Merge branch 'x86/urgent' into

[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 ---

[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 ---

[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 ---

[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 ---

[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

[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 ---

[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

[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

[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

Re: [PATCH v2 02/12] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-07-19 Thread Suren Baghdasaryan
On Mon, Jul 16, 2018 at 1:28 AM, Patrick Bellasi wrote: > Utilization clamping requires each CPU to know which clamp values are > assigned to tasks that are currently RUNNABLE on that CPU. > Multiple tasks can be assigned the same clamp value and tasks with > different clamp values can be

[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

[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

[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

Re: [PATCH] arch/h8300: add a defconfig target

2018-07-19 Thread Yoshinori Sato
On Thu, 19 Jul 2018 15:04:29 +0900, Randy Dunlap wrote: > > From: Randy Dunlap > > Make the "defconfig" target valid for arch/h8300. Currently > "make ARCH=h8300 defconfig" produces: > > *** Can't find default configuration "arch/h8300/defconfig"! > ../scripts/kconfig/Makefile:87: recipe for

[PATCH net-next 8/9] vhost_net: rename VHOST_RX_BATCH to VHOST_NET_BATCH

2018-07-19 Thread Jason Wang
A more generic name which could be used for TX as well. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 53d305b..2fd2f0e3 100644 --- a/drivers/vhost/net.c +++

Re: [PATCH] rapidio: remove redundant pointer md

2018-07-19 Thread Alexandre Bounine
Acked-by: Alexandre Bounine On 2018-07-11 04:23 AM, Colin King wrote: From: Colin Ian King Pointer md is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'md' set but not used [-Wunused-but-set-variable] Signed-off-by:

Re: [PATCH 4/4] perf tools: Fix struct comm_str removal crash

2018-07-19 Thread Namhyung Kim
Hi Arnaldo, On Thu, Jul 19, 2018 at 03:31:14PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 19, 2018 at 03:28:43PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Thu, Jul 19, 2018 at 04:33:45PM +0200, Jiri Olsa escreveu: > > > +++ b/tools/perf/util/comm.c > > > @@ -18,11 +18,9 @@ struct

[PATCH] arch/h8300: eliminate kgbd.c warning

2018-07-19 Thread Randy Dunlap
From: Randy Dunlap Drop the "const" qualifier from arch_kgdb_ops to eliminate the gcc warning (gcc version is 8.1.0). arch/h8300/kernel/kgdb.c:132:24: error: conflicting type qualifiers for 'arch_kgdb_ops' const struct kgdb_arch arch_kgdb_ops = { In file included from

Re: [PATCH 17/32] staging: gasket: annotate ioctl arg with __user

2018-07-19 Thread Todd Poynor
On Thu, Jul 19, 2018 at 2:37 AM, Greg Kroah-Hartman wrote: > On Tue, Jul 17, 2018 at 01:56:57PM -0700, Todd Poynor wrote: >> From: Todd Poynor >> >> For sparse checking. > > Close, but you can do better :) > >> >> Reported-by: Dmitry Torokhov >> Signed-off-by: Zhongze Hu >> Signed-off-by: Todd

[PATCH 01/20] staging: gasket: allow compile for ARM64 in Kconfig

2018-07-19 Thread Todd Poynor
From: Todd Poynor The gasket and apex drivers are also to be used on ARM64 architectures. Signed-off-by: Todd Poynor --- drivers/staging/gasket/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/Kconfig b/drivers/staging/gasket/Kconfig index

Re: [PATCH v3 5/6] KVM: X86: Add NMI support to PV IPIs

2018-07-19 Thread Wanpeng Li
On Fri, 20 Jul 2018 at 00:31, Radim Krčmář wrote: > > 2018-07-03 14:21+0800, Wanpeng Li: > > From: Wanpeng Li > > > > The NMI delivery mode of ICR is used to deliver an NMI to the processor, > > and the vector information is ignored. > > > > Cc: Paolo Bonzini > > Cc: Radim Krčmář > > Cc:

[tip:x86/pti] x86/pti: Check the return value of pti_user_pagetable_walk_p4d()

2018-07-19 Thread tip-bot for Jiang Biao
Commit-ID: b2b7d986a89b6c94b1331a909de1217214fb08c1 Gitweb: https://git.kernel.org/tip/b2b7d986a89b6c94b1331a909de1217214fb08c1 Author: Jiang Biao AuthorDate: Fri, 20 Jul 2018 08:06:31 +0800 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 07:07:39 +0200 x86/pti: Check the

[tip:x86/pti] x86/pti: Check the return value of pti_user_pagetable_walk_pmd()

2018-07-19 Thread tip-bot for Jiang Biao
Commit-ID: 8c934e01a7ce685d98e970880f5941d79272c654 Gitweb: https://git.kernel.org/tip/8c934e01a7ce685d98e970880f5941d79272c654 Author: Jiang Biao AuthorDate: Fri, 20 Jul 2018 08:06:32 +0800 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 07:07:39 +0200 x86/pti: Check the

[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

[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 ---

[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 ---

[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

[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

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-19 Thread Andrew Jeffery
> > Andrew, can you start with a list that shows what you expect us to need > on our systems ? > Okay, our Witherspoon and Romulus platforms containing the ASPEED AST2500 currently need the following tuneables exposed: >From the SCU: - Debug UART enable - VGA DAC mux - VGA scratch registers

Re: KASAN: use-after-free Read in generic_perform_write

2018-07-19 Thread Andrew Morton
On Thu, 19 Jul 2018 11:01:01 -0700 syzbot wrote: > 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=16

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

2018-07-19 Thread Al Viro
On Fri, Jul 20, 2018 at 11:50:12AM +1200, Theuns Verwoerd wrote: > +ssize_t jffs2_sync_file_read(struct file *f, > + char __user *b, size_t len, loff_t *ofs) > +{ > + struct jffs2_sb_info *c = file_inode(f)->i_private; > + > + while (c->tidemark) > + schedule(); > +

Re: [PATCH] proc: fixup PDE allocation bloat

2018-07-19 Thread Shakeel Butt
On Sun, Jun 17, 2018 at 2:57 PM Alexey Dobriyan wrote: > > commit 24074a35c5c975c94cd9691ae962855333aac47f > ("proc: Make inline name size calculation automatic") > started to put PDE allocations into kmalloc-256 which is unnecessary as > ~40 character names are very rare. > > Put allocation back

[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 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 ---

[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 ---

[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 ---

[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 ---

[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 ---

[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 ---

[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 ---

  1   2   3   4   5   6   7   8   9   10   >