[PATCH v3 3/9] dt-bindings: interrupt-controllers: add compatible string for stm32h7

2017-11-06 Thread Ludovic Barre
From: Ludovic Barre This patch updates stm32-exti documentation with stm32h7-exti compatible string. Signed-off-by: Ludovic Barre Acked-by: Rob Herring --- .../devicetree/bindings/interrupt-controller/st,stm32-exti.txt| 4

Re: [PATCH] MAINTAINERS: Add git tree for Thunderbolt development

2017-11-06 Thread Greg Kroah-Hartman
On Mon, Nov 06, 2017 at 08:12:55PM +0300, Mika Westerberg wrote: > I will be gathering Thunderbolt related patches to this git tree with > help of other Thunderbolt maintainers. > > Signed-off-by: Mika Westerberg > --- > Hi Andreas and Greg, > > If you are fine,

RE: [PATCH] mpt3sas: fix dma_addr_t casts

2017-11-06 Thread Sathya Prakash Veerichetty
Acked-by: Sathya Prakash Veerichetty -Original Message- From: Arnd Bergmann [mailto:a...@arndb.de] Sent: Monday, November 6, 2017 6:35 AM To: Sathya Prakash; Chaitra P B; Suganath Prabu Subramani; James E.J. Bottomley; Martin K. Petersen Cc: Arnd Bergmann;

Re: linux-next: Tree for Nov 6 (amdgpu_virt.c)

2017-11-06 Thread Randy Dunlap
On 11/05/2017 11:30 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20171103: > on i386, when CONFIG_MODULES is not set: CC drivers/gpu/drm/amd/amdgpu/amdgpu_virt.o In file included from ../arch/x86/include/asm/atomic.h:5:0, from ../include/linux/atomic.h:5,

[PATCH 3/3] dmaengine: qcom_hidma: add identity register support

2017-11-06 Thread Sinan Kaya
The location for destination event channel register has been relocated from offset 0x28 to 0x40. Update the code accordingly. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git

[PATCH 1/3] Documentation: DT: qcom_hidma: bump HW revision for the bugfixed HW

2017-11-06 Thread Sinan Kaya
A new version of the HIDMA IP has been released with bug fixes. Bumping the hardware version to differentiate from others. Signed-off-by: Sinan Kaya --- Documentation/devicetree/bindings/dma/qcom_hidma_mgmt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: kernel panic: n_tty: init_tty

2017-11-06 Thread Eric Biggers
On Mon, Nov 06, 2017 at 01:33:09PM +0100, Greg KH wrote: > > > > I just saw the same crash running syzkaller. It was preceded by a fault > > injection in tty_ldisc_get() here: > > > > ld = kmalloc(sizeof(struct tty_ldisc), GFP_KERNEL); > > if (ld == NULL) { > >

Re: possible deadlock in generic_file_write_iter

2017-11-06 Thread Christoph Hellwig
How about complete_nodep() as name? Otherwise this looks ok to me - not pretty, but not _that_ horrible either..

[PATCH v2 3/4] Add support for AMD Core Perf Extension in guest

2017-11-06 Thread Janakarajan Natarajan
This patch adds support for AMD Core Performance counters in the guest. The base event select and counter MSRs are changed. In addition, with the core extension, there are 2 extra counters available for performance measurements for a total of 6. With the new MSRs, the logic to map them to the

[PATCH v2 4/4] Expose AMD Core Perf Extension flag to guests

2017-11-06 Thread Janakarajan Natarajan
Expose the AMD Core Perf Extension flag to the guests. Signed-off-by: Janakarajan Natarajan --- arch/x86/kvm/cpuid.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 0099e10..8c95a7c

[PATCH v2 1/4] x86/kvm/cpuid: Fix CPUID function for word 6 (80000001_ECX)

2017-11-06 Thread Janakarajan Natarajan
The function for CPUID 8001 ECX is set to 0xc001. Set it to 0x8001. Signed-off-by: Janakarajan Natarajan --- arch/x86/kvm/cpuid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/cpuid.h b/arch/x86/kvm/cpuid.h index

[PATCH v2 2/4] Add AMD Core Perf Extension MSRs

2017-11-06 Thread Janakarajan Natarajan
Add the EventSelect and Counter MSRs for AMD Core Perf Extension. Signed-off-by: Janakarajan Natarajan --- arch/x86/include/asm/msr-index.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/x86/include/asm/msr-index.h

[Part2 PATCH v8 27/38] KVM: SVM: Add support for KVM_SEV_LAUNCH_START command

2017-11-06 Thread Brijesh Singh
The KVM_SEV_LAUNCH_START command is used to create a memory encryption context within the SEV firmware. In order to do so, the guest owner should provide the guest's policy, its public Diffie-Hellman (PDH) key and session information. The command implements the LAUNCH_START flow defined in SEV

[Part2 PATCH v8 26/38] KVM: SVM: VMRUN should use associated ASID when SEV is enabled

2017-11-06 Thread Brijesh Singh
SEV hardware uses ASIDs to associate a memory encryption key with a guest VM. During guest creation, a SEV VM uses the SEV_CMD_ACTIVATE command to bind a particular ASID to the guest. Lets make sure that the VMCB is programmed with the bound ASID before a VMRUN. Cc: Thomas Gleixner

[Part2 PATCH v8 29/38] KVM: SVM: Add support for KVM_SEV_LAUNCH_MEASURE command

2017-11-06 Thread Brijesh Singh
The command is used to retrieve the measurement of contents encrypted through the KVM_SEV_LAUNCH_UPDATE_DATA command. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář"

Re: [PATCH v2 1/4] x86/kvm/cpuid: Fix CPUID function for word 6 (80000001_ECX)

2017-11-06 Thread Krish Sadhukhan
On 11/06/2017 09:44 AM, Janakarajan Natarajan wrote: The function for CPUID 8001 ECX is set to 0xc001. Set it to 0x8001. Signed-off-by: Janakarajan Natarajan --- arch/x86/kvm/cpuid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[Part2 PATCH v8 25/38] KVM: SVM: Add KVM_SEV_INIT command

2017-11-06 Thread Brijesh Singh
The command initializes the SEV platform context and allocates a new ASID for this guest from the SEV ASID pool. The firmware must be initialized before we issue any guest launch commands to create a new memory encryption context. Cc: Thomas Gleixner Cc: Ingo Molnar

[Part2 PATCH v8 18/38] crypto: ccp: Implement SEV_PEK_CSR ioctl command

2017-11-06 Thread Brijesh Singh
The SEV_PEK_CSR command can be used to generate a PEK certificate signing request. The command is defined in SEV spec section 5.7. Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Borislav Petkov Cc: Herbert Xu Cc:

[Part2 PATCH v8 03/38] kvm: svm: prepare for new bit definition in nested_ctl

2017-11-06 Thread Brijesh Singh
From: Tom Lendacky Currently the nested_ctl variable in the vmcb_control_area structure is used to indicate nested paging support. The nested paging support field is actually defined as bit 0 of the field. In order to support a new feature flag the usage of the

[PATCH v2] pid: restore the old behaviour of the ns_last_pid sysctl

2017-11-06 Thread Andrei Vagin
CRIU uses ns_last_pid to fork a process with a specified pid. For example, if we need to create a process with the pid of 1, we write into /proc/sys/kernel/ns_last_pid $ echo > /proc/sys/kernel/ns_last_pid; sh -c 'echo $$' 1 This behaviour has been broken and now if we write

Re: [PATCH v2] video: atmel_lcdfb: Use unique error messages in atmel_lcdfb_of_init()

2017-11-06 Thread Joe Perches
On Mon, 2017-11-06 at 19:14 +0100, SF Markus Elfring wrote: > A duplicate error message was used so far in this function implementation. > Thus use a consistent message format instead together with property names > where constant merging can be applied by the compiler in four cases. [] > diff

Re: [RFC/RFT PATCH 3/6] ACPI / APEI: Replace ioremap_page_range() with fixmap

2017-11-06 Thread James Morse
Hi gengdongjiu On 02/11/17 12:01, gengdongjiu wrote: > James Morse wrote: >> Can I take that as a 'Tested-by:'? >> >> These tags also let us record who has a system that can test changes to this >> driver. > > sure. > Thanks for the fixing. > Qiang Zheng who is my colleague have tested it. > >

Re: [PATCH AUTOSEL for 4.9 43/50] regulator: core: Don't use regulators as supplies until the parent is bound

2017-11-06 Thread Mark Brown
On Mon, Nov 06, 2017 at 06:19:46PM +, Levin, Alexander (Sasha Levin) wrote: > On Wed, Oct 25, 2017 at 10:06:36AM +0200, Mark Brown wrote: > >In general I would be extremely wary of backporting anything like this > >that affects things like device instantiation ordering, even without any >

Re: [PATCH 3.16-stable 82/87] MIPS: ip27: Disable qlge driver in defconfig

2017-11-06 Thread Ben Hutchings
On Fri, 2017-05-05 at 21:47 +0200, Arnd Bergmann wrote: > Commit c64ebe32d3fc90c52277257d6c9fa7d589877cc2 upstream. > > One of the last remaining failures in kernelci.org is for a gcc bug: > > drivers/net/ethernet/qlogic/qlge/qlge_main.c:4819:1: error: insn does not > satisfy its constraints: >

Re: [PATCH] get_maintainer: Add a couple more --self-test options

2017-11-06 Thread Tom Saeger
Hi Joe, This is good! I had something similar cooking - specifically for SCM validation. My SCM attempt caught a few more issues: - check git branch if specified - check validitiy of "T:" entry, otherwise warn of malformed entry. Example malformed (current next has two instances):

Re: UBSAN: Undefined behaviour in mm/sparse.c:81:17

2017-11-06 Thread Corentin Labbe
On Sun, Nov 05, 2017 at 01:57:33PM +0100, Corentin Labbe wrote: > Hello > > At least since next-20171102 I hit the following boot crash: > [0.00] Booting Linux on physical CPU 0x00 [0x410fd034] > [0.00] Linux version 4.14.0-rc7-next-20171103+ (compile@Red) (gcc > version

Re: Excessive logging in thunderbolt driver

2017-11-06 Thread Andreas Noever
On Wed, Nov 1, 2017 at 8:41 AM, Mika Westerberg wrote: > On Tue, Oct 31, 2017 at 10:45:46PM +0100, Stephen Hemminger wrote: >> The thunderbolt driver needs to stop logging. >> All these debug messages and the laptop is on battery with no devices >> connected. >>

[PATCH v2 0/2] remoteproc: increase debug capabilities

2017-11-06 Thread Loic Pallardy
This series increases remoteproc debug capabilities by adding: - associated resource table dump feature - registered carveouts list dump feature --- Changes from V1: - Fix 0-DAY reported issues on open functions prototype - Rebase on Linux 4.14-rc8 Loic Pallardy (2): remoteproc: debug: add

Re: [PATCH v2] lib_backtrace: fix kernel text address leak

2017-11-06 Thread Josh Poimboeuf
On Tue, Nov 07, 2017 at 12:56:48AM +0800, Liu, Changcheng wrote: > Don't leak idle function address in NMI backtrace. > > Signed-off-by: Liu Changcheng > > diff --git a/lib/nmi_backtrace.c b/lib/nmi_backtrace.c > index 46e4c749..61a6b5a 100644 > ---

[PATCH] MAINTAINERS: Add git tree for Thunderbolt development

2017-11-06 Thread Mika Westerberg
I will be gathering Thunderbolt related patches to this git tree with help of other Thunderbolt maintainers. Signed-off-by: Mika Westerberg --- Hi Andreas and Greg, If you are fine, I can pick up Thunderbolt related patches to this tree and then forward them to

Re: linux-next: Tree for Nov 6 (trace_irqsoff.c)

2017-11-06 Thread Randy Dunlap
On 11/05/2017 11:30 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20171103: > on i386: ../kernel/trace/trace_irqsoff.c: In function 'trace_preempt_on': ../kernel/trace/trace_irqsoff.c:855:2: error: implicit declaration of function 'trace_preempt_enable_rcuidle'

Re: [PATCH 2/3] dmaengine: qcom_hidma: add support for the new revision

2017-11-06 Thread Robin Murphy
On 06/11/17 17:26, Sinan Kaya wrote: > Add support for probing the newer HW. > > Signed-off-by: Sinan Kaya > --- > drivers/dma/qcom/hidma.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c > index

[PATCH] mm/page_alloc: Avoid KERN_CONT uses in warn_alloc

2017-11-06 Thread Joe Perches
KERN_CONT/pr_cont uses should be avoided where possible. Use single pr_warn calls instead. Signed-off-by: Joe Perches --- mm/page_alloc.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index

RE: [Patch v5 08/21] CIFS: SMBD: Upper layer reconnects to SMB Direct session

2017-11-06 Thread Matthew Wilcox
Oh, I hadn't noticed that. Then I amend my suggestion to be: #ifdef CONFIG_CIFS_SMB_DIRECT #define cifs_rdma_enabled(server) ((server)->rdma) #else #define cifs_rdma_enabled(server) 0 static inline void cifs_reconnect(struct TCP_Server_Info *server) { } #endif > -Original

Re: [PATCH v5 0/7] PM / devfreq: Use OPP interface to handle the frequency

2017-11-06 Thread Bjorn Andersson
On Sun, Oct 22, 2017 at 6:32 PM, Chanwoo Choi wrote: > These patches makes the devfreq to use the OPP interface and clean-up codes. > Hi Chanwoo, This patch series breaks UFS support on modern Qualcomm platforms (e.g. MSM8996). Prior to this series the call to

[Part2 PATCH v8 32/38] KVM: SVM: Add support for SEV DEBUG_DECRYPT command

2017-11-06 Thread Brijesh Singh
The command is used for decrypting a guest memory region for debug purposes. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel

Re: [PATCH 2/3] dmaengine: qcom_hidma: add support for the new revision

2017-11-06 Thread Sinan Kaya
On 11/6/2017 1:03 PM, Robin Murphy wrote: >> #ifdef CONFIG_ACPI >> ret = strcmp(acpi_device_hid(adev), "QCOM8062"); >> +if (ret) >> +ret = strcmp(acpi_device_hid(adev), "QCOM8063"); > This string-juggling looks to have already hit the point at which it

[Part2 PATCH v8 30/38] KVM: SVM: Add support for SEV LAUNCH_FINISH command

2017-11-06 Thread Brijesh Singh
The command is used for finializing the SEV guest launch process. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel

Re: A test of the philosophical impact of what I have been talking about

2017-11-06 Thread Ywe Cærlyn
Den 11/6/2017 11:00, skrev Ywe Cærlyn: Den 11/4/2017 23:53, skrev Ywe Cærlyn: Den 11/3/2017 07:46, skrev Ywe Cærlyn: Den 10/29/2017 17:21, skrev Ywe Cærlyn: Den 10/29/2017 17:00, skrev Ywe Cærlyn: Den 10/27/2017 23:28, skrev Ywe Cærlyn: Den 10/27/2017 23:01, skrev Ywe Cærlyn: Philosophical

[PATCH] media: ddbridge: fix build warnings

2017-11-06 Thread Randy Dunlap
From: Randy Dunlap Fix 2 build warnings. These functions are void, so drop the "return"s. ./drivers/media/pci/ddbridge/ddbridge-io.h: warning: 'return' with a value, in function returning void [enabled by default]: => 50:2, 55:2 Signed-off-by: Randy Dunlap

Re: [PATCH V9 2/4] MIPS: Implement dma_map_ops::get_cache_alignment()

2017-11-06 Thread Christoph Hellwig
This doesn't apply to the current dma mapping tree: http://git.infradead.org/users/hch/dma-mapping.git/shortlog/refs/heads/for-next so even if I were to get the proper ACKs it would need a resend.

[PATCH v2 2/2] arm64/mm/kasan: don't use vmemmap_populate() to initialize shadow

2017-11-06 Thread Pavel Tatashin
From: Will Deacon The kasan shadow is currently mapped using vmemmap_populate() since that provides a semi-convenient way to map pages into init_top_pgt. However, since that no longer zeroes the mapped pages, it is not suitable for kasan, which requires zeroed shadow memory.

[PATCH v2 1/2] x86/mm/kasan: don't use vmemmap_populate() to initialize shadow

2017-11-06 Thread Pavel Tatashin
From: Andrey Ryabinin The kasan shadow is currently mapped using vmemmap_populate() since that provides a semi-convenient way to map pages into init_top_pgt. However, since that no longer zeroes the mapped pages, it is not suitable for kasan, which requires zeroed shadow

[PATCH v2 0/2] don't use vmemmap_populate() to initialize shadow

2017-11-06 Thread Pavel Tatashin
Corrected "From" fields in these two patches to preserve the original authorship. Andrey Ryabinin (1): x86/mm/kasan: don't use vmemmap_populate() to initialize shadow Will Deacon (1): arm64/mm/kasan: don't use vmemmap_populate() to initialize shadow arch/arm64/Kconfig | 2 +-

Re: [tip:x86/mm] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y

2017-11-06 Thread Bjorn Andersson
On Thu, Nov 2, 2017 at 7:12 AM, Kirill A. Shutemov wrote: [..] > Could you try the patch below instead? > > From 4a9d843f9d939d958612b0079ebe5743f265e1e0 Mon Sep 17 00:00:00 2001 > From: "Kirill A. Shutemov" > Date: Thu, 2 Nov

RE: [Patch v5 08/21] CIFS: SMBD: Upper layer reconnects to SMB Direct session

2017-11-06 Thread Long Li
> -Original Message- > From: Matthew Wilcox > Sent: Monday, November 6, 2017 10:10 AM > To: Long Li ; Pavel Shilovsky > Cc: linux-cifs ; Stephen Hemminger > ; linux-r...@vger.kernel.org; Kernel

Re: [PATCH v2 08/16] iommu: introduce device fault data

2017-11-06 Thread Jean-Philippe Brucker
Hi Yi, Sorry for the late reply, I seem to have missed this. On 20/10/17 11:07, Liu, Yi L wrote: [...] >>> + >>> +/* Generic fault types, can be expanded IRQ remapping fault */ enum >>> +iommu_fault_type { >>> + IOMMU_FAULT_DMA_UNRECOV = 1,/* unrecoverable fault */ >>> +

Re: [PATCH 2/2] PCI: mvebu: Check DRAM window size

2017-11-06 Thread Bjorn Helgaas
On Thu, Oct 05, 2017 at 04:16:50PM -0500, Bjorn Helgaas wrote: > On Mon, Sep 25, 2017 at 06:56:58PM -0500, Bjorn Helgaas wrote: > > On Mon, Aug 28, 2017 at 05:25:17PM +0200, Jan Luebbe wrote: > > > The sum of the DRAM windows may exceed 4GB (at least on Armada XP). > > > Return an error in that

Re: [PATCH] usb: dwc2: host: fix isoc urb actual length

2017-11-06 Thread Alan Stern
On Mon, 6 Nov 2017, wlf wrote: > Hi Minas, > > 在 2017年11月06日 17:28, Minas Harutyunyan 写道: > > Hi, > > > > On 11/6/2017 12:46 PM, William Wu wrote: > >> The actual_length in dwc2_hcd_urb structure is used > >> to indicate the total data length transferred so far, > >> but in

Re: [PATCH] MAINTAINERS: Add git tree for Thunderbolt development

2017-11-06 Thread Andreas Noever
On Mon, Nov 6, 2017 at 6:12 PM, Mika Westerberg wrote: > I will be gathering Thunderbolt related patches to this git tree with > help of other Thunderbolt maintainers. > > Signed-off-by: Mika Westerberg > --- > Hi Andreas and

Re: [PATCH] get_maintainer: Add a couple more --self-test options

2017-11-06 Thread Joe Perches
On Mon, 2017-11-06 at 13:12 -0600, Tom Saeger wrote: > Hi Joe, > This is good! I had something similar cooking - specifically for SCM > validation. > > My SCM attempt caught a few more issues: > - check git branch if specified > - check validitiy of "T:" entry, otherwise warn of

Re: [PATCH] PCI: designware: move dw_pcie_iatu_unroll_enabled to pcie-designware.c

2017-11-06 Thread Bjorn Helgaas
On Tue, Oct 24, 2017 at 07:10:55PM +0530, Pankaj Dubey wrote: > On 20 October 2017 at 23:11, Bjorn Helgaas wrote: > > > > On Thu, Oct 12, 2017 at 10:11:08AM +0530, Pankaj Dubey wrote: > > > IATU unroll feature can be enabled in EP mode as well, so we need to > > > have this

[PATCH] ARCv2: Accomodate NS48 MMUv5 by releaxing MMU ver checking

2017-11-06 Thread Vineet Gupta
HS48 cpus will have a new MMUv5, although Linux is currently not explicitly supporting the newer features (so remains at V4). The existing software/hardware version check is very tight and causes boot abort. Given that the MMUv5 hardware is backwards compatible, relax the boot check to allow

[PATCH v2 2/2] remoteproc: debug: add carveouts list dump feature

2017-11-06 Thread Loic Pallardy
This patch offers the capability to dump memory carveouts associated to one remoteprocessor. Signed-off-by: Loic Pallardy --- V2 : - Fix 0-DAY reported issues on open function prototype drivers/remoteproc/remoteproc_debugfs.c | 31 +++ 1 file

[PATCH v2 1/2] remoteproc: debug: add resource table dump feature

2017-11-06 Thread Loic Pallardy
This patch adds the capability to display the content of the resource table associated to a remote processor firmware. Signed-off-by: Loic Pallardy --- V2 : - Fix 0-DAY reported issues on open function prototype drivers/remoteproc/remoteproc_debugfs.c | 99

Re: [PATCH 3/3] HID: cp2112: fix broken gpio_direction_input callback

2017-11-06 Thread Sébastien Szymanski
On 11/06/2017 09:11 AM, Benjamin Tissoires wrote: > On Nov 02 2017 or thereabouts, Sébastien Szymanski wrote: >> When everything goes smoothly, ret is set to 0 which makes the function >> to return EIO error. >> >> Fixes: 8e9faa15469e ("HID: cp2112: fix gpio-callback error handling") >>

[PATCH v2 0/4] Support Perf Extension on AMD KVM guests

2017-11-06 Thread Janakarajan Natarajan
This patchset adds support for Perf Extension on AMD KVM guests. When perf runs on a guest with family = 15h || 17h, the MSRs that are accessed, when the Perf Extension flag is made available, differ from the existing K7 MSRs. The accesses are to the AMD Core Performance Extension counters which

Re: [PATCH v2 1/4] x86/kvm/cpuid: Fix CPUID function for word 6 (80000001_ECX)

2017-11-06 Thread Jim Mattson
Reviewed-by: Jim Mattson On Mon, Nov 6, 2017 at 9:44 AM, Janakarajan Natarajan wrote: > The function for CPUID 8001 ECX is set to 0xc001. Set it to > 0x8001. > > Signed-off-by: Janakarajan Natarajan

[Part2 PATCH v8 36/38] KVM: SVM: Clear C-bit from the page fault address

2017-11-06 Thread Brijesh Singh
When SEV is active, on #VMEXIT the page fault address will contain the C-bit. We must clear the C-bit before handling the fault. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim

[Part2 PATCH v8 31/38] KVM: SVM: Add support for SEV GUEST_STATUS command

2017-11-06 Thread Brijesh Singh
The command is used for querying the SEV guest information. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc:

[Part2 PATCH v8 35/38] KVM: SVM: Pin guest memory when SEV is active

2017-11-06 Thread Brijesh Singh
The SEV memory encryption engine uses a tweak such that two identical plaintext pages at different location will have different ciphertext. So swapping or moving ciphertext of two pages will not result in plaintext being swapped. Relocating (or migrating) physical backing pages for a SEV guest

[Part2 PATCH v8 37/38] KVM: SVM: Do not install #UD intercept when SEV is enabled

2017-11-06 Thread Brijesh Singh
On #UD, x86_emulate_instruction() fetches the data from guest memory and decodes the instruction bytes to assist further. When SEV is enabled, the instruction bytes will be encrypted using the guest-specific key and the hypervisor will no longer able to fetch the instruction bytes to assist UD

[Part2 PATCH v8 19/38] crypto: ccp: Implement SEV_PEK_CERT_IMPORT ioctl command

2017-11-06 Thread Brijesh Singh
The SEV_PEK_CERT_IMPORT command can be used to import the signed PEK certificate. The command is defined in SEV spec section 5.8. Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Borislav Petkov Cc: Herbert Xu Cc:

Hello dear good day from

2017-11-06 Thread Jessica

Re: [PATCH AUTOSEL for 4.9 43/50] regulator: core: Don't use regulators as supplies until the parent is bound

2017-11-06 Thread Levin, Alexander (Sasha Levin)
On Wed, Oct 25, 2017 at 10:06:36AM +0200, Mark Brown wrote: >On Wed, Oct 25, 2017 at 01:56:02AM +, Levin, Alexander (Sasha Levin) wrote: > >> When regulators are successfully registered, we check to see if the >> regulator is a supply for any other registered regulator and if so >> add the new

[Part2 PATCH v8 05/38] KVM: SVM: Prepare to reserve asid for SEV guest

2017-11-06 Thread Brijesh Singh
Currently, ASID allocation start at 1. Add a svm_vcpu_data.min_asid which allows supplying a dynamic start ASID. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář"

[Part2 PATCH v8 06/38] KVM: X86: Extend CPUID range to include new leaf

2017-11-06 Thread Brijesh Singh
This CPUID leaf provides the memory encryption support information on AMD Platform. Its complete description is available in APM volume 2, Section 15.34 Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini

Re: [kernel-hardening] Re: [PATCH v3] scripts: add leaking_addresses.pl

2017-11-06 Thread Pavel Vasilyev
 ./leaking_addresses.pl --dont_walk_abs /proc --dont_walk_abs /sys Unknown option: dont_walk_abs Unknown option: dont_walk_abs 06.11.2017 20:27, Linus Torvalds пишет: > David - you can see the patch on patchwork: > >     https://patchwork.kernel.org/patch/10042605/ > > and try it out yourself. >

[Part2 PATCH v8 04/38] kvm: svm: Add SEV feature definitions to KVM

2017-11-06 Thread Brijesh Singh
From: Tom Lendacky Define the SEV enable bit for the VMCB control structure. The hypervisor will use this bit to enable SEV in the guest. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini

Re: general protection fault in asn1_ber_decoder

2017-11-06 Thread Eric Biggers
On Mon, Nov 06, 2017 at 10:36:00AM -0800, syzbot wrote: > kasan: GPF could be caused by NULL-ptr deref or user memory access > general protection fault: [#1] SMP KASAN > Dumping ftrace buffer: >(ftrace buffer empty) > Modules linked in: > CPU: 3 PID: 2984 Comm: syzkaller229187 Not tainted

Re: BUG: looking up invalid subclass: 8

2017-11-06 Thread Takashi Iwai
On Mon, 06 Nov 2017 19:36:14 +0100, syzbot wrote: > > Hello, > > syzkaller hit the following crash on > 5a3517e009e979f21977d362212b7729c5165d92 > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console

Re: Guaranteed allocation of huge pages (1G) using movablecore=N doesn't seem to work at all

2017-11-06 Thread Michal Hocko
On Mon 06-11-17 19:03:08, Maxim Levitsky wrote: > I am fully aware of this. > This is why we have /proc/vm/treat_hugepages_as_moveable which I did set. > Did you remove this option? Yes http://lkml.kernel.org/r/20171003072619.8654-1-mho...@kernel.org > I don't need/have memory hotplug so I am ok

Re: [PATCH] sysctl: add register_sysctl() dummy helper

2017-11-06 Thread Arnd Bergmann
On Mon, Nov 6, 2017 at 5:50 PM, Dave Martin wrote: > On Mon, Nov 06, 2017 at 01:36:40PM +, Arnd Bergmann wrote: >> The register_sysctl() function has been around for five years with commit >> fea478d4101a ("sysctl: Add register_sysctl for normal sysctl users") >> but now

[PATCH] get_maintainer: Add a couple more --self-test options

2017-11-06 Thread Joe Perches
Check for duplicate section headers and link reachability. Miscellanea: o Add --self-test= options (sections, patterns and scm for now) where the default without options is all tests o Rename check_maintainers_patterns to self_test o Rename self_test_pattern_info to self_test_info

Re: [PATCH v3] scripts: add leaking_addresses.pl

2017-11-06 Thread Linus Torvalds
On Sun, Nov 5, 2017 at 9:19 PM, Tobin C. Harding wrote: > Currently we are leaking addresses from the kernel to user space. This > script is an attempt to find some of those leakages. Script parses > `dmesg` output and /proc and /sys files for hex strings that look like > kernel

[PATCH 2/3] dmaengine: qcom_hidma: add support for the new revision

2017-11-06 Thread Sinan Kaya
Add support for probing the newer HW. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index e366985..29d6aaa 100644 --- a/drivers/dma/qcom/hidma.c +++

Re: [PATCH 1/2] cgroup: export list of delegatable control files using sysfs

2017-11-06 Thread Tejun Heo
Hello, Roman. On Fri, Nov 03, 2017 at 10:56:31AM -0700, Tejun Heo wrote: > On Fri, Nov 03, 2017 at 01:46:02PM -0400, Roman Gushchin wrote: > > Delegatable cgroup v2 control files may require special handling > > (e.g. chowning), and the exact list of such files varies between > > kernel versions

Re: [PATCH 3/3] HID: cp2112: fix broken gpio_direction_input callback

2017-11-06 Thread Benjamin Tissoires
On Nov 06 2017 or thereabouts, Sébastien Szymanski wrote: > On 11/06/2017 09:11 AM, Benjamin Tissoires wrote: > > On Nov 02 2017 or thereabouts, Sébastien Szymanski wrote: > >> When everything goes smoothly, ret is set to 0 which makes the function > >> to return EIO error. > >> > >> Fixes:

[PATCH] block: avoid null pointer dereference on null disk

2017-11-06 Thread Colin King
From: Colin Ian King It is possible that the pointer disk can be null and hence we can get a null pointer deference when accessing disk->flags. Add a null pointer check to avoid the dereference. Detected by CoverityScan, CID#1461133 ("Explicit null dereferenced")

Re: [PATCH] storvsc: Avoid excessive host scan on controller change

2017-11-06 Thread Cathy Avery
On 10/31/2017 05:58 PM, Long Li wrote: From: Long Li When there are multiple disks attached to the same SCSI controller, the host may send several VSTOR_OPERATION_REMOVE_DEVICE or VSTOR_OPERATION_ENUMERATE_BUS messages in a row, to indicate there is a change on the SCSI

RE: drivers/x86: add thinkpad-wmi

2017-11-06 Thread Mario.Limonciello
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > ow...@vger.kernel.org] On Behalf Of Corentin Chary > Sent: Saturday, November 4, 2017 10:23 AM > To: Limonciello, Mario > Cc: Darren Hart

[Part2 PATCH v8 34/38] KVM: SVM: Add support for SEV LAUNCH_SECRET command

2017-11-06 Thread Brijesh Singh
The command is used for injecting a secret into the guest memory region. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel

[Part2 PATCH v8 38/38] KVM: X86: Restart the guest when insn_len is zero and SEV is enabled

2017-11-06 Thread Brijesh Singh
On AMD platforms, under certain conditions insn_len may be zero on #NPF. This can happen if a guest gets a page-fault on data access but the HW table walker is not able to read the instruction page (e.g instruction page is not present in memory). Typically, when insn_len is zero,

[Part2 PATCH v8 13/38] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-11-06 Thread Brijesh Singh
AMD's new Secure Encrypted Virtualization (SEV) feature allows the memory contents of virtual machines to be transparently encrypted with a key unique to the VM. The programming and management of the encryption keys are handled by the AMD Secure Processor (AMD-SP) which exposes the commands for

[Part2 PATCH v8 15/38] crypto: ccp: Implement SEV_PLATFORM_STATUS ioctl command

2017-11-06 Thread Brijesh Singh
The SEV_PLATFORM_STATUS command can be used by the platform owner to get the current status of the platform. The command is defined in SEV spec section 5.5. Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Borislav Petkov Cc: Herbert Xu

[Part2 PATCH v8 11/38] crypto: ccp: Define SEV key management command id

2017-11-06 Thread Brijesh Singh
Define Secure Encrypted Virtualization (SEV) key management command id and structure. The command definition is available in SEV KM spec 0.14 (http://support.amd.com/TechDocs/55766_SEV-KM API_Specification.pdf) Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc:

Re: [PATCH v4] i2c: aspeed: Deassert reset in probe

2017-11-06 Thread Wolfram Sang
On Wed, Nov 01, 2017 at 10:53:30AM +1030, Joel Stanley wrote: > In order to use i2c from a cold boot, the i2c peripheral must be taken > out of reset. We request a shared reset controller each time a bus > driver is loaded, as the reset is shared between the 14 i2c buses. > > On remove the reset

[Part2 PATCH v8 14/38] crypto: ccp: Implement SEV_FACTORY_RESET ioctl command

2017-11-06 Thread Brijesh Singh
The SEV_FACTORY_RESET command can be used by the platform owner to reset the non-volatile SEV related data. The command is defined in SEV spec section 5.4 Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Borislav Petkov Cc: Herbert Xu

[PATCH v2 2/2] cgroup: export list of cgroups v2 features using sysfs

2017-11-06 Thread Roman Gushchin
The active development of cgroups v2 sometimes leads to a creation of interfaces, which are not turned on by default (to provide backward compatibility). It's handy to know from userspace, which cgroup v2 features are supported without calculating it based on the kernel version. So, let's export

[PATCH v2 1/2] cgroup: export list of delegatable control files using sysfs

2017-11-06 Thread Roman Gushchin
Delegatable cgroup v2 control files may require special handling (e.g. chowning), and the exact list of such files varies between kernel versions (and likely to be extended in the future). To guarantee correctness of this list and simplify the life of userspace (systemd, first of all), let's

Re: [RFC/RFT PATCH 0/6] Switch GHES ioremap_page_range() to use fixmap

2017-11-06 Thread James Morse
On 01/11/17 18:20, Kani, Toshimitsu wrote: > On Wed, 2017-11-01 at 16:30 +0100, Borislav Petkov wrote: >> On Wed, Nov 01, 2017 at 02:58:33PM +, James Morse wrote: >>> Does anyone have an x86 machine that does firmware-first using NOTIFY_NMI? >> AFAIK, the only one who has access to a

Re: [PATCH] PCI: endpoint: handle probable NULL pointer access

2017-11-06 Thread Bjorn Helgaas
On Sat, Oct 28, 2017 at 04:13:56PM +0530, Pankaj Dubey wrote: > On 25 October 2017 at 17:32, Kishon Vijay Abraham I wrote: > > Hi, > > > > On Wednesday 25 October 2017 01:32 AM, Bjorn Helgaas wrote: > >> On Thu, Oct 12, 2017 at 09:27:57AM +0530, Pankaj Dubey wrote: > >>>

Re: [PATCH] PCI: dwc: designware: don't sleep in atomic context

2017-11-06 Thread Bjorn Helgaas
On Fri, Oct 20, 2017 at 01:19:17PM -0500, Bjorn Helgaas wrote: > On Fri, Oct 13, 2017 at 09:10:38AM +0530, Pankaj Dubey wrote: > > > > > > On 10/12/2017 04:09 PM, David Laight wrote: > > >From: Pankaj Dubey > > >>Sent: 12 October 2017 08:55 > > >>In pcie-designware.c many places we are calling

[PATCH v3 9/9] ARM: dts: stm32: add support of exti on stm32h743 pinctrl

2017-11-06 Thread Ludovic Barre
From: Ludovic Barre This patch adds support of external interrupt (exti) on all gpio ports of stm32h743. Signed-off-by: Ludovic Barre --- arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 24 1 file changed, 24 insertions(+) diff

[PATCH v3 1/9] irqchip: stm32: select GENERIC_IRQ_CHIP

2017-11-06 Thread Ludovic Barre
From: Ludovic Barre This patch adds GENERIC_IRQ_CHIP to stm32 exti config. Signed-off-by: Ludovic Barre --- drivers/irqchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index

[PATCH v3 6/9] irqchip: stm32: move the wakeup on interrupt mask

2017-11-06 Thread Ludovic Barre
From: Ludovic Barre Move irq_set_wake on interrupt mask, needed to wake up from low power mode as the event mask is not able to do so. Signed-off-by: Ludovic Barre --- drivers/irqchip/irq-stm32-exti.c | 10 +- 1 file changed, 5

[PATCH v3 4/9] irqchip: stm32: add stm32h7 support

2017-11-06 Thread Ludovic Barre
From: Ludovic Barre stm32h7 has up to 96 inputs (3 banks of 32 inputs max). Signed-off-by: Ludovic Barre --- drivers/irqchip/irq-stm32-exti.c | 42 1 file changed, 42 insertions(+) diff --git

[PATCH v3 5/9] irqchip: stm32: fix initial values

2017-11-06 Thread Ludovic Barre
From: Ludovic Barre -After cold boot, imr default value depends on hardware configuration. -After hot reboot the registers must be cleared to avoid residue. Signed-off-by: Ludovic Barre --- drivers/irqchip/irq-stm32-exti.c | 9 + 1 file

[PATCH v3 7/9] ARM: dts: stm32: add exti support for stm32h743

2017-11-06 Thread Ludovic Barre
From: Ludovic Barre This patch adds support of external interrupt (exti) for stm32h743. Signed-off-by: Ludovic Barre --- arch/arm/boot/dts/stm32h743.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi

[PATCH v3 0/9] irqchip: stm32: add stm32h7 support

2017-11-06 Thread Ludovic Barre
From: Ludovic Barre This series adds: -Management of multi-bank of external interrupts stm32h7 has up to 96 inputs (3 banks of 32 inputs). -Fix initial value after cold/hot boot (wakeup issue). Changes v3: -remove chip.name and handler, already done by

  1   2   3   4   5   6   7   8   9   10   >